/* ════════════════════════════════════════════════════════════════
   MyScreenFolio — style.css (shared by every page)

   Fonts: Oswald (titles, --serif) · Bebas Neue (numbers, --bebas) ·
          Manrope (everything else, --sans)
   Colours via CSS variables (--olive, --bg, --text …), light / dark
   through [data-theme]. Page files keep only page-specific styles.
   ════════════════════════════════════════════════════════════════ */

/* ── CONTENTS ─────────────────────────────────────────────────────
   Search “§NN” for a section, or a component name below.
   Sections stay in cascade order (later rules override earlier ones).

          · Design Tokens
          · Reset
          · Disable double-tap zoom on mobile
          · Base
          · Scrollbar — hidden globally except main page scroll
          · Main page scrollbar — visible, themed
          · Keyframes
          · Page layout
   §01  Top Navigation
          · Library dropdown (desktop combined TV/Movies/Anime/Cartoons)
          · Library accordion (mobile hamburger)
   §02  Phones: chip row, bottom bar, Create button
   §03  (in §02)
   §04  Footer
   §05  Home Page
   §06  Category Page Header
   §07  Section Module
   §08  Currently Watching Cards
          · Friend/Library "Watching" list rows (library.html, profile.htm
          · Live search results on index / Discover (initInlineSearch)
          · Profile tabs (profile.html + profile-view.html — one design)
          · Segmented toggle: Personal / Community (Notes, Lists) and the 
          · Clickable titles + usernames in popups (mssTitleLinkHTML / mss
          · Discover confirmation picker — lets the person pick the right 
          · Sort & Filter — two separate popups (Sort, Filter), each with 
          · Ranked / Unranked badges (lists, list view)
          · Notifications (bell in the top bar)
          · Spoiler notes
          · Profile dashboard (dashboard.js)
          · Note avatars, cards & popups — shared by Notes and Friends (mo
          · Note cards
          · Notes / Lists toolbar: section label + count left, Sort / Filt
          · List cards & list popup — shared by Lists and Friends (moved f
          · List cards (Personal + Community share one design)
          · Collaborators line + Shared/Collab tag (list-popup.js)
          · List popup (Personal + Community)
          · detail.html favorites/lowlights: Season & Episode open small p
          · Seasons: bigger blocks, left to right
          · Episode cards — horizontal scroll, image-on-top card
   §09  Favorite Chips
          · Completed entry comment blocks
          · Reply thread styles (shared across all pages)
          · Friend comments inbox
   §10  Watchlist Grid
   §11  Completed List
   §12  Genre, Type & Status Badges
          · Favorites Picker (shared: profile, profile-view, favorites)
          · Favorites shared (favorites.html, profile, profile-view)
          · Favorite Picks row (overview)
          · Favorite Sections popup grid
          · Favorites grid container (fixed height, vertical scroll on wra
          · Fav edit button (shared)
   §13  Modals & Overlays
   §14  Confirm Dialog
   §15  Toast
   §16  Loading + Empty States
   §17  Detail Page
   §18  Rating Dropdowns (detail page)
   §19  Profile & Public Profile
   §20  Responsive
   §21  Light Mode
   §22  Back to top
   §23  View Toggle
   §24  VIEW: Watching Grid
   §25  View: Facts Grid
   §26  Profile Stats Box
   §27  Completed Grid
          · Rank badge (used everywhere a list is ranked)
   §28  Pick for me (js/pick.js)
   §29  VIEW: Completed Grid (container)
   §30  Score Badge System
   §31  Global Spacing + Typography
   §32  Scrollable Section Content
          · List views: contained scroll in accordion
          · Grid views: horizontal scroll in accordion
          · Grid views: horizontal scroll
          · Grid cards (inside horizontal scroll grids)
   §33  Phones — up to 640px
          · Grid views → 2-column compact wrap on mobile
          · fav chips + all tag badges scaled for phone
          · Buttons: scale down on mobile
          · Completed grid — larger cards, score always visible
          · List cards: compact
          · Section header wrap
          · QP button: icon only on mobile
          · Sort bar
          · Accordion inner padding
          · Modals
          · Friend view list cards
          · Detail page
          · Home comments
          · Main completed page
          · Hero search
   §34  Small Phones — up to 400px
   §35  Tablets — 641px to 1024px
   §36  Large Displays — 1536px+
   §37  TV & Ultrawide — 1920px+
   §38  Tablet-only Nav
   §39  Touch Experience
   §40  Grid Navigation Arrows
          · Continue Watching button — Ongoing section
          · Start Watching button (queue cards)
          · "Up Next" / "Taking a Break" poster cover (mssHoldHTML in conf
          · fv-entry-block: list view wrapper for completed cards
          · Library comments popup (index-style)
          · Comments popup mobile fix
   §41  Profile Additions
          · Overview 5-col fixed grid (no scroll)
   §42  TMDB Search Dropdown
          · Universal input clear (×) button
          · sel-dd: reusable theme-aware dropdown (select replacement)
   §43  Popup Action Buttons
   §44  Rewatch System
          · Rewatch badge responsive scaling — same size across all three,
   §45  Create Card (side panel)
   §46  Episode Ratings
   §47  Your TV on Discover
   §48  Placeholders
          · Library cards (js/library-view.js — library.html + both profil
   ──────────────────────────────────────────────────────────────── */

/* ── Design Tokens ── */
:root {
  /* one width for the Info, Ratings and Note popups (with or without the switcher) */
  --popup-w: 920px;
  /* one dimmed backdrop (no blur) behind every popup */
  --popup-backdrop: var(--overlay-scrim);
  /* Colours come from css/theme.css (the colour source of truth, 17 Nov 2026). These older names are
     kept as aliases so existing rules follow the theme; new code uses the theme.css names directly. */
  --bg:           var(--bg-app);
  --bg-2:         var(--surface-panel);
  --bg-3:         var(--fill-subtle);
  --card:         var(--surface-card);
  --card-solid:   var(--surface-card);
  --card-2:       var(--fill-subtle);
  --card-2-solid: var(--fill-subtle);
  --card-3:       var(--action-secondary-hover);

  --olive:        var(--brand);          /* Forest Green fills (selected, active, badges) */
  --olive-2:      var(--brand-hover);
  --olive-light:  var(--text-link);      /* brand-coloured text, icons, links, progress */
  --olive-glow:   var(--selected-bg);
  --olive-faint:  var(--selected-bg);
  --border-olive: var(--border-brand);

  --tv-accent:    var(--tag-tv);
  --gold-accent:  var(--rating-top);
  --tv-faint:     color-mix(in srgb, var(--tag-tv) 14%, transparent);
  --tv-border:    color-mix(in srgb, var(--tag-tv) 50%, transparent);
  --tv-solid:     var(--tag-tv-solid);
  --movie-solid:  var(--tag-movie-solid);

  --border:       var(--border-default);
  --border-2:     var(--border-strong);

  --text:         var(--text-body);
  --text-2:       var(--text-supporting);
  --text-3:       var(--text-muted);

  --serif: 'Oswald', Georgia, sans-serif;
  --bebas: 'Bebas Neue', var(--sans);
  --sans:  'Manrope', system-ui, -apple-system, 'Helvetica Neue', sans-serif;

  --radius-xs: 8px;
  --radius-sm: 10px;
  --radius:    14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --ease:   cubic-bezier(0.4,0,0.2,1);
  --spring: cubic-bezier(0.34,1.56,0.64,1);
  --trans:  220ms;

  /* Shared badge type scale — genre/type/runtime tags AND the inline
     score badge on grid cards all read from this one curve, so they
     stay the same size as each other and scale down together at every
     screen size. Tuned so the transition actually happens across
     typical laptop-resize widths (~950-1200px) instead of maxing out
     almost immediately like a steeper vw coefficient would. */
  --badge-font-size: clamp(10.5px, 1.15vw, 14px);
}

/* ── Reset ── */
*,*::before,*::after { box-sizing:border-box; margin:0; padding:0; }
button,input,textarea,select { font-family:var(--sans); }
a { color:inherit; text-decoration:none; }
img { display:block; max-width:100%; }

/* ── Disable double-tap zoom on mobile ── */
button, a, input, select, textarea, label, [role="button"] {
  touch-action: manipulation;
}

/* ── Base ── */
html {
  scroll-behavior:smooth; font-size:16px;
  -webkit-tap-highlight-color:transparent;
  /* Stop Safari from auto-boosting text size to match the device's accessibility
   Text Size setting ("small A"/"big A"). Without this, that OS setting
   silently rescales every font-size on the page — which is why things looked
   oversized at a bigger accessibility setting, and why a smaller one exposed
   inputs sitting right at the 16px line meant to prevent zoom-on-focus. */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  font-family:var(--sans); background:var(--bg); color:var(--text);
  min-height:100vh; overflow-x:hidden; line-height:1.6;
  -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale;
  display:flex; flex-direction:column;
}

/* ── Scrollbar — hidden globally except main page scroll ── */
* { scrollbar-width:none; }
::-webkit-scrollbar { display:none; }

/* ── Main page scrollbar — visible, themed ── */
html {
  scrollbar-width:thin;
  scrollbar-color:var(--text-link) transparent;
}
html::-webkit-scrollbar { display:block; width:5px; }
html::-webkit-scrollbar-track { background:transparent; }
html::-webkit-scrollbar-thumb {
  background:var(--text-link);
  border-radius:10px;
  min-height:40px;
}


/* Mobile — thinner scrollbar */
@media(max-width:640px) {
  html::-webkit-scrollbar { width:3px; }
}

/* ── Keyframes ── */
@keyframes fadeUp  { from{opacity:0;transform:translateY(18px)} to{opacity:1;transform:none} }
@keyframes fadeIn  { from{opacity:0} to{opacity:1} }
@keyframes slideUp { from{opacity:0;transform:translateY(28px)} to{opacity:1;transform:none} }
@keyframes spin    { to{transform:rotate(360deg)} }

.fade-up   { animation:fadeUp .38s var(--ease) both; }
.fade-up-1 { animation-delay:.07s; }
.fade-up-2 { animation-delay:.14s; }

.fade-up-4 { animation-delay:.28s; }

/* ── Page layout ── */
.page-wrap {
  max-width:none; margin:0 auto;
  padding:calc(var(--nav-h) + 32px) 48px 120px;
  flex:1; width:100%;
  --page-px: 48px; --page-pt: calc(var(--nav-h) + 32px);
}
@media(max-width:1199px) { .page-wrap { padding:calc(80px + var(--atabs-h)) 18px 110px; --page-px:18px; --page-pt:calc(var(--shell-b) + 20px); } }

/* ═════════════════════════════════════════════════════════════
   §01  Top Navigation — the shell's header (js/nav.js)
   Desktop (≥1200px): one 72px bar — logo · Home · Discover · Library ▾ · Social ▾ · You ▾ ·
   search · Create · Messages · Notifications · avatar. Menus open in one panel joined under it.
   Phones / tablets: search · logo · bell · avatar, then the section's chip row.
   ═════════════════════════════════════════════════════════════ */
nav {
  position:fixed; top:0; inset-inline-start:0; inset-inline-end:0; z-index:400;
  background:var(--bg-nav);   /* solid: the page never shows through the bar */
}
:root { --hero-h:clamp(620px, 44vw + 60px, 780px); --hero-h-phone:440px; --hero-poster:clamp(200px, 12vw + 70px, 260px);   /* every backdrop header on a computer: the title page's size (title, person, edit, item, episodes, season, episode, list pages); --hero-h-phone: the title / person / season / episode pages on a phone */
  --nav-h:72px; --danger:var(--error-fg); --dnav-bg-2:var(--surface-dropdown); --dnav-line:var(--border);
  /* Layers (popups redesign): panels, full pages, confirms, popovers, toasts */
  --panel:var(--surface-panel);              /* their surface — always solid */
  --raised:var(--surface-card);              /* cards inside them */
  --danger-fill:var(--error-solid);          /* red buttons, with --text-on-error */
  --danger-tint:var(--error-bg);
  --scrim:var(--overlay-scrim);              /* page behind a panel / confirm */
  --scrim-over:color-mix(in srgb, var(--overlay-scrim) 60%, transparent);   /* a confirm over an open panel */
  --layer-in:cubic-bezier(.2,.8,.2,1); --layer-out:cubic-bezier(.4,0,1,1); }

#mainNav { z-index:410; }   /* above other <nav>s on the page (Discover / Social side menus share the nav rules) */
@media(min-width:1200px) { nav#mainNav { border-bottom:0.5px solid var(--dnav-line); } }

/* signed in / signed out: what each one sees (html.mss-guest — nav.js) */
html:not(.mss-guest) .guest-only { display:none !important; }
html.mss-guest .nav-auth-only { display:none !important; }

/* ── Phones / tablets: the top bar (Mobile nav v2 · _ntopLeftHTML, nav.js) — 60px, the page's colour,
   a 1px line once you scroll. Left: the logo (Home) · the page's name (Discover, an area's tab pages — Library's
   with its counts under it) · ‹ Back, name, Share, ⋯ (detail pages). Right: Search · Notifications · your avatar. ── */
.nav-top { display:none; align-items:center; gap:8px; height:60px; position:relative; padding:0 12px 0 14px; box-sizing:border-box; }   /* flex on phones / tablets (§20) */
.ntop-l { flex:1; min-width:0; display:flex; align-items:center; gap:6px; }
.nav-top .nav-logo { display:flex; line-height:0; }
/* the MSF monogram (drawn inline by nav.js mssLogoSVG; colours --logo-* from css/theme.css) */
.nav-top .nav-logo-img { height:40px; }
.ntop-name { display:block; min-width:0; overflow:hidden; text-overflow:ellipsis; font:600 24px/1.15 var(--serif); color:var(--text-heading); letter-spacing:.2px; white-space:nowrap; }
.ntop-titles { display:flex; flex-direction:column; justify-content:center; min-width:0; }
.ntop-sub { font:500 11.5px/1.25 var(--sans); color:var(--text-muted); text-wrap:balance; overflow:hidden; display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; }   /* tab pages: their stats or what they're for ("17 in progress · 180 watchlist · 180 watched"), two lines at most */
.ntop-titles:has(.ntop-sub:not(:empty)) .ntop-name { font-size:21px; line-height:1.1; }
.ntop-sub:empty { display:none; }
.ntop-dname { display:block; flex:1; font:700 17px/1.2 var(--sans); overflow:hidden; text-overflow:ellipsis; padding-inline-start:2px; }
.ntop-back { margin-inline-start:-6px; }
.nav-top-controls { flex-shrink:0; display:flex; align-items:center; gap:8px; }
.ntop-btn { position:relative; flex:none; width:44px; height:44px; box-sizing:border-box; display:inline-flex; align-items:center; justify-content:center;
  border-radius:var(--radius-sm); border:1px solid var(--border); background:var(--card); color:var(--text); cursor:pointer; text-decoration:none;
  transition:border-color .15s, color .15s; }
.ntop-btn:hover { border-color:var(--border-olive); color:var(--olive-light); }
.ntop-btn[hidden] { display:none; }
.ntop-back { border-color:transparent; background:none; }
.nav-top:has(.ntop-back) :is(#navSearchBtn, .notif-btn) { display:none; }   /* detail pages: back, name, share, ⋯ (and your avatar) */
.ntop-btn .notif-badge { top:8px; inset-inline-end:9px; min-width:0; width:9px; height:9px; padding:0; font-size:0; line-height:0; border-width:2px; border-color:var(--card); }   /* unread: a dot */
.nav-top-user { padding:0; border:0; background:none; cursor:pointer; border-radius:50%; }
.nav-top-user .nav-user-avatar { width:44px; height:44px; font-size:15px; }
:is(.nav-top-user, .ntop-btn, .nav-top .nav-logo):focus-visible { outline:2px solid var(--olive-light); outline-offset:2px; }
.nav-top-signin { display:inline-flex; align-items:center; min-height:44px; padding:0 12px; border-radius:var(--radius-sm); border:1px solid var(--border-olive);
  font-size:13px; font-weight:700; color:var(--olive-light); text-decoration:none; white-space:nowrap; }
@media(max-width:1199px) {
  nav#mainNav, [data-theme="light"] nav#mainNav { background:var(--bg); -webkit-backdrop-filter:none; backdrop-filter:none; border-bottom:1px solid transparent; transition:border-color .15s; }
  html.ntop-line nav#mainNav { border-bottom-color:var(--border); }
  /* the page's own big title block: the top bar names the page now (kept for screen readers) */
  .cat-page-header :is(.cat-page-title, .lib-kicker, .soc-kicker), .cab-head :is(.cab-title, .cab-eyebrow), .ex-top :is(.ex-title, .ex-eyebrow), .dz-head-t {
    position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0; }
}
@media(max-width:359px) { .nav-top-controls { gap:6px; } .ntop-name { font-size:22px; } }

/* ── Phones / tablets: the area tabs under the top bar (nav.js _atabsHTML, owner 25 Nov 2026) — Library · Episodes ·
   Diary, People · Together · Messages, Profile · Lists · Notes · Medals; under a tab with several pages, a second row
   (Library · Movies · TV · Anime · Cartoons…). Up to 5 a row, sharing the width — never scrolling. Tablets: centred.
   They're part of the page, not the fixed bar: scrolling down, they go up under the top bar (which stays, with the
   page name and Library's counts); Back to top brings them back (owner, 25 Nov 2026). --atabs-h: their height, added
   to the page's top padding; --shell-b: where the fixed bar ends, for sticky parts of the page. ── */
.atabs { display:none; }
@media(max-width:1199px) {
  :root { --atabs-h:0px; --shell-b:60px; }
  html.has-atabs { --atabs-h:44px; }
  html.has-apage { --atabs-h:98px; }
  .atabs { display:block; position:absolute; top:60px; inset-inline:0; z-index:5; background:var(--bg);
    padding-inline:max(12px, env(safe-area-inset-left)) max(12px, env(safe-area-inset-right)); }
  .atab-row, .apage-row { display:flex; max-width:560px; margin-inline:auto; }
  .atab-row { height:44px; box-sizing:border-box; border-bottom:1px solid var(--border-default); }
  .atab { flex:1 1 0; min-width:0; display:flex; align-items:center; justify-content:center; gap:5px; margin-bottom:-1px; padding:0 2px;
    border-bottom:3px solid transparent; color:var(--text-muted); font:700 clamp(13px, 3.6vw, 14px)/1.1 var(--sans); text-decoration:none; text-align:center;
    transition:color .15s, border-color .15s; }
  .atab:hover { color:var(--text-heading); }
  .atab.on { color:var(--text-heading); font-weight:800; border-bottom-color:var(--border-selected); }   /* not colour alone: weight + the line */
  .apage-row { gap:2px; height:42px; margin-block:6px; padding:3px; box-sizing:border-box; border-radius:12px; border:1px solid var(--border-subtle); background:var(--fill-subtle); }
  /* the text and padding grow with the screen: 5 to a row fit at 320px, and bigger phones get the full size */
  .apage { flex:1 1 0; min-width:0; display:flex; align-items:center; justify-content:center; gap:4px; padding:0 clamp(0px, 2.5vw - 8px, 4px); border:1px solid transparent; border-radius:9px;
    color:var(--text-supporting); font:700 clamp(11px, 3.4vw, 13px)/1.1 var(--sans); text-decoration:none; text-align:center; text-wrap:balance; transition:background .15s, color .15s; }
  .apage:hover { color:var(--text-heading); }
  .apage.on { background:var(--brand); border-color:var(--border-selected); color:var(--text-on-brand); }   /* the Forest fill + an outline */
  :is(.atab, .apage):focus-visible { outline:2px solid var(--focus-ring); outline-offset:-2px; border-radius:9px; }
  .atab-l { min-width:0; }
  .atab .notif-badge, .apage .notif-badge { position:static; flex:none; border-color:transparent; }
  .apage .nav-badge, .atab .nav-badge { flex:none; margin:0; background:var(--error-solid); color:#fff; }   /* follow requests waiting */
  .apage.on .nav-badge { outline:1.5px solid var(--text-on-brand); }
  /* the line under the page's title: the top bar shows it under the page name (nav.js _NTOP_SUB_SRC) */
  html.has-atabs :is(.cat-page-header .cat-page-sub, .cab-head .cab-sub, .dy-sub) { display:none; }
  html.has-atabs .cat-page-header.ntop-empty { display:none; }   /* nothing left to show in it (nav.js): no gap */
}
@media (prefers-reduced-motion: reduce) { .atab, .apage { transition:none; } }

/* ── Desktop: the bar ── */
.nav-inner { position:relative; height:var(--nav-h); padding:0 clamp(16px, 2.4vw, 40px); box-sizing:border-box; display:flex; align-items:center; gap:clamp(10px, 1.4vw, 22px); }
.nav-inner .nav-logo { flex-shrink:0; display:flex; line-height:0; }
.nav-inner .nav-logo-img { height:46px; }
.nav-logo { font-family:var(--serif); color:var(--text-heading); display:inline-flex; align-items:center; }
.nav-logo:focus-visible { outline:2px solid var(--olive-light); outline-offset:3px; border-radius:6px; }
.nav-logo-img { height:84px; width:auto; aspect-ratio:467 / 198; display:block; }
.nav-right { position:relative; margin-inline-start:auto; display:flex; align-items:center; gap:8px; flex-shrink:0; }

/* the five tabs — fixed names; the one you're in is a solid olive pill */
.dnav-tabs { display:flex; align-items:center; gap:4px; list-style:none; margin:0; padding:0; min-width:0; }
.dnav-tab { position:relative; display:inline-flex; align-items:center; gap:6px; min-height:40px; padding:0 clamp(10px, 1vw, 15px); box-sizing:border-box;
  border-radius:var(--radius-sm); border:1px solid transparent; background:none; cursor:pointer; text-decoration:none; white-space:nowrap;
  font-family:'Manrope',var(--sans); font-size:14px; font-weight:700; color:var(--text-2); transition:background .15s, color .15s, border-color .15s; }
.dnav-tab:hover, .dnav-tab.open { color:var(--text); background:var(--card); border-color:var(--border); }
.dnav-tab.active, .dnav-tab.active:hover, .dnav-tab.active.open { background:var(--olive); border-color:var(--olive); color:var(--text-on-brand); }
.dnav-tab:focus-visible { outline:2px solid var(--olive-light); outline-offset:2px; }
.dnav-chev { display:inline-flex; }
.dnav-chev svg { width:12px; height:12px; opacity:.7; transition:transform .2s var(--ease); }
.dnav-tab.open .dnav-chev svg { transform:rotate(180deg); }
.dnav-tab .bnav-dot { top:6px; left:auto; inset-inline-end:4px; }

/* right side: round icon buttons, the avatar, Sign in / Create account for guests */
.nav-ic-btn { position:relative; width:40px; height:40px; flex-shrink:0; border-radius:var(--radius-sm); display:inline-flex; align-items:center; justify-content:center; cursor:pointer;
  background:var(--card); border:1px solid var(--border); color:var(--text-2); text-decoration:none; transition:border-color .15s, color .15s; }
.nav-ic-btn:hover { border-color:var(--border-olive); color:var(--olive-light); }
.nav-right .nav-ic-btn.notif-btn-desktop { width:40px; height:40px; border-radius:var(--radius-sm); border:1px solid var(--border); background:var(--card); }
.nav-right .nav-ic-btn.notif-btn-desktop:hover { border-color:var(--border-olive); }
.nav-ic-btn:focus-visible, .nav-user-btn:focus-visible, .nav-guest-btn:focus-visible, .nav-add-btn:focus-visible { outline:2px solid var(--olive-light); outline-offset:2px; }
.nav-add-btn { display:inline-flex; align-items:center; gap:6px; min-height:40px; padding:0 16px; border-radius:var(--radius-sm); border:1px solid var(--action-primary-bg); background:var(--action-primary-bg);
  color:var(--text-on-primary); font:700 13.5px var(--sans); cursor:pointer; transition:background .15s; }
.nav-add-btn:hover { background:var(--action-primary-hover); }
.nav-user-btn { display:inline-flex; align-items:center; gap:4px; padding:2px 8px 2px 2px; border-radius:999px; border:0.5px solid transparent; background:none; cursor:pointer; color:var(--text-3); }
.nav-user-btn:hover, .nav-user-btn[aria-expanded="true"] { border-color:var(--border-2); background:var(--card); }
.nav-user-btn .nav-chevron svg { width:12px; height:12px; transition:transform .2s var(--ease); }
.nav-user-btn[aria-expanded="true"] .nav-chevron svg { transform:rotate(180deg); }
.nav-user-avatar {
  width:38px; height:38px; border-radius:50%;
  background:var(--olive-faint); border:1.5px solid var(--border-olive);
  font-family:var(--serif); font-size:14px; color:var(--olive-light);
  display:flex; align-items:center; justify-content:center; flex-shrink:0; overflow:hidden;
}
.nav-user-avatar img { width:100%; height:100%; object-fit:cover; border-radius:50%; }
.nav-guest-btn { display:inline-flex; align-items:center; min-height:40px; padding:0 16px; border-radius:var(--radius-sm); border:1px solid var(--border-2);
  font-size:13.5px; font-weight:700; color:var(--text); text-decoration:none; white-space:nowrap; transition:border-color .15s, background .15s; }
.nav-guest-btn:hover { border-color:var(--border-olive); }
.nav-guest-btn.is-main { background:var(--action-primary-bg); border-color:var(--action-primary-bg); color:var(--text-on-primary); }
.nav-guest-btn.is-main:hover { background:var(--action-primary-hover); }

.nav-badge {
  display:inline-flex; align-items:center; justify-content:center;
  background:var(--olive); color:var(--text-on-brand); font-size:11px; font-weight:400;
  min-width:17px; height:17px; padding:0 4px; box-sizing:border-box; border-radius:999px; margin-inline-start:4px;
  vertical-align:middle; line-height:1; font-family:var(--bebas);
}
.nav-badge[hidden] { display:none; }

/* ── The menu panel: joined under the bar, as wide as it ── */
/* the PDF's menu: a panel floating just under the bar, centred under its tab (nav.js _dmPlace) */
.dnav-mega { position:absolute; top:calc(100% + 8px); left:16px; z-index:5; width:min(1000px, calc(100vw - 32px)); box-sizing:border-box; padding:18px;
  border-radius:20px; border:1px solid var(--border-2); background:var(--card-solid);
  opacity:0; transform:translateY(-4px); transition:opacity .16s var(--ease), transform .2s var(--ease); }
.dnav-mega::before { content:''; position:absolute; left:0; right:0; top:-10px; height:10px; }   /* the gap still counts as the menu while you move the mouse down */
.dnav-mega.open { opacity:1; transform:none; }
.dnav-mega[hidden] { display:none; }
.dnav-mega-in { display:grid; grid-template-columns:minmax(0, 1fr) clamp(260px, 25vw, 320px); gap:18px; align-items:stretch; }
.dm-cols { display:grid; grid-template-columns:repeat(var(--cols, 1), minmax(0, 1fr)); gap:8px clamp(14px, 1.8vw, 24px); }
.dm-h, .dm-eyebrow { font-size:10.5px; font-weight:800; letter-spacing:1.6px; text-transform:uppercase; color:var(--olive-light); }
.dm-h { padding:2px 12px 8px; }
.dm-list { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:2px; }
.dm-col.is-split .dm-list { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); grid-template-rows:repeat(var(--rows, 4), auto); grid-auto-flow:column; gap:2px clamp(12px, 1.6vw, 22px); }
.dm-sep { margin-top:6px; padding-top:6px; border-top:0.5px solid var(--border); }
.dm-list > li { display:block; width:100%; min-width:0; }
.dm-col { min-width:0; }
.dm-link { position:relative; display:flex; width:100%; box-sizing:border-box; align-items:center; gap:12px; min-height:52px; padding:8px 12px; border-radius:var(--radius-sm); border:1px solid transparent;
  color:var(--text); text-decoration:none; transition:background .12s, border-color .12s; }
.dm-link:hover, .dm-link:focus-visible { background:var(--card-2); border-color:var(--border); outline:none; }
.dm-link:focus-visible { border-color:var(--olive-light); }
.dm-ic { width:34px; height:34px; flex:none; display:grid; place-items:center; border-radius:var(--radius-sm); background:var(--card-2); border:1px solid var(--border); color:var(--olive-light); }
.dm-name { flex:1; min-width:0; display:flex; flex-direction:column; gap:1px; }
.dm-name b { font-size:14.5px; font-weight:700; line-height:1.25; overflow-wrap:break-word; }
.dm-name small { font-size:12px; line-height:1.35; color:var(--text-2); overflow-wrap:break-word; }   /* never cut: wraps on smaller screens */
.dm-link.here .dm-name b { color:var(--olive-light); }
.dm-link.here .dm-ic { background:var(--olive); border-color:var(--olive); color:var(--text-on-brand); }
.dm-here { flex:none; display:flex; margin-inline-start:auto; padding-inline-start:8px; color:var(--olive-light); }   /* the page you're on: ✓, not colour alone */
.dm-n + .dm-here { margin-inline-start:0; }
.dm-n { margin-inline-start:auto; padding-inline-start:8px; font-family:var(--bebas); font-size:19px; letter-spacing:.4px; color:var(--text-2); font-weight:400; }
.dm-badge { position:static; margin-inline-start:auto; }
.dm-req { margin-inline-start:0; }

/* the live card */
.dm-card { min-width:0; }
.dm-card-in { position:relative; display:flex; flex-direction:column; gap:12px; padding:18px; border-radius:var(--radius); border:1px solid var(--border-2); background:var(--card-2); color:var(--text);
  text-decoration:none; overflow:hidden; isolation:isolate; animation:dmIn .2s var(--ease); }
@keyframes dmIn { from { opacity:0; transform:translateY(4px); } }
.dm-title-row { display:flex; gap:12px; align-items:flex-start; color:inherit; text-decoration:none; border-radius:var(--radius-sm); }
.dm-poster { width:56px; aspect-ratio:2/3; flex:none; border-radius:8px; overflow:hidden; display:grid; place-items:center; background:var(--bg-3); border:0.5px solid var(--border-2);
  font-family:var(--serif); font-size:20px; color:var(--text-2); }
.dm-poster img, .dm-fl-pic img { width:100%; height:100%; object-fit:cover; display:block; }
.dm-tx { min-width:0; display:flex; flex-direction:column; gap:3px; }
.dm-tx b { font-size:14px; font-weight:800; }
.dm-tx small { font-size:12.5px; color:var(--text-2); }
.dm-ep { font-size:12.5px; font-style:italic; }
/* Library: the title's poster under a dark wash — dark in both themes, so its text stays light */
.dm-hero { min-height:236px; padding-top:44px; justify-content:flex-end; border-color:var(--border-olive); background:linear-gradient(150deg, var(--olive) 0%, var(--bg-2) 130%); color:#fff; }
[data-theme="light"] .dm-hero { background:linear-gradient(150deg, var(--olive) 0%, var(--olive-2) 100%); }
.dm-hero-bg { position:absolute; inset:0; z-index:-2; width:100%; height:100%; object-fit:cover; object-position:50% 20%; opacity:0; transition:opacity .35s var(--ease); }
.dm-hero-bg.in { opacity:1; }
.dm-hero-bg.is-bd { object-position:50% 30%; }
.dm-quote { margin-top:4px; font-size:13px; line-height:1.45; font-style:italic; color:rgba(255,255,255,.88); display:-webkit-box; -webkit-line-clamp:3; line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
/* Social / You rows without a title: a plain card */
.dm-plain { justify-content:flex-start; }
.dm-plain-t { font-family:var(--serif); font-size:24px; font-weight:600; line-height:1.1; overflow-wrap:anywhere; }
.dm-plain-s { font-size:13px; line-height:1.45; color:var(--text-2); }
.dm-plain .dm-acts { margin-top:auto; }
/* no titles in a category yet: its Top 250, the look of Home's Explore cards (colour wash, big number, three fanned posters) */
.dm-top { position:relative; min-height:236px; overflow:hidden; color:#fff; border-color:transparent; background:linear-gradient(135deg, var(--xp-a), var(--xp-b)); text-decoration:none; }
.dm-top .dm-eyebrow { color:rgba(255,255,255,.8); }
.dm-top-num { position:absolute; inset-inline-start:-6px; bottom:-28px; font-family:var(--bebas); font-size:150px; line-height:1; color:rgba(255,255,255,.08); pointer-events:none; }
.dm-top-t { position:relative; z-index:1; font-family:var(--serif); font-size:24px; font-weight:600; line-height:1.1; max-width:58%; }
.dm-top-s { position:relative; z-index:1; font-size:12.5px; line-height:1.4; color:rgba(255,255,255,.85); max-width:56%; }
.dm-top .dm-btn { position:relative; z-index:1; align-self:flex-start; margin-top:auto; }
.dm-top-fan { position:absolute; top:0; bottom:0; inset-inline-end:0; width:150px; pointer-events:none; }
.dm-top-p { position:absolute; bottom:-14px; width:88px; aspect-ratio:2/3; border-radius:8px; overflow:hidden; background:rgba(255,255,255,.12); border:1px solid rgba(255,255,255,.2); transition:transform .35s cubic-bezier(.2,.8,.2,1); }
.dm-top-p img { width:100%; height:100%; object-fit:cover; display:block; }
.dm-top-p:nth-child(1) { inset-inline-end:70px; transform:rotate(-11deg) translateY(10px); z-index:1; }
.dm-top-p:nth-child(2) { inset-inline-end:40px; transform:rotate(-3deg); z-index:2; }
.dm-top-p:nth-child(3) { inset-inline-end:10px; transform:rotate(7deg) translateY(6px); z-index:3; }
.dm-top:hover .dm-top-p:nth-child(1) { transform:rotate(-15deg) translate(-8px, 2px); }
.dm-top:hover .dm-top-p:nth-child(2) { transform:rotate(-3deg) translateY(-10px); }
.dm-top:hover .dm-top-p:nth-child(3) { transform:rotate(11deg) translate(8px, 0); }
.dm-top:focus-visible { outline:2px solid var(--olive-light); outline-offset:2px; }
@media (prefers-reduced-motion: reduce) { .dm-top-p { transition:none; } }
/* title cards: the poster in front of its backdrop */
.dm-hero-row { display:flex; align-items:flex-end; gap:14px; }
.dm-hero-poster { width:64px; aspect-ratio:2/3; flex:none; border-radius:8px; overflow:hidden; border:1px solid rgba(255,255,255,.28); background:rgba(255,255,255,.08); }
.dm-hero-poster img { width:100%; height:100%; object-fit:cover; display:block; }
.dm-hero-row .dm-hero-body { min-width:0; flex:1; }
.dm-hero .dm-faces .dm-face { border-color:rgba(4,19,10,.6); }
/* people cards (Friends, Compare, Blend, Polls) */
.dm-pill { display:inline-flex; align-items:center; vertical-align:middle; margin-inline-start:6px; padding:3px 9px; border-radius:var(--radius-sm); background:var(--olive); color:var(--text-on-brand); font:800 11.5px var(--sans); }
.dm-roster { list-style:none; margin:4px 0 0; padding:0; display:grid; grid-template-columns:repeat(4, minmax(0, 1fr)); gap:8px; }
.dm-roster li { display:flex; flex-direction:column; align-items:center; gap:6px; min-width:0; font-size:12px; font-weight:700; color:var(--text-2); }
.dm-roster li span:last-child { max-width:100%; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.dm-face.is-lg { width:52px; height:52px; margin:0; font-size:19px; }
.dm-face.is-xl { width:68px; height:68px; margin:0; font-size:24px; border-width:3px; }
.dm-vs { display:flex; align-items:center; justify-content:center; gap:10px; padding:6px 0 2px; }
.dm-vs-mid { width:38px; height:38px; display:grid; place-items:center; border-radius:50%; border:1px solid var(--border-olive); background:var(--olive-faint); color:var(--olive-light); }
.dm-versus .dm-plain-t, .dm-versus .dm-plain-s { text-align:center; }
.dm-versus .dm-acts { justify-content:center; }
.dm-blend-row { position:relative; display:flex; align-items:center; min-height:96px; }
.dm-mini-fan { width:140px; bottom:auto; top:-8px; }
.dm-mini-fan .dm-top-p { width:62px; bottom:auto; top:0; }
.dm-mini-fan .dm-top-p:nth-child(1) { inset-inline-end:62px; }
.dm-mini-fan .dm-top-p:nth-child(2) { inset-inline-end:34px; }
.dm-mini-fan .dm-top-p:nth-child(3) { inset-inline-end:6px; }
.dm-chal-top { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.dm-chal-tx { min-width:0; display:flex; flex-direction:column; gap:4px; }
.dm-chal-medal { flex:none; display:grid; place-items:center; }
.dm-chal-medal svg { display:block; }
.dm-medal-set { display:flex; align-items:flex-end; gap:2px; }
.dm-medal-ic { width:54px; height:54px; display:grid; place-items:center; border-radius:16px; background:var(--olive); color:var(--text-on-brand); }
.dm-meter { height:8px; border-radius:4px; background:var(--bg-3); overflow:hidden; }
.dm-meter i { display:block; height:100%; border-radius:4px; background:var(--olive-light); }
/* Polls: who's asking, the question, the options (with live results once you can see them) */
.dm-poll-head { display:flex; align-items:center; gap:10px; }
.dm-poll-head .dm-face { margin:0; width:36px; height:36px; font-size:14px; }
.dm-poll-who { flex:1; min-width:0; display:flex; flex-direction:column; line-height:1.25; }
.dm-poll-who b { font-size:13.5px; color:var(--text); }
.dm-poll-who small { font-size:12px; color:var(--text-2); }
.dm-pill.is-off { background:var(--bg-3); color:var(--text-2); }
.dm-poll-q { font-family:var(--serif); font-size:22px; font-weight:600; line-height:1.12; overflow-wrap:anywhere; }
.dm-po-list { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:6px; }
.dm-po { position:relative; isolation:isolate; overflow:hidden; display:flex; align-items:center; gap:10px; min-height:40px; padding:5px 12px;
  border-radius:var(--radius-sm); border:1px solid var(--border); background:var(--card); font-size:13.5px; font-weight:700; }
.dm-po-bar { position:absolute; inset:0 auto 0 0; z-index:-1; background:var(--olive-faint); border-inline-end:2px solid var(--border-olive); }
.dm-po.is-lead .dm-po-bar { background:color-mix(in srgb, var(--olive) 22%, transparent); }
.dm-po.is-mine { border-color:var(--olive-light); }
.dm-po img { width:22px; aspect-ratio:2/3; object-fit:cover; border-radius:4px; flex:none; }
.dm-po-dot { width:18px; height:18px; flex:none; display:grid; place-items:center; border-radius:50%; border:1.5px solid var(--border-2); color:#fff; }
.dm-po.is-mine .dm-po-dot { background:var(--olive); border-color:var(--olive); }
.dm-po-l { flex:1; min-width:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.dm-po-n { font-family:var(--bebas); font-size:17px; font-weight:400; color:var(--text-2); }
.dm-poll-foot { display:flex; align-items:center; justify-content:space-between; gap:10px; font-size:12.5px; color:var(--text-2); }
.dm-poll-foot > span { display:inline-flex; align-items:center; gap:6px; }
/* Messages */
.dm-msgs-top { display:flex; align-items:center; gap:14px; }
.dm-msgs-ic { position:relative; width:56px; height:56px; flex:none; display:grid; place-items:center; border-radius:16px; background:var(--olive); color:var(--text-on-brand); }
.dm-msgs-n { position:absolute; top:-6px; inset-inline-end:-6px; min-width:22px; height:22px; padding:0 6px; box-sizing:border-box; border-radius:11px; border:2px solid var(--card-2);
  background:var(--error-solid); color:#fff; font:400 14px/18px var(--bebas); text-align:center; }
.dm-e2e { display:flex; align-items:center; gap:8px; padding:8px 10px; border-radius:var(--radius-sm); background:var(--card); border:1px solid var(--border); font-size:12px; color:var(--text-2); }
.dm-e2e svg { flex:none; color:var(--olive-light); }
/* Lists: the covers fanned on the right */
/* You › your latest list: its backdrop under the dark wash, the posters fanned at the right, middle (owner, 27 Nov 2026) */
.dm-listcard { padding-inline-end:clamp(118px, 42%, 190px); }
.dm-listcard .dm-hero-t { overflow-wrap:normal; word-break:normal; }   /* the title wraps between words, never inside one */
.dm-list-fan { top:50%; bottom:auto; height:clamp(110px, 40%, 150px); width:clamp(118px, 42%, 190px); translate:0 -50%; }
.dm-list-fan .dm-top-p { width:clamp(60px, 22%, 86px); top:12px; bottom:auto; box-shadow:0 10px 22px rgba(0,0,0,.45); }
.dm-list-fan .dm-top-p:nth-child(1) { inset-inline-end:clamp(46px, 18%, 70px); } .dm-list-fan .dm-top-p:nth-child(2) { inset-inline-end:clamp(26px, 10%, 40px); }
.dm-list-fan .dm-top-p:nth-child(3) { inset-inline-end:clamp(6px, 3%, 10px); }
.dm-listcard:hover .dm-top-p:nth-child(1) { transform:rotate(-15deg) translate(-8px, 2px); }
.dm-listcard:hover .dm-top-p:nth-child(2) { transform:rotate(-3deg) translateY(-8px); }
.dm-listcard:hover .dm-top-p:nth-child(3) { transform:rotate(11deg) translate(8px, 0); }
/* You › Medals: the Showcase picture (softened like the Showcase), the count, the newest four on a lit shelf */
.dm-hero-bg.is-pic { object-position:50% 35%; }
.dm-hero-bg.is-blur-soft { filter:blur(3px) saturate(1.1); scale:1.06; }
.dm-hero-bg.is-blur-strong { filter:blur(10px) saturate(1.1); scale:1.12; }
.dm-medals::before { background:linear-gradient(180deg, rgba(4,19,10,.2) 0%, rgba(4,19,10,.45) 45%, rgba(4,19,10,.88) 100%); }
.dm-medals-head { display:flex; align-items:flex-end; gap:10px; }
.dm-medals-n { font:400 58px/.82 var(--bebas); color:#fff; }
.dm-medals-l { display:flex; flex-direction:column; gap:2px; font:600 22px/1 var(--serif); color:#fff; }
.dm-medals-l small { font:600 12px/1.2 'Manrope',var(--sans); color:rgba(255,255,255,.78); }
.dm-medals .dm-shelf { position:relative; isolation:isolate; gap:12px; padding:8px 6px 12px; }
.dm-medals .dm-shelf::before { content:''; position:absolute; inset:-6px 0 6px; z-index:-1; background:radial-gradient(ellipse 60% 70% at 50% 60%, rgba(255,255,255,.16), transparent 70%); }   /* a soft spotlight */
.dm-medals .dm-shelf::after { content:''; position:absolute; inset-inline:0; bottom:0; height:5px; border-radius:3px; background:linear-gradient(90deg, transparent, rgba(255,255,255,.4) 20%, rgba(255,255,255,.4) 80%, transparent); }   /* the shelf */
.dm-medals .dm-shelf-m { filter:drop-shadow(0 6px 10px rgba(0,0,0,.5)); }
.dm-hero-sub b { font-weight:700; color:#fff; }
/* Export: what you can make */
.dm-ex { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:6px; }
.dm-ex-t { display:flex; align-items:center; gap:10px; padding:7px 10px; border-radius:var(--radius-sm); border:1px solid var(--border); background:var(--card);
  font-size:13px; font-weight:700; color:var(--text); text-decoration:none; transition:border-color .15s; }
.dm-ex-t:hover { border-color:var(--border-olive); }
.dm-ex-t:focus-visible { outline:2px solid var(--olive-light); outline-offset:2px; }
.dm-ex-ic { width:32px; height:32px; flex:none; display:grid; place-items:center; border-radius:10px; background:var(--olive-faint); color:var(--olive-light); }
.dm-shelf { display:flex; align-items:flex-end; gap:10px; min-height:64px; }
.dm-shelf-m { display:grid; place-items:center; }
.dm-shelf-m svg { max-width:60px; max-height:64px; }
.dm-faces { display:flex; padding-inline-start:8px; }
.dm-face { width:40px; height:40px; margin-inline-start:-8px; border-radius:50%; overflow:hidden; display:grid; place-items:center; border:2px solid var(--card-2); background:var(--olive); color:var(--text-on-brand); font:600 15px var(--serif); }
.dm-face img { width:100%; height:100%; object-fit:cover; }
.dm-covers { display:flex; gap:8px; }
.dm-covers img { width:58px; aspect-ratio:2/3; object-fit:cover; border-radius:8px; border:0.5px solid var(--border-2); }
.dm-hero::before { content:''; position:absolute; inset:0; z-index:-1; background:linear-gradient(180deg, rgba(4,19,10,.15) 0%, rgba(4,19,10,.55) 45%, rgba(4,19,10,.92) 100%); }
.dm-hero .dm-eyebrow { position:absolute; top:16px; inset-inline:18px; color:var(--p-forest-300); }
.dm-hero-body { display:flex; flex-direction:column; gap:4px; }
.dm-hero-t { font-family:var(--serif); font-size:clamp(22px, 1.9vw, 28px); font-weight:600; line-height:1.08; color:#fff; text-decoration:none; overflow-wrap:anywhere; }
.dm-hero-t:hover { text-decoration:underline; text-underline-offset:4px; text-decoration-thickness:1px; }
.dm-hero-t:focus-visible { outline:2px solid var(--p-forest-300); outline-offset:3px; border-radius:4px; }
.dm-hero-sub, .dm-hero .dm-ep { font-size:12.5px; color:rgba(255,255,255,.82); }
.dm-hero .dm-prog { margin-top:8px; }
.dm-hero .w-prog-track { background:rgba(255,255,255,.22); }
.dm-hero .w-prog-fill { background:var(--p-forest-300); }
.dm-score { --tv-green:var(--p-forest-300); --tv-gold:var(--p-score-top-dark); display:flex; align-items:center; margin-top:6px; }   /* your score: the title page's ring (owner, 27 Nov 2026) */
/* Library › Last finished: a small ring in the card's bottom-right corner, beside All watched (owner, 27 Nov 2026) */
.dm-hero .dm-score:has(.tv-ring) { position:absolute; inset-inline-end:18px; bottom:18px; margin:0; z-index:1; }
.dm-score .tv-ring.is-s { width:56px; } .dm-score .tv-ring.is-s circle { stroke-width:9; } .dm-score .tv-ring.is-s b { font-size:20px; }
.dm-prog { display:flex; flex-direction:column; gap:6px; }
.dm-prog .w-prog-track { height:5px; }
.dm-prog-l { font-size:12px; color:rgba(255,255,255,.82); }
.dm-acts { display:flex; flex-wrap:wrap; gap:8px; }
.dm-btn { display:inline-flex; align-items:center; justify-content:center; gap:6px; min-height:38px; padding:0 14px; border-radius:var(--radius-sm); border:1px solid var(--border-2);
  background:none; color:var(--text); font:700 13px var(--sans); text-decoration:none; cursor:pointer; white-space:nowrap; transition:border-color .15s, background .15s; }
.dm-btn:hover { border-color:var(--border-olive); }
.dm-btn.is-main { background:var(--action-primary-bg); border-color:var(--action-primary-bg); color:var(--text-on-primary); }
.dm-btn.is-main:hover { background:var(--action-primary-hover); }
.dm-hero .dm-btn.is-main { background:var(--p-brass-400); border-color:var(--p-brass-400); color:var(--p-brass-950); }
.dm-hero .dm-btn.is-main:hover { background:#fff; border-color:#fff; }
.dm-btn.is-ghost, .dm-hero .dm-btn { color:#fff; background:rgba(4,19,10,.45); border-color:rgba(255,255,255,.35); }
.dm-btn.is-ghost:hover, .dm-hero .dm-btn:hover { border-color:#fff; }
.dm-btn:disabled { opacity:.6; cursor:default; }
.dm-btn:focus-visible { outline:2px solid var(--olive-light); outline-offset:2px; }
.dm-hero .dm-btn:focus-visible { outline-color:#fff; }
.dm-empty { align-items:flex-start; color:var(--text-2); font-size:13px; }
.dm-empty b { color:var(--text); font-size:14px; }
.dm-lately { padding:16px 14px; }
.dm-lately .dm-eyebrow { padding:0 4px; }
.dm-lately .dm-btn { min-height:36px; }
.dm-fl-list { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:2px; }
.dm-fl { display:flex; gap:12px; align-items:center; padding:6px 4px; border-radius:var(--radius-sm); color:var(--text); text-decoration:none; font-size:13px; line-height:1.35; }
.dm-fl:hover { background:var(--card); }
.dm-fl:focus-visible { outline:2px solid var(--olive-light); outline-offset:-2px; }
.dm-fl-pic { width:36px; aspect-ratio:2/3; flex:none; border-radius:6px; overflow:hidden; display:grid; place-items:center; background:var(--olive); color:var(--text-on-brand); font:600 14px var(--serif); }
.dm-fl-t { display:-webkit-box; -webkit-line-clamp:2; line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.dm-fl-t b { font-weight:800; }
.dm-fl small { font-size:11.5px; color:var(--text-2); }
/* You: your profile card on solid olive */
.dm-you { isolation:isolate; overflow:hidden; background:var(--olive); border-color:var(--olive); color:var(--text-on-brand); gap:14px; }
/* your profile backdrop behind it (as on your profile), darkened so the white text and tiles read */
.dm-you-bg { position:absolute; inset:0; z-index:-1; background:center 25% / cover no-repeat; }
.dm-you.has-bd::before { content:''; position:absolute; inset:0; z-index:-1; pointer-events:none; background:linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,.72) 100%); }
.dm-you.has-bd { border-color:rgba(255,255,255,.14); }
.dm-you-stats .skel-line { width:44px; height:24px; }
[data-theme="dark"] .dm-you { background:color-mix(in srgb, var(--olive) 70%, var(--bg)); }
.dm-you:hover { border-color:var(--p-forest-300); }
.dm-you:focus-visible { outline:2px solid var(--olive-light); outline-offset:2px; }
.dm-you-top { display:flex; gap:12px; align-items:center; }
.dm-you .dm-tx b { font-size:16px; color:#fff; }
.dm-you .dm-tx small { color:rgba(255,255,255,.78); }
.dm-you-av { width:54px; height:54px; flex:none; border-radius:50%; overflow:hidden; display:grid; place-items:center; border:2px solid rgba(255,255,255,.5); background:rgba(255,255,255,.12);
  font-family:var(--serif); font-size:22px; color:#fff; }
.dm-you-av img { width:100%; height:100%; object-fit:cover; }
.dm-you-stats { display:grid; grid-template-columns:repeat(3, 1fr); gap:8px; }
.dm-you-stats > span { min-width:0; display:flex; flex-direction:column; align-items:center; gap:3px; padding:10px 4px; border-radius:var(--radius-sm); border:1px solid rgba(255,255,255,.18); background:rgba(255,255,255,.07); }
.dm-you.has-bd .dm-you-stats > span { background:rgba(0,0,0,.45); -webkit-backdrop-filter:blur(6px); backdrop-filter:blur(6px); }
.dm-you-stats b { font-family:var(--bebas); font-size:28px; font-weight:400; line-height:1; color:#fff; }
.dm-you-stats small { max-width:100%; font-size:10.5px; font-weight:700; letter-spacing:.6px; text-transform:uppercase; color:rgba(255,255,255,.78); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.dm-you-cta { display:inline-flex; align-items:center; gap:6px; font-size:13px; font-weight:800; color:#fff; }
@media (prefers-reduced-motion: reduce) { .dnav-mega, .dm-card-in { transition:none; animation:none; } }

/* ── Guests: the menu's card (desktop) — what this area does for you once you join ── */
.dm-guest-p { margin:0; font-size:13.5px; line-height:1.55; color:var(--text-2); }
.dm-guest-acts { display:flex; flex-wrap:wrap; gap:8px; margin-top:auto; }
.dm-lock, .atab-lock { display:inline-flex; margin-inline-start:6px; vertical-align:-1px; color:var(--text-3); }
.dm-lock svg, .atab-lock svg { width:12px; height:12px; }

/* ── Join (mssJoin, config.js): the way in for a guest — the side panel (computers) or a sheet you drag (phones) ──
   The posters are Admin → Guest showcase's (.shp-posters / .shp-poster, also the admin preview) */
.shp-posters { display:grid; grid-template-columns:repeat(2, clamp(84px, 7.5vw, 112px)); gap:10px; }
.shp-poster { aspect-ratio:2/3; border-radius:12px; overflow:hidden; border:0.5px solid var(--border-2); background:var(--bg-3); }
.shp-poster img { width:100%; height:100%; object-fit:cover; display:block; }
.jn { display:flex; flex-direction:column; gap:14px; }
.jn .jn-posters { grid-template-columns:repeat(4, minmax(0, 1fr)); gap:8px; min-height:0; }
.jn .jn-posters .shp-poster { border-radius:var(--radius-sm); }
.jn .jn-posters .shp-poster:nth-child(even) { transform:translateY(8px); }
.jn .jn-posters .jn-art { grid-column:1 / -1; justify-self:center; width:150px; }
.jn-p { margin:0; font-size:14.5px; line-height:1.6; color:var(--text-2); }
.jn .jn-perks { max-width:none; margin:0; }
.jn-rows { list-style:none; margin:0; padding:0; display:grid; gap:6px; }
.jn-row { display:flex; align-items:center; gap:12px; padding:9px 12px; border:1px solid var(--border); border-radius:var(--radius-sm); }
.jn-row.is-picked { border-color:var(--olive-light); background:var(--selected-bg); outline:1px solid var(--olive-light); }
.jn-row-ic { flex-shrink:0; display:grid; place-items:center; width:34px; height:34px; border-radius:var(--radius-sm); background:var(--olive-faint); color:var(--olive-light); }
[data-theme="light"] .jn-row-ic { color:var(--olive); }
.jn-row-ic svg { width:17px; height:17px; }
.jn-row-tx { display:flex; flex-direction:column; gap:2px; min-width:0; }
.jn-row-tx b { display:flex; flex-wrap:wrap; align-items:center; gap:6px; font:700 14px/1.25 var(--sans); color:var(--text); }
.jn-row-tx small { font-size:12.5px; line-height:1.4; color:var(--text-2); }
.jn-row-tag { padding:2px 7px; border-radius:999px; background:var(--brand); color:var(--text-on-brand); font-size:10.5px; font-weight:800; letter-spacing:.3px; }
.jn-fine { margin:0; font-size:12.5px; color:var(--text-supporting, var(--text-3)); }
/* the phone sheet */
.jn-sheet { padding:10px 18px calc(18px + env(safe-area-inset-bottom)); }
.jn-x { position:absolute; top:12px; inset-inline-end:12px; }
.jn-eyebrow { margin:2px 0 4px; font-size:10.5px; font-weight:800; letter-spacing:1.6px; text-transform:uppercase; color:var(--olive-light); }
[data-theme="light"] .jn-eyebrow { color:var(--olive); }
.jn-sheet .jn-t { margin:0 44px 14px 0; font-size:24px; line-height:1.15; }
.jn-acts { position:sticky; bottom:calc(-18px - env(safe-area-inset-bottom)); display:grid; gap:8px; margin:16px -18px calc(-18px - env(safe-area-inset-bottom)); padding:12px 18px calc(18px + env(safe-area-inset-bottom));
  border-top:1px solid var(--border); background:var(--surface-card); }
.jn-btn { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:48px; padding:0 16px; border-radius:var(--radius-sm); border:1px solid var(--border-2);
  background:transparent; color:var(--text); font:700 15px var(--sans); cursor:pointer; }
.jn-btn.is-main { background:var(--action-primary-bg); border-color:var(--action-primary-bg); color:var(--text-on-primary); }
.jn-btn.is-main:hover { background:var(--action-primary-hover); }
.jn-btn:focus-visible { outline:2px solid var(--focus-ring); outline-offset:2px; }
.jn-btn svg { width:16px; height:16px; }

/* ── Search (shell-search.js): the field, the results ── */
.shs-wrap { position:relative; display:flex; align-items:center; gap:8px; width:clamp(190px, 18vw, 280px); height:40px; padding:0 8px 0 12px; box-sizing:border-box;
  border:1px solid var(--border-input); border-radius:var(--radius-sm); background:var(--surface-card); color:var(--text-muted); transition:border-color .15s, box-shadow .15s; }   /* the compact search box (.sf-search) */
.shs-wrap:focus-within { border-color:var(--text-link); box-shadow:0 0 0 3px var(--selected-bg); }
.shs-ic { display:flex; flex:none; }
#globalSearch { flex:1; min-width:0; height:100%; background:none; border:0; outline:none; color:var(--text); font:500 13.5px var(--sans); }
#globalSearch::placeholder { color:var(--text-3); }
.shs-key { flex:none; min-width:20px; height:20px; display:grid; place-items:center; border-radius:5px; border:1px solid var(--border-2); font:700 11px var(--sans); color:var(--text-3); }
.shs-wrap:focus-within .shs-key { display:none; }
.shs-panel { position:absolute; top:calc(100% + 8px); inset-inline-end:0; z-index:20; width:min(560px, calc(100vw - 24px)); max-height:min(72vh, 640px);
  display:flex; flex-direction:column; border-radius:var(--radius); border:1px solid var(--border-2); background:var(--card-solid); color:var(--text); overflow:hidden; }
.shs-panel[hidden] { display:none; }
.shs-filters { display:flex; gap:6px; padding:10px 12px; border-bottom:0.5px solid var(--border); }
.shs-f { min-height:32px; padding:0 12px; border-radius:var(--radius-sm); border:1px solid var(--border-2); background:none; color:var(--text-2); font:700 12.5px var(--sans); cursor:pointer; }
.shs-f.on { background:var(--olive); border-color:var(--olive); color:var(--text-on-brand); }
.shs-f:focus-visible { outline:2px solid var(--olive-light); outline-offset:2px; }
.shs-list { flex:1; overflow-y:auto; overscroll-behavior:contain; padding:6px; }
.shs-gh { padding:10px 10px 4px; font-size:10.5px; font-weight:800; letter-spacing:1.4px; text-transform:uppercase; color:var(--olive-light); }
.shs-opt { display:flex; align-items:center; gap:12px; min-height:52px; padding:6px 10px; border-radius:var(--radius-sm); border:1px solid transparent; cursor:pointer; }
.shs-opt.on { background:var(--card-2); border-color:var(--border-olive); }
.shs-pic { width:36px; aspect-ratio:2/3; flex:none; border-radius:6px; overflow:hidden; display:grid; place-items:center; background:var(--bg-3); font:600 14px var(--serif); color:var(--text-2); }
.shs-pic.is-round { width:40px; aspect-ratio:1; border-radius:50%; }
.shs-pic img { width:100%; height:100%; object-fit:cover; display:block; }
.shs-tx { flex:1; min-width:0; display:flex; flex-direction:column; gap:2px; }
.shs-tx b { font-size:14px; font-weight:700; line-height:1.25; display:-webkit-box; -webkit-line-clamp:2; line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; overflow-wrap:anywhere; }
.shs-tx small { font-size:12px; color:var(--text-2); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.shs-status { flex:none; max-width:44%; padding:4px 9px; border-radius:var(--radius-sm); background:var(--olive-faint); border:1px solid var(--border-olive); color:var(--olive-light);
  font-size:11.5px; font-weight:800; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.shs-add { flex:none; display:inline-flex; align-items:center; gap:5px; min-height:32px; padding:0 11px; border-radius:var(--radius-sm); border:1px solid var(--border-olive);
  background:var(--olive-faint); color:var(--olive-light); font:800 12px var(--sans); cursor:pointer; transition:background .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease); }
.shs-add:hover { background:var(--olive); border-color:var(--olive); color:var(--text-on-brand); }
.shs-add.is-added { background:var(--olive); border-color:var(--olive); color:var(--text-on-brand); cursor:default; animation:shsAdded .32s cubic-bezier(.34,1.56,.64,1); }
.shs-add.is-added svg { animation:shsTick .32s ease both; }
@keyframes shsAdded { 0% { transform:scale(.88); } 100% { transform:none; } }
@keyframes shsTick { from { opacity:0; transform:scale(.4) rotate(-20deg); } to { opacity:1; transform:none; } }
@media (prefers-reduced-motion: reduce) { .shs-add.is-added, .shs-add.is-added svg { animation:none; } }
.shs-state { display:flex; align-items:center; gap:8px; padding:18px 12px; font-size:13px; color:var(--text-2); }
.shs-foot { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; padding:10px 14px; border-top:0.5px solid var(--border); }
.shs-all { display:inline-flex; align-items:center; gap:6px; font-size:13px; font-weight:700; color:var(--olive-light); text-decoration:none; overflow-wrap:anywhere; }
.shs-all:focus-visible { outline:2px solid var(--olive-light); outline-offset:2px; border-radius:4px; }
.shs-keys { font-size:11.5px; color:var(--text-2); }
.shs-keys kbd { font:700 10.5px var(--sans); padding:1px 5px; border-radius:4px; border:1px solid var(--border-2); }
/* phones: the full-page search screen */
.shs-page-field { flex:1; min-width:0; display:flex; align-items:center; gap:8px; height:44px; padding:0 12px; box-sizing:border-box; border-radius:var(--radius-sm); border:1px solid var(--border-input); background:var(--surface-card); color:var(--text-muted); }   /* the search box on phones (.sf-search) */
.shs-page-field:focus-within { border-color:var(--text-link); box-shadow:0 0 0 3px var(--selected-bg); }
.shs-page-field input { flex:1; min-width:0; height:100%; background:none; border:0; outline:none; color:var(--text); font:500 16px var(--sans); }
.shs-panel.is-page { position:static; width:auto; max-height:none; border:0; border-radius:0; background:none; overflow-y:auto; padding:6px 16px calc(24px + env(safe-area-inset-bottom)); }
.shs-panel.is-page .shs-filters { padding:12px 0; border:0; }
.shs-panel.is-page .shs-f { min-height:40px; padding:0 16px; }
.shs-panel.is-page .shs-list { flex:none; padding:0; overflow:visible; }
.shs-panel.is-page .shs-keys { display:none; }
.shs-panel.is-page .shs-add { min-height:38px; width:38px; padding:0; justify-content:center; }
.shs-panel.is-page .shs-add-l { display:none; }
.shs-panel.is-page .shs-foot { padding:14px 0; }

/* ── Account: the menu under the avatar (desktop), the Account page (phones) ── */
.acct-menu { position:absolute; top:calc(100% + 14px); inset-inline-end:0; z-index:20; width:min(340px, calc(100vw - 24px)); padding:10px;
  border-radius:var(--radius); border:1px solid var(--border-2); background:var(--card-solid); color:var(--text); animation:dmIn .16s var(--ease); }
.acct-menu[hidden] { display:none; }
/* the profile card (nav.js _acctCardHTML): your backdrop as a banner fading into the card, your photo (poster or circle)
   over its edge, name, Open profile, then your three chosen stats in one row. The whole card is the link. */
.acct-card { position:relative; display:flex; flex-direction:column; margin-bottom:8px; overflow:hidden; border-radius:var(--radius); border:1px solid var(--border-default);
  background:var(--surface-card); color:var(--text-body); text-decoration:none; isolation:isolate; transition:border-color .15s; }
.acct-card:hover { border-color:var(--border-brand); }
.acct-card:focus-visible { outline:2px solid var(--focus-ring); outline-offset:2px; }
.acct-card-bd { height:84px; background:var(--brand) center 25% / cover no-repeat; }
.acct-card.has-bd .acct-card-bd { -webkit-mask-image:linear-gradient(180deg, #000 45%, transparent); mask-image:linear-gradient(180deg, #000 45%, transparent); }
.acct-card-top { display:flex; align-items:flex-end; gap:12px; margin-top:-34px; padding:0 14px; }
.acct-card-pic { flex:none; display:grid; place-items:center; overflow:hidden; border:2px solid var(--surface-card); background:var(--brand);
  color:var(--text-on-brand); font:600 22px var(--serif); }
.acct-card-pic.is-poster { width:52px; height:78px; border-radius:8px; }
.acct-card-pic.is-circle { width:64px; height:64px; border-radius:50%; }
.acct-card-pic img { width:100%; height:100%; object-fit:cover; }
.acct-card-who { flex:1; min-width:0; display:flex; flex-direction:column; gap:1px; padding-bottom:4px; }
.acct-card-who b { font:600 19px/1.15 var(--serif); color:var(--text-heading); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.acct-card-who small { font-size:12.5px; color:var(--text-muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.acct-card-go { flex:none; display:inline-flex; align-items:center; gap:4px; padding-bottom:6px; font-size:12.5px; font-weight:800; color:var(--text-link);
  text-decoration:underline; text-underline-offset:3px; }
.acct-card:hover .acct-card-go { color:var(--text-heading); }
.acct-card-stats { display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); margin:12px 14px 14px; padding-top:10px; border-top:1px solid var(--border-subtle); }
.acct-card-stats > span { min-width:0; display:flex; flex-direction:column; align-items:center; gap:2px; }
.acct-card-stats > span + span { border-inline-start:1px solid var(--border-subtle); }
.acct-card-stats b { font:400 24px/1 var(--bebas); color:var(--text-heading); }
.acct-card-stats small { max-width:100%; font-size:10px; font-weight:700; letter-spacing:.6px; text-transform:uppercase; color:var(--text-muted);
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.acct-card-stats .skel-line { width:40px; height:22px; }
.acct-list { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:2px; }
.acct-list li[hidden] { display:none; }
@media(min-width:1200px) { .acct-phone { display:none; } }   /* Export: on phones it has no tab of its own (desktop: the You menu) */
.acct-sep { margin-top:6px; padding-top:6px; border-top:0.5px solid var(--border-2); }
.acct-row { display:flex; align-items:center; gap:12px; width:100%; min-height:46px; padding:6px 8px; box-sizing:border-box; border-radius:var(--radius-sm); border:0; background:none;
  color:var(--text); font:600 14px var(--sans); text-decoration:none; text-align:start; cursor:pointer; }
.acct-ic { width:32px; height:32px; flex:none; display:grid; place-items:center; border-radius:var(--radius-sm); background:var(--card-2); border:1px solid var(--border); color:var(--olive-light); }
.acct-ic.is-out { color:var(--danger); border-color:color-mix(in srgb, var(--danger) 35%, transparent); background:color-mix(in srgb, var(--danger) 8%, transparent); }
a.acct-row:hover, button.acct-row:hover { background:var(--card-2); }
a.acct-row:focus-visible, button.acct-row:focus-visible { outline:2px solid var(--olive-light); outline-offset:-2px; }
.acct-l { flex:1; min-width:0; }
.acct-meta { font-size:12.5px; font-weight:600; color:var(--text-2); white-space:nowrap; }
.acct-owner { font-size:10.5px; font-weight:800; letter-spacing:1px; text-transform:uppercase; padding:3px 8px; border-radius:6px; background:var(--olive); color:var(--text-on-brand); }
.acct-row.is-out { color:var(--danger); }
.acct-chev { display:none; color:var(--text-2); }
.acct-theme { cursor:default; }

/* The Light / Dark switch (config.js mssThemeSwitch) — account menu, Account page, footer */
.mss-theme-sw { display:inline-flex; gap:2px; padding:3px; border-radius:var(--radius-sm); border:1px solid var(--border-2); background:var(--bg-3); }
.mss-theme-opt { display:inline-flex; align-items:center; gap:6px; min-height:32px; padding:0 11px; border:0; border-radius:7px; background:none; cursor:pointer;
  color:var(--text-2); font:700 12.5px var(--sans); transition:background .15s, color .15s; }
.mss-theme-opt:hover { color:var(--text); }
.mss-theme-opt.on { background:var(--olive); color:var(--text-on-brand); }
.mss-theme-opt:focus-visible { outline:2px solid var(--olive-light); outline-offset:1px; }

/* ── Full-page screens on phones (Account, Search) ── */
.shell-page { position:fixed; inset:0; z-index:820; display:none; background:var(--bg); }
.shell-page.open { display:block; }
.shell-page-card { height:100%; display:flex; flex-direction:column; outline:none; }
.shell-page-head { display:flex; align-items:center; gap:10px; padding:calc(10px + env(safe-area-inset-top)) 12px 10px; border-bottom:0.5px solid var(--border); }
.shell-page-back { width:44px; height:44px; flex:none; display:grid; place-items:center; border-radius:var(--radius-sm); border:1px solid var(--border-2); background:none; color:var(--text); cursor:pointer; }
.shell-page-back:focus-visible { outline:2px solid var(--olive-light); outline-offset:2px; }
[dir="rtl"] .shell-page-back svg { transform:scaleX(-1); }
.shell-page-t { font-family:var(--serif); font-size:22px; font-weight:600; color:var(--text-heading); }
.shell-page-body { flex:1; overflow-y:auto; overscroll-behavior:contain; padding:14px 16px calc(24px + env(safe-area-inset-bottom)); }
#shellAcctPage .acct-card { margin-bottom:14px; }
#shellAcctPage .acct-card-bd { height:110px; }
#shellAcctPage .acct-list { gap:0; padding:4px 12px; border-radius:var(--radius); border:1px solid var(--border); background:var(--card); }
#shellAcctPage .acct-list > li + li { border-top:0.5px solid var(--border); }
#shellAcctPage .acct-sep { margin-top:0; padding-top:0; }
#shellAcctPage .acct-row { min-height:58px; padding:8px 2px; }
#shellAcctPage a.acct-row:hover, #shellAcctPage button.acct-row:hover { background:none; }
#shellAcctPage .acct-ic { width:38px; height:38px; }
#shellAcctPage .acct-chev { display:flex; }
#shellAcctPage .mss-theme-opt { min-height:38px; }


.btn-add-entry[hidden] { display:none; }
.hero-recent { position:absolute; z-index:300; box-sizing:border-box; overflow-y:auto; touch-action:pan-y; overscroll-behavior:contain; padding:6px; background:var(--bg-2); border:1px solid var(--border-olive); border-radius:var(--radius-sm); }
.hero-recent[hidden] { display:none; }
.hero-recent ul { list-style:none; margin:0; padding:0; }
.hero-recent li { display:flex; align-items:center; gap:2px; }
.hero-recent-h { display:flex; align-items:center; justify-content:space-between; gap:8px; padding:2px 4px 6px 10px; font-size:11px; font-weight:700; letter-spacing:.8px; text-transform:uppercase; color:var(--text-2); }
.hero-recent-clear { min-height:32px; padding:0 8px; font:inherit; font-size:12px; font-weight:600; letter-spacing:0; text-transform:none; color:var(--olive-light); background:none; border:none; border-radius:6px; cursor:pointer; }
.hero-recent-pick { flex:1; min-width:0; display:flex; align-items:center; gap:10px; min-height:44px; padding:6px 10px; font:inherit; font-size:14px; text-align:start; color:var(--text); background:none; border:none; border-radius:6px; cursor:pointer; }
.hero-recent-pick span { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.hero-recent-pick svg { flex:none; color:var(--text-2); }
.hero-recent-x { flex:none; display:grid; place-items:center; width:44px; height:44px; color:var(--text-2); background:none; border:none; border-radius:6px; cursor:pointer; }
.hero-recent-pick:hover, .hero-recent-x:hover, .hero-recent-clear:hover { background:var(--olive-faint); }
.hero-recent button:focus-visible { outline:2px solid var(--olive-light); outline-offset:-2px; }

/* ═════════════════════════════════════════════════════════════
   §02  Phones / tablets (<1200px): the bottom bar, its section sheets, the Create button
   ═════════════════════════════════════════════════════════════ */
@property --x { syntax:'<percentage>'; inherits:true; initial-value:10%; }
.bnav, .shell-fab, .nsh { display:none; }
:root { --bnav-top:calc(82px + env(safe-area-inset-bottom));   /* where the bar's top edge is, from the bottom */
  --bnav-surface:var(--bg-nav); }

/* Bottom bar — the open tab sits in a circle that rises out of a cut-out at --x (set before the first paint) */
.bnav {
  position:fixed; z-index:400; height:66px; --x:10%;
  inset-inline:max(calc(12px + env(safe-area-inset-left)), calc(50% - 280px)) max(calc(12px + env(safe-area-inset-right)), calc(50% - 280px));   /* ≤560px wide, centred on tablets */
  bottom:calc(16px + env(safe-area-inset-bottom));
  grid-template-columns:repeat(5, 1fr);
}
nav.bnav, [data-theme="light"] nav.bnav { top:auto; background:none; border:0; -webkit-backdrop-filter:none; backdrop-filter:none; }
.bnav { direction:ltr; }   /* tabs keep their order in right-to-left languages (the circle follows --x from the left) */
.bnav-bg, .bnav-ring { position:absolute; inset:0; border-radius:22px; pointer-events:none;
  -webkit-mask:radial-gradient(circle 37px at var(--x) -6px, transparent 36px, #000 37px);
          mask:radial-gradient(circle 37px at var(--x) -6px, transparent 36px, #000 37px); }
.bnav-bg { background:var(--bnav-surface); }
.bnav-ring { border:0.5px solid var(--border-2); }
.bnav-orb { position:absolute; z-index:2; top:-34px; left:var(--x); width:56px; height:56px; margin-left:-28px; border-radius:50%; pointer-events:none;
  background:linear-gradient(145deg, var(--olive-light), var(--olive)); }
.bnav.is-none .bnav-orb { display:none; }   /* no tab lit (a title page opened from outside): no raised circle either */
.bnav.is-none .bnav-bg, .bnav.is-none .bnav-ring { -webkit-mask:none; mask:none; }
.bnav-item { position:relative; z-index:3; display:flex; flex-direction:column; align-items:center; justify-content:center;
  border:none; background:none; padding:0; font:inherit; color:var(--text-3); text-decoration:none; cursor:pointer; -webkit-tap-highlight-color:transparent; }
.bnav-ic { display:grid; place-items:center; width:46px; height:46px; }
.bnav-ic svg { width:23px; height:23px; }
.bnav-lb { position:absolute; bottom:9px; font-family:'Manrope',var(--sans); font-size:11px; font-weight:800; letter-spacing:.3px; color:var(--text); opacity:0; }
.bnav-item.on { color:#fff; }
.bnav-item.on .bnav-ic { transform:translateY(-39px); }   /* centred in the circle (circle centre = 6px above the bar) */
.bnav-item.on .bnav-lb { opacity:1; }
.bnav-item:not(.on):hover { color:var(--text); }
.bnav-item:focus-visible { outline:none; }
.bnav-item:focus-visible .bnav-ic { outline:2px solid var(--olive-light); outline-offset:2px; border-radius:50%; }
.bnav-dot { position:absolute; top:13px; left:calc(50% + 8px); width:9px; height:9px; border-radius:50%; background:#e5484d; border:2px solid var(--bg-3); }
.bnav-item.on .bnav-dot { top:-35px; left:calc(50% + 12px); border-color:var(--olive); }
[data-theme="light"] .bnav-orb { background:linear-gradient(145deg, var(--p-forest-700), var(--olive)); }

/* ── The Create sheet (Mobile nav v2 · shellCreateSheet, nav.js), from the round +.
   One surface with the bar: the bar's colour, full width, flush on its top edge, rounded top only, 1px
   border on top / sides, no shadow; the page dims to ~42%. While it's open the bar's circle sinks away. ── */
.nsh { position:fixed; inset:0; z-index:430; background:rgba(0,0,0,.42); opacity:0; visibility:hidden;
  transition:opacity .22s var(--layer-in), visibility 0s linear .22s; }
.nsh.open { opacity:1; visibility:visible; transition:opacity .22s var(--layer-in); }
/* --nsh-kb / --nsh-vh (nav.js _nshKb): with the keyboard up, the sheet sits on top of it and fits the space above */
.nsh-card { position:absolute; bottom:max(var(--bnav-top), var(--nsh-kb, 0px)); max-height:75vh; max-height:min(75dvh, calc(var(--nsh-vh, 100dvh) - 16px)); overflow-y:auto; overscroll-behavior:contain; box-sizing:border-box;
  inset-inline:max(calc(12px + env(safe-area-inset-left)), calc(50% - 280px)) max(calc(12px + env(safe-area-inset-right)), calc(50% - 280px));
  padding:8px 14px 14px; border:1px solid var(--border-2); border-bottom:0; border-radius:26px 26px 0 0;
  background:var(--bnav-surface);
  transform:translateY(24px); transition:transform .22s var(--layer-in); outline:none; }
.nsh.open .nsh-card { transform:none; }
/* Create, typing: the whole screen — with the keyboard up it reaches down behind it (nothing of the page shows between the
   sheet and the keyboard; what's under the keyboard can scroll up into view); once it's down, above the bar — nav.js */
.nsh.is-tall .nsh-card { height:calc(var(--nsh-vh, 100dvh) - 16px - var(--bnav-top)); max-height:none;
  transition:transform .22s var(--layer-in), height .3s cubic-bezier(.2,.9,.25,1); }
.nsh.is-tall.has-kb .nsh-card { top:calc(var(--nsh-top, 0px) + 16px); bottom:0; height:auto; padding-bottom:calc(var(--nsh-kb, 0px) + 14px); transition:none; }
@media (prefers-reduced-motion:reduce) { .nsh.is-tall .nsh-card { transition:none; } }
.nsh-grab { display:block; width:36px; height:4px; margin:0 auto 10px; border-radius:2px; background:var(--border-2); }
.nsh-head { padding:0 4px 6px; }
.nsh-t { margin:0; font:600 25px/1.15 var(--serif); color:var(--text-heading); letter-spacing:.2px; }
.nsh-grp + .nsh-grp { margin-top:8px; padding-top:4px; border-top:1px solid var(--border); }
.nsh-gl { margin:10px 6px 6px; font:700 10.5px/1 var(--sans); letter-spacing:.14em; text-transform:uppercase; color:var(--text-3); }
.nsh-results { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:2px; }
.nsh-row { position:relative; display:flex; align-items:center; gap:12px; min-height:56px; padding:8px 10px; box-sizing:border-box; border-radius:14px;
  border:1px solid transparent; color:var(--text); text-decoration:none; -webkit-tap-highlight-color:transparent; transition:background .15s var(--ease); }
.nsh-row:hover { background:var(--card-2); }
.nsh-row:focus-visible { outline:2px solid var(--olive-light); outline-offset:-2px; }
.nsh-tx { display:flex; flex-direction:column; gap:1px; min-width:0; flex:1; }
.nsh-tx b { font:700 14px/1.2 var(--sans); }
.nsh-tx small { font:500 11.5px/1.3 var(--sans); color:var(--text-3); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
/* Create */
.nsh-chead { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.nsh-x { width:44px; height:44px; flex:none; display:grid; place-items:center; border-radius:var(--radius-sm); border:1px solid var(--border-2);
  background:none; color:var(--text); cursor:pointer; }
.nsh-x:focus-visible { outline:2px solid var(--olive-light); outline-offset:2px; }
.nsh-search { display:flex; align-items:center; gap:10px; height:48px; margin:6px 0 10px; padding:0 14px; box-sizing:border-box; border-radius:var(--radius-sm);
  border:1px solid var(--border-olive); background:var(--card); color:var(--text-3); }
.nsh-search:focus-within { border-color:var(--olive-light); }
.nsh-search input { flex:1; min-width:0; height:100%; border:0; background:none; outline:none; color:var(--text); font:500 16px var(--sans); }
.nsh-search input::placeholder { color:var(--text-3); }
.nsh-tiles { display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:8px; }
.nsh-tile { flex-direction:column; justify-content:center; gap:8px; min-height:84px; padding:10px 6px; border-color:var(--border); background:var(--card);
  cursor:pointer; font:700 12.5px/1.2 var(--sans); text-align:center; }
.nsh-tile-ic { width:32px; height:32px; display:grid; place-items:center; border-radius:50%; background:var(--olive-faint); color:var(--olive-light); }
.nsh-tiles[hidden], .nsh-grp[hidden], .nsh-results[hidden] { display:none; }
.nsh-res { display:flex; align-items:center; gap:12px; min-height:64px; padding:6px 4px; }
.nsh-res + .nsh-res { border-top:1px solid var(--border); }
.nsh-res.is-msg { min-height:48px; padding:0 6px; color:var(--text-3); font:500 13px var(--sans); }
.nsh-res-p { width:34px; height:50px; flex:none; position:relative; overflow:hidden; border-radius:6px; background:var(--card-2); }
.nsh-res-p img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.nsh-add { flex:none; display:inline-flex; align-items:center; gap:6px; min-height:44px; padding:0 14px; border-radius:var(--radius-sm);
  border:1px solid var(--border-2); background:none; color:var(--text); cursor:pointer; font:700 13px var(--sans); }
.nsh-add:hover { border-color:var(--border-olive); color:var(--olive-light); }
.nsh-add:focus-visible { outline:2px solid var(--olive-light); outline-offset:2px; }
/* the bar while a sheet is open: the circle sinks + fades, the cut-out closes, the top corners square off under the sheet */
.bnav.sheet-anim .bnav-orb { transition:transform .18s var(--ease), opacity .18s var(--ease); }
.bnav.sheet-anim .bnav-ic, .bnav.sheet-anim .bnav-lb { transition:transform .18s var(--ease), opacity .18s var(--ease), color .18s var(--ease); }
.bnav.has-sheet { z-index:431; }
.bnav.has-sheet .bnav-orb { transform:translateY(26px) scale(.55); opacity:0; }
.bnav.has-sheet .bnav-bg, .bnav.has-sheet .bnav-ring { -webkit-mask:none; mask:none; border-top-left-radius:0; border-top-right-radius:0; }   /* the bar keeps its colour, no cut-out */
.bnav.has-sheet .bnav-ring { border-top-color:transparent; }
.bnav.has-sheet .bnav-item.on { color:var(--text-3); }
.bnav.has-sheet .bnav-item.on .bnav-ic { transform:none; }
.bnav.has-sheet .bnav-item .bnav-lb { opacity:0; }
.bnav.has-sheet .bnav-item.on .bnav-dot { top:13px; left:calc(50% + 8px); border-color:var(--bg-3); }

/* The round Create button, bottom-right above the bar (hidden wherever it would cover something) */
.shell-fab { position:fixed; z-index:395; inset-inline-end:calc(16px + env(safe-area-inset-right)); bottom:calc(var(--bnav-top) + 46px);
  width:56px; height:56px; border-radius:50%; place-items:center; cursor:pointer; color:var(--text-on-primary);
  background:var(--action-primary-bg); border:1.5px solid var(--action-primary-hover); transition:transform .18s, opacity .18s; }
.shell-fab:active { transform:scale(.94); }
.shell-fab.is-away:not(:focus-visible) { opacity:0; transform:translateY(14px) scale(.9); pointer-events:none; }   /* scrolling down: out of the way (nav.js _navInitFab) */
.shell-fab:focus-visible { outline:2px solid var(--olive-light); outline-offset:3px; }
@media (prefers-reduced-motion: reduce) {
  .shell-fab, .bnav.sheet-anim :is(.bnav-orb, .bnav-ic, .bnav-lb) { transition:none; }
  .nsh-card, .nsh.open .nsh-card { transform:none; transition:none; }   /* the sheet only fades */
}
@media(max-width:1199px) {
  .bnav { display:grid; }
  .nsh { display:block; }
  .shell-fab { display:grid; }
  #notifPanel { padding-bottom:calc(96px + env(safe-area-inset-bottom)); }   /* last ones clear the bar */
  #listsModeToggle, #notesModeToggle { display:none !important; }           /* the pages' own status tabs have these views */
  body > .site-footer { padding-bottom:calc(var(--bnav-top) + 80px); }      /* clear the bar and the Create button */
  html.mss-scroll-locked .shell-fab, body.notif-sheet-open .shell-fab, body.chat-open .shell-fab, body[data-own-actions] .shell-fab { display:none; }
}
/* Phones in the browser (Safari / Chrome, not the installed app): the bar sits flat on the
   bottom edge so it meets the browser's own toolbar instead of floating with a gap under it */
@media (max-width:640px) and (display-mode:browser) {
  :root { --bnav-top:calc(66px + env(safe-area-inset-bottom)); }
  .bnav { inset-inline:0; bottom:0; height:calc(66px + env(safe-area-inset-bottom)); padding-bottom:env(safe-area-inset-bottom); }
  .bnav-bg, .bnav-ring { border-radius:22px 22px 0 0; }
  .bnav-ring { border-bottom:0; border-inline:0; }
  .nsh-card { inset-inline:0; }
}
@media print { .bnav, .nsh, .shell-fab { display:none !important; } }


/* ═════════════════════════════════════════════════════════════
   §04  Footer — Explore · Your folio · Social · Appearance, then credits + TMDB
   A deep olive band in both themes (its own light text on it)
   ═════════════════════════════════════════════════════════════ */
.site-footer { --ft-bg:color-mix(in srgb, var(--olive) 62%, var(--bg)); --ft-text:rgba(255,255,255,.92); --ft-text-2:rgba(255,255,255,.74); --ft-line:rgba(255,255,255,.14);
  margin-top:4rem; background:var(--ft-bg); color:var(--ft-text); box-sizing:border-box; flex-shrink:0; }
[data-theme="light"] .site-footer { --ft-bg:var(--olive); }
.site-footer { --logo-m:var(--p-ivory-100); --logo-s:var(--p-pine-400); --logo-f:var(--p-brass-400); }   /* Forest in both modes → the logo's dark colours */
.ft-in { display:grid; grid-template-columns:minmax(200px, 1.1fr) minmax(0, 3fr); gap:clamp(20px, 4vw, 64px); align-items:center; max-width:1400px; margin:0 auto; padding:clamp(32px, 4vw, 52px) clamp(16px, 3vw, 48px) 28px; }
.ft-brand { display:flex; flex-direction:column; gap:14px; font-size:13.5px; line-height:1.55; color:var(--ft-text-2); }
.ft-brand p { margin:0; max-width:270px; }
.ft-logo { height:48px; width:auto; aspect-ratio:467 / 198; display:block; align-self:flex-start; }
/* MSF on social media (mssSocialHTML): round outlined buttons, the footer's own colours */
.ft-social { list-style:none; margin:2px 0 0; padding:0; display:flex; gap:10px; }
.ft-social a { display:grid; place-items:center; width:40px; height:40px; border-radius:50%; border:1px solid var(--ft-line); color:var(--ft-text); background:rgba(0,0,0,.12);
  transition:background var(--trans) var(--ease), border-color var(--trans) var(--ease); }
.ft-social a:hover { background:rgba(255,255,255,.14); border-color:var(--ft-text-2); }
.ft-social a:focus-visible { outline:2px solid #fff; outline-offset:2px; }
.ft-cols { display:grid; grid-template-columns:repeat(6, minmax(0, 1fr)); gap:24px clamp(12px, 2vw, 28px); }
.ft-h { margin-bottom:12px; font-size:10.5px; font-weight:800; letter-spacing:1.8px; text-transform:uppercase; color:var(--ft-text-2); }
/* the folding headings (_ftTog): each opens just its own column (.ft-col.is-open) */
.ft-tog { display:inline-flex; align-items:center; gap:6px; min-height:32px; margin:-8px 0 -8px; padding:0; border:0; background:none; cursor:pointer;
  font:inherit; letter-spacing:inherit; text-transform:inherit; color:inherit; }
.ft-tog:hover { color:var(--ft-text); }
.ft-tog:focus-visible { outline:2px solid #fff; outline-offset:2px; border-radius:4px; }
.ft-tog svg { transition:transform .2s var(--ease); }
.ft-col.is-open .ft-tog svg { transform:rotate(180deg); }
.ft-col:not(.is-open) .ft-fold { display:none !important; }
.ft-col:not(.is-open):has(.ft-fold) .ft-h { margin-bottom:0; }

.ft-col ul { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; }
.ft-col a { display:inline-flex; align-items:center; gap:6px; min-height:30px; color:var(--ft-text); text-decoration:none; font-size:13.5px; font-weight:700; }
.ft-col a:hover { text-decoration:underline; text-underline-offset:3px; }
.ft-col a:focus-visible, .ft-tmdb:focus-visible { outline:2px solid #fff; outline-offset:2px; border-radius:4px; }
.ft-lock { display:inline-flex; color:var(--ft-text-2); }
.ft-theme { margin-bottom:10px; }
.ft-theme .mss-theme-sw { background:rgba(0,0,0,.18); border-color:var(--ft-line); }
.ft-theme .mss-theme-opt { color:var(--ft-text-2); }
.ft-theme .mss-theme-opt:hover { color:#fff; }
.ft-theme .mss-theme-opt.on { background:#fff; color:var(--olive); }
[data-theme="dark"] .ft-theme .mss-theme-opt.on { color:var(--p-forest-800); }
.ft-theme .mss-theme-opt:focus-visible { outline-color:#fff; }
.ft-bottom { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:8px 24px; max-width:1400px; margin:0 auto; box-sizing:border-box;
  padding:16px clamp(16px, 3vw, 48px) 24px; border-top:0.5px solid var(--ft-line); font-size:12.5px; color:var(--ft-text-2); }
.ft-bottom b { color:var(--ft-text); font-weight:800; }
.ft-tmdb { color:var(--ft-text-2); text-decoration:none; max-width:680px; }
.ft-tmdb:hover { color:#fff; }
.ft-quick { display:none; }
/* phones / small tablets: short and centred — logo, five main links, Light / Dark and "More links";
   the full columns open under it */
@media(max-width:900px) {
  .ft-in { grid-template-columns:1fr; gap:18px; padding:28px 16px 18px; text-align:center; }
  .ft-brand { align-items:center; gap:8px; }
  .ft-brand p { display:none; }
  .ft-logo { align-self:center; height:40px; }
  .ft-quick { display:flex; flex-direction:column; align-items:center; gap:12px; }
  .ft-quick ul { list-style:none; margin:0; padding:0; display:flex; flex-wrap:wrap; justify-content:center; gap:0 18px; }
  .ft-quick a { display:inline-flex; align-items:center; min-height:44px; color:var(--ft-text); font-size:15px; font-weight:800; text-decoration:none; }
  .ft-quick a:focus-visible, .ft-more:focus-visible { outline:2px solid #fff; outline-offset:2px; border-radius:6px; }
  .ft-quick-row { display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:10px; }
  .ft-quick .mss-theme-sw { background:rgba(0,0,0,.18); border-color:var(--ft-line); }
  .ft-quick .mss-theme-opt { min-height:40px; color:var(--ft-text-2); }
  .ft-quick .mss-theme-opt.on { background:#fff; color:var(--p-forest-800); }
  .ft-more { display:inline-flex; align-items:center; gap:6px; min-height:44px; padding:0 16px; border-radius:var(--radius-sm); border:1px solid var(--ft-line);
    background:none; color:var(--ft-text); font:700 13.5px var(--sans); cursor:pointer; }
  .ft-cols { display:none; }
  .site-footer.is-open .ft-cols { display:flex; flex-direction:column; gap:20px; padding-top:6px; border-top:0.5px solid var(--ft-line); padding-top:20px; }
  .ft-col:last-child .ft-theme { display:none; }          /* the switch is already in the short footer */
  .ft-h { margin-bottom:4px; }
  .ft-tog { min-height:44px; margin:0; }   /* a full-size tap target on phones */
  .ft-col ul { flex-direction:row; flex-wrap:wrap; justify-content:center; gap:0 18px; }
  .ft-col a { min-height:40px; font-size:14px; }
  .ft-bottom { flex-direction:column; justify-content:center; text-align:center; gap:6px; padding:14px 16px 20px; font-size:12px; line-height:1.5; }
}
@media (min-width:901px) and (max-width:1279px) { .ft-cols { grid-template-columns:repeat(3, minmax(0, 1fr)); } }



/* ═════════════════════════════════════════════════════════════
   §05  Home Page
   ═════════════════════════════════════════════════════════════ */
/* the guest Home's closing call to action (index.html .mh-join) */
.guest-cta { display:flex; gap:12px; justify-content:center; margin-top:2.5rem; flex-wrap:wrap; }
.guest-legal { margin:14px auto 0; max-width:520px; text-align:center; font-size:13px; line-height:1.9; color:var(--text-supporting); }
.guest-legal a { color:var(--text-link); font-weight:700; text-decoration:underline; text-underline-offset:2px; }
.guest-legal a:focus-visible { outline:2px solid var(--focus-ring); outline-offset:2px; border-radius:3px; }
.guest-btn-primary { background:var(--action-primary-bg); color:var(--text-on-primary); border:none; border-radius:var(--radius-xs); padding:11px 28px; font-size:14px; font-weight:600; cursor:pointer; text-decoration:none; transition:background var(--trans) var(--ease); }
.guest-btn-primary:hover { background:var(--action-primary-hover); }
.guest-btn-secondary { background:transparent; color:var(--text-2); border:1px solid var(--border); border-radius:var(--radius-xs); padding:11px 28px; font-size:14px; cursor:pointer; text-decoration:none; transition:border-color var(--trans) var(--ease),color var(--trans) var(--ease); }
.guest-btn-secondary:hover { border-color:var(--border-olive); color:var(--olive-light); }
.sort-bar {
  display:flex; gap:6px; flex-wrap:wrap;
  padding:10px 20px 12px; border-bottom:1px solid var(--border); margin-bottom:18px;
  position:sticky; top:0; z-index:5;
  background:var(--card-solid);
  margin-inline-start:-20px; margin-inline-end:-20px;
}

.sort-bar::before {
  content:''; position:absolute; inset-inline-start:0; inset-inline-end:0; top:-10px; height:10px;
  background:var(--card-solid);
}



/* Category grid */

.section-eyebrow { font-size:11px; letter-spacing:2.5px; text-transform:uppercase; color:var(--olive-light); margin-bottom:6px; }
.section-title { font-family:var(--serif); font-size:28px; font-weight:500; margin-bottom:1.5rem; }

/* ═════════════════════════════════════════════════════════════
   §06  Category Page Header
   ═════════════════════════════════════════════════════════════ */
.cat-page-header {
  display:flex; align-items:flex-end; justify-content:space-between;
  gap:1rem; padding-bottom:1.5rem;
  border-bottom:0.5px solid var(--border);
  position:sticky; top:calc(var(--nav-h) - 6px); z-index:300;
  background:var(--bg);
  padding-top:0.5rem;
  margin-top:-26px;
  inset-inline-start:0; inset-inline-end:0;
  width:100vw;
  margin-inline-start:calc(-50vw + 50%);
  padding-inline-start:calc(50vw - 50% + 32px);
  padding-inline-end:calc(50vw - 50% + 32px);
  margin-bottom:2rem;
}
/* Mask content that scrolls up behind the sticky header */
.cat-page-header::before {
  content:'';
  position:absolute;
  top:-9999px; inset-inline-start:0; inset-inline-end:0;
  bottom:0;
  background:var(--bg);
  z-index:-1;
}

.cat-page-title { font-family:'Oswald',var(--sans); font-size:47px; font-weight:600; line-height:1; letter-spacing:-0.5px; padding-top:14px; }
.cat-page-sub { font-family:'Manrope',var(--sans); font-weight:500; font-size:14.5px; color:var(--text-2); margin-top:6px; }

.btn-add-entry {
  display:flex; align-items:center; justify-content:center; text-align:center; gap:8px;
  background:var(--action-primary-bg); border:0.5px solid var(--action-primary-bg);
  border-radius:var(--radius-sm); color:var(--text-on-primary);
  font-size:13px; font-weight:500; padding:9px 18px; cursor:pointer;
  transition:all var(--trans) var(--ease); white-space:nowrap;
}
.btn-add-entry:hover { background:var(--action-primary-hover); border-color:var(--action-primary-hover); }
.btn-add-entry:active { transform:scale(0.97); }
.btn-add-entry svg { width:15px; height:15px; }

.page-stats {
  display:grid; grid-template-columns:repeat(auto-fit, minmax(120px, 1fr));
  gap:10px; margin-bottom:2rem;
  position:relative; z-index:1;
}
.page-stat {
  background:var(--card); border:0.5px solid var(--border); border-radius:var(--radius);
  padding:.9rem 1rem;
  display:flex; flex-direction:column; align-items:flex-start; justify-content:center;
  transition:border-color var(--trans) var(--ease);
}
.page-stat:hover { border-color:var(--border-olive); }
.page-stat-num { font-family:var(--bebas);  font-weight:400; color:var(--olive-light); line-height:1; }
.page-stat-label { font-family:'Oswald',var(--sans); font-weight:600; font-size:9px; color:var(--text-3); text-transform:uppercase; letter-spacing:1.5px; margin-top:5px; }

/* Desktop — all in one row */
@media(min-width:641px) {
  .page-stats { grid-template-columns:repeat(auto-fit, minmax(100px, 1fr)); gap:10px; }

  .page-stat { padding:.85rem .75rem; }
}
/* Tablet */
@media(max-width:1080px) and (min-width:641px) {

  .page-stat { padding:.75rem .65rem; }
}
/* Mobile — 2 rows: TV/Movies = 3+2, Anime/Cartoon = 3+3 */
@media(max-width:640px) {
  .page-stats { grid-template-columns:repeat(3,1fr); gap:8px; }

  .page-stat { padding:.7rem .65rem; }
  .page-stat-label { font-size:8px; letter-spacing:.5px; }
}
@media(max-width:400px) {
  .page-stats { grid-template-columns:repeat(3,1fr); gap:6px; }

  .page-stat { padding:.6rem .5rem; }
  .page-stat-label { font-size:7px; letter-spacing:.3px; }
}


/* ═════════════════════════════════════════════════════════════
   §07  Section Module
   ═════════════════════════════════════════════════════════════ */
.section-block {
  background:var(--card-solid); border:0.5px solid var(--border);
  border-radius:var(--radius-lg); overflow:clip;
   
  transition:box-shadow var(--trans) var(--ease);
  position:relative; z-index:1;
}
.section-block:has(.accordion-body.open) .section-block-header { border-bottom:0.5px solid var(--border); }

.section-block-header {
  display:flex; align-items:center; width:100%;
  padding:15px 20px; gap:0;
  background:transparent; border:none; border-bottom:0.5px solid transparent;
  cursor:default; -webkit-user-select:none; user-select:none;
  transition:border-color var(--trans) var(--ease), background var(--trans) var(--ease);
  box-sizing:border-box;
}
.sec-left {
  display:flex; align-items:center; gap:10px; flex:1; min-width:0;
  cursor:pointer; padding:2px 0;
}
.sec-left:hover { color:var(--text); }
.sec-right {
  display:flex; align-items:center; gap:6px; flex-shrink:0; flex-wrap:nowrap;
}
.chevron-btn {
  display:flex; align-items:center; justify-content:center;
  width:28px; height:28px; border-radius:var(--radius-xs);
  border:none; background:transparent; cursor:pointer; color:var(--text-3);
  transition:all var(--trans) var(--ease);
}
.chevron-btn:hover { color:var(--text-2); background:var(--card-3); }
.chevron-btn svg { width:15px; height:15px; }

.section-block-title { font-family:'Oswald',var(--sans);   display:flex; align-items:center; gap:8px; letter-spacing:0.1px; }
.section-block-title svg { width:14px; height:14px; color:var(--olive-light); }
.section-pill {
  font-family:var(--bebas); font-size:13px; font-weight:400; padding:2px 10px; border-radius:6px;
  background:var(--olive); border:0.5px solid var(--olive);
  color:var(--text-on-brand);
}

.accordion-chevron { display:flex; align-items:center; }

.accordion-body {
  max-height:0; overflow:hidden; opacity:0;
  transition:max-height .38s var(--ease), opacity .28s var(--ease);
}
.accordion-body.open {
  max-height:6000px; opacity:1;
  overflow:visible;
}
.accordion-inner { padding:20px; animation:fadeIn 0.22s var(--ease); }

/* ═════════════════════════════════════════════════════════════
   §08  Currently Watching Cards
   ═════════════════════════════════════════════════════════════ */   /* same title → tags gap as the Library cards (.fv-w-title) */.w-prog-track { height:3px; background:rgba(255,255,255,0.06); border-radius:2px; overflow:hidden; }
[data-theme="light"] .w-prog-track { background:var(--fill-subtle); }
.w-prog-fill { height:100%; background:var(--olive-light); border-radius:2px; transition:width .5s var(--ease); }
/* ── Friend/Library "Watching" list rows (library.html, profile.html, profile-view.html) — same card design as .w-card above, just a distinct class prefix since these come from a separate template. These had almost no base styling at all before, which is why this list view looked broken/unstyled compared to every other list. ── */
.ep-btn {
  width:clamp(28px, 7vw, 34px); height:clamp(28px, 7vw, 34px); border-radius:50%;
  border:0.5px solid var(--border-2); background:var(--bg-3);
  color:var(--text-2); font-size:clamp(13px, 3.4vw, 17px); line-height:1;
  display:flex; align-items:center; justify-content:center;
  cursor:pointer; transition:all var(--trans) var(--ease);
  flex-shrink:0;
}
.ep-btn:hover { background:var(--olive); border-color:var(--olive); color:var(--text-on-brand); }
.ep-btn:active { transform:scale(0.95); }

/* ── Live search results on index / Discover (initInlineSearch) ── */
.inline-search { margin:0 0 3rem; }
.inline-search-head { display:flex; align-items:baseline; gap:6px 14px; flex-wrap:wrap; margin-bottom:1.25rem; }
.inline-search-head .section-eyebrow { flex-basis:100%; margin-bottom:0; }
.inline-search-sub { margin:0 0 10px; }   /* Discover results: Users · Titles & people */
.inline-search-grid + .inline-search-sub { margin-top:28px; }
.inline-search-count { font-size:12px; color:var(--text-3); }
.inline-search-count b { font-family:var(--bebas); font-weight:400; font-size:15px; color:var(--text-2); }/* ── Profile tabs' panels (profile.html + profile-view.html; the tab bar is the title page's — profile.css) ── */
.prof-panel { display:none; }
.prof-panel.active { display:block; }
/* profile photos are portraits (2:3) since the profile redesign; older ones are square — every round avatar crops to fill */
img[src*="/storage/v1/object/public/avatars/"] { object-fit:cover; }

/* ── Segmented toggle: Personal / Community (Notes, Lists) and the popups' Info / Ratings / Note switcher ── */
.pn-toggle {
  display:flex; width:fit-content; margin:0 auto 1.5rem;
  background:var(--bg-3); border:0.5px solid var(--border-2); border-radius:var(--radius-sm); overflow:hidden;
}
.pn-toggle-btn {
  padding:10px 32px; font-family:'Manrope',var(--sans); font-size:13.5px; font-weight:600;
  background:none; border:none; color:var(--text-3); cursor:pointer;
  transition:all .15s;
}
.pn-toggle-btn + .pn-toggle-btn { border-inline-start:0.5px solid var(--border-2); }
.pn-toggle-btn:hover { color:var(--text); }
.pn-toggle-btn.active { background:var(--olive); color:var(--text-on-brand); }
[data-theme="light"] .pn-toggle-btn:not(.active) { color:var(--text-2); }   /* --text-3 is too faint on the light toggle */
[data-theme="light"] .pn-toggle-btn:not(.active):hover { color:var(--text); }
.pn-toggle-btn:focus-visible { outline:2px solid var(--olive-light); outline-offset:-2px; }

/* ── Clickable titles + usernames in popups (mssTitleLinkHTML / mssProfileLinkHTML, config.js) ── */
.mss-title-link { color:inherit; font:inherit; letter-spacing:inherit; text-decoration:none; background:none; border:none; padding:0; margin:0; cursor:pointer; text-align:inherit; transition:color .15s; }
.mss-title-link:hover { color:var(--olive-light); text-decoration:underline; text-decoration-thickness:1px; text-underline-offset:4px; }
.mss-user-link { color:inherit; text-decoration:none; display:inline-flex; align-items:center; gap:inherit; border-radius:4px; }
.mss-user-link:hover .social-list-username, .mss-user-link:hover > span:last-child { color:var(--olive-light); text-decoration:underline; text-underline-offset:3px; }
.mss-title-link:focus-visible, .mss-user-link:focus-visible { outline:2px solid var(--olive-light); outline-offset:2px; }

/* ── Discover confirmation picker — lets the person pick the right TMDB match instead of auto-navigating to a possibly-wrong title. Can be triggered from inside other modals now (Create Card's "Link to TMDB" prompt), so this needs to sit above every other modal z-index in the app (highest otherwise is 1200), not just the page content behind it. ── */

@media(max-width:768px) {
  [id$="PopupActions"] { padding:4px 16px 16px; }
  [id$="PopupActions"] .popup-action-btn { font-size:14px; padding:12px 14px; }
}


/* ── Sort & Filter — two separate popups (Sort, Filter), each with its own staged state and Apply/Cancel footer, so nothing takes effect until Apply is pressed. Filter criteria (Genre, Decade) use the same dropdown component as title.html's .td-dd, reimplemented here since that component's structural CSS lives only in title.html's own \3c style> block. ── */
.sf-trigger-row { display:flex; align-items:center; gap:8px; justify-content:flex-end; margin-bottom:8px; }
.sf-icon-btn {
  display:inline-flex; align-items:center; justify-content:center; gap:6px;   /* centred: on phones (icon only) the button is wider than its icon */
  background:var(--olive-faint); border:0.5px solid var(--border-olive);
  border-radius:var(--radius-sm); padding:7px 12px; min-height:32px;
  color:var(--olive-light); cursor:pointer; transition:background .15s, border-color .15s;
  font-family:'Manrope',var(--sans); font-weight:500; font-size:12.5px;
}
.sf-icon-btn:hover { border-color:var(--olive-light); }
.sf-icon-btn.active { background:var(--olive); border-color:var(--olive); color:var(--text-on-brand); }
.sf-icon-btn svg { flex-shrink:0; }
@media(max-width:520px) { .sf-icon-btn-label { display:none; } .sf-icon-btn { padding:8px; } }

.sf-header { display:flex; align-items:center; justify-content:space-between; padding:18px 20px 0; flex-shrink:0; }
.sf-title { font-family:'Oswald',var(--sans); font-weight:600; font-size:18px; color:var(--text-heading); }
.sf-close { background:none; border:none; color:var(--text-3); cursor:pointer; font-size:18px; line-height:1; padding:0; transition:color .15s; }
.sf-close:hover { color:var(--text); }
.sf-close:focus { outline:none; }
.sf-close:focus-visible { outline:2px solid var(--olive-light); outline-offset:3px; border-radius:6px; }   /* keyboard only, in the site's colour */
.sf-body { overflow-y:auto; overscroll-behavior-y:contain; padding:8px 20px 4px; flex:1; min-height:0; scrollbar-gutter:stable; }

.sf-section-label {
  font-family:'Oswald',var(--sans); font-weight:600; font-size:11px; letter-spacing:1.5px; text-transform:uppercase;
  color:var(--olive-light); margin:18px 0 10px; padding-bottom:8px; border-bottom:0.5px solid var(--border);
}
.sf-section-label:first-child { margin-top:12px; }
label.sf-section-label { display:block; }

.sf-empty { font-family:'Manrope',var(--sans); font-size:13px; color:var(--text-3); padding:10px 0; }

/* Radio rows (Sort popup) */

/* Dropdown component (Filter popup: Genre, Decade) — self-contained
   structural rules, since .td-dd's own structural CSS lives only in
   title.html's local \3c style> block. */
.sf-dd { position:relative; }
.sf-dd-wide { width:100%; }
.sf-dd-trigger {
  width:100%; height:40px; box-sizing:border-box; display:flex; align-items:center; justify-content:space-between; gap:8px;
  padding:0 14px; border-radius:var(--radius-sm); cursor:pointer;
  background:var(--bg-3); border:0.5px solid var(--border); color:var(--text);
  font-family:'Manrope',var(--sans); font-weight:500; font-size:13.5px; transition:border-color .15s;
}
.sf-dd-trigger.active { background:var(--olive); border-color:var(--olive); color:var(--text-on-brand); }
input.sf-dd-trigger { cursor:text; display:block; padding:0 14px; }
.sf-dd-trigger .td-dd-label { flex:1; text-align:start; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.sf-dd .td-dd-chevron { transition:transform .15s; flex-shrink:0; color:inherit; opacity:.8; }
.sf-dd.open .td-dd-chevron { transform:rotate(180deg); }
.sf-dd.open .sf-dd-trigger { border-color:var(--olive-light); border-end-start-radius:0; border-end-end-radius:0; }
.sf-dd .td-dd-menu {
  display:none; position:absolute; top:100%; inset-inline-start:0; inset-inline-end:0; z-index:20;
  background:var(--bg-2); 
  border:0.5px solid var(--olive-light); border-top:none;
  border-radius:0 0 var(--radius-sm) var(--radius-sm);
  overflow-y:auto; overscroll-behavior-y:contain; max-height:220px;
}
.sf-dd.open .td-dd-menu { display:block; }
/* in a Sort / Filter panel the list opens inline under its field (the popover look: its own card) */
.sf-dd .td-dd-menu.is-inline { position:static; margin-top:6px; padding:6px; max-height:240px; background:var(--panel); border:1px solid var(--border-2); border-radius:12px; }
.sf-dd.open:has(.td-dd-menu.is-inline) .sf-dd-trigger { border-end-start-radius:var(--radius-sm); border-end-end-radius:var(--radius-sm); }
.sf-dd .td-dd-menu.is-inline .td-dd-opt { border-radius:8px; }
.sf-dd .td-dd-opt {
  font-family:'Manrope',var(--sans); font-size:13px; padding:10px 14px; color:var(--text);
  cursor:pointer; transition:background-color .15s;
}
.sf-dd .td-dd-opt:hover { background:var(--bg-3); }
.sf-dd .td-dd-opt.active { background:var(--olive-faint); color:var(--olive-light); font-weight:600; }

.sf-dd-subgroup-label {
  font-family:'Oswald',var(--sans); font-weight:600; font-size:11px; letter-spacing:1.5px; text-transform:uppercase;
  color:var(--olive-light); padding:8px 14px 3px;
}

/* Checkbox rows (Genre dropdown menu specifically — multi-select) */
.sf-check-menu { padding:6px 0; }
.sf-check-list { display:flex; flex-direction:column; }
.sf-check-row { display:flex; align-items:center; gap:10px; padding:9px 14px; cursor:pointer; position:relative; }
.sf-check-row:hover { background:var(--bg-3); }
.sf-check-row input { position:absolute; opacity:0; width:0; height:0; }
.sf-check-mark {
  width:20px; height:20px; border-radius:6px; border:2px solid var(--border-olive); flex-shrink:0;
  display:flex; align-items:center; justify-content:center; color:#fff; transition:background .15s, border-color .15s;
}
.sf-check-mark svg { opacity:0; transition:opacity .12s; }
.sf-check-row input:checked + .sf-check-mark { background:var(--olive-light); border-color:var(--olive-light); }
.sf-check-row input:checked + .sf-check-mark svg { opacity:1; }
.sf-check-row span:last-child { font-family:'Manrope',var(--sans); font-size:13.5px; color:var(--text-2); transition:color .12s; }
.sf-check-row input:checked ~ span:last-child { color:var(--olive-light); font-weight:700; }

/* ── Ranked / Collection badges (lists, list page, editor) ──
   Ranked = the site's deep olive ("this list has an order"); Collection = a quiet
   surface chip ("just a collection"). Official lists use the Ranked green. */
.list-rank-badge {
  display:inline-flex; align-items:center; justify-content:center; flex-shrink:0;
  height:22px; padding:0 11px; border-radius:999px; box-sizing:border-box;
  font-family:var(--sans); font-size:10.5px; font-weight:700; letter-spacing:.8px; text-transform:uppercase;
  line-height:1; white-space:nowrap; vertical-align:middle;
}
.list-rank-badge.is-ranked, .list-rank-badge.is-official { background:var(--p-forest-700); color:#FFFFFF; }
.list-rank-badge.is-official { gap:4px; }
.list-rank-badge.is-collection { background:var(--card-2); color:var(--text-2); box-shadow:inset 0 0 0 1px var(--border-2); }   /* Lists redesign: was Unranked */
[data-theme="dark"] :is(.list-rank-badge.is-ranked, .list-rank-badge.is-official) { background:var(--brand-hover); color:#FFFFFF; }
@media(max-width:640px) { .list-rank-badge { height:20px; font-size:9.5px; padding:0 9px; } }

/* ── Notifications (bell in the top bar) ── */
.notif-btn { position:relative; }
.nav-msg-btn { text-decoration:none; }
/* The computer bell / Messages buttons */
.notif-btn-desktop {
  width:38px; height:38px; border-radius:50%; flex-shrink:0; cursor:pointer;
  display:inline-flex; align-items:center; justify-content:center;
  background:var(--card); border:0.5px solid var(--border); color:var(--text-2);
  transition:border-color .15s, color .15s, background .15s;
}
.notif-btn-desktop:hover { border-color:var(--border-olive); color:var(--olive-light); }
.notif-badge {
  position:absolute; top:-3px; inset-inline-end:-3px; min-width:17px; height:17px; padding:0 4px; box-sizing:border-box;
  border-radius:999px; background:var(--error-solid); color:#fff; border:2px solid var(--bg);
  font-family:var(--bebas); font-size:12px; font-weight:400; letter-spacing:.3px; line-height:15px; text-align:center;
  display:none;
}
.notif-badge.show { display:block; animation:notifPop .3s cubic-bezier(.2,.8,.2,1); }
@keyframes notifPop { from { transform:scale(.4); } to { transform:scale(1); } }
/* ── Notifications redesign: the bell panel, the rows, the Notifications page (nav.js _nf… · notifications.html) ──
   The PDF's colours as tokens: the list / cards use the standard card's (--mc-bg / --mc-bd); new here are the
   day header, the row divider, the unread tint, the green for labels / dots and the small switch's "off". */
:root {
  --ntf-day:var(--fill-subtle); --ntf-line:var(--border-subtle); --ntf-unread:var(--selected-bg); --ntf-green:var(--text-link);
  --ntf-hover:var(--state-hover); --ntf-chip:var(--fill-subtle); --ntf-chip-on:var(--brand); --ntf-sw-off:var(--toggle-track-off); --ntf-panel:var(--surface-panel);
}

/* The bell panel: from the right, 440px, under the top bar, over a dimmed page */
#notifScrim {
  position:fixed; inset-inline:0; bottom:0; top:var(--notif-top, 0px); z-index:390; background:rgba(30,42,34,.35);
  opacity:0; pointer-events:none; transition:opacity .25s;
}
#notifScrim.open { opacity:1; pointer-events:auto; }
#notifPanel {
  position:fixed; z-index:395; top:var(--notif-top, 0px); inset-inline-end:0; bottom:0; width:min(440px, 100vw);
  display:flex; flex-direction:column; overflow:hidden;
  background:var(--ntf-panel); border-inline-start:1px solid var(--mc-bd); border-top:1px solid var(--mc-bd);
  padding-bottom:env(safe-area-inset-bottom, 0px);
  transform:translateX(102%); visibility:hidden;
  transition:transform .34s cubic-bezier(.2,.8,.2,1), visibility 0s linear .34s;
}
[dir="rtl"] #notifPanel { transform:translateX(-102%); }
#notifPanel.open { transform:none; visibility:visible; transition:transform .34s cubic-bezier(.2,.8,.2,1), visibility 0s; }
body.notif-sheet-open { overflow:hidden; }
.notif-head { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; padding:16px 18px 12px; }
.notif-title { font:600 24px/1.1 var(--serif); color:var(--text-heading); }
.notif-sub { font-size:12px; font-weight:600; color:var(--text-3); margin-top:3px; }
.notif-close { width:32px; height:32px; flex:none; display:grid; place-items:center; border-radius:50%; background:var(--mc-bg); border:1px solid var(--mc-bd); color:var(--text-2); cursor:pointer; }
.notif-close:hover { color:var(--text); border-color:var(--border-olive); }
.notif-close:focus-visible { outline:2px solid var(--olive-light); outline-offset:2px; }
.ntf-panel-filters { padding:0 18px 12px; border-bottom:1px solid var(--ntf-line); }
.ntf-panel-filters .ntf-chips { gap:5px; }
.ntf-panel-filters .ntf-chip { padding:5px 9px; font-size:11.5px; gap:4px; }
#notifPanel:focus { outline:none; }
.notif-list { flex:1; overflow-y:auto; overscroll-behavior:contain; }
.notif-list .mss-es { padding-block:3rem; }
.ntf-more { height:1px; }
.notif-sheet-foot { display:flex; gap:10px; padding:12px 16px; border-top:1px solid var(--ntf-line); background:var(--ntf-panel); }
.notif-foot-btn {
  flex:1; display:inline-flex; align-items:center; justify-content:center; gap:7px; min-height:40px; padding:0 12px;
  border-radius:var(--radius-sm); border:1px solid var(--mc-bd); background:var(--mc-bg); color:var(--text);
  font:700 13px var(--sans); cursor:pointer; text-decoration:none; white-space:nowrap;
}
.notif-foot-btn svg { width:14px; height:14px; }
.notif-foot-btn:hover:not(:disabled) { border-color:var(--border-olive); }
.notif-foot-btn:disabled { opacity:.45; cursor:default; }
.notif-foot-btn.primary { background:var(--action-primary-bg); border-color:var(--action-primary-bg); color:var(--text-on-primary); }
.notif-foot-btn.primary:hover { background:var(--action-primary-hover); border-color:var(--action-primary-hover); }
.notif-foot-btn:focus-visible { outline:2px solid var(--olive-light); outline-offset:2px; }

/* Filters (page and panel): All · For you · Friends' activity, then the friends' kinds */
.ntf-filters { display:flex; flex-direction:column; gap:12px; }
.ntf-pills, .ntf-chips { display:flex; gap:6px; overflow-x:auto; scrollbar-width:none; overscroll-behavior-x:contain; }
/* All · For you · Friends' activity: underline tabs (the old bell's look) */
.ntf-pills { gap:22px; border-bottom:1px solid var(--border); }
.ntf-pills::-webkit-scrollbar, .ntf-chips::-webkit-scrollbar { display:none; }
.ntf-pill, .ntf-chip { flex:none; display:inline-flex; align-items:center; gap:6px; cursor:pointer; white-space:nowrap; font-family:var(--sans); font-weight:700; transition:background .15s, border-color .15s, color .15s; }
.ntf-pill { position:relative; padding:10px 0 11px; font-size:13.5px; font-weight:600; background:none; border:0; color:var(--text-3); }
.ntf-pill:hover { color:var(--text); }
.ntf-pill.on, .ntf-pill.is-parent { color:var(--text); }
.ntf-pill.on::after, .ntf-pill.is-parent::after { content:''; position:absolute; inset-inline:0; bottom:0; height:2px; border-radius:2px; background:var(--olive-light); }
.ntf-pill.is-parent::after { opacity:.45; }
.ntf-chip { padding:5px 11px; border-radius:9px; font-size:12px; background:var(--ntf-chip); border:1px solid transparent; color:var(--text-2); }
.ntf-chip:hover { border-color:var(--border-olive); color:var(--text); }
.ntf-chip.on { background:var(--ntf-chip-on); color:#fff; }
.ntf-n { font-weight:700; opacity:.7; }
.ntf-chip.on .ntf-n { opacity:1; color:rgba(255,255,255,.75); }
.ntf-pill:focus-visible, .ntf-chip:focus-visible { outline:2px solid var(--olive-light); outline-offset:2px; border-radius:4px; }

/* The list: day groups and rows */
.ntf-list { display:flex; flex-direction:column; }
.np-main .ntf-list { background:var(--mc-bg); border:1px solid var(--mc-bd); border-radius:20px; overflow:hidden; }
.ntf-day { font:800 10.5px/1 var(--sans); letter-spacing:.14em; text-transform:uppercase; color:var(--ntf-green); background:var(--ntf-day); padding:12px 16px 6px; border-top:1px solid var(--ntf-line); }
.ntf-list > .ntf-day:first-child { border-top:0; }
.ntf-row { position:relative; overflow:hidden; }
.ntf-row + .ntf-row { border-top:1px solid var(--ntf-line); }
.ntf-in { position:relative; display:flex; align-items:center; gap:12px; padding:11px 16px; background:var(--mc-bg); transition:transform .2s cubic-bezier(.2,.8,.2,1), background .15s; }
#notifPanel .ntf-in { background:var(--ntf-panel); }
.ntf-row.unread .ntf-in { background:linear-gradient(var(--ntf-unread), var(--ntf-unread)), var(--mc-bg); }
#notifPanel .ntf-row.unread .ntf-in { background:linear-gradient(var(--ntf-unread), var(--ntf-unread)), var(--ntf-panel); }
.ntf-row.unread .ntf-in::before { content:''; position:absolute; inset-inline-start:5px; top:50%; width:7px; height:7px; margin-top:-3.5px; border-radius:50%; background:var(--ntf-green); }
.ntf-row.has-link:hover .ntf-in { background-image:linear-gradient(var(--ntf-hover), var(--ntf-hover)); }
.ntf-row.unread.has-link:hover .ntf-in { background-image:linear-gradient(var(--ntf-hover), var(--ntf-hover)), linear-gradient(var(--ntf-unread), var(--ntf-unread)); }
.ntf-row.is-drag .ntf-in { transition:none; }
.ntf-av.notif-av { width:40px; height:40px; font-size:15px; }
.notif-av {
  position:relative; flex-shrink:0; border-radius:50%; background:var(--olive); color:var(--text-on-brand);
  display:flex; align-items:center; justify-content:center; font-family:var(--serif); font-weight:600;
}
.notif-av > img { width:100%; height:100%; object-fit:cover; border-radius:50%; }
.notif-av-ach { width:100%; height:100%; border-radius:50%; display:flex; align-items:center; justify-content:center; background:linear-gradient(135deg, #F3CE63, #B8862A); color:#fff; }
.notif-av-mod { background:var(--olive); }
.ntf-badge {
  position:absolute; inset-inline-end:-3px; bottom:-3px; width:18px; height:18px; border-radius:50%;
  background:var(--olive); color:var(--text-on-brand); border:2px solid var(--mc-bg); display:grid; place-items:center;
}
#notifPanel .ntf-badge { border-color:var(--ntf-panel); }
.ntf-badge.is-msf { background:var(--tv-solid); }
.ntf-body { flex:1; min-width:0; }
.ntf-text { font:500 14px/1.4 var(--sans); color:var(--text-2); overflow-wrap:anywhere;
  display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
.ntf-text b { font-weight:800; color:var(--text); }
.ntf-link { color:inherit; text-decoration:none; }
.ntf-link::after { content:''; position:absolute; inset:0; z-index:0; }
.ntf-link:focus-visible { outline:none; }
.ntf-link:focus-visible::after { outline:2px solid var(--olive-light); outline-offset:-3px; border-radius:4px; }
.notif-quote.ntf-quote { margin-top:2px; padding:0; border:0; background:none; border-radius:0; font-size:12.5px; font-style:italic; color:var(--text-3);
  -webkit-line-clamp:1; display:-webkit-box; -webkit-box-orient:vertical; overflow:hidden; }
.ntf-time { font:600 11.5px/1.3 var(--sans); color:var(--text-3); margin-top:2px; }
.notif-actions { position:relative; z-index:1; display:flex; gap:6px; margin-top:8px; align-items:center; flex-wrap:wrap; }
.notif-act {
  min-height:32px; padding:0 14px; border-radius:var(--radius-sm); cursor:pointer; font:700 12.5px var(--sans);
  background:transparent; border:1px solid var(--border-2); color:var(--text-2); transition:background .15s, border-color .15s, color .15s;
}
.notif-act:hover:not(:disabled) { border-color:var(--border-olive); color:var(--text); }
.notif-act-yes { background:var(--action-primary-bg); border-color:var(--action-primary-bg); color:var(--text-on-primary); }
.notif-act-yes:hover:not(:disabled) { background:var(--action-primary-hover); border-color:var(--action-primary-hover); color:var(--text-on-primary); }
.notif-act:disabled { opacity:.55; cursor:default; }
.notif-act:focus-visible { outline:2px solid var(--olive-light); outline-offset:2px; }
.notif-state { font-size:11.5px; font-weight:700; color:var(--ntf-green); }
.ntf-posters { flex:none; display:flex; }
.ntf-poster { width:34px; height:51px; border-radius:6px; overflow:hidden; border:1.5px solid var(--mc-bg); background:var(--mc-po); display:grid; place-items:center; font:600 14px var(--serif); color:var(--text-3); }
#notifPanel .ntf-poster { border-color:var(--ntf-panel); }
.ntf-poster img { width:100%; height:100%; object-fit:cover; display:block; }
.ntf-poster + .ntf-poster { margin-inline-start:-14px; }
.ntf-del {
  position:relative; z-index:1; flex:none; width:30px; height:30px; margin-inline-end:-6px; border-radius:50%; cursor:pointer;
  background:transparent; border:0; color:var(--text-3); display:grid; place-items:center; opacity:0; transition:opacity .15s, background .15s, color .15s;
}
.ntf-row:hover .ntf-del, .ntf-del:focus-visible { opacity:1; }
.ntf-del:hover { background:var(--ntf-hover); color:var(--danger); }
.ntf-del:focus-visible { outline:2px solid var(--olive-light); outline-offset:1px; }
/* phones: swipe left → Delete (the × stays for screen readers and keyboards) */
.ntf-swipe-del { display:none; }
@media (hover:none) {
  .ntf-del { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); opacity:1; }
  .ntf-del:focus-visible { position:relative; width:30px; height:30px; clip-path:none; }
  .np-main .ntf-in { touch-action:pan-y; }
  .ntf-swipe-del {
    position:absolute; inset-block:0; inset-inline-end:0; width:88px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px;
    background:var(--danger); color:#fff; border:0; font:700 12px var(--sans); cursor:pointer; visibility:hidden;
  }
  .ntf-row.is-drag .ntf-swipe-del, .ntf-row.is-open .ntf-swipe-del { visibility:visible; }
}
.ntf-older { width:100%; padding:14px; border:0; border-top:1px solid var(--ntf-line); background:transparent; color:var(--ntf-green); font:800 13px var(--sans); cursor:pointer; }
.ntf-older:hover { background:var(--ntf-hover); }
.ntf-older:focus-visible { outline:2px solid var(--olive-light); outline-offset:-3px; }

/* The page: header (kicker, title, "1 new · 200 most recent"; Mark all read · gear · ⋯), filters, list + side column */
.np-head .cat-page-sub b { color:var(--text); font-weight:800; }
#npTitle:focus { outline:none; }      /* focus moves here when you switch views — no ring on the heading */
.np-actions { gap:8px; }
.np-actions[hidden] { display:none; }
.np-btn {
  display:inline-flex; align-items:center; gap:7px; min-height:40px; padding:0 14px; border-radius:var(--radius-sm);
  background:var(--mc-bg); border:1px solid var(--mc-bd); color:var(--text); font:700 13px var(--sans); cursor:pointer; white-space:nowrap;
}
.np-btn:hover:not(:disabled) { border-color:var(--border-olive); }
.np-btn:disabled { opacity:.5; cursor:default; }
.np-ic { width:40px; height:40px; flex:none; display:grid; place-items:center; border-radius:var(--radius-sm); background:var(--mc-bg); border:1px solid var(--mc-bd); color:var(--text-2); cursor:pointer; text-decoration:none; }
.np-ic:hover { border-color:var(--border-olive); color:var(--text); }
.np-btn:focus-visible, .np-ic:focus-visible { outline:2px solid var(--olive-light); outline-offset:2px; }
.np-filters { margin:4px 0 14px; }
.np-filters:empty { display:none; }
.np-grid { display:grid; grid-template-columns:minmax(0, 1fr); gap:26px; align-items:start; }
.np-main .mss-es { padding-block:4rem; }
.np-side { display:none; }
@media (min-width:1200px) {
  .np-grid { grid-template-columns:minmax(0, 1fr) 340px; }
  .np-side { display:flex; flex-direction:column; gap:14px; position:sticky; top:calc(var(--nav-h) + 16px); }
  .np-is-settings .np-grid { grid-template-columns:minmax(0, 1fr); }
}
.ntf-card { background:var(--mc-bg); border:1px solid var(--mc-bd); border-radius:18px; padding:16px; }
.ntf-card-h { font:800 10.5px/1 var(--sans); letter-spacing:.14em; text-transform:uppercase; color:var(--text-3); margin:0 0 6px; }
.ntf-q { display:flex; align-items:center; gap:12px; padding:10px 0; }
.ntf-q + .ntf-q { border-top:1px solid var(--ntf-line); }
.ntf-q-txt { flex:1; min-width:0; }
.ntf-q-name { font:700 13px/1.3 var(--sans); color:var(--text); }
.ntf-q-sub { font-size:11.5px; line-height:1.4; color:var(--text-3); margin-top:2px; }
.push-switch.ntf-sw { width:40px; height:23px; background:var(--ntf-sw-off); border-color:var(--ntf-sw-off); transition:background .15s, border-color .15s; }
.push-switch.ntf-sw span { top:2px; inset-inline-start:2px; width:17px; height:17px; transition:transform .15s; }
.push-switch.ntf-sw[aria-checked="true"] { background:var(--toggle-track-on); border-color:var(--toggle-track-on); }
.push-switch.ntf-sw[aria-checked="true"] span { transform:translateX(17px); }
[dir="rtl"] .push-switch.ntf-sw[aria-checked="true"] span { transform:translateX(-17px); }
.ntf-card-link { display:inline-flex; align-items:center; gap:5px; margin-top:8px; font:700 12.5px var(--sans); color:var(--ntf-green); text-decoration:none; }
.ntf-card-link:hover { text-decoration:underline; }
.ntf-card-link:focus-visible { outline:2px solid var(--olive-light); outline-offset:2px; border-radius:4px; }
.ntf-sum { display:flex; align-items:center; justify-content:space-between; width:100%; padding:9px 0; border:0; border-top:1px solid var(--ntf-line); background:none; cursor:pointer; color:var(--text-2); font:600 12.5px var(--sans); text-align:start; }
.ntf-card-h + .ntf-sum { border-top:0; }
.ntf-sum b { font:400 19px/1 var(--bebas); letter-spacing:.3px; color:var(--text); }
.ntf-sum:hover span, .ntf-sum.on span { color:var(--ntf-green); }
.ntf-sum:focus-visible { outline:2px solid var(--olive-light); outline-offset:2px; border-radius:4px; }

/* Phones */
@media (max-width:767px) {
  .np-btn { display:none; }                    /* Mark all read lives in ⋯ */
  .np-head { flex-wrap:nowrap; align-items:flex-end; }
  .np-head .lib-head-r { flex:none; }
  .np-filters .ntf-pills, .np-filters .ntf-chips { margin-inline:-16px; padding-inline:16px; }
  .ntf-in { padding:10px 12px; gap:10px; }
  .ntf-av.notif-av { width:38px; height:38px; }
  .ntf-text { font-size:13px; }
  .ntf-poster { width:30px; height:45px; }
}
@media (prefers-reduced-motion: reduce) {
  .ntf-in, #notifScrim { transition:none; }
  #notifPanel { transition:opacity .2s; }
}
/* New-notification alert: bell ring + slim bar at the bottom */
.notif-btn.ringing svg { animation:bellRing 1s cubic-bezier(.36,.07,.19,.97); transform-origin:50% 8%; }
.notif-btn.ringing .notif-badge.show { animation:notifPop .4s cubic-bezier(.2,.8,.2,1) .15s both; }
@keyframes bellRing {
  0%,100% { transform:rotate(0); }
  15% { transform:rotate(16deg); } 30% { transform:rotate(-14deg); } 45% { transform:rotate(10deg); }
  60% { transform:rotate(-7deg); } 75% { transform:rotate(3deg); }
}
/* A new notification's toast: who it's from on the left */
.toast-av { flex:none; width:28px; height:28px; border-radius:50%; overflow:hidden; display:grid; place-items:center; background:var(--olive); color:var(--text-on-brand); font:600 12.5px var(--serif); }
.toast-av img { width:100%; height:100%; object-fit:cover; }
.toast-av b { font:400 14px var(--bebas); letter-spacing:.3px; }
@media (prefers-reduced-motion: reduce) {
  .notif-btn.ringing svg { animation:none; }
}

/* ── Spoiler notes ── */
.spoiler { position:relative; border-radius:var(--radius-sm); }
.spoiler-text { filter:blur(7px); user-select:none; -webkit-user-select:none; pointer-events:none; opacity:.7; transition:filter .35s, opacity .35s; }
.spoiler-reveal {
  position:absolute; inset:0; margin:auto; width:max-content; height:max-content; max-width:92%;
  display:flex; align-items:center; gap:10px; padding-block:9px; padding-inline:10px 16px; border-radius:999px; cursor:pointer;
  background:var(--bg-2); border:1px solid var(--border-olive); color:var(--text);
   font-family:var(--sans); text-align:start;
  transition:transform .15s, border-color .15s;
}
.spoiler-reveal:hover { transform:scale(1.03); border-color:var(--olive-light); }
.spoiler-ic { width:30px; height:30px; border-radius:50%; flex-shrink:0; display:flex; align-items:center; justify-content:center; background:var(--olive); color:var(--text-on-brand); }
.spoiler-reveal b { display:block; font-size:13px; font-weight:700; line-height:1.2; }
.spoiler-reveal small { display:block; font-size:11px; color:var(--text-2); line-height:1.2; }
.spoiler-compact .spoiler-reveal { padding-block:6px; padding-inline:6px 12px; gap:8px; }
.spoiler-compact .spoiler-ic { width:24px; height:24px; }
.spoiler-compact .spoiler-ic svg { width:12px; height:12px; }
.spoiler-compact .spoiler-reveal b { font-size:12px; }
.spoiler-compact .spoiler-reveal small { font-size:10px; }
.spoiler-compact .spoiler-text { min-height:54px; }
.spoiler.revealed .spoiler-text { filter:none; opacity:1; user-select:text; -webkit-user-select:text; pointer-events:auto; }
.spoiler.revealed .spoiler-reveal { display:none; }
.spoiler-tag {
  display:inline-flex; align-items:center; gap:4px; padding:2px 8px; border-radius:999px; vertical-align:middle;
  font-family:var(--sans); font-size:10px; font-weight:700; letter-spacing:.5px; text-transform:uppercase;
  background:var(--bg-3); color:var(--text-2); border:1px solid var(--border-2);
}
.spoiler-tag svg { width:11px; height:11px; }
/* a title's own spoiler wording (easter-egg.js) — Fight Club's: a red stamp, "#1" */
.spoiler-egg .spoiler-reveal { border-color:rgba(200,55,45,.55); }
.spoiler-egg .spoiler-reveal:hover { border-color:#c8372d; }
.spoiler-egg .spoiler-ic { background:#c8372d; font:400 15px/1 var(--bebas); letter-spacing:.5px; padding-top:2px; }
.spoiler-egg .spoiler-reveal small { max-width:240px; white-space:normal; }
.spoiler-tag-egg { color:#c8372d; border-color:rgba(200,55,45,.5); background:rgba(200,55,45,.08); }
.spoiler-toggle { display:flex; align-items:center; gap:10px; margin-top:10px; padding:10px 12px; border-radius:var(--radius-sm); cursor:pointer; border:1px solid var(--border); background:var(--bg-3); transition:border-color .15s, background .15s; }
.spoiler-toggle:hover { border-color:var(--border-olive); }
.spoiler-toggle input { position:absolute; opacity:0; pointer-events:none; }
.spoiler-toggle-box { width:20px; height:20px; flex-shrink:0; border-radius:6px; border:1.5px solid var(--border-2); background:var(--bg-2); display:flex; align-items:center; justify-content:center; color:transparent; transition:all .15s; }
.spoiler-toggle-box svg { width:12px; height:12px; }
.spoiler-toggle input:checked + .spoiler-toggle-box { background:var(--toggle-track-on); border-color:var(--toggle-track-on); color:var(--text-on-primary); }
.spoiler-toggle input:focus-visible + .spoiler-toggle-box { box-shadow:0 0 0 3px var(--olive-faint); }
.spoiler-toggle:has(input:checked) { border-color:var(--border-olive); background:var(--olive-faint); }
.spoiler-toggle-text b { display:block; font-family:var(--sans); font-size:13px; font-weight:600; color:var(--text); }

/* ── Profile dashboard (dashboard.js) ── */
.dash-head { display:flex; align-items:flex-end; justify-content:space-between; gap:12px; margin-bottom:1rem; }
.fav-edit-btn.dash-done { background:var(--error-solid); border-color:var(--error-fg); color:#fff; }
.dash-hint { font-size:12px; color:var(--text-3); margin:-4px 0 12px; }
/* the standard card grid (.msf-grid); phones: each section is one row you swipe (back to the grid while you re-rank) */
@media(max-width:640px) {
  .dash-section:not(.is-editing) .dash-grid {
    grid-template-columns:none; grid-auto-flow:column; grid-auto-columns:var(--msf-rail-w);
    overflow-x:auto; overscroll-behavior-x:contain; scroll-snap-type:x proximity; padding-bottom:4px;
  }
  .dash-section:not(.is-editing) .dash-grid > * { scroll-snap-align:start; }
}
.dash-card.dash-editing .msf-card__tr { display:none; }
.dash-card.dash-editing { outline:2px solid var(--error-fg); outline-offset:2px; cursor:grab; touch-action:none; user-select:none; -webkit-user-select:none; }
.dash-card.dash-editing:active { cursor:grabbing; }
.dash-card.dash-dragging { z-index:20;  transition:none; }
.dash-card.dash-over { outline:3px dashed var(--olive-light); }
.dash-remove {
  position:absolute; top:6px; inset-inline-end:6px; z-index:3; width:26px; height:26px; border-radius:50%; cursor:pointer;
  background:var(--error-solid); color:#fff; border:2px solid #fff; display:flex; align-items:center; justify-content:center; padding:0;
}
.dash-empty {
  position:relative; display:block; aspect-ratio:2/3; width:100%; padding:0; border-radius:var(--radius); cursor:pointer;
  border:1.5px dashed var(--border-2); background:transparent; color:var(--text-3); font:inherit;
  -webkit-appearance:none; appearance:none;
  transition:border-color .15s, color .15s, background .15s; align-self:start;
}
/* + and "Add" pinned to the exact centre of the slot (some mobile browsers
   don't lay out flex inside a <button> reliably) */
/* Picker: "View more" after each 60 titles */
.dp-more {
  grid-column:1 / -1; justify-self:center; margin:6px 0 4px; padding:10px 22px; border-radius:var(--radius-sm); cursor:pointer;
  font-family:'Manrope',var(--sans); font-size:13px; font-weight:600;
  background:var(--olive-faint); border:0.5px solid var(--border-olive); color:var(--olive-light); transition:all .15s;
}
.dp-more span { font-weight:500; opacity:.8; }
.dp-more:hover { background:var(--olive); border-color:var(--olive); color:var(--text-on-brand); }
.dash-empty-inner {
  position:absolute; top:50%; left:50%; transform:translate(-50%, -50%);
  display:flex; flex-direction:column; align-items:center; gap:6px; pointer-events:none;
}
.dash-empty:hover { border-color:var(--olive-light); color:var(--olive-light); background:var(--olive-faint); }
.dash-empty-plus { width:42px; height:42px; border-radius:50%; display:flex; align-items:center; justify-content:center; border:1.5px solid currentColor; }
.dash-section-empty { margin-bottom:10px !important; }
.dash-empty-row { all:unset; box-sizing:border-box; width:100%; display:flex; align-items:center; gap:14px; padding:12px 16px; border-radius:var(--radius); cursor:pointer;
  border:1.5px dashed var(--border-2); color:var(--text-3); transition:border-color .15s, background-color .15s, color .15s; }
.dash-empty-row:hover { border-color:var(--olive-light); background:var(--olive-faint); color:var(--olive-light); }
.dash-empty-row:focus-visible { outline:2px solid var(--olive-light); outline-offset:2px; }
.dash-empty-row > span:last-child { display:flex; flex-direction:column; gap:1px; min-width:0; }
.dash-empty-row .pv-eyebrow { margin:0; }
.dash-empty-row b { font-family:var(--serif); font-size:16px; font-weight:600; color:var(--text-heading); }
.dash-empty-row small { font-size:12px; color:var(--text-3); }
.dash-empty-row .dash-empty-plus { width:36px; height:36px; flex-shrink:0; }
.dash-empty-lbl { font-family:var(--sans); font-size:11.5px; font-weight:600; letter-spacing:.5px; text-transform:uppercase; }
/* Picker (MSSPanel S) */
.dp-grid { margin-top:14px; display:grid; grid-template-columns:repeat(auto-fill, minmax(110px, 1fr)); gap:14px; align-content:start; }
.dp-item { display:flex; flex-direction:column; gap:6px; background:none; border:none; padding:0; cursor:pointer; text-align:start; color:var(--text); }
.dp-poster { display:block; aspect-ratio:2/3; border-radius:var(--radius-sm); overflow:hidden; background:var(--bg-3); position:relative; transition:transform .15s, box-shadow .15s; }
.dp-poster img { width:100%; height:100%; object-fit:cover; display:block; }
.dp-item:hover .dp-poster { transform:translateY(-3px); box-shadow:0 0 0 2px var(--olive-light); }
.dp-name { font-size:12.5px; font-weight:600; line-height:1.25; display:-webkit-box; -webkit-line-clamp:2; line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.dp-score { font-family:var(--bebas); font-size:14px; color:var(--st, var(--olive-light)); }
.dp-empty { grid-column:1/-1; padding:2.5rem 1rem; text-align:center; font-size:13px; color:var(--text-3); }
@media(max-width:520px) { .dp-grid { grid-template-columns:repeat(3, 1fr); gap:10px; } }

/* ── Note avatars, cards & popups — shared by Notes and Friends (moved from notes.html) ── */
.snote-avatar {
  width:22px; height:22px; border-radius:50%; overflow:hidden; flex-shrink:0;
  background:var(--olive-faint); color:var(--olive-light); font-family:var(--serif); font-size:11px;
  display:flex; align-items:center; justify-content:center;
}
.snote-avatar img { width:100%; height:100%; object-fit:cover; }
.snote-username { font-size:12px; color:var(--text-3); font-weight:500; }
.snote-actions { display:flex; gap:14px; margin-top:8px; }
.snote-rating {
  position:absolute; top:16px; inset-inline-end:18px; font-size:13px; font-weight:600;
  color:var(--olive-light); white-space:nowrap;
}
.snote-react-btn {
  display:inline-flex; align-items:center; gap:5px; background:none; border:none; cursor:pointer;
  color:var(--text-2); font-size:12.5px; font-weight:600; transition:color .15s;
}
.snote-react-btn:hover { color:var(--text); }
.snote-react-btn.active-like { color:var(--olive-light); }
.snote-react-btn.active-dislike { color:#c0685a; }
.snote-react-btn svg, .snote-rect-btn svg { transition:transform .3s, fill .3s; }
.snote-react-btn:hover svg, .snote-rect-btn:hover svg { transform:scale(1.15) rotate(-8deg); }
/* ── Note cards (Notes redesign — note-popup.js: Notes page, profile Notes tabs, a title page's Community notes;
   episode notes (show-pages.js) share the frame) ── */
.nc-grid { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:16px; }
@media(max-width:900px) { .nc-grid { grid-template-columns:1fr; gap:10px; } }
.nc-card {
  position:relative; display:flex; gap:14px; padding:12px; min-width:0;
  background:var(--card); border:1px solid var(--border); border-radius:18px;
  cursor:pointer; transition:border-color .15s, transform .15s;
}
.nc-card:hover { border-color:var(--border-olive); transform:translateY(-2px); }
.nc-card:focus-visible { outline:2px solid var(--olive-light); outline-offset:2px; }
.nc-poster {
  width:84px; aspect-ratio:2/3; flex-shrink:0; align-self:flex-start; border-radius:var(--radius-sm); overflow:hidden;
  background:var(--olive-faint); display:flex; align-items:center; justify-content:center;
  font-family:var(--serif); font-size:26px; color:var(--olive-light);
}
.nc-poster img { width:100%; height:100%; object-fit:cover; display:block; }
.nc-main { flex:1; min-width:0; display:flex; flex-direction:column; }
.nc-top { display:flex; align-items:baseline; justify-content:space-between; gap:10px; margin-bottom:4px; min-height:22px; }
.nc-author { display:flex; align-items:center; gap:7px; min-width:0; margin-bottom:6px; font:600 12px 'Manrope',var(--sans); color:var(--text-3); }
.nc-author .snote-avatar { width:22px; height:22px; }
.nc-author span { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.nc-score { font-size:20px; flex-shrink:0; }
.nc-title { margin:0; font:600 19px/1.2 var(--serif); color:var(--text-heading); min-width:0; flex:1; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.nc-year { font:400 17px/1 var(--bebas); letter-spacing:.3px; color:var(--text-3); }
.nc-meta { display:flex; flex-wrap:wrap; align-items:center; gap:4px 8px; margin-bottom:8px; font:600 12px/1.35 'Manrope',var(--sans); color:var(--text-3); }
.nc-meta .spoiler-tag { font:800 9.5px 'Manrope',var(--sans); letter-spacing:.06em; text-transform:uppercase; border-radius:6px; }
.nc-excerpt, .nc-quote {
  margin:0 0 10px; font:500 13.5px/1.6 'Manrope',var(--sans); color:var(--text-2); overflow-wrap:anywhere;
  display:-webkit-box; -webkit-line-clamp:3; line-clamp:3; -webkit-box-orient:vertical; overflow:hidden;
}
.nc-foot { margin-top:auto; display:flex; align-items:center; justify-content:space-between; gap:10px; padding-top:8px; border-top:1px solid var(--border); }
.nc-stats { display:flex; align-items:center; flex-wrap:wrap; gap:4px 14px; min-width:0; font:700 12px 'Manrope',var(--sans); color:var(--text-3); }
.nc-count { display:inline-flex; align-items:center; gap:4px; }
.nc-count svg { width:13px; height:13px; }
.nc-count b { font-weight:700; margin-inline-end:6px; }
.nc-reacts { display:flex; gap:14px; }
.nc-words { white-space:nowrap; }
.nc-words b { font-weight:800; color:var(--text-2); }
.nc-read { flex:none; font:800 12px 'Manrope',var(--sans); color:var(--olive-light); white-space:nowrap; }
.nc-card:hover .nc-read { text-decoration:underline; text-underline-offset:3px; }
.nc-more { display:flex; justify-content:center; margin-top:18px; }
.nc-more-btn { min-height:44px; display:inline-flex; align-items:center; justify-content:center; gap:8px; padding:0 22px; border-radius:var(--radius-sm); cursor:pointer;
  border:1px solid var(--border-2); background:var(--card); color:var(--text); font:700 13.5px 'Manrope',var(--sans); transition:border-color .15s, color .15s, background-color .15s; }
.nc-more-btn:hover { border-color:var(--border-olive); color:var(--olive-light); background:var(--olive-faint); }
.nc-more-btn:focus-visible { outline:2px solid var(--olive-light); outline-offset:2px; }
.nc-more-n { padding:2px 8px; border-radius:999px; background:var(--card-2); font:600 12px 'Manrope',var(--sans); color:var(--text-3); }

@media(max-width:640px) {
  .nc-card { padding:10px; gap:12px; border-radius:16px; }
  .nc-poster { width:70px; font-size:20px; }
  .nc-title { font-size:17px; }
  .nc-score { font-size:18px; }
  .nc-excerpt, .nc-quote { font-size:13px; }
}
.nf-card.is-skel { cursor:default; background-color:var(--card-2); border-color:var(--border); }

/* ── The featured note (pinned, else latest): always dark, over the title's backdrop — the Library's Watching card look ── */
.nf-card { --tv-green:var(--p-forest-300); --tv-gold:var(--p-score-top-dark);
  position:relative; isolation:isolate; overflow:hidden; display:flex; align-items:center; gap:26px; min-height:280px; padding:26px;
  margin-bottom:20px; border-radius:22px; border:1px solid rgba(255,255,255,.1); background:#0D0F0D; color:#fff; cursor:pointer;
  transition:border-color var(--trans) var(--ease), transform var(--trans) var(--ease); }
@media (hover:hover) { .nf-card:hover { border-color:rgba(255,255,255,.28); transform:translateY(-2px); } }
.nf-card:focus-visible { outline:2px solid var(--olive-light); outline-offset:3px; }
.nf-card .nf-art { position:absolute; inset:0 0 0 30%; width:auto; min-height:0; margin:0; grid-area:auto; z-index:-2; opacity:0;
  background:center 25% / cover no-repeat; -webkit-mask-image:linear-gradient(to right, transparent 0, rgba(0,0,0,.4) 14%, #000 36%); mask-image:linear-gradient(to right, transparent 0, rgba(0,0,0,.4) 14%, #000 36%); }
.nf-card .nf-art.in, .nf-card .nf-art:not(.is-bd) { opacity:1; }
.nf-card .nf-art.is-poster { opacity:.55; }
.nf-shade { position:absolute; inset:0; z-index:-1; pointer-events:none;
  background:linear-gradient(90deg, rgba(13,13,11,.95) 0%, rgba(13,13,11,.8) 45%, rgba(13,13,11,.2) 100%); }
[dir="rtl"] .nf-card .nf-art { inset:0 30% 0 0; -webkit-mask-image:linear-gradient(to left, transparent 0, rgba(0,0,0,.4) 14%, #000 36%); mask-image:linear-gradient(to left, transparent 0, rgba(0,0,0,.4) 14%, #000 36%); }
[dir="rtl"] .nf-shade { background:linear-gradient(270deg, rgba(13,13,11,.95) 0%, rgba(13,13,11,.8) 45%, rgba(13,13,11,.2) 100%); }
.nf-poster { flex:none; width:110px; aspect-ratio:2/3; border-radius:10px; overflow:hidden; background:rgba(255,255,255,.08); display:grid; place-items:center;
  font:600 30px var(--serif); color:rgba(255,255,255,.7); border:1px solid rgba(255,255,255,.12); }
.nf-poster img { width:100%; height:100%; object-fit:cover; display:block; }
.nf-body { flex:1; min-width:0; max-width:760px; display:flex; flex-direction:column; gap:8px; }
.nf-label { display:flex; align-items:center; gap:6px; margin:0; font:800 11px/1.2 'Manrope',var(--sans); letter-spacing:.14em; text-transform:uppercase; color:rgba(255,255,255,.75); }
.nf-label svg { width:12px; height:12px; }
.nf-title { margin:0; font:600 34px/1.1 var(--serif); color:#fff; overflow-wrap:anywhere; display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; line-clamp:2; overflow:hidden; }
.nf-text { margin:0; font:500 15.5px/1.6 'Manrope',var(--sans); color:rgba(255,255,255,.87); overflow-wrap:anywhere;
  display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:3; line-clamp:3; overflow:hidden; }
.nf-link { margin-top:4px; font:800 13px 'Manrope',var(--sans); color:#fff; }
.nf-card:hover .nf-link { text-decoration:underline; text-underline-offset:3px; }
.nf-ring { flex:none; align-self:center; margin-inline-start:auto; padding-inline-start:12px; }   /* far right, like the title page's ring (owner) */
.nf-score { font-size:30px; }
@media(max-width:640px) {
  .nf-card { display:grid; grid-template-columns:70px minmax(0, 1fr) auto; grid-template-areas:"label label label" "title title ring" "poster text text" "poster link link";
    align-content:end; align-items:start; gap:8px 12px; min-height:300px; padding:16px; border-radius:18px; }
  .nf-card .nf-art, [dir="rtl"] .nf-card .nf-art { inset:0 0 35% 0; -webkit-mask-image:linear-gradient(to bottom, #000 45%, transparent); mask-image:linear-gradient(to bottom, #000 45%, transparent); }
  .nf-shade, [dir="rtl"] .nf-shade { background:linear-gradient(180deg, rgba(13,13,11,.2) 0%, rgba(13,13,11,.8) 45%, rgba(13,13,11,.95) 100%); }
  .nf-body { display:contents; }
  .nf-label { grid-area:label; }
  .nf-title { grid-area:title; align-self:center; font-size:26px; }
  .nf-ring { grid-area:ring; }
  .nf-ring { padding:0; } .nf-ring .tv-ring { width:58px; } .nf-ring .tv-ring circle { stroke-width:8; } .nf-ring .tv-ring b { font-size:21px; }
  .nf-poster { grid-area:poster; width:70px; font-size:22px; }
  .nf-text, .nf-card > .nf-body > .spoiler { grid-area:text; font-size:13.5px; }
  .nf-link { grid-area:link; margin-top:0; }
}
@media (prefers-reduced-motion:reduce) { .nc-card, .nf-card { transition:none; } .nc-card:hover, .nf-card:hover { transform:none; } }

/* ── Notes / Lists toolbar: section label + count left, Sort / Filter right (Notes page, Lists page, profile Notes + Lists tabs — mssToolbarHTML in config.js) ── */
.mss-toolbar {
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  margin:0 0 1.1rem; padding-bottom:12px; border-bottom:0.5px solid var(--border);
}
.mss-toolbar-label { display:flex; align-items:baseline; gap:10px; min-width:0; }
.mss-toolbar-title { font-family:var(--serif); font-size:13px; font-weight:500; letter-spacing:2.5px; text-transform:uppercase; color:var(--olive-light); white-space:nowrap; }
.mss-toolbar-count { font-size:12px; color:var(--text-3); white-space:nowrap; }
.mss-toolbar-count b { font-family:var(--bebas); font-weight:400; font-size:15px; color:var(--text-2); letter-spacing:.3px; }
.mss-toolbar .sort-bar { border-bottom:none; padding:0; margin:0; background:transparent; position:relative; backdrop-filter:none; -webkit-backdrop-filter:none; }
.mss-toolbar .sort-bar::before { content:none; }
.mss-empty { padding:3rem 1rem; text-align:center; font-size:13px; color:var(--text-3); }

/* ── The Notes / Lists page head + toolbar (Notes and Lists redesigns — notes.html, lists.html) ──
   Head: kicker · title · one stats line, the main button right; it scrolls away.
   Toolbar: Mine / Friends / Community (desktop: a pill switch on the left; under 1200px the
   Library's status tabs under the toolbar, in place of the shell's switcher) · search · sort · filter,
   and on phones the main button as an icon at the end. */
.nt-head .lib-head-r { align-self:flex-end; }
.nt-write { min-height:40px; display:inline-flex; align-items:center; gap:8px; white-space:nowrap; }
.nt-write svg { width:15px; height:15px; }
.nt-tools { display:flex; align-items:center; gap:10px; margin:4px 0 18px; }
.nt-search { flex:1 1 auto; min-width:0; }
.nt-bar { flex:none; display:flex; }
.nt-bar .sort-bar { border-bottom:none; padding:0; margin:0; background:transparent; position:relative; backdrop-filter:none; -webkit-backdrop-filter:none; }
.nt-bar .sort-bar::before { content:none; }
/* the PDF's switch: a soft track, the view you're on a filled olive pill (owner, 14 Nov 2026) */
.nt-tools .pn-toggle { flex:none; gap:2px; margin:0; padding:3px; border:0.5px solid var(--border-2); border-radius:var(--radius-sm); background:var(--bg-3); }   /* the site's segmented switch, not a pill */
.nt-tools .pn-toggle-btn { min-height:34px; padding:0 16px; border:0; border-radius:calc(var(--radius-sm) - 3px); font-size:12.5px; font-weight:700; }
.nt-tools .pn-toggle-btn + .pn-toggle-btn { border-inline-start:0; }
.nt-pen { display:none; }
.nt-banner { display:flex; align-items:center; justify-content:space-between; gap:12px;
  background:var(--olive-faint); border:1px solid var(--border-olive); border-radius:var(--radius);
  padding:10px 16px; margin:-6px 0 16px; font-size:13.5px; color:var(--olive-light); font-weight:600; }
.nt-banner button { background:none; border:none; color:var(--olive-light); font-size:12.5px; font-weight:700; cursor:pointer; text-decoration:underline; min-height:32px; }
.nt-banner a { color:inherit; font-weight:800; text-decoration:underline; text-underline-offset:2px; }
.lib-tabrow.nt-views { display:none; }   /* (beats .lib-tabrow's flex) */
.nt-views .lib-tabs { grid-template-columns:repeat(3, minmax(0, 1fr)); }
.nt-views .lib-tab-l { flex-direction:row; align-items:baseline; justify-content:center; gap:4px; }   /* Mine's count beside it, so the tabs stay one line */
.nt-views .lib-tab-l b { margin:0; }
@media(max-width:1199px) { .lib-tabrow.nt-views { display:flex; } }
@media(max-width:640px) {
  .nt-head .lib-head-r { display:none; }               /* the main button → the icon at the end of the toolbar */
  .nt-head .cat-page-title { font-size:32px; }
  .nt-head .cat-page-sub { font-size:12.5px; }
  .nt-tools { gap:8px; margin-bottom:14px; }
  .nt-pen { display:inline-flex; align-items:center; justify-content:center; flex:none; width:40px; height:40px; padding:0; border-radius:var(--radius-sm);
    border:1px solid var(--olive); background:var(--olive); color:var(--text-on-brand); cursor:pointer; }
  .nt-pen svg { width:16px; height:16px; }
  .nt-pen:focus-visible { outline:2px solid var(--olive-light); outline-offset:2px; }
}

/* Lists: the collaborator panel (list-actions.js) and the description box (the list editor) */
.list-desc-field {
  width:100%;box-sizing:border-box;padding:10px 14px;border-radius:var(--radius-sm);
  border:1px solid var(--border);background:var(--bg-3);color:var(--text);
  font-family:var(--sans);font-size:14px;outline:none;resize:vertical;min-height:56px;
  transition:border-color .15s;
}
.list-desc-field:focus{border-color:var(--olive-light);}
.list-desc-count { font-size:10.5px; color:var(--text-3); text-align:end; margin-top:4px; }
.list-desc-count.over { color:var(--error-fg); }
/* Collaborators (MSSPanel S): the invite link, then your friends */
.cp-link { padding:12px; border-radius:12px; background:var(--olive-faint); border:1px solid var(--border-olive); }
.cp-link-head { display:flex; gap:10px; align-items:center; margin-bottom:10px; }
.cp-link-ic { width:30px; height:30px; border-radius:50%; flex-shrink:0; background:var(--olive); color:var(--text-on-brand); display:flex; align-items:center; justify-content:center; }
.cp-link-title { font-size:13.5px; font-weight:600; color:var(--text); }
.cp-link-sub { font-size:11.5px; color:var(--text-3); line-height:1.35; }
.cp-link-row { display:flex; gap:8px; }
.cp-link-input { flex:1; min-width:0; min-height:40px; padding:0 12px; border-radius:var(--radius-sm); border:1px solid var(--border-input); background:var(--bg-3); color:var(--text-2); font-size:12.5px; font-family:var(--sans); outline:none; text-overflow:ellipsis; }
.cp-link-reset { margin-top:8px; background:none; border:none; padding:0; color:var(--text-3); font-size:11.5px; font-weight:600; cursor:pointer; text-decoration:underline; }
.cp-link-reset:hover { color:var(--danger); }
.cp-divider { display:flex; align-items:center; gap:10px; margin:18px 0 12px; font-size:11px; font-weight:600; letter-spacing:1px; text-transform:uppercase; color:var(--text-3); }
.cp-divider::before, .cp-divider::after { content:''; flex:1; height:0.5px; background:var(--border); }
.cp-list { margin-top:10px; min-height:120px; }
.cp-row { display:flex; align-items:center; gap:12px; min-height:56px; padding:8px 2px; border-bottom:1px solid var(--border); }
.cp-av { width:40px; height:40px; border-radius:50%; overflow:hidden; flex-shrink:0; display:flex; align-items:center; justify-content:center; background:var(--olive); color:var(--text-on-brand); font-family:var(--serif); font-weight:600; }
.cp-av img { width:100%; height:100%; object-fit:cover; }
.cp-who { flex:1; min-width:0; }
.cp-name { font-size:14px; font-weight:600; color:var(--text); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.cp-user { font-size:12px; color:var(--text-3); }
.cp-btn { flex-shrink:0; min-height:36px; padding:0 14px; border-radius:var(--radius-sm); font-family:'Manrope',var(--sans); font-size:12.5px; font-weight:600; cursor:pointer; border:1px solid transparent; }
.cp-invite { background:var(--action-primary-bg); border-color:var(--action-primary-bg); color:var(--text-on-primary); }
.cp-invite:hover:not(:disabled) { background:var(--action-primary-hover); border-color:var(--action-primary-hover); }
.cp-sent { background:transparent; border-color:var(--border-2); color:var(--text-3); cursor:default; }
.cp-joined { background:var(--olive-faint); border-color:var(--border-olive); color:var(--olive-light); }
.cp-joined:hover { border-color:var(--danger); color:var(--danger); background:transparent; }
.cp-btn:disabled { opacity:.7; }
.cp-empty { padding:28px 12px; text-align:center; color:var(--text-3); font-size:13px; display:flex; flex-direction:column; align-items:center; gap:10px; }
.cp-empty svg { opacity:.5; }
.cp-empty a { color:var(--olive-light); font-weight:600; text-decoration:none; }


/* ── List cards (Lists redesign — list-popup.js: Lists page, profile Lists tabs, title page, Add to List) ── */
.social-list-owner { display:flex; align-items:center; gap:8px; margin-bottom:.75rem; }
.social-list-avatar {
  width:26px; height:26px; border-radius:50%; overflow:hidden; flex-shrink:0;
  background:var(--olive-faint); color:var(--olive-light); font-family:var(--serif); font-size:12px;
  display:flex; align-items:center; justify-content:center;
}
.social-list-avatar img { width:100%; height:100%; object-fit:cover; }
.social-list-username { font-size:12.5px; color:var(--text-3); }
/* ── Collaborators line + Shared/Collab tag (list-popup.js) ── */
.cl-tag { display:inline-block; font-size:10px; font-weight:700; letter-spacing:.7px; text-transform:uppercase; padding:2px 8px; border-radius:999px; background:var(--olive); color:var(--text-on-brand); vertical-align:1px; }
.cl-line { display:flex; align-items:center; gap:8px; font-size:12px; color:var(--text-3); margin:0 0 8px; min-width:0; }
.cl-line span:last-child { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.cl-line b { color:var(--text-2); font-weight:600; }
.cl-stack { display:inline-flex; flex-shrink:0; }
.cl-stack .cl-av + .cl-av { margin-inline-start:-7px; }
.cl-av {
  width:22px; height:22px; border-radius:50%; overflow:hidden; flex-shrink:0; display:inline-flex; align-items:center; justify-content:center;
  background:var(--olive); color:var(--text-on-brand); font-size:10px; font-weight:700; border:2px solid var(--card);
}
.cl-av img { width:100%; height:100%; object-fit:cover; }
.lp-eyebrow { font-family:var(--serif); font-size:11.5px; font-weight:500; letter-spacing:2.5px; text-transform:uppercase; color:var(--olive-light); display:flex; align-items:center; gap:8px; }

.lc-grid { display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:18px; }
@media(max-width:1024px) { .lc-grid { grid-template-columns:repeat(2, minmax(0, 1fr)); } }
@media(max-width:640px)  { .lc-grid { grid-template-columns:minmax(0, 1fr); gap:12px; } }
.lc-card { position:relative; display:flex; flex-direction:column; min-width:0; padding:8px; border-radius:18px; background:var(--card); border:1px solid var(--border);
  cursor:pointer; transition:border-color .15s, transform .15s; }
.lc-card:hover { border-color:var(--border-olive); transform:translateY(-2px); }
.lc-card:focus-visible { outline:2px solid var(--olive-light); outline-offset:2px; }
/* the cover: #1 large on the left over both rows, #2–#5 in a 2 × 2 grid, the list's order */
/* #1's column is the poster's own 2:3 shape, so it shows (almost) whole; the small ones are cropped around their middle (owner) */
.lc-cover { --lc-h:212px; display:grid; grid-template-columns:calc(var(--lc-h) * 2 / 3) 1fr 1fr; grid-template-rows:1fr 1fr; gap:4px; height:var(--lc-h); border-radius:12px; overflow:hidden; background:var(--card-2); }
.lc-cell { position:relative; min-width:0; min-height:0; overflow:hidden; background:var(--bg-3); }
.lc-cell:first-child { grid-row:1 / span 2; }
.lc-cell img { width:100%; height:100%; object-fit:cover; object-position:center; display:block; }
.lc-cell .mss-hidden-badge { display:none; }
.lc-cover.n1 { grid-template-columns:calc(var(--lc-h) * 2 / 3) 1fr; } .lc-cover.n1 .lc-cell { grid-row:1 / span 2; }
.lc-cover.n2 { grid-template-columns:calc(var(--lc-h) * 2 / 3) 1fr; } .lc-cover.n2 .lc-cell { grid-row:1 / span 2; }
.lc-cover.n3 { grid-template-columns:calc(var(--lc-h) * 2 / 3) 1fr; }
.lc-cover.n4 .lc-cell:nth-child(4) { grid-row:1 / span 2; grid-column:3; }
.lc-plus { position:absolute; inset:0; display:grid; place-items:center; background:rgba(30,42,34,.7); color:#fff; font:400 24px/1 var(--bebas); letter-spacing:.5px; }
.lc-cover.is-empty { display:grid; grid-template-columns:1fr; place-items:center; border:1px dashed var(--border-2); background:transparent; }
.lc-cover.is-empty span { display:flex; flex-direction:column; align-items:center; gap:6px; font:600 12px var(--sans); color:var(--text-3); }
.lc-more { position:absolute; top:16px; inset-inline-end:16px; width:32px; height:32px; display:grid; place-items:center; padding:0; border-radius:10px; cursor:pointer;
  border:1px solid var(--border-2); background:color-mix(in srgb, var(--card) 90%, transparent); color:var(--text); }
.lc-more:hover { border-color:var(--border-olive); }
.lc-more:focus-visible { outline:2px solid var(--olive-light); outline-offset:2px; }
.lc-body { display:flex; flex-direction:column; flex:1; min-width:0; padding:10px 6px 4px; }
.lc-body .social-list-owner { margin-bottom:8px; }
.lc-chips { display:flex; flex-wrap:wrap; align-items:center; gap:6px; margin-bottom:6px; }
.lc-chips .list-rank-badge, .lc-chip { height:20px; padding:0 8px; border-radius:6px; font:800 10px/1 'Manrope',var(--sans); letter-spacing:.08em; text-transform:uppercase; }
.lc-chip { display:inline-flex; align-items:center; background:var(--card-2); color:var(--text-2); white-space:nowrap; }
.lc-title { margin:0 0 4px; font:600 20px/1.2 var(--serif); color:var(--text-heading); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.lc-desc { margin:0 0 8px; font:500 13px/1.5 'Manrope',var(--sans); color:var(--text-2); overflow-wrap:anywhere;
  display:-webkit-box; -webkit-line-clamp:2; line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.lc-foot { display:flex; align-items:center; gap:10px; margin-top:auto; padding-top:8px; border-top:1px solid var(--border); font:600 12.5px 'Manrope',var(--sans); color:var(--text-2); min-width:0; }
.lc-top { flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.lc-top b { font-weight:800; color:var(--text); }
.lc-avg { flex:none; display:inline-flex; align-items:baseline; gap:5px; }   /* on the right, beside the count — ranked or a collection (owner) */
.lc-avg.is-side { padding-inline-start:10px; border-inline-start:1px solid var(--border); }   /* after #1 on a ranked list */
.lc-score { font-size:17px; }
.lc-n { flex:none; color:var(--text-3); white-space:nowrap; }
.lc-reacts { display:flex; gap:12px; margin-top:8px; padding-top:8px; border-top:1px solid var(--border); }
.social-list-react-btn {
  display:inline-flex; align-items:center; gap:5px; min-height:32px; background:none; border:none; cursor:pointer;
  color:var(--text-3); font-size:12px; font-weight:600; transition:color .15s;
}
.social-list-react-btn:hover { color:var(--text); }
.social-list-react-btn.active-like { color:var(--olive-light); }
.social-list-react-btn.active-dislike { color:#c0685a; }
@media(max-width:640px) { .lc-cover { --lc-h:190px; } }
@media (prefers-reduced-motion:reduce) { .lc-card { transition:none; } .lc-card:hover { transform:none; } }

/* Letter shown when a poster image fails to load (see mssImgError) */
.img-fallback {
  position:absolute; inset:0; display:flex; align-items:center; justify-content:center;
  background:var(--bg-3); color:var(--olive-light); font-family:var(--serif); font-size:clamp(22px, 5vw, 34px);
}

/* Single-choice box built from .sf-check-row — same checkbox look as the
   Genre filter, used for either/or picks like Ranked / Unranked.
   .sf-choice-box    = stacked rows with a title + hint (modals)
   .sf-choice-inline = compact pills (inline on cards / headers) */
.sf-choice-box {
  display:flex; flex-direction:column; overflow:hidden;
  border:0.5px solid var(--border); border-radius:var(--radius-sm); background:var(--bg-3);
}
.sf-choice-box .sf-check-row { padding:11px 14px; gap:12px; transition:background .12s; }
.sf-choice-box .sf-check-row + .sf-check-row { border-top:0.5px solid var(--border); }
.sf-choice-box .sf-check-row:hover { background:var(--card); }
.sf-choice-box .sf-check-row:has(input:checked) { background:var(--olive-faint); }
.sf-choice-text { display:flex; flex-direction:column; gap:2px; min-width:0; }
.sf-choice-text b { font-family:var(--sans); font-size:13.5px; font-weight:600; color:var(--text); transition:color .12s; }
.sf-choice-text small { font-family:var(--sans); font-size:11.5px; font-weight:400; color:var(--text-3); line-height:1.35; }
.sf-check-row input:checked ~ .sf-choice-text b { color:var(--olive-light); font-weight:700; }

.sf-choice-inline { display:inline-flex; gap:6px; flex-wrap:wrap; vertical-align:middle; flex-shrink:0; }
.sf-choice-inline .sf-check-row {
  padding-block:4px;
  padding-inline:6px 11px; gap:7px; border-radius:999px;
  border:0.5px solid var(--border); background:var(--bg-3); transition:background .12s, border-color .12s;
}
.sf-choice-inline .sf-check-row:hover { background:var(--card); border-color:var(--border-olive); }
.sf-choice-inline .sf-check-mark { width:16px; height:16px; border-radius:5px; }
.sf-choice-inline .sf-check-mark svg { width:10px; height:10px; }
.sf-choice-inline .sf-check-row span:last-child { font-size:12px; font-weight:600; }
@media(max-width:640px) {
  .sf-choice-inline .sf-check-row { padding-block:3px; padding-inline:5px 9px; }
  .sf-choice-inline .sf-check-row span:last-child { font-size:11px; }
}

.sf-section-hint { font-family:'Manrope',var(--sans); font-weight:500; font-size:9.5px; letter-spacing:0; text-transform:none; color:var(--text-2); }

.sf-footer { display:flex; gap:10px; padding:16px 20px; border-top:0.5px solid var(--border); flex-shrink:0; }
.sf-clear-btn {
  flex:1; background:none; border:0.5px solid var(--border); border-radius:var(--radius-sm);
  padding:11px 14px; cursor:pointer; font-family:'Manrope',var(--sans); font-weight:500; font-size:13.5px; color:var(--text-2);
  transition:border-color .15s;
}
.sf-clear-btn:hover { border-color:var(--border-olive); }
.sf-apply-btn {
  flex:1.4; background:var(--action-primary-bg); border:0.5px solid var(--action-primary-bg); border-radius:var(--radius-sm);
  padding:11px 14px; cursor:pointer; font-family:'Manrope',var(--sans); font-weight:600; font-size:13.5px; color:var(--text-on-primary);
  transition:background .15s;
}
.sf-apply-btn:hover { background:var(--action-primary-hover); border-color:var(--action-primary-hover); color:var(--bg); }   /* --bg: dark text on the light green (dark mode), light on the dark green */

@media(max-width:520px) {
  .sf-dd .td-dd-menu { max-height:180px; }
  .sf-section-label { font-size:10px; }

}
.fav-use-typed {
  display:block; width:100%; margin:0 0 12px; padding:11px 14px; border-radius:var(--radius-sm); cursor:pointer; text-align:start;
  font-family:'Manrope',var(--sans); font-size:13.5px; font-weight:600;
  background:var(--olive-faint); border:1px dashed var(--border-olive); color:var(--olive-light); overflow-wrap:anywhere;
}
.fav-use-typed:hover { background:var(--olive); border-style:solid; color:var(--text-on-brand); }


/* ── Seasons: bigger blocks, left to right ── */
.td-season-row { display:flex; gap:18px; overflow-x:auto; padding-bottom:14px; }
.td-season-row::-webkit-scrollbar { display:block; height:6px; }
.td-season-row::-webkit-scrollbar-track { background:var(--bg-3); border-radius:3px; }
.td-season-row::-webkit-scrollbar-thumb { background:var(--border-olive); border-radius:3px; }
.td-season-row::-webkit-scrollbar-thumb:hover { background:var(--olive-light); }
.td-season-row { scrollbar-width:thin; scrollbar-color:var(--border-olive) var(--bg-3); }
.td-season-block {
  flex-shrink:0; width:clamp(150px, 19vw, 220px); cursor:pointer; border-radius:var(--radius); overflow:hidden;
  background:var(--card); border:1.5px solid var(--border); transition:border-color .15s;
}
.td-season-block:hover { border-color:var(--border-olive); }
.td-season-block.active { border-color:var(--olive-light); }
.td-season-block-poster { width:100%; aspect-ratio:2/3; background:var(--bg-3); }
.td-season-block-poster img { width:100%; height:100%; object-fit:cover; }
.td-season-block-info { padding:clamp(8px, 1.2vw, 10px) clamp(9px, 1.4vw, 12px); }
.td-season-block-name { font-size:clamp(13px, 1.8vw, 15px); font-weight:500; margin-bottom:3px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.td-season-block-sub { font-size:clamp(11px, 1.5vw, 12.5px); color:var(--text-3); white-space:nowrap; }

/* ── Episode cards — horizontal scroll, image-on-top card ── */
.td-episode-row { display:flex; gap:20px; overflow-x:auto; padding:4px 4px 18px; }
.td-episode-row::-webkit-scrollbar { display:block; height:6px; }
.td-episode-row::-webkit-scrollbar-track { background:var(--bg-3); border-radius:3px; }
.td-episode-row::-webkit-scrollbar-thumb { background:var(--border-olive); border-radius:3px; }
.td-episode-row::-webkit-scrollbar-thumb:hover { background:var(--olive-light); }
.td-episode-row { scrollbar-width:thin; scrollbar-color:var(--border-olive) var(--bg-3); }
.td-episode-card {
  flex-shrink:0; width:clamp(240px, 30vw, 300px);
  background:var(--bg-3); border:0.5px solid var(--border); border-radius:var(--radius);
  overflow:hidden; display:flex; flex-direction:column;
  transition:border-color .15s, transform .15s;
}
.td-episode-card:hover { border-color:var(--border-olive); transform:translateY(-2px); }
.td-ep-still { width:100%; aspect-ratio:16/9; background:var(--bg-3); position:relative; flex-shrink:0; }
.td-ep-still img { width:100%; height:100%; object-fit:cover; display:block; }
.td-ep-num-badge {
  position:absolute; top:10px; inset-inline-start:10px; padding:3px 8px; border-radius:4px;
  font-size:11px; font-weight:600; letter-spacing:.3px;
  background:rgba(0,0,0,0.6); color:#fff; -webkit-backdrop-filter:blur(4px); backdrop-filter:blur(4px);
}
.td-ep-body { padding:16px 18px 18px; display:flex; flex-direction:column; gap:8px; flex:1; }
.td-ep-title { font-size:clamp(14.5px, 1.9vw, 16.5px); font-weight:600; color:var(--text); line-height:1.3; }
.td-ep-meta-row { display:flex; flex-wrap:wrap; align-items:center; gap:6px 10px; font-size:12px; color:var(--text-2); }
.td-ep-meta-row span { display:inline-flex; align-items:center; gap:4px; }
.td-ep-rating { color:var(--olive-light); font-family:var(--bebas); font-size:16px; letter-spacing:.3px; }
.td-ep-meta-row .w-ep-badge, .ep-popup-meta-row .w-ep-badge { font-size:11px; padding:2px 7px; }
.td-ep-overview {
  font-size:12.5px; color:var(--text-2); line-height:1.6;
  display:-webkit-box; -webkit-line-clamp:3; line-clamp:3; -webkit-box-orient:vertical; overflow:hidden;
}

/* Season & Episode pickers (detail.html): the title page's season posters and episode cards, in a panel */
/* Seasons: poster grid */
.fav-season-grid { display:flex; flex-wrap:wrap; justify-content:center; gap:18px; padding:4px 0 8px; }
.fav-season-grid .td-season-block { width:clamp(150px, 22vw, 190px); text-align:start; padding:0; font:inherit; color:inherit; }
.td-season-block.picked, .td-episode-card.picked { border-color:var(--olive-light); box-shadow:0 0 0 2px var(--olive-light); }
/* Episodes: season strip on top, then the episode cards */
.fav-ep-seasons { display:flex; gap:10px; overflow-x:auto; padding:2px 2px 6px; margin-bottom:12px; scrollbar-width:thin; scrollbar-color:var(--border-olive) transparent; }
.fav-ep-seasons .td-season-block { width:128px; text-align:start; padding:0; font:inherit; color:inherit; border-width:1.5px; }
.fav-ep-seasons .td-season-block-info { padding:8px 10px; }
.fav-ep-seasons .td-season-block-name { font-size:13px; margin:0 0 2px; }
.fav-ep-seasons .td-season-block-sub { font-size:11px; }
/* Your own rating on a picker card (detail.html Favorites / Lowlights) — band colour */
.fav-mine { display:inline-flex; align-items:baseline; gap:4px; white-space:nowrap; padding:2px 7px; border-radius:4px; font-family:var(--bebas); font-size:14px; line-height:1.2; letter-spacing:.3px; }
.fav-mine small { font-family:'Manrope',var(--sans); font-size:9px; font-weight:700; letter-spacing:.8px; text-transform:uppercase; }
.td-season-block-info .fav-mine { margin-top:5px; }
.fav-ep-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(230px, 1fr)); gap:14px; margin-top:14px; }
.fav-ep-grid .td-episode-card { width:auto; cursor:pointer; text-align:start; padding:0; font:inherit; color:inherit; }
.fav-ep-group { grid-column:1 / -1; font-family:var(--serif); font-size:12px; letter-spacing:2px; text-transform:uppercase; color:var(--olive-light); margin-top:4px; }


@media(max-width:520px) {
  .fav-season-grid { gap:12px; }
  .fav-season-grid .td-season-block { width:calc(50% - 6px); max-width:200px; }
  .fav-ep-seasons .td-season-block { width:108px; }
  .fav-ep-grid { grid-template-columns:1fr; }
}

.fav-person-grid {
  display:grid; grid-template-columns:repeat(auto-fill, minmax(96px, 1fr)); gap:14px;
  padding:4px 2px 16px; margin-top:14px;
}
.fav-person-card {
  background:none; border:none; cursor:pointer; display:flex; flex-direction:column; align-items:center;
  gap:6px; padding:6px; border-radius:var(--radius-sm); transition:background .15s;
}
.fav-person-card:hover { background:var(--bg-3); }
.fav-person-photo {
  width:76px; height:76px; border-radius:50%; overflow:hidden; background:var(--bg-3);
  display:flex; align-items:center; justify-content:center; font-family:'Oswald',var(--sans);
  font-size:26px; color:var(--text-3);
}
.fav-person-photo img { width:100%; height:100%; object-fit:cover; }
.fav-person-name { font-family:'Manrope',var(--sans); font-weight:600; font-size:12px; color:var(--text); text-align:center; line-height:1.25; }
.fav-person-actor { font-family:'Manrope',var(--sans); font-size:10.5px; color:var(--text-3); text-align:center; line-height:1.2; }

@media(max-width:520px) {
  .fav-person-grid { grid-template-columns:repeat(auto-fill, minmax(80px, 1fr)); gap:10px; }
  .fav-person-photo { width:60px; height:60px; font-size:20px; }
}


.disc-link-sub { margin:0 0 14px; }

/* ═════════════════════════════════════════════════════════════
   §09  Favorite Chips
   ═════════════════════════════════════════════════════════════ */
.fav-chips { display:flex; flex-wrap:wrap; gap:5px; margin-top:7px; }
.fav-chip {
  font-size:13px; color:var(--text-on-brand);
  background:var(--olive); border:0.5px solid var(--olive);
  border-radius:var(--radius-xs); padding:6px 12px;
  display:inline-flex; align-items:center; gap:6px;
}
.fav-chip-label { font-family:'Manrope',var(--sans); font-weight:500; color:rgba(255,255,255,0.75); font-size:12px; letter-spacing:0.5px; }
.fav-chip-val { font-family:'Oswald',var(--sans); font-weight:500; color:#fff; font-size:14px; }
.low-chip {
  color:#fff;
  background:var(--error-solid);
  border-color:var(--error-fg);
}
.low-chip .fav-chip-label { color:rgba(255,255,255,0.75); }

/* ── Completed entry comment blocks ── */.cc-strip {
  display:flex; align-items:center; gap:5px; width:100%; box-sizing:border-box;   /* full card width = big tap target */
  padding:5px 16px; cursor:pointer;
  border:none !important; background:transparent !important;
  outline:none; box-shadow:none !important;
  font-size:11px; color:var(--text-3); font-family:var(--sans);
  transition:color var(--trans) var(--ease);
}
.cc-strip:hover, .cc-strip.open { color:var(--olive-light); }

/* ── Export Studio (export-studio.html, js/export-studio.js): a page like any other — the site's header, the ‹ Back trail, its
   title — with the steps on the left, the preview and the file bar in one card on the right (owner, 3 Dec 2026; it used to be a
   full-screen workspace of its own). On computers and tablets the two cards fill the screen under the title. */
.es-wrap { padding-top:calc(var(--page-pt) - 8px); padding-bottom:40px; }
.es { color:var(--text-body); }
.es-head { display:flex; flex-wrap:wrap; align-items:baseline; gap:0 18px; margin-bottom:16px; }
.es-head .tv-crumb { flex-basis:100%; margin-bottom:4px; }
.es-title { margin:0; padding:0; font-size:36px; color:var(--text-heading); }
.es-mem { margin:0; font:500 13.5px/1.45 'Manrope',var(--sans); color:var(--text-muted); }
.es-main { position:relative; display:grid; gap:0 16px; height:calc(100dvh - var(--page-pt) - 122px); min-height:540px;
  grid-template-columns:clamp(330px, 28vw, 460px) minmax(0, 1fr); grid-template-rows:minmax(0, 1fr) auto; grid-template-areas:"side desk" "side file"; }

/* the steps */
.es-side { grid-area:side; min-height:0; display:flex; flex-direction:column; overflow:hidden; border:1px solid var(--border-default); border-radius:var(--radius-lg); background:var(--surface-section); }
.es-tabs { display:none; }
.es-steps { flex:1; min-height:0; overflow-y:auto; overscroll-behavior:contain; padding:4px clamp(14px, 1.4vw, 20px) 20px; }
.es-step { border-bottom:1px solid var(--border-subtle); }
.es-step:last-child { border-bottom:0; }
.es-step-h { margin:0; }
.es-step-go { display:flex; align-items:center; gap:12px; width:100%; min-height:62px; padding:0; border:0; background:none; color:var(--text-heading); font:inherit; text-align:start; cursor:pointer; }
.es-step-go > svg { flex:none; color:var(--text-muted); transition:transform .15s; }
.es-step.is-open .es-step-go > svg { transform:rotate(180deg); }
.es-num { flex:none; width:30px; height:30px; display:grid; place-items:center; box-sizing:border-box; border-radius:50%; border:1px solid var(--border-strong); color:var(--text-supporting); font:400 18px/1 var(--bebas); padding-top:2px; }
.es-step-go:hover .es-num { border-color:var(--border-selected); color:var(--text-body); }
.es-step.is-open .es-num { background:var(--brand); border-color:var(--brand); color:var(--text-on-brand); }
.es-step-t { font:600 15px/1.2 var(--serif); letter-spacing:.09em; text-transform:uppercase; }
.es-step-go:hover .es-step-t { text-decoration:underline; text-underline-offset:4px; }
.es-step-v { flex:1; min-width:0; text-align:end; font:600 13px/1.3 'Manrope',var(--sans); color:var(--text-supporting); overflow-wrap:anywhere; }
.es-step-b { padding:0 0 24px; }
.es-sec { margin-top:18px; }
.es-sec:first-child { margin-top:2px; }
.es-sec .lyr-sec-h { margin-bottom:8px; }
.es-hint { margin:8px 0 0; font:500 12.5px/1.45 'Manrope',var(--sans); color:var(--text-muted); }
.es-info { display:flex; gap:10px; margin-top:14px; padding:12px 14px; border-radius:var(--radius-sm); border:1px solid var(--info-border); background:var(--info-bg); font:500 12.5px/1.5 'Manrope',var(--sans); color:var(--text-supporting); }
.es-sec .es-info { margin-top:0; }
.es-info svg { flex:none; margin-top:1px; color:var(--info-fg); }
.es-info b { color:var(--text-body); }
.es-seg .lyr-seg-opt { white-space:normal; overflow:visible; line-height:1.15; padding:4px 8px; }
.es-chips { display:flex; flex-wrap:wrap; gap:6px; }
.es-chip { display:inline-flex; align-items:center; gap:7px; min-height:36px; padding:0 14px; border-radius:999px; border:1px solid var(--border-strong); background:var(--surface-card); color:var(--text-supporting); font:700 12.5px 'Manrope',var(--sans); cursor:pointer; transition:border-color .15s, background .15s; }
.es-chip span { font:400 14px/1 var(--bebas); letter-spacing:.02em; color:var(--text-muted); padding-top:1px; }
.es-chip:hover:not(:disabled) { color:var(--text-body); border-color:var(--border-brand); }
.es-chip.on { background:var(--brand); border-color:var(--brand); color:var(--text-on-brand); }
.es-chip.on span { color:var(--p-forest-200); }
.es-chip:disabled { opacity:.45; cursor:default; }
/* What / Format: tiles — the whole subtitle, never cut */
.es-tiles { display:grid; grid-template-columns:repeat(auto-fill, minmax(165px, 1fr)); gap:8px; }
.es-tile { position:relative; display:flex; align-items:center; gap:11px; min-height:62px; padding:10px 12px; border-radius:12px; border:1px solid var(--border-default); background:var(--surface-card); color:var(--text-body);
  text-align:start; font:inherit; cursor:pointer; transition:border-color .15s, background .15s, translate .15s; }
.es-tile:hover { border-color:var(--border-brand); translate:0 -1px; }
.es-tile-ic { flex:none; width:36px; height:36px; display:grid; place-items:center; border-radius:10px; background:var(--selected-bg); color:var(--selected-fg); }
.es-tile-t { min-width:0; display:flex; flex-direction:column; gap:2px; }
.es-tile-t b { font:700 13.5px/1.2 'Manrope',var(--sans); }
.es-tile-t small { font:500 11.5px/1.3 'Manrope',var(--sans); color:var(--text-muted); overflow-wrap:anywhere; }
.es-tile.on { border-color:var(--border-selected); background:var(--selected-bg); box-shadow:inset 0 0 0 1px var(--border-selected); }
.es-tile.on .es-tile-ic { background:var(--brand); color:var(--text-on-brand); }
.es-tile.on .es-tile-t small { color:var(--text-supporting); }
.es-tile[aria-disabled="true"] { cursor:not-allowed; background:transparent; border-style:dashed; translate:none; }
.es-tile[aria-disabled="true"] .es-tile-t b, .es-tile[aria-disabled="true"] .es-tile-ic { opacity:.5; }
.es-tile[aria-disabled="true"]:hover { border-color:var(--border-default); }
.es-more { margin-top:20px; border-top:1px solid var(--border-subtle); }
.es-more summary { display:flex; align-items:center; justify-content:space-between; gap:10px; min-height:50px; list-style:none; cursor:pointer; font:700 13px/1.35 'Manrope',var(--sans); color:var(--action-tertiary-fg); }
.es-more summary::-webkit-details-marker { display:none; }
.es-more summary svg { flex:none; color:currentColor; transition:transform .15s; }
.es-more[open] summary svg { transform:rotate(180deg); }
.es-prompt { height:auto; min-height:96px; margin-top:8px; padding:10px 14px; line-height:1.5; resize:vertical; font-size:13.5px; }
.es-loading { padding:40px 0; text-align:center; color:var(--text-muted); font-size:13px; }
.es-failed { display:flex; flex-direction:column; align-items:center; gap:8px; color:var(--text-supporting); }
.es-failed b { font-size:15px; color:var(--text-body); }
/* scores in the pickers (mssScoreHTML: the tier colour) */
.es-steps .xs-pk-text small .msf-score { font-size:inherit; }
.es-sc { flex:none; font:700 12.5px 'Manrope',var(--sans); }

/* the preview: the page's own colours, the file it makes in the middle */
.es-desk { grid-area:desk; position:relative; min-width:0; min-height:0; display:flex; flex-direction:column; overflow:hidden; border:1px solid var(--border-default); border-bottom:0;
  border-radius:var(--radius-lg) var(--radius-lg) 0 0; background:var(--surface-section); color:var(--text-body); }
.es-desk-bar { position:relative; flex:none; display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:58px; padding:8px clamp(12px, 1.4vw, 18px); }
.es-desk-l { display:flex; align-items:center; gap:10px; font:600 11px var(--serif); letter-spacing:.2em; text-transform:uppercase; color:var(--text-link); }
.es-desk-l::before { content:''; width:8px; height:8px; border-radius:50%; background:var(--action-primary-bg); }
.es-desk-l span { letter-spacing:.02em; text-transform:none; font:600 12.5px 'Manrope',var(--sans); color:var(--text-muted); }
.es-tools { display:flex; gap:6px; padding:4px; border-radius:12px; background:var(--surface-card); border:1px solid var(--border-default); }
.es-tool { width:40px; height:40px; display:grid; place-items:center; border-radius:9px; border:0; background:transparent; color:var(--text-body); cursor:pointer; }
.es-tool:hover:not(:disabled) { background:var(--fill-subtle); }
.es-tool:disabled { opacity:.35; cursor:default; }
.es-tool[hidden], .es-unfull { display:none; }
.es-tools:not(:has(.es-tool:not([hidden]):not(.es-unfull))) { display:none; }
.es-fullbtn { display:none; }
.es-stage { position:relative; flex:1; min-height:0; overflow:auto; overscroll-behavior:contain; display:flex; padding:0 clamp(12px, 1.6vw, 22px) clamp(14px, 1.8vw, 24px); }
.es-stage > * { margin:auto; }
.es-stage.is-updating .es-pages { opacity:.55; transition:opacity .2s; }
.es-pages { display:flex; align-items:center; justify-content:center; gap:clamp(14px, 2vw, 28px); }
.es-sheet { display:block; height:auto; border-radius:4px; border:1px solid var(--border-strong); background:var(--surface-card); }
.es-sheet.is-skel { width:min(46vh, 380px); aspect-ratio:210 / 297; }
.es-nextpg { padding:0; border:0; background:none; cursor:pointer; opacity:.45; transition:opacity .15s; }
.es-nextpg:hover { opacity:.8; }
.es-imgwrap { display:flex; }
.es-img { display:block; border-radius:8px; border:1px solid var(--border-strong); }
.es-paper { width:min(100%, 720px); box-sizing:border-box; padding:18px; border-radius:var(--radius); border:1px solid var(--border-default); background:var(--surface-card); }
.es-text { margin:0; max-height:none; font:12px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color:var(--text-supporting); white-space:pre-wrap; overflow-wrap:anywhere; }
.es-bk { display:grid; grid-template-columns:repeat(auto-fit, minmax(130px, 1fr)); gap:8px; }
.es-bk span { padding:16px; border-radius:var(--radius-sm); background:var(--surface-section); border:1px solid var(--border-subtle); }
.es-bk b { display:block; font:400 34px/1 var(--bebas); color:var(--text-link); }
.es-bk small { display:block; margin-top:6px; font:600 11px var(--serif); letter-spacing:.14em; text-transform:uppercase; color:var(--text-muted); }
.es-msg { display:flex; flex-direction:column; align-items:center; gap:8px; max-width:340px; text-align:center; color:var(--text-muted); font:500 13px/1.5 'Manrope',var(--sans); }
.es-msg .mss-es-art { width:150px; height:110px; }
.es-msg b { font:600 19px var(--serif); color:var(--text-heading); }
/* A title: the profile's Top Favorites tile (.pf-fav / .mh-fav) — always on a photo, so the tier colours are the dark ones (theme.css) */
.es-fav { position:relative; isolation:isolate; display:flex; flex-direction:column; justify-content:flex-end; align-items:flex-start; width:min(640px, 100%); aspect-ratio:16 / 10; max-height:100%;
  padding:clamp(18px, 3vw, 30px) clamp(18px, 3vw, 34px); box-sizing:border-box; border-radius:22px; overflow:hidden; background:#122619; color:#fff;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.10); }
.es-fav-bg { position:absolute; inset:0; z-index:-2; background-size:cover; background-position:50% 25%; opacity:0; transform-origin:50% 25%; transition:opacity .3s var(--ease); }
.es-fav-bg.in { opacity:1; }
.es-fav-bg.is-poster { filter:blur(18px) saturate(1.1); scale:1.2; }
.es-fav-shade { position:absolute; inset:0; z-index:-1; background:linear-gradient(0deg, rgba(4,19,10,.92) 0%, rgba(4,19,10,.45) 38%, rgba(4,19,10,0) 68%), linear-gradient(90deg, rgba(4,19,10,.5) 0%, rgba(4,19,10,0) 58%); }
.es-fav-tx { display:flex; flex-direction:column; gap:6px; min-width:0; max-width:100%; }
.es-fav:has(.es-fav-ring) .es-fav-tx { padding-inline-end:clamp(100px, 16vw, 140px); }
.es-fav-meta { font:600 12px 'Manrope',var(--sans); letter-spacing:.3px; color:rgba(255,255,255,.74); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.es-fav-title { font:600 clamp(26px, 3.4vw, 42px)/1.08 var(--serif); padding-bottom:.1em; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; overflow-wrap:anywhere; }
.es-fav-next { display:inline-flex; align-items:center; gap:6px; align-self:flex-start; margin-top:4px; min-height:28px; padding:0 11px; border-radius:999px; background:rgba(4,19,10,.62);
  border:1px solid rgba(255,255,255,.16); font:700 11.5px 'Manrope',var(--sans); color:#E9E4D2; }
.es-fav-ring { position:absolute; inset-inline-end:clamp(18px, 3vw, 34px); bottom:clamp(18px, 3vw, 30px); display:flex; }
.es-fav-ring .tv-ring { width:clamp(84px, 11vw, 112px); } .es-fav-ring .tv-ring b { font-size:clamp(28px, 3.6vw, 38px); }

/* the file bar (→ the progress bar while it builds) */
.es-file { grid-area:file; border:1px solid var(--border-default); border-radius:0 0 var(--radius-lg) var(--radius-lg); background:var(--surface-card); padding:12px clamp(12px, 1.4vw, 18px); }
.es-file-idle { display:flex; align-items:center; gap:10px; }
.es-file-idle[hidden], .es-prog[hidden], .es-done[hidden], .es-btn[hidden] { display:none; }
.es-file-t { flex:1; min-width:0; display:flex; flex-direction:column; gap:2px; padding-inline-start:14px; border-inline-start:3px solid var(--border-selected); }
.es-file-t b { font:600 15px/1.25 var(--serif); letter-spacing:.01em; color:var(--text-heading-2); }
.es-file-t small { font:500 12px/1.35 'Manrope',var(--sans); color:var(--text-muted); }
.es-btn { display:inline-flex; align-items:center; justify-content:center; gap:7px; min-height:44px; padding:0 16px; border-radius:var(--radius-sm); border:1px solid var(--action-secondary-border); background:var(--action-secondary-bg); color:var(--text-body); font:700 13.5px 'Manrope',var(--sans); cursor:pointer; white-space:nowrap; }
.es-btn:hover:not(:disabled) { background:var(--action-secondary-hover); }
.es-btn.is-primary { background:var(--action-primary-bg); border-color:var(--action-primary-bg); color:var(--text-on-primary); }
.es-btn.is-primary:hover:not(:disabled) { background:var(--action-primary-hover); border-color:var(--action-primary-hover); }
.es-btn.is-primary:active:not(:disabled) { background:var(--action-primary-pressed); }
.es-btn:disabled { background:var(--disabled-bg); border-color:var(--disabled-bg); color:var(--disabled-fg); cursor:default; }
.es-go { min-width:160px; min-height:48px; font-size:14px; }
.es-prog { display:grid; grid-template-columns:minmax(0, 1fr) auto; align-items:center; gap:6px 14px; }
.es-prog-top { display:flex; justify-content:space-between; gap:12px; font:600 13px 'Manrope',var(--sans); color:var(--text-supporting); }
.es-prog-top b { font:400 20px/1 var(--bebas); color:var(--text-link); font-variant-numeric:tabular-nums; }
.es-prog-bar { grid-column:1; height:10px; border-radius:999px; background:var(--fill-subtle); overflow:hidden; }
.es-prog-bar i { display:block; height:100%; width:0; border-radius:inherit; background:linear-gradient(90deg, var(--p-forest-600), var(--p-forest-400)); transition:width .25s var(--ease); }
.es-prog .es-btn { grid-column:2; grid-row:1 / span 2; }

/* the done screen */
.es-done { position:absolute; inset:0; z-index:5; display:grid; place-items:center; padding:20px; overflow:auto; border-radius:var(--radius-lg); border:1px solid var(--border-default); background:var(--surface-section); }
.es-done-card { width:min(480px, 100%); display:flex; flex-direction:column; gap:10px; padding:clamp(20px, 3vw, 30px); box-sizing:border-box; border-radius:var(--radius-lg); border:1px solid var(--border-strong); background:var(--surface-modal); }
.es-done-top { display:flex; align-items:center; gap:20px; margin-bottom:8px; }
.es-done-th { flex:none; width:118px; border-radius:8px; overflow:hidden; border:1px solid var(--border-strong); background:var(--surface-card); box-shadow:0 16px 30px -16px rgba(0,0,0,.6); }
.es-done-th img { display:block; width:100%; height:auto; }
.es-done-th.is-icon { aspect-ratio:3/4; display:grid; place-items:center; color:var(--text-link); }
.es-done-txt { min-width:0; }
.es-done-ok { width:44px; height:44px; display:grid; place-items:center; border-radius:50%; background:var(--success-bg); border:1px solid var(--success-border); color:var(--success-fg); margin-bottom:12px; }
.es-done-txt h3 { margin:0; font:600 clamp(26px, 3vw, 32px)/1.05 var(--serif); color:var(--text-heading); }
.es-done-txt h3:focus { outline:none; }
.es-done-txt p { margin:6px 0 0; font:500 13px/1.45 'Manrope',var(--sans); color:var(--text-supporting); overflow-wrap:anywhere; }
.es-done-card > .es-btn { width:100%; min-height:48px; }

.es-step-go:focus-visible, .es-chip:focus-visible, .es-tile:focus-visible, .es-more summary:focus-visible,
.es-btn:focus-visible, .es-tab:focus-visible, .es-text:focus-visible, .es-tool:focus-visible, .es-nextpg:focus-visible { outline:2px solid var(--focus-ring); outline-offset:2px; }

@media (max-width:1100px) { .es-copy span { display:none; } .es-copy { width:44px; padding:0; } .es-go { min-width:0; } }
/* tablets: the cards end above the bottom bar */
@media (min-width:768px) and (max-width:1199px) { .es-wrap { padding-bottom:var(--bnav-top); } .es-main { height:calc(100dvh - var(--page-pt) - 78px - var(--bnav-top)); } .es-head .tv-crumb, .es-title { display:none; } .es-head { margin-bottom:12px; } }
/* phones: one page that scrolls — the preview stays under the top bar (tap → full screen), the steps as three tabs, the file bar
   just above the bottom bar. The top bar has Back and the page's name. */
@media (max-width:767px) {
  .es-wrap { padding-bottom:calc(var(--bnav-top) + 34px); }
  .es-head { display:none; }
  .es-main { display:flex; flex-direction:column; height:auto; min-height:0; }
  .es-desk { order:-1; flex:none; position:sticky; top:calc(var(--shell-b) + 4px); z-index:3; height:31dvh; border-bottom:1px solid var(--border-default); border-radius:var(--radius-lg); }
  .es-main::before { order:-2; flex:none; content:''; position:sticky; top:0; z-index:2; display:block; height:calc(var(--shell-b) + 31dvh + 4px); margin:calc(8px - var(--page-pt)) calc(-1 * var(--page-px)) calc(var(--page-pt) - 12px - var(--shell-b) - 31dvh); background:var(--bg-app); }   /* the options pass behind the preview, not beside its corners */
  .es-side { overflow:visible; border:0; border-radius:0; background:none; }
  .es-desk-bar { position:absolute; inset:auto 0 0 0; z-index:2; min-height:0; padding:8px 10px; pointer-events:none; }
  .es-desk-bar > * { pointer-events:auto; }
  .es-desk-l { font-size:0; gap:0; }
  .es-desk-l::before { display:none; }
  .es-desk-l span { margin:0; padding:4px 10px; border-radius:999px; border:1px solid var(--border-default); background:var(--surface-card); font:700 11.5px 'Manrope',var(--sans); color:var(--text-body); }
  .es-tools { display:none; }
  .es-fullbtn:not([hidden]) { display:grid; position:absolute; z-index:3; inset-inline-end:8px; bottom:8px; width:44px; height:44px; border-radius:12px; background:var(--surface-card); border:1px solid var(--border-default); }
  .es-stage { padding:10px 10px 12px; cursor:zoom-in; }
  .es-desk.is-full { position:fixed; inset:0; z-index:1900; height:auto; border:0; border-radius:0; }
  .es-desk.is-full .es-desk-bar { position:static; padding:calc(8px + env(safe-area-inset-top)) 10px 8px; border-bottom:1px solid var(--border-default); background:var(--surface-card); }
  .es-desk.is-full .es-desk-l span { border:0; background:none; padding:0; font-size:13px; }
  .es-desk.is-full .es-tools { display:flex; }
  .es-desk.is-full .es-unfull { display:grid; }
  .es-desk.is-full .es-fullbtn { display:none; }
  .es-desk.is-full .es-stage { padding:12px; cursor:auto; }
  .es-tool { width:44px; height:44px; }
  .es-fav { aspect-ratio:auto; height:100%; width:100%; border-radius:16px; padding:14px 16px; }
  .es-fav-title { font-size:22px; }
  .es-fav-next { display:none; }
  .es-fav:has(.es-fav-ring) .es-fav-tx { padding-inline-end:84px; }
  .es-fav-ring { inset-inline-end:14px; bottom:14px; } .es-fav-ring .tv-ring { width:70px; } .es-fav-ring .tv-ring b { font-size:24px; }
  /* the steps: a segmented control (the site's --segment-*), the number in Bebas */
  .es-tabs { display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:4px; margin:12px 0 6px; padding:4px; border-radius:12px; background:var(--segment-track); }
  .es-tab { display:flex; align-items:center; justify-content:center; gap:7px; min-height:42px; border-radius:9px; border:0; background:none; color:var(--text-supporting); font:700 13px 'Manrope',var(--sans); cursor:pointer; }
  .es-tab i { font:400 17px/1 var(--bebas); font-style:normal; color:var(--text-muted); padding-top:2px; }
  .es-tab.on { background:var(--segment-selected-bg); color:var(--segment-selected-fg); }
  .es-tab.on i { color:var(--p-forest-200); }
  .es-steps { overflow:visible; padding:4px 0 18px; }
  .es-step { border:0; }
  .es-step:not(.is-open), .es-step-h { display:none; }
  .es-step-b { padding-top:10px; }
  .es-tiles { grid-template-columns:minmax(0, 1fr); }
  .es-file { position:sticky; bottom:calc(var(--bnav-top) + 34px); z-index:3; padding:8px; border-radius:16px; border-color:var(--border-strong); }
  .es-file-idle { gap:8px; }
  .es-file-t { padding-inline-start:10px; }
  .es-file-t b { font-size:13px; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
  .es-file-t small { display:none; }
  .es-file .es-btn { padding:0 14px; }
  .es-file :is(.es-copy, #esAlt) { width:44px; padding:0; }
  .es-file :is(.es-copy, #esAlt) span { display:none; }
  .es-done { position:fixed; inset:0; z-index:1900; border:0; border-radius:0; }
  .es-chip, .lyr-seg.is-strong .lyr-seg-opt { min-height:44px; }
  .es-done-top { flex-direction:column; align-items:flex-start; }
}
@media (prefers-reduced-motion:reduce) {
  .es-prog-bar i, .es-stage.is-updating .es-pages, .es-nextpg, .es-more summary svg, .es-step-go > svg, .es-tile, .es-fav-bg { transition:none; }
  .es-tile:hover { translate:none; }
}

/* shared with List Studio and Create Card: switches and fields */
.xs-switches { display:flex; flex-direction:column; border:1px solid var(--border); border-radius:var(--radius); overflow:hidden; background:var(--bg-3); }
.xs-switch { display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:52px; padding:9px 14px; border:none; background:none; color:var(--text); text-align:start; font:inherit; cursor:pointer; }
.xs-switch + .xs-switch { border-top:0.5px solid var(--border); }
.xs-switch-text { display:flex; flex-direction:column; gap:1px; min-width:0; }
.xs-switch-text b { font-size:13px; font-weight:600; }
.xs-switch-text small { font-size:11.5px; color:var(--text-2); }
.xs-switch i { flex:none; width:38px; height:22px; border-radius:999px; background:var(--border-2); position:relative; transition:background .15s; }
.xs-switch i::after { content:''; position:absolute; top:3px; inset-inline-start:3px; width:16px; height:16px; border-radius:50%; background:#fff; transition:transform .18s var(--ease); }
.xs-switch[aria-checked="true"] i { background:var(--toggle-track-on); }
.xs-switch[aria-checked="true"] i::after { transform:translateX(16px); }
[dir="rtl"] .xs-switch[aria-checked="true"] i::after { transform:translateX(-16px); }
.xs-switch:focus-visible { outline:2px solid var(--olive-light); outline-offset:2px; }
@media (prefers-reduced-motion:reduce) { .xs-switch i, .xs-switch i::after { transition:none; } }
.xs-input { width:100%; box-sizing:border-box; height:44px; padding:0 14px; border-radius:var(--radius-sm); border:1px solid var(--border-input); background:var(--bg-3); color:var(--text); font:500 14px 'Manrope',var(--sans); outline:none; }
.xs-input:focus { border-color:var(--olive-light); }

/* Export Studio — Pick titles, a list, which show, which title */
.xs-pk-filter { margin:10px 0 8px; }
.xs-pk-bar { display:flex; justify-content:space-between; align-items:center; gap:8px; flex-wrap:wrap; font-size:12px; color:var(--text-3); margin-bottom:6px; }
.xs-pk-bar > span:last-child { display:flex; gap:10px; }
.xs-pk-list, .xs-ls-list { max-height:300px; overflow-y:auto; overscroll-behavior-y:contain; border:1px solid var(--border); border-radius:var(--radius); background:var(--bg-3); }
.xs-pk-row, .xs-ls-row { display:flex; align-items:center; gap:10px; width:100%; padding:8px 10px; border:none; background:none; color:var(--text); font:inherit; text-align:start; cursor:pointer; }
.xs-pk-row + .xs-pk-row, .xs-ls-row + .xs-ls-row { border-top:0.5px solid var(--border); }
.xs-pk-row:hover, .xs-ls-row:hover { background:var(--olive-faint); }
.xs-pk-row.on, .xs-ls-row.on { background:var(--olive-faint); }
.xs-pk-th { flex:none; width:30px; height:45px; border-radius:4px; overflow:hidden; background:var(--bg-2); display:grid; place-items:center; color:var(--text-3); font-family:'Oswald',var(--sans); font-weight:600; font-size:13px; }
.xs-pk-th img { width:100%; height:100%; object-fit:cover; }
.xs-pk-text { flex:1; min-width:0; display:flex; flex-direction:column; gap:1px; }
.xs-pk-text b { font-size:13.5px; font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.xs-pk-text small { font-size:11.5px; color:var(--text-3); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.xs-pk-box { flex:none; width:22px; height:22px; border-radius:6px; border:1.5px solid var(--border-2); display:grid; place-items:center; color:#fff; }
.xs-pk-row.on .xs-pk-box, .xs-ls-row.on .xs-pk-box { background:var(--toggle-track-on); border-color:var(--toggle-track-on); }
.xs-ls-row .xs-pk-box { border-radius:50%; }
.xs-pk-none { padding:20px; text-align:center; font-size:12.5px; color:var(--text-3); }
.xs-pk-label { margin-top:14px; }
.xs-pk-picks { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:4px; }
.xs-pk-picks li { display:flex; align-items:center; gap:6px; padding:5px 6px 5px 10px; border-radius:var(--radius-sm); background:var(--bg-3); border:1px solid var(--border); }
.xs-pk-n { flex:none; min-width:20px; font-family:var(--bebas); font-size:17px; line-height:1; color:var(--olive-light); }
.xs-pk-pt { flex:1; min-width:0; font-size:13px; font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.xs-pk-mv { flex:none; width:30px; height:30px; display:grid; place-items:center; border-radius:6px; border:none; background:none; color:var(--text-2); cursor:pointer; }
.xs-pk-mv:hover:not(:disabled) { background:var(--bg-2); color:var(--text); }
.xs-pk-mv:disabled { opacity:.3; cursor:default; }
.xs-ls-q { margin-bottom:8px; }
.xs-ls-h { position:sticky; top:0; z-index:1; padding:8px 10px 6px; background:var(--bg-3); font-family:'Oswald',var(--sans); font-size:11px; font-weight:600; letter-spacing:1.4px; text-transform:uppercase; color:var(--text-3); border-bottom:0.5px solid var(--border); }
.xs-pk-row:focus-visible, .xs-ls-row:focus-visible, .xs-pk-mv:focus-visible { outline:2px solid var(--olive-light); outline-offset:-2px; }
.xs-ls-row .es-tile-ic { width:30px; height:30px; }

/* ── Friend comments inbox ── *//* Items 3/4/5: Touch — pause always visible, grid pause always visible */

/* ═════════════════════════════════════════════════════════════
   §10  Watchlist Grid
   ═════════════════════════════════════════════════════════════ */
/* ═════════════════════════════════════════════════════════════
   §11  Completed List
   ═════════════════════════════════════════════════════════════ */.fv-rank-meta { display:flex; gap:6px; align-items:center; flex-wrap:wrap; }

/* ═════════════════════════════════════════════════════════════
   §12  Genre, Type & Status Badges
   ═════════════════════════════════════════════════════════════ */
.genre-dot, .type-label, .w-ep-badge, .cat-badge {
  font-family:var(--sans); font-weight:600;
  font-size:var(--badge-font-size);
  padding:clamp(2px, 0.5vw, 3px) clamp(6px, 1.6vw, 9px);
  border-radius:3px;
  color:#fff; letter-spacing:0.3px;
  white-space:nowrap; flex-shrink:0; display:inline-block;
}
.genre-dot, .w-ep-badge, .cat-badge {
  background:var(--olive); border:0.5px solid var(--olive);
}
/* Score in the grid-card badge row (Currently Watching) — reads off
   the same shared --badge-font-size scale as the badges beside it. */

/* Movie variant of the type tag — its own color, distinct from genre
   tags (olive) and the TV variant (blue) below, so all three read
   apart from each other at a glance. */
.type-label {
  background:var(--movie-solid); border:0.5px solid var(--movie-solid);
}
/* TV-show variant of the type tag — same shape/weight/scaling, just
   the second accent color (a darker, solid-fill-safe blue — the
   lighter --tv-accent is meant for text-on-tint, not a solid
   background) so Movie vs TV Show reads apart at a glance. */
.type-label-tv {
  background:var(--tv-solid); border-color:var(--tv-solid); color:#fff;
}

/* ── Picker rows and search (.fav-picker-*: List Studio, Export Studio, notification settings) ── */
.fav-picker-hd {
  display:flex;align-items:center;justify-content:space-between;
  padding:16px 20px;border-bottom:0.5px solid var(--border);flex-shrink:0;
}
.fav-picker-title {
  font-family:var(--serif);font-size:18px;font-weight:500;
}
.fav-picker-count {
  font-size:11px;color:var(--text-3);margin-inline-start:8px;
}
.fav-picker-close { background:none;border:none;color:var(--text-3);font-size:20px;cursor:pointer; }
.fav-picker-search-wrap {
  padding:12px 20px; border-bottom:0.5px solid var(--border); flex-shrink:0;
  position:relative;
}
.fav-picker-search-wrap svg {
  position:absolute; inset-inline-start:32px; top:50%; transform:translateY(-50%);
  width:14px; height:14px; color:var(--text-3); pointer-events:none;
}
.fav-picker-search-input {
  width:100%; box-sizing:border-box; padding-block:9px; padding-inline:34px 14px;
  border-radius:var(--radius-sm); border:1px solid var(--border-input);
  background:var(--bg-3); color:var(--text); font-family:var(--sans);
  /* 16px minimum keeps iOS from auto-zooming the page on focus */
  font-size:16px; outline:none; transition:border-color .15s;
}
.fav-picker-search-input:focus { border-color:var(--olive-light); }
.fav-picker-search-input::placeholder { color:var(--text-3); }
.fav-picker-empty {
  padding:2rem 20px; text-align:center; font-size:13px; color:var(--text-3);
}
.fav-picker-list { overflow-y:auto;overscroll-behavior-y:contain;flex:1;padding:8px 0; }
.fav-picker-item {
  display:flex;align-items:center;gap:16px;padding:14px 20px;
  cursor:pointer;transition:background .12s;border-bottom:0.5px solid var(--border);
}
.fav-picker-item:hover { background:var(--olive-faint); }
.fav-picker-item.selected { background:var(--olive-faint); }
.fav-picker-poster {
  width:52px;height:72px;border-radius:var(--radius-sm);overflow:hidden;
  flex-shrink:0;background:var(--bg-3);display:flex;align-items:center;
  justify-content:center;font-family:var(--serif);font-size:20px;
  color:var(--text-3);position:relative;
}
.fav-picker-poster img { width:100%;height:100%;object-fit:cover; }
.fav-picker-info { flex:1;min-width:0; }
.fav-picker-name { font-size:15px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis; }
.fav-picker-sub  { font-size:12px;color:var(--text-3);margin-top:3px; }
.fav-picker-score { font-family:var(--bebas);font-size:22px;font-weight:400;color:var(--olive-light);flex-shrink:0; }
.fav-picker-check {
  width:26px;height:26px;border-radius:50%;border:1.5px solid var(--border-2);
  flex-shrink:0;display:flex;align-items:center;justify-content:center;font-size:13px;
}
.fav-picker-item.selected .fav-picker-check {
  background:var(--brand-hover);border-color:var(--olive-light);color:var(--text-on-brand);
}
.fav-drag-handle {
  flex-shrink:0;width:16px;height:28px;margin-inline-end:-4px;
  display:flex;align-items:center;justify-content:center;
  color:var(--text-3);cursor:grab;touch-action:none;-webkit-user-select:none; user-select:none;
  transition:color .12s;
}
.fav-drag-handle:hover { color:var(--olive-light); }
.fav-drag-handle:active { cursor:grabbing; }
.fav-picker-item.dragging {
  background:var(--olive-faint);
  border-radius:var(--radius-sm);
}
.fav-picker-footer {
  padding:12px 20px;border-top:0.5px solid var(--border);
  display:flex;gap:10px;flex-shrink:0;
}
.fav-picker-save {
  flex:1;padding:11px;border-radius:var(--radius-sm);
  background:var(--action-primary-bg);color:var(--text-on-primary);border:none;
  font-size:14px;font-weight:500;cursor:pointer;font-family:var(--sans);
  transition:background .15s;
}
.fav-picker-save:hover { background:var(--action-primary-hover); }
.fav-picker-cancel {
  padding:11px 20px;border-radius:var(--radius-sm);
  background:transparent;color:var(--text-2);
  border:0.5px solid var(--border-2);font-size:14px;
  cursor:pointer;font-family:var(--sans);transition:all .15s;
}
.fav-picker-cancel:hover { border-color:var(--border-olive);color:var(--text); }
@media(max-width:600px) {
  .fav-picker-item { padding:11px 16px;gap:12px; }
  .fav-picker-poster { width:44px;height:62px;font-size:17px; }
  .fav-picker-name { font-size:14px; }
  .fav-picker-sub { font-size:11px; }
  .fav-picker-score { font-size:17px; }
  .fav-picker-check { width:24px;height:24px; }
  .fav-picker-search-wrap { padding:10px 16px; }
  .fav-picker-search-wrap svg { inset-inline-start:28px; }
}
@media(max-width:400px) {
  .fav-picker-item { padding:9px 12px;gap:10px; }
  .fav-picker-poster { width:38px;height:54px;font-size:15px; }
  .fav-picker-name { font-size:13px; }
  .fav-picker-score { font-size:15px; }
  .fav-picker-search-wrap { padding:9px 12px; }
  .fav-picker-search-wrap svg { inset-inline-start:24px; }
  .fav-picker-search-input { padding-block:8px; padding-inline:30px 12px; }
}

/* ── Favorites shared (favorites.html, profile, profile-view) ── */
.fav-page-list-title {
  font-family:var(--serif);font-size:18px;font-weight:500;color:var(--text-heading);
}
.fav-page-list-header {
  display:flex;align-items:center;justify-content:space-between;margin-bottom:0.75rem;
}

.fav-cat-btn {
  flex:1;min-width:80px;padding:10px 8px;text-align:center;
  border-radius:var(--radius-sm);border:0.5px solid var(--border);
  background:var(--card);color:var(--text-2);font-size:12px;font-weight:500;
  cursor:pointer;transition:all .15s;font-family:var(--sans);
}
.fav-cat-btn.active {
  background:var(--olive-faint);border-color:var(--border-olive);color:var(--olive-light);
}

@media(max-width:600px) {

  .fav-page-list-title { font-size:16px; }

}

/* ── Favorite Sections popup grid ── */

/* Tablet (641–1024px): CSS grid wrapping, contained scroll, no nav buttons */
@media(min-width:641px) and (max-width:1024px) {
  .fav-grid-container::-webkit-scrollbar { width:4px; }
  .fav-grid-container::-webkit-scrollbar-thumb { background:var(--border-olive); border-radius:2px; }
  .fav-grid-container .grid-nav-btn { display:none !important; }
}

/* Mobile (≤640px): 2-col grid, matching the same breakpoint used
   site-wide for Watching/Watchlist/Completed grids */
@media(max-width:640px) {
  .fav-grid-container::-webkit-scrollbar { width:4px; }
  .fav-grid-container::-webkit-scrollbar-thumb { background:var(--border-olive); border-radius:2px; }
  .fav-grid-container .grid-nav-btn { display:none !important; }
}

/* ── Favorites grid container (fixed height, vertical scroll on wrap) ── */
.fav-grid-container {
  position:relative;
}
@media(min-width:641px) and (max-width:1024px) {
  .fav-grid-container {
    max-height:680px;overflow-y:auto;overscroll-behavior-y:contain;overflow-x:hidden;
    scrollbar-width:thin;scrollbar-color:var(--border-olive) transparent;
    padding-inline-end:2px;
  }
  .fav-grid-container::-webkit-scrollbar { width:4px; }
  .fav-grid-container::-webkit-scrollbar-thumb { background:var(--border-olive);border-radius:2px; }
}
@media(max-width:640px) {
  .fav-grid-container {
    max-height:580px;overflow-y:auto;overscroll-behavior-y:contain;overflow-x:hidden;
    scrollbar-width:thin;scrollbar-color:var(--border-olive) transparent;
    padding-inline-end:2px;
  }
  .fav-grid-container::-webkit-scrollbar { width:4px; }
  .fav-grid-container::-webkit-scrollbar-thumb { background:var(--border-olive);border-radius:2px; }
}
@media(max-width:400px) {
  .fav-grid-container { max-height:500px; }
}

/* Nav arrows */

/* ── Fav edit button (shared) ── */
.fav-edit-btn {
  display:inline-flex;align-items:center;gap:6px;
  padding:8px 18px;border-radius:var(--radius-sm);
  border:0.5px solid var(--border-olive);
  background:transparent;color:var(--olive-light);
  font-size:12px;font-weight:500;cursor:pointer;
  transition:background .15s;font-family:var(--sans);
}
.fav-edit-btn:hover { background:var(--olive-faint); }
@media(max-width:640px) { .fav-edit-btn { font-size:11px;padding:6px 12px; } }

/* ═════════════════════════════════════════════════════════════
   §13  Modals & Overlays
   ═════════════════════════════════════════════════════════════ */

/* Popup cards get focus when they open (MSSDialog, config.js) so keyboard
   users start inside the popup — no ring on the card itself. */
[role="dialog"][tabindex="-1"]:focus { outline:none; }

/* ═════════════════════════════════════════════════════════════
   §14  Confirm Dialog
   ═════════════════════════════════════════════════════════════ */
/* One card for every confirm (showConfirm + Drop). Desktop / tablet: a 400px modal; on narrow
   screens (< 560px) a card anchored to the bottom with a drag handle, main action on top.
   Solid surface, never glass. Other popups that still borrow .confirm-card (rename, guest gate,
   date range…) keep their centred layout until they're converted; .is-confirm is the new layout. */
.confirm-overlay {
  position:fixed; inset:0; z-index:2100;   /* above every popup, so it always shows on top */
  background:var(--scrim);
  display:none; align-items:center; justify-content:center; padding:20px;
}
.confirm-overlay.is-over { background:var(--scrim-over); }      /* over an open panel / popup */
.confirm-overlay.open { display:flex; animation:fadeIn .2s ease-out; }
/* Blocking pages (birthday, age lock, suspended, a username that has to change): the page itself, not a pop-up —
   the site's own background, a centred 480px card on desktop, the full screen on phones */
.confirm-overlay.mss-block { background:var(--bg); }
.mss-block .confirm-card { max-width:480px; }
@media (max-width:559px) {
  .confirm-overlay.mss-block { padding:0; align-items:stretch; }
  .mss-block .confirm-card { max-width:none; border:0; border-radius:0; justify-content:center; padding:calc(24px + env(safe-area-inset-top)) 20px calc(26px + env(safe-area-inset-bottom)); }
}
.confirm-overlay.is-leaving { animation:fadeOut .12s ease-in forwards; }
.confirm-card {
  background:var(--panel); border:1px solid var(--border-2);
  border-radius:16px; padding:24px; max-width:400px; width:100%;
  text-align:center; display:flex; flex-direction:column; align-items:center; gap:12px;
  animation:cfIn .18s var(--layer-in);
}
.confirm-icon { color:var(--text-3); }
.confirm-icon svg { width:36px; height:36px; }
.confirm-title { font-family:var(--serif); font-size:20px; font-weight:600; line-height:1.2; color:var(--text-heading); }
.confirm-msg   { font-size:14px; color:var(--text-2); line-height:1.55; }
.confirm-actions { display:flex; gap:10px; width:100%; margin-top:6px; }
.confirm-actions.has-alt { flex-wrap:wrap; }
.confirm-actions .confirm-alt { order:3; flex-basis:100%; }
@media (max-width:559px) { .confirm-actions .confirm-alt { order:0; } }   /* phones (main action on top): the third answer second */
.confirm-alt[hidden] { display:none; }
.confirm-cancel,
.confirm-ok {
  flex:1; min-height:40px; padding:0 14px; border-radius:var(--radius-sm); cursor:pointer;
  font:700 14px/1.2 'Manrope',var(--sans); transition:background-color .15s, border-color .15s, color .15s, transform .1s;
}
.confirm-cancel { background:transparent; border:1px solid var(--border-2); color:var(--text); }
.confirm-cancel:hover { border-color:var(--text-3); background:var(--olive-faint); }
.confirm-ok { background:var(--danger-fill); border:1px solid var(--danger-fill); color:#fff; }
.confirm-ok:hover { background:color-mix(in srgb, var(--danger-fill) 88%, #fff); }
.confirm-ok.is-safe { background:var(--action-primary-bg); border-color:var(--action-primary-bg); }
.confirm-ok.is-safe:hover { background:color-mix(in srgb, var(--action-primary-hover) 88%, #fff); }
.confirm-cancel:active, .confirm-ok:active { transform:scale(.98); }
.confirm-cancel:focus-visible,
.confirm-ok:focus-visible { outline:2px solid var(--olive-light); outline-offset:2px; }
.confirm-ok:disabled { opacity:.42; cursor:default; }
/* the new layout: icon tile on the left, text left-aligned, buttons across the full width */
.confirm-card.is-confirm { display:block; text-align:start; }
.cf-head { display:flex; align-items:flex-start; gap:14px; }
.cf-head .confirm-icon { flex:none; width:40px; height:40px; display:grid; place-items:center; border-radius:var(--radius-sm);
  background:var(--card-2); color:var(--text-2); }
.cf-head .confirm-icon svg { width:20px; height:20px; }
.is-danger .cf-head .confirm-icon { background:var(--danger-tint); color:var(--danger); }
.is-safe   .cf-head .confirm-icon { background:var(--olive-faint); color:var(--olive-light); }
.cf-text { min-width:0; flex:1; padding-top:2px; }
.cf-text .confirm-msg { margin-top:6px; overflow-wrap:anywhere; }
.confirm-card.is-confirm > * + * { margin-top:16px; }
.confirm-card.is-confirm > .cf-head { margin-top:0; }
.confirm-card.is-confirm .confirm-actions { margin-top:20px; }
.cf-handle { display:none; }
.cf-banner { display:flex; gap:8px; align-items:flex-start; padding:10px 12px; border-radius:var(--radius-sm);
  background:var(--danger-tint); border:1px solid color-mix(in srgb, var(--danger) 40%, transparent); color:var(--text); font-size:13px; line-height:1.45; }
.cf-banner[hidden] { display:none; }
.cf-banner svg { flex:none; color:var(--danger); margin-top:1px; }
.btn-busy { position:relative; color:transparent !important; pointer-events:none; }
.btn-busy::after { content:''; position:absolute; inset:0; margin:auto; width:16px; height:16px; border-radius:50%;
  border:2px solid #fff; border-right-color:transparent; animation:spin .7s linear infinite; }
.confirm-cancel.btn-busy::after { border-color:var(--text); border-right-color:transparent; }
/* narrow screens: the bottom confirm card */
@media (max-width:559px) {
  .confirm-overlay:has(.is-confirm) { align-items:flex-end; padding:0 12px calc(14px + env(safe-area-inset-bottom)); }
  .confirm-card.is-confirm { border-radius:20px; padding:22px 18px 18px; max-width:none; animation:cfUp .24s var(--layer-in); touch-action:none; }
  .confirm-card.is-confirm .cf-handle { display:block; width:36px; height:4px; margin:-10px auto 14px; border-radius:2px; background:var(--border-2); }
  .confirm-card.is-confirm .confirm-actions { flex-direction:column; gap:10px; }
  .confirm-card.is-confirm .confirm-cancel, .confirm-card.is-confirm .confirm-ok { min-height:48px; font-size:15px; }
  .confirm-card.is-confirm.is-dragging { animation:none; transition:none; }
  .confirm-overlay.is-leaving .is-confirm { transition:transform .18s var(--layer-out); transform:translateY(24px); }
}
@keyframes cfIn  { from { opacity:0; transform:scale(.96); } }
@keyframes cfUp  { from { opacity:0; transform:translateY(24px); } }
@keyframes fadeOut { to { opacity:0; } }
@media (prefers-reduced-motion:reduce) {
  .confirm-overlay.open, .confirm-card, .confirm-card.is-confirm { animation:fadeIn .12s linear; }
  .confirm-overlay.is-leaving .is-confirm { transform:none; transition:none; }
}

/* Forced username change (nav.js _navUsernameCheck) — the confirm card with a field */
.mss-rename { max-width:380px; }
.mss-rename .confirm-msg { max-width:none; }
.mss-rename .field-input { text-align:center; font-size:16px; margin-top:4px; }
.mss-rename-hint { font-size:12px; color:var(--text-3); min-height:1.2em; }
.mss-rename-hint.ok { color:var(--olive-light); font-weight:600; }
.mss-rename-hint.bad { color:var(--error-fg); font-weight:600; }
.mss-rename .confirm-ok:disabled { opacity:.5; cursor:default; }

/* Sign-up prompt for guests (mssJoin, config.js) — the confirm card with links */
/* ── Spotlight: a card you were sent to (title page → "In your library" → its category page, _catFocus).
   The ring is drawn INSIDE the card (an overlay on top of its poster and content), so a row that
   clips its cards, or the card's own pieces, can never hide part of it. ── */
.mss-spotlight { position:relative; }
.mss-spotlight::after { content:''; position:absolute; inset:0; z-index:5; border-radius:inherit; pointer-events:none;
  animation:mssSpotlight 3.4s var(--ease) both; }
@keyframes mssSpotlight {
  0%       { box-shadow:inset 0 0 0 0 transparent; background:transparent; }
  12%, 48% { box-shadow:inset 0 0 0 3px var(--olive-light), inset 0 0 28px var(--olive-glow); background:var(--olive-faint); }
  30%      { box-shadow:inset 0 0 0 3px var(--olive-light), inset 0 0 0 transparent; background:transparent; }
  80%      { box-shadow:inset 0 0 0 2px var(--olive-light), inset 0 0 0 transparent; background:transparent; }
  100%     { box-shadow:inset 0 0 0 0 transparent; background:transparent; }
}
@media (prefers-reduced-motion:reduce) { .mss-spotlight::after { animation:none; box-shadow:inset 0 0 0 2px var(--olive-light); } }
/* ── Just watched (mssWatchedPopup, config.js) — centred on every screen ── */
.mss-done-overlay { position:fixed; inset:0; z-index:2000; display:none; align-items:center; justify-content:center; padding:20px;
  background:var(--scrim); }
.mss-done-overlay.open { display:flex; animation:fadeIn .2s var(--ease); }
.mss-done { position:relative; width:100%; max-width:420px; max-height:calc(100dvh - 40px); overflow:auto; text-align:center;
  padding:28px 24px 22px; border-radius:16px; background:var(--panel); border:1px solid var(--border);
  background-image:radial-gradient(120% 70% at 50% 0%, var(--olive-faint), transparent 70%);
  animation:mssDoneIn .42s cubic-bezier(.2,.9,.25,1.15) both; }
.mss-done-x { position:absolute; top:12px; right:12px; }
[dir="rtl"] .mss-done-x { right:auto; left:12px; }
.mss-done-art { position:relative; width:112px; margin:4px auto 18px; }
.mss-done-glow { position:absolute; inset:-26px; border-radius:50%; background:radial-gradient(circle, var(--olive-glow), transparent 68%); }
.mss-done-poster { position:relative; aspect-ratio:2/3; border-radius:14px; overflow:hidden; transform:rotate(-3deg);
  background:linear-gradient(160deg, var(--olive), var(--olive-2)); box-shadow:0 0 0 1px rgba(255,255,255,.08);
  animation:mssDonePoster .6s cubic-bezier(.2,.9,.25,1.2) .05s both; }
.mss-done-poster img { width:100%; height:100%; object-fit:cover; display:block; }
.mss-done-poster span { position:absolute; inset:0; display:grid; place-items:center; font-family:var(--serif); font-size:44px; color:#fff; }
.mss-done-tick { position:absolute; right:-12px; bottom:-10px; width:40px; height:40px; border-radius:50%; display:grid; place-items:center;
  background:var(--brand-hover); color:var(--text-on-brand); border:3px solid var(--panel); 
  animation:mssDoneTick .5s cubic-bezier(.2,1.4,.4,1) .35s both; }
[data-theme="dark"] .mss-done-tick { color:#09120C; }
.mss-done-spark { position:absolute; left:50%; top:50%; width:6px; height:6px; margin:-3px; border-radius:50%; background:var(--olive-light);
  opacity:0; animation:mssDoneSpark .9s ease-out .4s both; transform:rotate(var(--a)) translateY(0); }
.mss-done-spark:nth-child(odd) { background:var(--gold-accent); width:5px; height:5px; }
.mss-done-eyebrow { font-size:11px; font-weight:700; letter-spacing:2px; text-transform:uppercase; color:var(--olive-light); margin-bottom:8px; }
.mss-done-title { font-family:var(--serif); font-weight:600; font-size:clamp(22px, 6vw, 28px); line-height:1.15; color:var(--text-heading); margin:0 0 8px;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.mss-done-msg { font-size:14px; line-height:1.6; color:var(--text-2); margin:0 auto 20px; max-width:300px; }
.mss-done-actions { display:flex; flex-direction:column; gap:10px; }
.mss-done-btn { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:48px; border-radius:var(--radius-sm); border:1px solid transparent;
  font:700 14.5px/1 var(--sans); cursor:pointer; background:var(--action-primary-bg); color:var(--text-on-primary); 
  transition:transform .15s, filter .2s, border-color .2s; }
.mss-done-btn:hover { filter:brightness(1.08); transform:translateY(-1px); }
.mss-done-btn:active { transform:scale(.97); }
.mss-done-btn.is-ghost { background:transparent; color:var(--text-2); border-color:var(--border-2); box-shadow:none; font-weight:600; }
.mss-done-btn.is-ghost:hover { color:var(--text); border-color:var(--border-olive); filter:none; }
.mss-done-btn:focus-visible { outline:2px solid var(--olive-light); outline-offset:3px; }
@keyframes mssDoneIn { from { opacity:0; transform:translateY(14px) scale(.96); } }
@keyframes mssDonePoster { from { opacity:0; transform:rotate(-10deg) scale(.85); } }
@keyframes mssDoneTick { from { opacity:0; transform:scale(.3); } }
@keyframes mssDoneSpark { 0% { opacity:0; transform:rotate(var(--a)) translateY(0); } 25% { opacity:1; } 100% { opacity:0; transform:rotate(var(--a)) translateY(-92px); } }
@media (prefers-reduced-motion:reduce) { .mss-done, .mss-done * { animation:none !important; } .mss-done-spark { display:none; } }
/* phones: a full-page moment */
@media (max-width:559px) {
  .mss-done-overlay { padding:0; }
  .mss-done { max-width:none; height:100dvh; max-height:none; border:0; border-radius:0; display:flex; flex-direction:column; justify-content:center;
    padding:calc(24px + env(safe-area-inset-top)) 20px calc(26px + env(safe-area-inset-bottom)); }
  .mss-done-x { top:calc(12px + env(safe-area-inset-top)); }
  .mss-done-actions { margin-top:auto; }
}

/* ═════════════════════════════════════════════════════════════
   §14b  Layers — side panels, full pages, ⋯ menus (js/panel.js)
   A side panel (S 440 / L 600) slides in from the right while it leaves 320px of page beside it;
   otherwise it's a full page with a back arrow and a bottom bar. Solid surfaces, borders, no blur.
   ═════════════════════════════════════════════════════════════ */
.lyr { position:fixed; inset:0; z-index:2000; display:none; }
.lyr.open { display:block; }
.lyr.is-under { display:none; }
.lyr-card { position:absolute; display:flex; flex-direction:column; background:var(--panel); color:var(--text); outline:none; overflow:hidden; }
/* side panel */
.lyr.is-side { background:var(--scrim); }
.lyr.is-side .lyr-card { top:0; bottom:0; inset-inline-end:0; width:var(--lyr-w); max-width:100%; border-inline-start:1px solid var(--border); }
.lyr.is-side.is-entering { animation:fadeIn .2s ease-out; }
.lyr.is-side.is-entering .lyr-card { animation:lyrIn .26s var(--layer-in); }
.lyr.is-side.is-leaving { animation:fadeOut .16s ease-in forwards; }
.lyr.is-side.is-leaving .lyr-card { animation:lyrOut .18s var(--layer-out) forwards; }
/* full page */
.lyr.is-page .lyr-card { inset:0; }
.lyr.is-page.is-entering .lyr-card { animation:lyrPush .28s var(--layer-in); }
.lyr.is-page.is-create.is-entering .lyr-card { animation:lyrRise .3s var(--layer-in); }
.lyr.is-page.is-leaving .lyr-card { animation:lyrPop .24s var(--layer-out) forwards; }
.lyr.is-page.is-create.is-leaving .lyr-card { animation:lyrSink .24s var(--layer-out) forwards; }
.lyr.is-dragging .lyr-card { transition:none; }
/* Bottom sheet (phones, small panels — panel.js sheet…): the card is its final height (set by JS) and slides on stops
   (open · half · full · closed), following the finger; it sits on the keyboard (--lyr-kb / --lyr-vh). Built on the phone
   layout (is-page) with the side panel's title row. */
.lyr-grab { display:none; }
.lyr.is-sheet { background:var(--scrim); }
/* the card hangs a screen's height below the bottom edge, in its own colour: however far it's lifted (an over-pull,
   Safari's bounce), what shows under it is more sheet, never the page behind (owner, 25 Nov 2026) */
.lyr.is-page.is-sheet .lyr-card { --sheet-ext:100vh; box-sizing:content-box; padding-bottom:var(--sheet-ext);
  inset:auto 0 calc(var(--lyr-kb, 0px) - var(--sheet-ext)); margin:0 auto; width:min(560px, 100%); height:auto; max-height:none;
  border:1px solid var(--border-2); border-bottom:0; border-radius:20px 20px 0 0; will-change:transform; }
.lyr.is-sheet { overscroll-behavior:none; }
html:has(.lyr.is-sheet.open), html:has(.lyr.is-sheet.open) body { overscroll-behavior:none; }   /* no page bounce behind an open sheet */
.lyr.is-sheet .lyr-grab { display:block; flex:none; width:40px; height:5px; margin:8px auto 2px; border-radius:3px; background:var(--border-2); }
.lyr.is-sheet .lyr-grab, .lyr.is-sheet .lyr-top { cursor:grab; }
.lyr.is-sheet.is-dragging .lyr-card { cursor:grabbing; user-select:none; -webkit-user-select:none; }
.lyr.is-page.is-sheet .lyr-bar { display:none; }
.lyr.is-page.is-sheet .lyr-top { display:flex; margin-bottom:14px; }
.lyr.is-page.is-sheet .lyr-x { display:grid; }
.lyr.is-page.is-sheet .lyr-body { padding:8px 16px 16px; overflow:hidden; overscroll-behavior:contain; }
.lyr.is-page.is-sheet.is-full .lyr-body { overflow-y:auto; }
.lyr.is-page.is-sheet .lyr-foot { position:relative; z-index:1; padding-bottom:max(16px, calc(10px + env(safe-area-inset-bottom))); }
.lyr.is-sheet.is-entering { animation:fadeIn .2s ease-out; }
.lyr.is-page.is-sheet.is-entering .lyr-card { animation:none; }   /* it rises by JS (sheetOn) */
.lyr.is-sheet.is-leaving { animation:fadeOut .2s ease-in forwards; }
.lyr.is-page.is-sheet.is-leaving .lyr-card { animation:lyrSink .22s var(--layer-out) forwards; }
.lyr.is-swap .lyr-body, .lyr.is-swap .lyr-hero, .lyr.is-swap .lyr-bar { animation:fadeIn .16s ease-out; }
@keyframes lyrIn   { from { opacity:0; transform:translateX(24px); } }
@keyframes lyrOut  { to   { opacity:0; transform:translateX(24px); } }
@keyframes lyrPush { from { transform:translateX(100%); } }
@keyframes lyrPop  { to   { transform:translateX(100%); } }
@keyframes lyrRise { from { transform:translateY(100%); } }
@keyframes lyrSink { to   { transform:translateY(100%); } }
@media (prefers-reduced-motion:reduce) {
  .lyr.is-entering .lyr-card, .lyr.is-entering, .lyr.is-swap .lyr-body { animation:fadeIn .12s linear !important; }
  .lyr.is-leaving .lyr-card, .lyr.is-leaving { animation:fadeOut .12s linear forwards !important; }
}
/* buttons in the header */
.lyr-x, .lyr-back { flex:none; display:grid; place-items:center; border-radius:var(--radius-sm); background:none; border:1px solid var(--border-2); color:var(--text); cursor:pointer; }
.lyr-x { width:36px; height:36px; }
.lyr-back { width:44px; height:44px; border-color:transparent; margin-inline-start:-10px; }
.lyr-x:hover, .lyr-back:hover { background:var(--olive-faint); }
.lyr-x:focus-visible, .lyr-back:focus-visible { outline:2px solid var(--olive-light); outline-offset:2px; }
[dir="rtl"] .lyr-back svg { transform:scaleX(-1); }
.lyr:not(.has-back) .lyr-back { display:none; }
.lyr.is-page .lyr-x { display:none; }
.lyr-title { margin:0; font-family:var(--serif); font-weight:600; font-size:20px; line-height:1.1; color:var(--text-heading); overflow-wrap:anywhere; }
.lyr-sub { margin:4px 0 0; font:500 12px/1.35 'Manrope',var(--sans); color:var(--text-3); }
.lyr-sub[hidden] { display:none; }
/* generic: no header bar on a side panel — the title opens the body and scrolls with it */
.lyr-bar { display:none; }
.lyr.is-page .lyr-bar { display:flex; align-items:center; gap:6px; min-height:56px; padding:env(safe-area-inset-top) 16px 0; border-bottom:1px solid var(--border); background:var(--panel); }
.lyr.is-page .lyr-bar .lyr-title { font-size:18px; }
.lyr.is-page .lyr-bar .lyr-sub { font-size:11.5px; margin-top:2px; }
.lyr-bar-txt { min-width:0; }
.lyr-top { display:flex; align-items:flex-start; gap:12px; margin-bottom:22px; }
.lyr-top-txt { flex:1; min-width:0; padding-top:5px; }
.lyr.is-page .lyr-top { display:none; }
/* title panels: the TMDB backdrop behind the title, with just enough shade for white text */
.lyr-hero { position:relative; flex:none; display:flex; align-items:flex-end; gap:12px; min-height:64px; padding:12px 16px 12px 20px; border-bottom:1px solid var(--border); background:var(--panel); }
.lyr-hero-img, .lyr-hero-shade { position:absolute; inset:0; display:none; }
.lyr-hero-txt { position:relative; flex:1; min-width:0; }
.lyr-hero .lyr-x, .lyr-hero .lyr-back { position:relative; align-self:center; }
.lyr-hero.has-img { min-height:148px; padding-top:calc(16px + env(safe-area-inset-top)); border-bottom-color:transparent; }
.lyr-hero.has-img .lyr-hero-img { display:block; background:center 25% / cover no-repeat; animation:fadeIn .3s ease-out; }
.lyr-hero.has-img .lyr-hero-shade { display:block; background:linear-gradient(180deg, rgba(0,0,0,.18) 0%, rgba(0,0,0,.18) 30%, rgba(0,0,0,.56) 62%, rgba(0,0,0,.56) 100%); }   /* .56 black: white text ≥ 4.5:1 even on a white image */
.lyr-hero.has-img .lyr-title, .lyr-hero.has-img .lyr-sub { color:#fff; }
.lyr-hero.has-img .lyr-x, .lyr-hero.has-img .lyr-back { align-self:flex-start; background:rgba(0,0,0,.56); border-color:rgba(255,255,255,.24); color:#fff; }
.lyr.is-tall-hero .lyr-hero.has-img { min-height:240px; }
.lyr-hero-poster { position:relative; flex:none; width:64px; aspect-ratio:2/3; border-radius:var(--radius-xs); overflow:hidden; border:1px solid rgba(255,255,255,.24); background:var(--raised); }
.lyr-hero-poster img { width:100%; height:100%; object-fit:cover; display:block; }
.lyr.is-tall-hero .lyr-hero-poster { width:84px; }
.lyr.is-page .lyr-hero-poster { width:64px; }
.lyr.is-page.is-tall-hero .lyr-hero.has-img { min-height:200px; }
.lyr.is-page .lyr-hero { padding-inline-start:16px; padding-top:calc(12px + env(safe-area-inset-top)); }
/* body + footer */
.lyr-body { flex:1; min-height:0; overflow-y:auto; overscroll-behavior:contain; padding:20px; }
.lyr.is-page .lyr-body { padding:16px; }
.lyr-banner { margin-bottom:16px; align-items:center; }
.lyr-banner span { flex:1; }
.lyr-retry { flex:none; min-height:32px; padding:0 10px; border-radius:var(--radius-xs); border:1px solid var(--border-2); background:var(--panel); color:var(--text); font:700 13px 'Manrope',var(--sans); cursor:pointer; }
.lyr-field-err { margin:6px 0 0; font-size:12px; color:var(--danger); }
.is-invalid { border-color:var(--danger) !important; }
.lyr-foot { flex:none; display:flex; align-items:center; gap:10px; padding:14px 20px; border-top:1px solid var(--border); background:var(--panel); }
.lyr-foot[hidden] { display:none; }
.lyr-foot.is-dock { display:block; }
.lyr-dock { display:flex; align-items:flex-end; gap:10px; }
.lyr .lyr-foot .lyr-dock .lyr-btn.is-icon { flex:none; width:44px; min-height:44px; }
/* the social forms' buttons (_socDialog, social.js), pinned at the bottom of their panel: secondary left, primary right */
.soc-foot { display:flex; align-items:center; gap:10px; }
.soc-foot .sf-clear-btn, .soc-foot .sf-apply-btn { flex:0 0 auto; min-height:40px; padding:0 14px; border-width:1px; font:700 14px/1.2 'Manrope',var(--sans); display:inline-flex; align-items:center; justify-content:center; gap:7px; }
.soc-foot .sf-clear-btn { border-color:var(--border-2); color:var(--text); }
.soc-foot .sf-apply-btn { margin-inline-start:auto; }
.soc-foot .sf-apply-btn:hover { background:color-mix(in srgb, var(--action-primary-hover) 88%, #fff); border-color:var(--action-primary-hover); color:#fff; }
.lyr.is-page .soc-foot > * { flex:1; min-height:48px; font-size:15px; }
.lyr-dock .lyr-field { flex:1; min-width:0; min-height:44px; max-height:140px; padding:11px 14px; resize:none; line-height:1.45; }
.lyr .lyr-foot .lyr-dock .lyr-btn:not(.is-icon) { flex:none; min-height:44px; padding:0 16px; }
.lyr-foot-sec { display:flex; gap:10px; margin-inline-end:auto; }
.lyr-btn { min-height:40px; padding:0 14px; border-radius:var(--radius-sm); border:1px solid var(--border-2); background:transparent; color:var(--text);
  font:700 14px/1.2 'Manrope',var(--sans); cursor:pointer; transition:background-color .15s, border-color .15s, transform .1s; }
.lyr-btn:hover { background:var(--olive-faint); }
.lyr-btn.is-primary { background:var(--action-primary-bg); border-color:var(--action-primary-bg); color:var(--text-on-primary); }
.lyr-btn.is-primary:hover { background:color-mix(in srgb, var(--action-primary-hover) 88%, #fff); }
.lyr-btn.is-primary.is-danger { background:var(--danger-fill); border-color:var(--danger-fill); }
.lyr-btn:active { transform:scale(.98); }
.lyr-btn:disabled { opacity:.42; cursor:default; }
.lyr-btn:focus-visible { outline:2px solid var(--olive-light); outline-offset:2px; }
.lyr-btn { display:inline-flex; align-items:center; justify-content:center; gap:7px; }
.lyr-btn > svg { width:16px; height:16px; flex:none; }
.lyr-btn.is-icon { width:40px; padding:0; display:grid; place-items:center; flex:none; }
.lyr.is-page .lyr-foot .only-side, .lyr.is-side .lyr-foot .only-page { display:none; }
.lyr.is-page .lyr-foot:not(.is-dock):not(:has(.lyr-btn:not(.only-side))) { display:none; }   /* only a desktop Cancel → no bar on phones */
.lyr.is-page .lyr-foot { padding:12px 16px max(26px, calc(12px + env(safe-area-inset-bottom))); }
.lyr.is-page .lyr-foot-sec { display:contents; }
.lyr.is-page .lyr-btn { flex:1; min-height:48px; font-size:15px; padding:0 10px; }
.lyr.is-page .lyr-btn.is-icon { flex:none; width:48px; }
.lyr.is-page .lyr-foot.is-stack { flex-wrap:wrap; }
.lyr.is-page .lyr-foot.is-stack .is-primary { order:-1; flex-basis:100%; }
.lyr.is-page .lyr-foot.is-stack .lyr-btn:not(.is-primary) { flex:1 1 auto; white-space:nowrap; }
/* a picture across the top of the body (an episode's still): 16:9, no shade, nothing written on it */
.lyr-media { margin:-20px -20px 18px; aspect-ratio:16 / 9; background:var(--raised); overflow:hidden; border-bottom:1px solid var(--border); }
.lyr-media[hidden] { display:none; }
.lyr-media img { display:block; width:100%; height:100%; object-fit:cover; opacity:0; transition:opacity .25s ease-out; }
.lyr-media.is-loaded img { opacity:1; }
.lyr.is-page .lyr-media { margin:-16px -16px 16px; }
@media (prefers-reduced-motion:reduce) { .lyr-media img { transition:none; } }

/* A search field in a panel (Add new entry, Update details, the pickers): magnifier inside the field */
.lyr-search { position:relative; }
.lyr-search-ic { position:absolute; inset-inline-start:14px; top:50%; transform:translateY(-50%); display:grid; color:var(--text-3); pointer-events:none; }
.lyr-search .lyr-field { padding-inline-start:40px; }
/* Stat tiles across a panel (episode panels, Friends' Chat): a big number and a small label; score tiles take their band colour */
.lyr-stats { display:grid; grid-template-columns:repeat(var(--n, 3), minmax(0, 1fr)); gap:8px; margin:0 0 14px; }
.lyr-stat { min-width:0; padding:10px 8px 9px; border-radius:12px; border:1px solid var(--border); background:var(--raised); text-align:center; color:var(--text); }
.lyr-stat b { display:block; font:400 30px/1 var(--bebas); letter-spacing:.3px; color:var(--olive-light); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.lyr-stat b small { font-size:.55em; opacity:.75; margin-inline-start:2px; }
.lyr-stat span { display:block; margin-top:5px; font:800 9.5px/1.2 'Manrope',var(--sans); letter-spacing:.12em; text-transform:uppercase; color:var(--text-3); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.lyr-stat.is-sm b { font-size:20px; padding-top:3px; }
.lyr-stat[class*="ep-band-"] { border-color:transparent; }
.lyr-stat[class*="ep-band-"] b, .lyr-stat[class*="ep-band-"] span { color:inherit; }
.lyr-stat[class*="ep-band-"] span { opacity:.85; }
.lyr-chips { display:flex; flex-wrap:wrap; gap:6px; margin:0 0 14px; }
.lyr-chip { display:inline-flex; align-items:center; gap:6px; min-height:28px; padding:0 10px; border-radius:8px; border:1px solid var(--border-2); font:600 12px/1.2 'Manrope',var(--sans); color:var(--text-2); }
.lyr-chip svg { width:13px; height:13px; flex:none; color:var(--olive-light); }
.lyr-chip.is-up { border-color:var(--border-olive); background:var(--olive-faint); color:var(--text); }
.lyr-chip b { font-weight:800; color:var(--text); }
.lyr-card-sec { padding:12px 14px; border-radius:12px; border:1px solid var(--border); background:var(--raised); }
@media (max-width:420px) { .lyr-stat b { font-size:26px; } .lyr-stats { gap:6px; } }
@media (max-width:559px) { .lyr-stats.is-wrap { grid-template-columns:repeat(2, minmax(0, 1fr)); } }

/* Result rows in a picker panel (mssRowHTML): picture, name, one line under it */
.lyr-rows { list-style:none; margin:14px 0 0; padding:0; border:1px solid var(--border); border-radius:12px; overflow:hidden; }
.lyr-rows:empty { display:none; }
.lyr-rows > li + li { border-top:1px solid var(--border); }
.lyr-row { text-decoration:none; display:flex; align-items:center; gap:12px; width:100%; min-height:56px; padding:8px 14px; border:0; background:none; color:var(--text); font:inherit; text-align:start; cursor:pointer; transition:background-color .15s; }
.lyr-row:hover, .lyr-row.is-active { background:var(--olive-faint); }
.lyr-row-tag { flex:none; padding:2px 8px; border-radius:6px; border:1px solid var(--border-olive); background:var(--olive-faint); font:800 9.5px/1.4 'Manrope',var(--sans); letter-spacing:.08em; text-transform:uppercase; color:var(--olive-light); }
.lyr-row:focus-visible { outline:2px solid var(--olive-light); outline-offset:-2px; }
.lyr-row-img { flex:none; width:36px; aspect-ratio:2/3; border-radius:4px; overflow:hidden; display:grid; place-items:center; background:var(--raised); font:700 14px 'Manrope',var(--sans); color:var(--text-3); }
.lyr-row-img.is-round { width:40px; aspect-ratio:1; border-radius:50%; }
.lyr-row-img img { width:100%; height:100%; object-fit:cover; display:block; }
.lyr-row-txt { flex:1; min-width:0; display:flex; flex-direction:column; gap:2px; }
.lyr-row-txt b { font:700 14px/1.25 'Manrope',var(--sans); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.lyr-row-txt small { font:500 12px/1.3 'Manrope',var(--sans); color:var(--text-3); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.lyr-rows-msg { margin:14px 0 0; padding:22px 14px; border:1px dashed var(--border-2); border-radius:12px; text-align:center; font-size:13px; color:var(--text-3); }

/* Choose a poster (detail.html): language box + upload, then collapsible language groups of 3 */
.pp-tools { display:flex; gap:10px; align-items:stretch; }
.pp-lang { flex:1; min-width:0; }
.pp-lang .mss-pick-trigger { min-height:44px; }
.lyr .pp-tools .pp-upload { flex:none; min-height:44px; }
.lyr.is-page .pp-own { display:none; }   /* phones: just "Upload" */
.pp-rule { display:flex; align-items:center; gap:6px; margin:8px 0 0; font:500 12px/1.3 'Manrope',var(--sans); color:var(--text-3); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.pp-rule svg { flex:none; width:13px; height:13px; color:var(--olive-light); }
.pp-rule span { overflow:hidden; text-overflow:ellipsis; }
.pp-progress { display:flex; align-items:center; gap:10px; margin-top:14px; padding:10px 12px; border-radius:var(--radius-sm); border:1px solid var(--border-olive); background:var(--olive-faint); font:600 13px 'Manrope',var(--sans); color:var(--text); }
.pp-progress[hidden] { display:none; }
.pp-progress .spinner { width:18px; height:18px; flex:none; }
.pp-sel { display:flex; align-items:center; gap:12px; margin-top:14px; padding:10px 12px; border-radius:12px; border:1px solid var(--border-2); background:var(--raised); }
.pp-sel[hidden] { display:none; }
.pp-sel img { width:36px; aspect-ratio:2/3; object-fit:cover; border-radius:4px; flex:none; }
.pp-sel .lyr-sec-h { margin:0 0 2px; }
.pp-sel p { margin:0; font:500 13px/1.35 'Manrope',var(--sans); color:var(--text-2); }
#ppGrid { margin-top:18px; }
.pp-group + .pp-group { margin-top:14px; }
.pp-group-h { margin:0; }
.pp-group-btn { display:flex; align-items:center; gap:8px; width:100%; min-height:44px; padding:0 2px; border:0; border-bottom:1px solid var(--border); background:none; color:var(--text);
  font:700 14px 'Manrope',var(--sans); text-align:start; cursor:pointer; }
.pp-group-btn .pp-count { font-weight:600; font-size:12px; color:var(--text-3); }
.pp-group-btn svg { margin-inline-start:auto; color:var(--text-3); transition:transform .15s; }
.pp-group-btn[aria-expanded="false"] svg { transform:rotate(-90deg); }
[dir="rtl"] .pp-group-btn[aria-expanded="false"] svg { transform:rotate(90deg); }
.pp-group-btn:hover { color:var(--olive-light); }
.pp-group-btn:focus-visible { outline:2px solid var(--olive-light); outline-offset:2px; border-radius:6px; }
.pp-grid { display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:10px; padding-top:12px; }
.pp-grid[hidden] { display:none; }
.pp-opt, .pp-skel { position:relative; display:block; aspect-ratio:2/3; border-radius:var(--radius-sm); overflow:hidden; border:2px solid transparent; padding:0; background:var(--raised); cursor:pointer; }
.pp-opt img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.pp-opt:hover { border-color:var(--border-olive); }
.pp-opt.selected { border-color:var(--olive-light); box-shadow:0 0 0 1px var(--olive-light); }
.pp-opt:focus-visible { outline:2px solid var(--olive-light); outline-offset:2px; }
.pp-skel { cursor:default; }
/* backdrops (the Edit page): wide, so one to a row — as big as the panel allows (owner, 13 Nov 2026) */
.pp-grid.is-wide { grid-template-columns:minmax(0, 1fr); }
.pp-grid.is-wide .pp-opt, .pp-grid.is-wide .pp-skel { aspect-ratio:16/9; }
.pp-sel img.is-wide { width:72px; aspect-ratio:16/9; }
/* The list page's Edit backdrop (list-view.html): step 1, the list's titles as posters; step 2 uses the pp-* picker above */
.bp-titles { margin-top:4px; }
.bp-titles .pp-opt .cg-rank-badge { position:absolute; top:0; inset-inline-start:0; z-index:2; }
.bp-letter { position:absolute; inset:0; display:grid; place-items:center; font:600 26px var(--serif); color:var(--olive-light); }
.bp-back { display:inline-flex; align-items:center; gap:4px; min-height:36px; margin:0 0 10px; padding:0 10px 0 4px; border:1px solid var(--border-2); border-radius:var(--radius-sm);
  background:var(--card); color:var(--text); font:700 13px 'Manrope',var(--sans); cursor:pointer; }
.bp-back:hover { border-color:var(--border-olive); }

.pp-empty { margin:0; padding:18px; border:1px dashed var(--border-2); border-radius:12px; text-align:center; font-size:13px; color:var(--text-3); }
/* the pickers' Back to top (MSSBdTools.toTop): the site's button inside the panel, above its footer (bottom set in JS) */
.lyr-card .back-to-top.pp-top { position:absolute; inset-inline-end:20px; bottom:88px; z-index:5; }

/* ── Inside a panel: section labels, segmented choices, choice rows, fields, ranges ── */
.lyr-sec { margin-top:22px; }
.lyr-sec:first-child { margin-top:0; }
.lyr-sec-h { display:flex; align-items:baseline; gap:6px; margin:0 0 8px; font:800 10.5px/1.3 'Manrope',var(--sans); letter-spacing:.14em; text-transform:uppercase; color:var(--text-3); }
.lyr-sec-h small { font-weight:600; letter-spacing:.02em; text-transform:none; font-size:11.5px; }
.lyr-hint { margin:6px 0 0; font:500 12px/1.4 'Manrope',var(--sans); color:var(--text-3); }
.lyr-seg { display:flex; gap:2px; padding:3px; border-radius:var(--radius-sm); background:var(--bg-3); border:1px solid var(--border); }
.lyr-seg.is-grid { display:grid; grid-template-columns:repeat(var(--seg-cols, 3), minmax(0, 1fr)); }
.lyr-seg-opt { flex:1; min-width:0; min-height:34px; padding:0 10px; border-radius:var(--radius-xs); border:1px solid transparent; background:none; color:var(--text-2);
  font:600 13px/1.2 'Manrope',var(--sans); cursor:pointer; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; transition:background-color .15s, color .15s; }
.lyr-seg-opt:hover { color:var(--text); background:var(--olive-faint); }
.lyr-seg-opt[aria-checked="true"] { background:var(--panel); border-color:var(--border-2); color:var(--text); font-weight:700; }
.lyr-seg-opt:focus-visible { outline:2px solid var(--olive-light); outline-offset:1px; }
.lyr-seg-opt:disabled { opacity:.42; cursor:default; }
.lyr.is-page .lyr-seg-opt { min-height:38px; }
.lyr-seg.is-strong { padding:4px; }
.lyr-seg.is-strong .lyr-seg-opt { min-height:40px; font-size:13.5px; }
.lyr-seg.is-strong .lyr-seg-opt[aria-checked="true"] { background:var(--olive); border-color:var(--olive); color:var(--text-on-brand); }
.lyr-seg.is-strong .lyr-seg-opt[aria-checked="true"]:hover { background:color-mix(in srgb, var(--olive) 88%, #fff); }
.lyr-choices { border:1px solid var(--border); border-radius:12px; overflow:hidden; }
/* tiles: the choices as a list of icon tiles, one per line; the chosen one opens to show more */
.lyr-choices.is-tiles { display:grid; grid-template-columns:minmax(0, 1fr); gap:8px; border:0; border-radius:0; overflow:visible; }
.lyr-choices.is-tiles .lyr-choice { border:1px solid var(--border-2); border-radius:12px; padding:0; min-height:0; background:var(--raised); flex-direction:column; align-items:stretch; gap:0; }
.lyr-choices.is-tiles .lyr-choice:hover { border-color:var(--border-olive); background:var(--raised); }
.lyr-choices.is-tiles .lyr-choice-main { min-height:54px; padding:9px 12px; gap:10px; align-items:center; }
.lyr-tile-ic { flex:none; width:34px; height:34px; display:grid; place-items:center; border-radius:var(--radius-xs); background:var(--olive-faint); color:var(--olive-light); transition:background-color .15s, color .15s; }
.lyr-tile-txt { display:flex; flex-direction:column; gap:2px; min-width:0; }
.lyr-tile-txt b { font:700 13.5px/1.2 'Manrope',var(--sans); color:var(--text); }
.lyr-tile-txt small { font:500 11.5px/1.25 'Manrope',var(--sans); color:var(--text-3); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.lyr-choices.is-tiles .lyr-choice.is-on { border:1.5px solid var(--olive-light); background:var(--olive-faint); box-shadow:none; }
.lyr-choices.is-tiles .lyr-choice.is-on .lyr-tile-ic { background:var(--olive); color:var(--text-on-brand); }
.lyr-choices.is-tiles .lyr-choice.is-on .lyr-tile-txt small:first-child { color:var(--olive-light); font-weight:700; letter-spacing:.06em; text-transform:uppercase; font-size:10.5px; }
.lyr-choices.is-tiles .lyr-choice > .lyr-seg, .lyr-choices.is-tiles .lyr-choice > .sf-dd { flex-basis:auto; margin:0 12px 12px; }
.lyr-choices.is-tiles .lyr-choice > .sf-dd { width:auto; min-width:0; }   /* stretch to the card less its 12px sides (width:100% + margins overflowed it) */
.lyr-choices.is-tiles .lyr-choice > .lyr-seg .lyr-seg-opt { flex:1; }
.lyr.is-page .lyr-choices.is-tiles .lyr-choice-main { min-height:58px; }
.lyr-choices.is-tiles.is-compact { gap:6px; }
.lyr-choices.is-tiles.is-compact .lyr-choice-main { min-height:50px; padding:7px 12px; }
.lyr-choices.is-tiles.is-compact .lyr-tile-ic { width:30px; height:30px; }
.lyr-choices.is-tiles.is-compact .lyr-choice.is-on .lyr-tile-txt small { color:var(--text-2); }
.lyr-choice { display:flex; align-items:center; flex-wrap:wrap; gap:8px 12px; min-height:46px; padding:6px 14px; border-top:1px solid var(--border); cursor:pointer; transition:background-color .15s; }
.lyr-choice:first-child { border-top:0; }
.lyr-choice:hover { background:var(--olive-faint); }
.lyr-choice-main { flex:1; min-width:0; display:flex; align-items:center; gap:12px; min-height:34px; padding:0; border:0; background:none; color:var(--text); font:600 14px/1.25 'Manrope',var(--sans); text-align:start; cursor:pointer; }
.lyr-choice-main:focus-visible { outline:2px solid var(--olive-light); outline-offset:2px; border-radius:6px; }
.lyr-radio { flex:none; width:18px; height:18px; border-radius:50%; border:1.5px solid var(--border-2); background:var(--panel); transition:border-width .15s, border-color .15s; }
.lyr-choice.is-on { background:var(--olive-faint); box-shadow:inset 0 0 0 1px var(--border-olive); }
.lyr-choice.is-on .lyr-radio { border:5px solid var(--olive-light); }
.lyr-choice .lyr-seg { flex:none; margin-inline-start:auto; }
.lyr-choice .lyr-seg-opt { min-height:30px; flex:none; }
.lyr-choice > .sf-dd { flex-basis:100%; margin:0 0 6px 30px; }
@media (max-width:379px) { .lyr-choice .lyr-seg { flex-basis:100%; margin:0 0 6px 30px; } }
.lyr-field { width:100%; min-height:44px; padding:0 14px; border-radius:var(--radius-sm); border:1px solid var(--border-2); background:var(--bg-3); color:var(--text);
  font:500 14px/1.3 'Manrope',var(--sans); outline:none; box-sizing:border-box; -webkit-appearance:none; appearance:none; }
.lyr-field::placeholder { color:var(--text-3); }
.lyr-field:focus { border-color:var(--olive-light); box-shadow:0 0 0 3px var(--olive-faint); }
.lyr.is-page .lyr-field { min-height:48px; font-size:16px; }
.lyr-range { display:flex; align-items:center; gap:10px; }
.lyr-range .lyr-field { flex:1; min-width:0; }
.lyr-range-to { flex:none; font:600 12px 'Manrope',var(--sans); color:var(--text-3); }
/* a toast while a full page with a bottom bar is open sits above the bar */
html:has(.lyr.is-page.open .lyr-foot:not([hidden])) .toast { bottom:calc(96px + env(safe-area-inset-bottom)); }
/* ⋯ menu: a 240px popover on wide screens, a full page of 56px rows on narrow ones */
.lyr-menu { position:fixed; z-index:2050; width:240px; margin:0; padding:6px; list-style:none; border-radius:12px; border:1px solid var(--border-2); background:var(--panel); max-height:min(60vh, 440px); overflow-y:auto; overscroll-behavior:contain; animation:lyrMenu .14s var(--layer-in); }
.lyr-menu.is-up { animation-name:lyrMenuUp; }
.lyr-menu.is-leaving { animation:fadeOut .1s ease-in forwards; }
.lyr-menu-item { display:flex; align-items:center; gap:10px; width:100%; min-height:38px; padding:0 10px; border-radius:var(--radius-xs); border:0; background:none; color:var(--text);
  font:600 13.5px/1.2 'Manrope',var(--sans); text-align:start; cursor:pointer; }
.lyr-menu-item svg { flex:none; color:var(--text-2); }
.lyr-menu-item:hover, .lyr-menu-item:focus-visible { background:var(--olive-faint); outline:none; }
.lyr-menu-item:focus-visible { box-shadow:inset 0 0 0 2px var(--olive-light); }
.lyr-menu:focus { outline:none; }
.lyr-menu-item.is-danger, .lyr-menu-item.is-danger svg { color:var(--danger); }
.lyr-menu-item.is-on { background:var(--olive-faint); }
.lyr-menu-item.is-on .lyr-menu-txt > span { font-weight:700; }
.lyr-menu-on { margin-inline-start:auto; display:inline-flex; color:var(--olive-light); }
.lyr-menu-item.is-on .lyr-menu-on svg { color:var(--olive-light); }
.lyr-menu-sep { height:1px; margin:6px 4px; background:var(--border); }
.lyr-menu.is-page { position:static; width:auto; padding:0; border:0; border-radius:0; background:none; animation:none; margin:-16px; }
.lyr-menu.is-page .lyr-menu-item { min-height:56px; padding:0 16px; border-radius:0; border-bottom:1px solid var(--border); font-size:15.5px; gap:14px; }
.lyr-menu.is-page .lyr-menu-item svg { width:20px; height:20px; }
.lyr-menu.is-page .lyr-menu-sep, .lyr-menu.is-sheet .lyr-menu-sep { display:none; }   /* rows already have a line each (owner: no extra lines before Delete) */
.lyr-menu-ic { flex:none; display:grid; place-items:center; }
.lyr-menu-txt { display:flex; flex-direction:column; gap:2px; min-width:0; }
.lyr-menu-txt small { font:500 12px/1.3 'Manrope',var(--sans); color:var(--text-3); }
.lyr-menu-item.has-sub { min-height:52px; padding-block:7px; align-items:flex-start; }
.lyr-menu-item.has-sub .lyr-menu-ic { width:32px; height:32px; margin-top:1px; border-radius:var(--radius-xs); border:1px solid var(--border-2); color:var(--olive-light); }
.lyr-menu-item.has-sub .lyr-menu-ic svg { color:inherit; }
.lyr-menu.is-page .lyr-menu-item.has-sub { min-height:64px; align-items:center; }
.lyr-menu.is-page .lyr-menu-item.has-sub .lyr-menu-ic { width:40px; height:40px; margin:0; }
.lyr-menu.is-page .lyr-menu-txt small { font-size:13px; }
/* a sheet from the bottom (the round + on phones): one action per line */
.lyr-sheet-ov { position:fixed; inset:0; z-index:2040; display:none; background:var(--scrim); }
.lyr-sheet-ov.open { display:block; animation:fadeIn .2s ease-out; }
.lyr-sheet-ov.is-leaving { animation:fadeOut .2s ease-in forwards; }
.lyr-sheet { position:absolute; inset-inline:0; bottom:0; margin:0 auto; width:min(560px, 100%); max-height:calc(100dvh - 24px); overflow-y:auto; box-sizing:border-box;
  padding:10px 16px max(16px, env(safe-area-inset-bottom)); border-radius:20px 20px 0 0; border:1px solid var(--border-2); border-bottom:0;
  background:var(--panel); color:var(--text); outline:none; animation:lyrRise .3s var(--layer-in); }
.lyr-sheet-ov.is-leaving .lyr-sheet { animation:lyrSink .2s var(--layer-out) forwards; }
.lyr-sheet.is-dragging { transition:none; }
.lyr-sheet-grab { display:block; width:36px; height:4px; margin:0 auto 14px; border-radius:2px; background:var(--border-2); }
.lyr-sheet .lyr-title { font-size:20px; }
.lyr-sheet .lyr-sub { margin-bottom:6px; }
.lyr-menu.is-sheet { position:static; width:auto; margin:8px -16px 0; padding:0; border:0; border-radius:0; background:none; animation:none; }
.lyr-menu.is-sheet .lyr-menu-item { min-height:64px; padding:0 16px; border-radius:0; border-top:1px solid var(--border); font-size:15.5px; gap:14px; align-items:center; }
.lyr-menu.is-sheet .lyr-menu-item.has-sub .lyr-menu-ic { width:40px; height:40px; margin:0; }
/* a danger row (Block) keeps a plain icon in line with Report, even with a sub line */
.lyr-menu .lyr-menu-item.has-sub.is-danger .lyr-menu-ic { width:auto; height:auto; margin:0; border:0; color:inherit; }
.lyr-menu.is-sheet .lyr-menu-txt small { font-size:13px; }
@media (prefers-reduced-motion:reduce) { .lyr-sheet, .lyr-sheet-ov.is-leaving .lyr-sheet { animation:fadeIn .12s linear; } }
@keyframes lyrMenu   { from { opacity:0; transform:translateY(-4px); } }
@keyframes lyrMenuUp { from { opacity:0; transform:translateY(4px); } }
@media (prefers-reduced-motion:reduce) { .lyr-menu, .lyr-menu.is-up { animation:fadeIn .12s linear; } }

/* ═════════════════════════════════════════════════════════════
   §15  Toast
   ═════════════════════════════════════════════════════════════ */
.toast {
  position:fixed; bottom:28px; left:50%; transform:translateX(-50%) translateY(12px);
  display:flex; align-items:center; gap:10px; width:max-content; min-width:min(320px, calc(100vw - 32px)); max-width:min(480px, calc(100vw - 32px));
  padding:12px 16px; border-radius:12px; border:1px solid rgba(255,255,255,.08);
  background:#1A1C1A; color:#F0EEE6; font:600 13.5px/1.4 'Manrope',var(--sans);   /* the same dark toast in both themes */
  z-index:3000; opacity:0; pointer-events:none; overflow:hidden;
  transition:opacity .2s ease-out, transform .2s var(--layer-in);
}
.toast.visible { opacity:1; transform:translateX(-50%) translateY(0); pointer-events:auto; }
.toast-ic { flex:none; display:grid; place-items:center; color:#B7D9A8; }
.toast-err .toast-ic { width:20px; height:20px; border-radius:50%; background:var(--error-bg); color:#1A1C1A; font:800 13px/1 'Manrope',var(--sans); }
.toast-msg { flex:1; min-width:0; overflow-wrap:anywhere; }
.toast-has-undo { padding-block:8px; padding-inline-end:8px; }
.toast-undo {
  flex-shrink:0; min-height:34px; padding:6px 12px; border-radius:var(--radius-xs); cursor:pointer;
  background:transparent; border:none; color:#B7D9A8; font:700 13.5px 'Manrope',var(--sans); transition:background .15s;
}
.toast-undo:hover { background:rgba(183,217,168,.14); }
.toast-undo:disabled { opacity:.7; cursor:default; }
.toast-undo:focus-visible { outline:2px solid #B7D9A8; outline-offset:1px; }
.toast-bar { position:absolute; inset-inline-start:0; bottom:0; height:2px; width:100%; background:#B7D9A8; transform-origin:left; animation:toastBar var(--toast-ms, 6000ms) linear forwards; }
.toast.is-paused .toast-bar { animation-play-state:paused; }
@keyframes toastBar { from { transform:scaleX(1); } to { transform:scaleX(0); } }
@media(prefers-reduced-motion:reduce) { .toast { transform:translateX(-50%); transition:opacity .12s linear; } .toast-bar { animation:none; } }

/* ═════════════════════════════════════════════════════════════
   §16  Loading + Empty States
   ═════════════════════════════════════════════════════════════ */
.page-loading { display:flex; align-items:center; justify-content:center; padding:5rem; width:100%; }
.spinner {
  width:28px; height:28px; border-radius:50%;
  border:2px solid var(--border-2); border-top-color:var(--olive-light);
  animation:spin .65s linear infinite;
}

/* ═════════════════════════════════════════════════════════════
   §17  Detail Page (fields shared with other forms)
   ═════════════════════════════════════════════════════════════ */

.field-group { display:flex; flex-direction:column; }
.field-group[hidden] { display:none; }
.field-label { font-size:10px; letter-spacing:1.5px; text-transform:uppercase; color:var(--text-3); margin-bottom:6px; }
.field-input {
  width:100%; background:var(--bg-3); border:0.5px solid var(--border-input);
  border-radius:var(--radius-sm); color:var(--text); font-size:14px;
  padding:10px 14px; outline:none; transition:all var(--trans) var(--ease);
  -webkit-appearance:none; appearance:none; box-sizing:border-box;
}
.field-input:focus { border-color:var(--border-olive); box-shadow:0 0 0 3px var(--olive-faint); }
.field-input::placeholder { color:var(--text-3); }
textarea.field-input { resize:vertical; min-height:80px; line-height:1.5; }

.genre-picker { display:flex; flex-wrap:wrap; gap:6px; justify-content:space-between; }
.genre-opt {
  /* same shape as the genre tags (.w-ep-badge); picked = the tag's dark green */
  font-family:var(--sans); font-weight:600; font-size:11.5px; letter-spacing:0.3px;
  padding:4px 10px; border-radius:3px; cursor:pointer; white-space:nowrap;
  background:transparent; border:0.5px solid var(--border-2); color:var(--text-2);
  transition:all var(--trans) var(--ease); -webkit-user-select:none; user-select:none;
}
.genre-opt:hover { border-color:var(--border-olive); color:var(--text); }
.genre-opt.selected { background:var(--olive); border-color:var(--olive); color:var(--text-on-brand); }

.ratings-wrap { position:sticky; top:74px; }

.btn-save {
  flex:1; background:var(--action-primary-bg); border:none; border-radius:var(--radius-sm);
  color:var(--text-on-primary); font-size:14px; font-weight:500; padding:12px; cursor:pointer;
  transition:all var(--trans) var(--ease); min-width:120px;
}
.btn-save:hover { background:var(--action-primary-hover); }
.btn-save:active { transform:scale(0.98); }
.btn-save.saving { opacity:.6; pointer-events:none; }
.btn-delete {
  background:transparent; border:0.5px solid rgba(220,50,50,0.3);
  border-radius:var(--radius-sm); color:rgba(220,80,80,.8);
  font-size:13px; padding:12px 18px; cursor:pointer; transition:all var(--trans) var(--ease);
}
.btn-delete:hover { background:rgba(220,50,50,.1); border-color:rgba(220,50,50,.5); color:var(--error-fg); }

/* ═════════════════════════════════════════════════════════════
   §18  Rating Dropdowns (detail page)
   ═════════════════════════════════════════════════════════════ */
.ratings-section-label {
  font-size:10px; letter-spacing:2.5px; text-transform:uppercase;
  color:var(--olive-light); margin-bottom:1rem; margin-top:1.5rem;
  display:flex; align-items:center; gap:10px;
}
.ratings-section-label::after { content:''; flex:1; height:0.5px; background:var(--border); }

/* ═════════════════════════════════════════════════════════════
   §19  Profile & Public Profile
   ═════════════════════════════════════════════════════════════ */
.pub-hero {
  display:flex; align-items:center; gap:2rem; margin-bottom:3rem; padding:2.5rem;
  background:var(--card); border:0.5px solid var(--border); border-radius:var(--radius-lg);
}
@media(max-width:600px) { .pub-hero { flex-direction:column; gap:1.5rem; text-align:center; } }

/* ═════════════════════════════════════════════════════════════
   §20  Responsive
   ═════════════════════════════════════════════════════════════ */
@media(max-width:1199px) {
  .nav-top   { display:flex !important; }
  .nav-inner { display:none !important; }
  .cat-page-header { flex-direction:row; align-items:flex-end; justify-content:space-between; top:var(--shell-b); padding-inline-start:calc(50vw - 50% + 18px); padding-inline-end:calc(50vw - 50% + 18px); }
  .detail-poster-wrap { max-height:300px; }
  .ep-grid { grid-template-columns:1fr 1fr; }

}
@media(max-width:480px) {  .nav-inner { padding:0 16px; }
}

/* ═════════════════════════════════════════════════════════════
   §21  Light Mode
   ═════════════════════════════════════════════════════════════ */
/* the light values of every colour token are in css/theme.css */

[data-theme="light"] .section-block-header:hover { background:var(--fill-subtle); }
[data-theme="light"] .field-input { background:var(--surface-card); border-color:var(--border-input); color:var(--text-body); }
[data-theme="light"] .field-input:focus { border-color:color-mix(in srgb, var(--p-forest-800) 55%, transparent); box-shadow:0 0 0 3px color-mix(in srgb, var(--p-forest-800) 10%, transparent); }
[data-theme="light"] .w-prog-fill { background:var(--olive-light); }

[data-theme="light"] .view-toggle { background:var(--bg-2); }

.theme-transitioning,
.theme-transitioning *,
.theme-transitioning *::before,
.theme-transitioning *::after {
  transition:
    background-color 260ms cubic-bezier(0.4,0,0.2,1),
    border-color     260ms cubic-bezier(0.4,0,0.2,1),
    color            260ms cubic-bezier(0.4,0,0.2,1),
    box-shadow       260ms cubic-bezier(0.4,0,0.2,1) !important;
}

/* ═════════════════════════════════════════════════════════════
   §22  Back to top
   ═════════════════════════════════════════════════════════════ */
.back-to-top {
  position:fixed; inset-inline-end:24px; bottom:24px; z-index:394;
  width:46px; height:46px; border-radius:50%; cursor:pointer;
  display:flex; align-items:center; justify-content:center; color:var(--text-on-brand);
  background:var(--olive); border:1.5px solid var(--border-olive);
  opacity:0; transform:translateY(12px) scale(.9); pointer-events:none;
  transition:opacity 200ms var(--ease), transform 200ms var(--ease), border-color .15s;
}
.back-to-top.show { opacity:1; transform:none; pointer-events:auto; }
.back-to-top:hover { border-color:var(--olive-light); }
.back-to-top:active { transform:scale(.94); }
.back-to-top:focus-visible { outline:2px solid var(--olive-light); outline-offset:3px; }
.back-to-top svg { stroke-width:2.6; }
@media(max-width:640px) { .back-to-top { width:42px; height:42px; } .back-to-top svg { width:20px; height:20px; } }
@media print { .back-to-top { display:none; } }
@media(max-width:1199px) {
  .back-to-top { inset-inline-end:calc(20px + env(safe-area-inset-right)); bottom:calc(var(--bnav-top) + 46px + 68px); }   /* above the Create button */
  .toast { bottom:calc(var(--bnav-top) + 46px + 66px); }                                                                 /* clear of the bar and Create */
}

/* ═════════════════════════════════════════════════════════════
   §23  View Toggle
   ═════════════════════════════════════════════════════════════ */
.view-toggle {
  display:flex; align-items:center;
  background:var(--bg-3); border:0.5px solid var(--border);
  border-radius:var(--radius-xs); padding:2px; gap:1px;
  margin-inline-start:auto;
}
.vt-btn {
  display:flex; align-items:center; justify-content:center;
  width:28px; height:24px; border:none; background:transparent;
  border-radius:6px; cursor:pointer; color:var(--text-3);
  transition:all 180ms var(--ease);
}
.vt-btn svg { width:14px; height:14px; }
.vt-btn:hover { color:var(--text-2); }
.vt-btn.active { background:var(--olive); color:var(--text-on-brand); }
[data-theme="light"] .vt-btn:not(.active) { color:var(--text-2); }   /* --text-3 is too faint on the light toggle */
[data-theme="light"] .vt-btn:not(.active):hover { color:var(--text); }

.accordion-chevron svg { width:16px; height:16px; transition:transform 220ms var(--ease); }

/* ═════════════════════════════════════════════════════════════
   §24  VIEW: Watching Grid
   ═════════════════════════════════════════════════════════════ */
/* ═════════════════════════════════════════════════════════════
   §25  View: Facts Grid
   ═════════════════════════════════════════════════════════════ *//* Runtime/ep poster corner overlay (bottom-left) — positioning only.
   The actual look (solid olive fill) comes from .w-ep-badge, the same
   primary runtime/ep tag class used everywhere else on the site
   (next to titles, in Completed rows, etc.), not a separate
   poster-overlay-specific variant. */

/* Type badge poster corner overlay (top-left) — positioning only.
   The actual look (solid olive for Movie, solid blue for TV Show)
   comes from the existing .type-label/.type-label-tv classes already
   used everywhere else on the site — this just pins that same badge
   to a poster corner instead of the usual meta-row placement. */

/* Bottom-left variant, used on poster thumbnails where the badge sits
   at the bottom of the poster rather than the top (e.g. next to a
   rank number badge already occupying top-left, or by design choice
   for a given card layout). *//* Title+year: year sits inline next to the title by default. A small
   JS pass (fitTitleYear in nav.js) measures whether the title is
   being truncated once the year takes up space, and if so hides the
   inline year and reveals the below-title version instead — so long
   titles get their room back rather than colliding with the year. */.title-year-inline { font-family:var(--bebas); flex-shrink:0; font-size:18px; font-weight:400; color:var(--text-3); white-space:nowrap; }
@media(max-width:640px) { .title-year-inline { font-size:15px; } }
@media(max-width:400px) { .title-year-inline { font-size:14px; } }
/* ═════════════════════════════════════════════════════════════
   §26  Profile Stats Box
   ═════════════════════════════════════════════════════════════ */
.overview-layout {
  display:grid;
  grid-template-columns: minmax(200px, 19%) 1fr;   /* slimmer stats column → bigger dashboard cards */
  gap:1.75rem;
  align-items:start;
}
.overview-main { min-width:0; order:2; }
.overview-side {
  position:sticky;
  top:170px;
  order:1;
}
.stats-box {
  background:var(--card); border:0.5px solid var(--border); border-radius:var(--radius-lg);
  width:100%; overflow:hidden;
}
.stats-row {
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  padding:12px 18px;
  border-bottom:0.5px solid var(--border);
}
.stats-row:last-child { border-bottom:none; }
.stats-label { font-size:13.5px; color:var(--text-2); }
.stats-value {
  font-family:var(--serif); font-size:16px; font-weight:400; color:var(--olive-light);
  flex-shrink:0;
}
@media(max-width:900px) {
  .overview-layout { display:block; }
  .overview-side { position:static; margin-bottom:2rem; }
  .stats-row:not(:first-child) { display:none; }
  .stats-box.open .stats-row:not(:first-child) { display:flex; }
  .stats-row:first-child { cursor:pointer; }
  .stats-chevron { display:inline-flex; margin-inline-start:6px; transition:transform .2s var(--ease); }
  .stats-chevron svg { width:12px; height:12px; opacity:.55; stroke:var(--text-3); vertical-align:middle; }
  .stats-box.open .stats-row:first-child .stats-chevron { transform:rotate(180deg); }
}
@media(min-width:901px) {
  .stats-chevron { display:none; }
}

/* Ratings curve (rating-curve.js) — under the side stats on profiles, and on top of ratings.html.
   20 half-point bars. Classes are rc-* only (the site's own .empty has big padding). Heights are pixels: --rc-h is a column, --k each bar's share (no % heights — Safari
   resolved them against the wrong box and drew the bars below the line). */
.rc-box { --rc-h:84px; margin-top:14px; background:var(--card); border:0.5px solid var(--border); border-radius:var(--radius-lg); padding:14px 16px 12px; }
.rc-here { --rc-h:120px; }
.rc-head { display:flex; align-items:baseline; justify-content:space-between; gap:10px; margin-bottom:12px; }
.rc-title { font-family:'Oswald',var(--sans); font-size:12px; font-weight:600; letter-spacing:1.4px; text-transform:uppercase; color:var(--olive-light); }
/* the total — or, on a hovered / tapped bar, "8.5–8.99 · ★ 46" in the score style */
.rc-total { font-family:var(--bebas); font-size:17px; letter-spacing:.3px; line-height:1; color:var(--olive-light); white-space:nowrap; }
/* the bars touch: one rounded panel behind them all */
.rc-plot { display:grid; grid-template-columns:repeat(20,minmax(0,1fr)); align-items:end; border-radius:6px; overflow:hidden; background:var(--olive-faint); }
.rc-col { position:relative; display:block; box-sizing:border-box; width:100%; min-width:0; margin:0; padding:0; height:var(--rc-h); text-decoration:none; outline-offset:-2px; }
.rc-bar { position:absolute; left:0; right:0; bottom:0; height:calc(var(--rc-h) * var(--k, 0)); background:var(--olive); transition:background var(--trans) var(--ease); }
a.rc-col { cursor:pointer; }
/* a hairline between bars — drawn on the bars only, so the empty space above stays one piece */
.rc-col + .rc-col .rc-bar { box-shadow:inset 1px 0 0 var(--card); }
a.rc-col:hover .rc-bar, a.rc-col:focus-visible .rc-bar, .rc-col.rc-sel .rc-bar { background:var(--olive-light); }
.rc-axis { display:flex; justify-content:space-between; margin-top:7px; }
.rc-axis span { font-family:var(--bebas); font-size:14px; letter-spacing:.4px; color:var(--text-2); }
/* ratings.html: the range you're on stands out */
.rc-here .rc-col:not(.rc-on):not(.rc-sel) .rc-bar { background:var(--border-olive); }
.rc-here a.rc-col:hover .rc-bar, .rc-here a.rc-col:focus-visible .rc-bar { background:var(--olive); }
.rc-here .rc-col.rc-on .rc-bar { background:var(--olive-light); }
.rc-none { font-size:12.5px; color:var(--text-2); padding:6px 0 2px; }
/* ── MSF breakdown (MSSCurve.fromCounts / open): the curve's bars in the confirm card ── */
.mss-msf-body .rc-box { --rc-h:160px; }
.mss-msf-note { display:flex; align-items:flex-start; gap:6px; margin-top:14px; }
.mss-msf-note svg { margin-top:2px; }
.mss-msf-note svg { flex-shrink:0; }
/* the MSF score that opens it (title, season and episode pages) */
.msf-open { cursor:pointer; font:inherit; color:inherit; text-align:inherit; }
.msf-open:focus-visible { outline:2px solid var(--olive-light); outline-offset:3px; }
/* The MSF breakdown's bars: buttons that read out their count */
button.rc-col { border:0; background:none; font:inherit; color:inherit; cursor:default; -webkit-appearance:none; appearance:none; }
button.rc-col:focus-visible { outline:2px solid var(--olive-light); outline-offset:-2px; }
@media (prefers-reduced-motion:reduce) { .rc-bar { transition:none; } }
/* The MSF graph: the profile's curve in the rating scale's colours; a bar grows a little under the pointer (owner, 3 Dec 2026) */
.rc-msf { --rc-h:150px; }
.mss-msf-body .rc-box.rc-msf { --rc-h:170px; margin-top:0; }
.rc-plot.rc-plot-msf { overflow:visible; }
.rc-plot-msf .rc-bar { border-radius:3px 3px 0 0; background:var(--st-fill, var(--olive)); transition:left .16s var(--ease), right .16s var(--ease), height .16s var(--ease); }
.rc-plot-msf .rc-col:is(:hover, :focus-visible, .rc-sel) { z-index:1; }
.rc-plot-msf .rc-col:not(.rc-empty):is(:hover, :focus-visible, .rc-sel) .rc-bar { left:-2px; right:-2px; height:calc(var(--rc-h) * var(--k, 0) + 5px); background:var(--st-fill, var(--olive)); box-shadow:none; }
@media (prefers-reduced-motion:reduce) { .rc-plot-msf .rc-bar { transition:none; } }

/* Laptops: the side stats scroll inside themselves so the curve under them is always in view */
@media(min-width:901px) {
  .overview-side { display:flex; flex-direction:column; max-height:calc(100vh - 194px); }
  .overview-side .stats-box { flex:1 1 auto; min-height:140px; overflow-y:auto; overscroll-behavior-y:contain; scrollbar-width:thin; }
  .overview-side .rc-box { flex:none; }
}
@media(min-width:901px) and (max-width:1199px) { .overview-side { max-height:calc(100vh - 194px - 84px); } }   /* room for the bottom bar */
@media(max-width:640px) {
  .stats-row { padding:10px 16px; }
  .stats-label { font-size:13px; }
  .stats-value { font-size:15px; }
}

/* ═════════════════════════════════════════════════════════════
   §27  Completed Grid
   ═════════════════════════════════════════════════════════════ */

/* ── Rank badge (used everywhere a list is ranked) ──
   A corner tab that sits flush in the poster's top-left corner with the number
   in Bebas. #1–#3 get gold / silver / bronze foil; everything else is the
   site's deep olive. Solid fills + a light inner edge keep it crisp on any
   poster, in light and dark mode. */
.cg-rank-badge {
  position:absolute; top:0; inset-inline-start:0; z-index:2;
  min-width:32px; height:32px; padding-block:0; padding-inline:8px 9px; box-sizing:border-box;
  display:flex; align-items:center; justify-content:center;
  font-family:var(--bebas) !important; font-size:19px; font-weight:400; letter-spacing:.6px; line-height:1;
  color:#fff; background:linear-gradient(155deg, var(--p-forest-600) 0%, var(--p-forest-800) 60%, var(--p-forest-900) 100%);
  border-start-start-radius:0;
  border-start-end-radius:0;
  border-end-end-radius:12px;
  border-end-start-radius:0;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.22), inset -1px -1px 0 rgba(0,0,0,.18);
}
.cg-rank-badge::after { /* thin foil line along the bottom edge */
  content:''; position:absolute; inset-inline-start:8px; inset-inline-end:10px; bottom:5px; height:1px; border-radius:1px;
  background:currentColor; opacity:.28;
}
.cg-rank-1 { background:linear-gradient(155deg, #fbe7a1 0%, #e0b44a 40%, #b8861d 75%, #8f6612 100%); color:#3a2800; text-shadow:0 1px 0 rgba(255,255,255,.45); }
.cg-rank-2 { background:linear-gradient(155deg, #ffffff 0%, #dedcd3 40%, #b1ada0 75%, #7d8993 100%); color:#1d2830; text-shadow:0 1px 0 rgba(255,255,255,.55); }
.cg-rank-3 { background:linear-gradient(155deg, #f6c39a 0%, #d08a55 40%, #a8622f 75%, #7c4420 100%); color:#fcf9f0; text-shadow:0 1px 1px rgba(0,0,0,.25); }
.cg-rank-other { background:linear-gradient(155deg, var(--p-forest-600) 0%, var(--p-forest-800) 60%, var(--p-forest-900) 100%); color:#fff; }
@media(max-width:600px) { .cg-rank-badge { min-width:27px; height:27px; font-size:16px; padding-block:0; padding-inline:6px 7px; border-start-start-radius:0; border-start-end-radius:0; border-end-end-radius:10px; border-end-start-radius:0; } .cg-rank-badge::after { bottom:4px; inset-inline-start:6px; inset-inline-end:8px; } }
@media(max-width:400px) { .cg-rank-badge { min-width:24px; height:24px; font-size:14px; padding-block:0; padding-inline:5px 6px; } }
.fav-picker-poster .cg-rank-badge { min-width:20px; height:20px; font-size:12px; padding:0 5px; border-start-start-radius:0; border-start-end-radius:0; border-end-end-radius:7px; border-end-start-radius:0; }
.fav-picker-poster .cg-rank-badge::after { display:none; }
/* Small posters (list rows) get a compact tab */
.fv-rank-poster .cg-rank-badge {
  min-width:24px; height:24px; font-size:14px; padding-block:0; padding-inline:5px 6px; border-start-start-radius:0; border-start-end-radius:0; border-end-end-radius:8px; border-end-start-radius:0;
}

.fv-rank-poster .cg-rank-badge::after { display:none; }

/* Score badge — same positioning as ranking badge. */
.cg-score-badge {
  position:absolute; top:7px; inset-inline-start:7px; z-index:2;
  padding:4px 9px; border-radius:5px; min-width:38px; text-align:center;
  font-family:var(--bebas); font-size:17px; font-weight:400; letter-spacing:0.3px;
   line-height:1.5;
}

/* its colour: the rating scale's tier (.ep-band-<key>, css/theme.css) */
.cg-score-none { background:rgba(120,120,120,0.55); color:#fff; }


/* ═════════════════════════════════════════════════════════════
   §28  Pick for me (js/pick.js)
   ═════════════════════════════════════════════════════════════ */
.qp-trigger {                              /* "Pick for me": as tall as the list / grid switch next to it */
  display:inline-flex; align-items:center; justify-content:center; gap:7px; align-self:stretch; min-height:30px;
  background:var(--olive-faint); border:1px solid var(--border-olive); border-radius:var(--radius-xs);
  color:var(--olive-light); font:700 12.5px 'Manrope',var(--sans); padding:0 12px; cursor:pointer; white-space:nowrap;
  transition:background .18s, border-color .18s, color .18s;
}
.qp-trigger:hover { background:var(--olive); border-color:var(--olive); color:var(--text-on-brand); }
.qp-trigger:hover svg { animation:qpWobble .5s ease; }
.qp-trigger:disabled { opacity:.35; cursor:not-allowed; pointer-events:none; }
.qp-trigger svg { width:16px; height:16px; flex-shrink:0; }
@keyframes qpWobble { 30% { transform:rotate(-14deg); } 65% { transform:rotate(10deg); } }

/* Inside its side panel / full page: the hero runs edge to edge, the panel's footer holds the buttons */
.lyr .qp { margin:-20px -20px 0; }
.lyr.is-page .qp { margin:-16px -16px 0; }
.qp-hero { position:relative; isolation:isolate; overflow:hidden; padding:18px 20px 22px; color:#EDEDED; background:#090D0A; flex-shrink:0; }
.qp-backdrop { position:absolute; inset:-30px; z-index:-2; background:#131815 center/cover no-repeat; filter:blur(5px) saturate(1.1); opacity:.7; transform:scale(1.08); transition:background-image .3s; }
.qp-hero::after { content:''; position:absolute; inset:0; z-index:-1; background:linear-gradient(180deg, rgba(4,19,10,.35), rgba(4,19,10,.82) 70%, rgba(4,19,10,.95)); }
.qp-top { display:flex; align-items:center; justify-content:space-between; margin-bottom:14px; }
.qp-eyebrow { display:inline-flex; align-items:center; gap:8px; font-size:11px; font-weight:800; letter-spacing:2px; text-transform:uppercase; color:#9FD38C; }
.qp-eyebrow svg { width:16px; height:16px; }
.qp.rolling .qp-eyebrow svg { animation:qpSpin .6s linear infinite; }
@keyframes qpSpin { to { transform:rotate(360deg); } }
.qp-main { display:flex; gap:18px; align-items:flex-end; }
.qp-poster { flex-shrink:0; display:block; width:140px; aspect-ratio:2/3; border-radius:var(--radius-sm); overflow:hidden; border:1px solid rgba(255,255,255,.18); background:#131815; text-decoration:none; color:inherit; }
.qp-poster img { display:block; width:100%; height:100%; object-fit:cover; }
.qp-poster-ph { display:grid; place-items:center; width:100%; height:100%; font-family:var(--serif); font-size:44px; color:rgba(237,237,237,.6); }
.qp-poster:focus-visible { outline:2px solid var(--p-forest-300); outline-offset:3px; }
.qp-poster.land { animation:qpLand .45s var(--spring); }
@keyframes qpLand { 0% { transform:scale(.88) rotate(-3deg); } 100% { transform:none; } }
.qp-info { min-width:0; flex:1; display:flex; flex-direction:column; gap:6px; padding-bottom:2px; }
.qp-count { font-size:11.5px; font-weight:700; color:rgba(237,237,237,.6); }
.qp-title { margin:0; font-family:var(--serif); font-weight:600; font-size:clamp(24px, 5vw, 32px); line-height:1.08; letter-spacing:.2px; color:#fff; overflow-wrap:anywhere; }
.qp-meta { font-size:13.5px; color:rgba(237,237,237,.82); }
#qpVote { white-space:nowrap; }
.qp-vote { color:#E2B53E; font-weight:800; } .qp-meta small { color:rgba(237,237,237,.5); font-size:11px; }
.qp-genres { display:flex; flex-wrap:wrap; gap:6px; margin-top:2px; }
.qp-body { padding:18px 20px 4px; display:flex; flex-direction:column; gap:14px; }
.qp-overview { margin:0; font-size:14.5px; line-height:1.6; color:var(--text-2); display:-webkit-box; -webkit-line-clamp:5; -webkit-box-orient:vertical; overflow:hidden; }
.qp-overview:empty { display:none; }
.qp-skel { display:block; height:12px; margin:6px 0; border-radius:6px; }
.qp-skel.short { width:60%; }
.qp-credit { display:flex; flex-wrap:wrap; gap:4px 18px; font-size:13px; color:var(--text-2); }
.qp-credit:empty { display:none; }
.qp-credit b { color:var(--text-3); font-weight:700; font-size:11px; letter-spacing:.8px; text-transform:uppercase; margin-inline-end:4px; }
.qp-why { border:1px solid var(--border-olive); background:var(--olive-faint); border-radius:var(--radius); padding:12px 14px; }
.qp-why-h { font-size:11px; font-weight:800; letter-spacing:1.6px; text-transform:uppercase; color:var(--olive-light); margin-bottom:8px; }
.qp-why ul { list-style:none; margin:0; padding:0; display:grid; gap:7px; }
.qp-why li { display:flex; gap:9px; align-items:flex-start; font-size:13.5px; line-height:1.45; color:var(--text); }
.qp-why li svg { width:15px; height:15px; flex-shrink:0; margin-top:2px; color:var(--olive-light); }
.qp-none { font-size:14px; color:var(--text-2); padding:6px 0 10px; }
.qp-link { margin-inline-start:6px; background:none; border:0; padding:0; color:var(--olive-light); font:700 14px 'Manrope',var(--sans); cursor:pointer; text-decoration:underline; }
.qp-moods { padding:18px 20px 20px; border-top:1px solid var(--border); margin-top:6px; }
.qp-moods-top { display:flex; align-items:baseline; justify-content:space-between; margin-bottom:10px; }
.qp-moods-top .lyr-sec-h { margin:0; }
.qp-reset { font-size:13px; margin:0; }
.qp-row { display:grid; grid-template-columns:72px minmax(0, 1fr); align-items:center; gap:12px; }
.qp-row + .qp-row { margin-top:10px; }
.qp-row-h { font:700 13px 'Manrope',var(--sans); color:var(--text-2); }
@media (max-width:420px) { .qp-row { grid-template-columns:1fr; gap:6px; } }
.qp-chips { display:flex; flex-wrap:wrap; gap:7px; }
.qp-chip { display:inline-flex; align-items:center; gap:6px; height:34px; padding:0 12px; border-radius:var(--radius-xs); cursor:pointer;
  font:600 13px 'Manrope',var(--sans); color:var(--text-2); background:transparent; border:1px solid var(--border-2); transition:all .15s; }
.qp-chip:hover { border-color:var(--olive-light); color:var(--text); }
.qp-chip.on { background:var(--olive); border-color:var(--olive); color:var(--text-on-brand); }
/* Priority chips: icon · level · how many on the watchlist */
.qp-chip svg { flex:none; }
.qp-chip-n { font:400 14px/1 'Bebas Neue',var(--sans); letter-spacing:.04em; opacity:.8; }
/* the genre picker: the site's own dropdown (SF.dd), as tall as the mood buttons */
.qp-genre { width:100%; }
.qp-genre .sf-dd-trigger { font-weight:600; font-size:12.5px; }
.qp-genre .td-dd-menu { max-height:240px; overflow-y:auto; overscroll-behavior:contain; touch-action:pan-y; -webkit-overflow-scrolling:touch; }
.qp-genre .sf-dd { position:relative; }
.qp-genre-in { width:100%; padding:0 36px 0 14px !important; cursor:text; font-weight:600; font-size:12.5px; }
.qp-genre-in::placeholder { color:var(--text); opacity:1; }
.qp-genre-in.active::placeholder, .qp-genre-in.active { color:#fff; }
.qp-genre-in:focus { outline:none; border-color:var(--olive-light); }
.qp-genre-btn { position:absolute; top:50%; right:6px; transform:translateY(-50%); width:28px; height:28px; border-radius:7px; display:grid; place-items:center;
  border:0; background:none; color:inherit; cursor:pointer; }
.qp-genre-in.active + .qp-genre-btn { color:#fff; }
.qp-genre-btn svg { width:13px; height:13px; }
.sf-dd.open .qp-genre-btn svg { transform:rotate(180deg); }
.qp-genre .sf-dd.open .qp-genre-in.active + .qp-genre-btn svg { transform:none; }
#qpGenreMenu .td-dd-opt.hl { background:var(--olive-faint); color:var(--text); }
#qpGenreMenu .td-dd-opt.active { display:flex; align-items:center; justify-content:space-between; gap:8px; }
#qpGenreMenu .td-dd-opt.active::after { content:'✓'; font-weight:800; }
#qpGenreMenu .td-dd-opt b { color:var(--olive-light); }
@media (max-width:520px) {
  .qp-hero { padding:14px 16px 18px; }
  .qp-poster { width:112px; }
  .qp-main { gap:14px; }
  .qp-body, .qp-moods { padding-inline:16px; }
}
@media (prefers-reduced-motion:reduce) { .qp-poster.land, .qp-trigger:hover svg, .qp.rolling .qp-eyebrow svg { animation:none; } }

/* ═════════════════════════════════════════════════════════════
   §29  VIEW: Completed Grid (container)
   ═════════════════════════════════════════════════════════════ */

/* ═════════════════════════════════════════════════════════════
   §30  Score Badge System
   ═════════════════════════════════════════════════════════════ */
.score-badge {
  border-radius:50%; display:inline-flex; align-items:center; justify-content:center;
  font-family:var(--serif); font-weight:500; flex-shrink:0;
  letter-spacing:-0.5px; line-height:1;
}
.score-badge-sm { width:44px; height:44px; font-size:18px; }
.score-badge-md { width:44px; height:44px; font-size:18px; }
.score-badge-lg { width:54px; height:54px; font-size:22px; }

/* ═════════════════════════════════════════════════════════════
   §31  Global Spacing + Typography
   ═════════════════════════════════════════════════════════════ */
body { font-size:15px; }
.field-input { font-size:14px; }
.section-block { margin-bottom:20px; }
.section-block-title { font-size:14px; font-weight:600; }.page-stat-num { font-size:34px; }

#homeWatching { margin-top:4.5rem; }


/* ═════════════════════════════════════════════════════════════
   §32  Scrollable Section Content
   ═════════════════════════════════════════════════════════════ */
/* ── List views: contained scroll in accordion ── */

/* ═════════════════════════════════════════════════════════════
   §33  Phones — up to 640px
   ═════════════════════════════════════════════════════════════ */
@media (max-width: 640px) {

  .grid-nav-wrap .grid-nav-btn { display:flex !important; }

  .page-wrap { padding:calc(74px + var(--atabs-h)) 14px 96px; --page-px:14px; --page-pt:calc(var(--shell-b) + 14px); }

  .cat-page-title { font-size:clamp(28px,8vw,38px); }

  .cat-page-sub { font-size:12px; margin-top:4px; }
  .cat-page-header { margin-bottom:1.5rem; padding-bottom:1rem; top:var(--shell-b); padding-inline-start:calc(50vw - 50% + 14px); padding-inline-end:calc(50vw - 50% + 14px); }
  .section-title  { font-size:22px; }

  /* Footer */
  .site-footer { font-size:12px; padding:1rem 0; margin-top:2.5rem; }

  .page-stats { gap:8px; margin-bottom:1.5rem; }
  .page-stat   { padding:.75rem .6rem; }
  .page-stat-num { font-size:22px; }
  .page-stat-label { font-size:9px; letter-spacing:1px; margin-top:4px; }

  .grid-nav-wrap .grid-nav-btn { display:none !important; }
  /* ── fav chips + all tag badges scaled for phone ── */
  .fav-chip {
    font-size:9px;
    padding:2px 5px;
    gap:3px;
    border-radius:5px;
  }
  .fav-chip-label { font-size:8px; letter-spacing:0; }
  .fav-chips { gap:3px; margin-top:4px; }

  #homeRecentlyViewedGrid .genre-dot, #homeWatchlistGrid .genre-dot,
  #homeRecentlyViewedGrid .type-label, #homeWatchlistGrid .type-label { font-size:9px; }  /* ── Buttons: scale down on mobile ── */
  .btn-add-entry { white-space:nowrap; }


  /* ── List cards: compact ── */  .cg-score-badge { font-size:8px; padding:2px 5px; min-width:24px; top:5px; inset-inline-start:5px; }
  /* Items 3/4/5: always show controls on mobile, scaled down */  .btn-add-entry { font-size:11px; padding:7px 10px; }

  /* Resume button — icon only on mobile (hide text label, make circular) */
  /* Done button scaling — list view (icon only, matches pause) */
  /* Done mode: row layout */  /* Comments strip — tighter on mobile */
  .cc-strip { padding:4px 10px; font-size:10px; }
  .cc-comment { padding:7px 10px; gap:7px; }
  .cc-text { font-size:12px; }
  .cc-author { font-size:10px; }
  .cc-meta { font-size:9px; gap:7px; }
  .cc-input { font-size:12px; padding:6px 10px; }
  .cc-send { font-size:11px; padding:6px 10px; }  .fv-rank-meta   { gap:4px; }
  .fv-rank-meta .genre-dot, .fv-rank-meta .type-label { font-size:8px; padding:1px 4px; }

  /* ── Section header wrap ── */
  .section-block-header { flex-wrap:nowrap; gap:8px; align-items:center; padding:12px 10px; }
  .sec-left { flex:1; min-width:0; }
  .sec-right { flex-shrink:0; gap:4px; }
  .section-block-title { font-size:12px; }
  .section-pill { font-size:9px; padding:1px 6px; }
  .vt-btn { width:24px; height:22px; }
  .vt-btn svg { width:12px; height:12px; }

  .chevron-btn { width:24px; height:24px; }

  /* ── QP button: icon only on mobile ── */
  .qp-label { display:none; }
  .qp-trigger { padding:0 10px; }

  /* ── Sort bar ── */
  .sort-bar { gap:3px; padding:8px 14px 10px; margin-bottom:12px; margin-inline-start:-14px; margin-inline-end:-14px; background:var(--card-solid); }

  /* ── Accordion inner padding ── */
  .accordion-inner { padding:14px; }

  /* ── Friend view list cards ── */
  .fv-rank-row {
    padding:12px 14px !important; gap:12px !important; height:auto !important; min-height:100px;
  }
  .fv-rank-poster { width:60px !important; height:84px !important; }
  .fv-rank-title { font-size:15px; }

  /* ── Detail page ── */

  .detail-poster-wrap { max-height:260px; }
  .ep-grid { grid-template-columns:1fr 1fr !important; }

}

/* ═════════════════════════════════════════════════════════════
   §34  Small Phones — up to 400px
   ═════════════════════════════════════════════════════════════ */
@media (max-width: 400px) {
  .page-wrap { padding:calc(72px + var(--atabs-h)) 12px 92px; --page-px:12px; --page-pt:calc(var(--shell-b) + 12px); }
  .cat-page-title { font-size:26px; }

  .cat-page-sub { font-size:11px; }
  .cat-page-header { top:var(--shell-b); padding-inline-start:calc(50vw - 50% + 12px); padding-inline-end:calc(50vw - 50% + 12px); }
  .site-footer { font-size:11px; margin-top:1.5rem; }
  .page-stat { padding:.65rem .5rem; }
  .page-stat-num { font-size:18px; }
  .page-stat-label { font-size:8px; letter-spacing:.5px; }
  .cg-score-badge { font-size:7px; padding:1px 4px; min-width:20px; }

  .accordion-inner { padding:10px; }
  .sort-bar { gap:3px; padding:6px 10px 8px; margin-bottom:10px; margin-inline-start:-10px; margin-inline-end:-10px; }

  .section-block-header { padding:10px 8px; gap:6px; }
  .section-block-title { font-size:11px; }
  .section-pill { font-size:8px; padding:1px 5px; }
  .vt-btn { width:22px; height:20px; }
  .vt-btn svg { width:11px; height:11px; }

  .sec-right { gap:3px; }

  /* Extra small tags */
  .fav-chip { font-size:8px; padding:1px 4px; }

  /* Done button tiny phones */  /* Score on tiny phones */

}

/* ═════════════════════════════════════════════════════════════
   §35  Tablets — 641px to 1024px
   ═════════════════════════════════════════════════════════════ */
@media (min-width: 641px) and (max-width: 1024px) {  /* Only ≤640px and ≤400px had scaling before; this fills the gap for the tablet
   range between them. */  /* .wg-genre/.q-genre are just containers — the actual genre/type tags are the
   shared .genre-dot/.type-label classes, which have their own explicit
   clamp()-based font-size that doesn't inherit from a parent, so they need to
   be targeted directly here. */
  .cat-page-title { font-size:clamp(32px,5vw,42px); }

  .page-stats { grid-template-columns:repeat(2,1fr); }
  .sec-right { gap:6px; }

  .fav-chip { font-size:10px; padding:2px 7px; }
}

/* ═════════════════════════════════════════════════════════════
   §36  Large Displays — 1536px+
   ═════════════════════════════════════════════════════════════ */

/* ═════════════════════════════════════════════════════════════
   §37  TV & Ultrawide — 1920px+
   ═════════════════════════════════════════════════════════════ */
@media (min-width: 1920px) {

}

/* ═════════════════════════════════════════════════════════════
   §38  Tablet-only Nav
   ═════════════════════════════════════════════════════════════ */
@media (min-width: 641px) and (max-width: 1199px) {
  .page-wrap { padding:calc(72px + var(--atabs-h)) 24px 110px; --page-pt:calc(var(--shell-b) + 12px); }

}

/* ═════════════════════════════════════════════════════════════
   §39  Touch Experience
   ═════════════════════════════════════════════════════════════ */
@media (hover: none) and (pointer: coarse) {

  .vt-btn     { width:34px; height:30px; }


  .field-input,
.cc-input {
    padding:12px 14px; font-size:16px;
  }
}
/* Cancel touch inflation on phones */
/* ═════════════════════════════════════════════════════════════
   §40  Grid Navigation Arrows
   ═════════════════════════════════════════════════════════════ */
.grid-nav-wrap {
  position: relative;
  overflow: hidden;
}
.grid-nav-btn {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  z-index: 10;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 0.5px solid var(--border-2);
  background: var(--bg-3);
  color: var(--text-2);
  display: flex !important;
  align-items: center; justify-content: center;
  cursor: pointer;
  opacity: 1 !important;
  pointer-events: auto !important;
  transition: background .15s, border-color .15s, color .15s;
  
}
.grid-nav-btn svg { width: 13px; height: 13px; }
.grid-nav-btn:hover { background: var(--olive) !important; border-color: var(--olive-light) !important; color: var(--text-on-brand) !important; }
.grid-nav-btn:active { transform: translateY(-50%) scale(0.9) !important; background: var(--olive-2) !important; }
.grid-nav-btn.arr-left  { left: 6px; }
.grid-nav-btn.arr-right { right: 6px; }

/* Phones: swipe the rows — no arrows */
@media (max-width: 640px) {
  .grid-nav-btn { display: none !important; }
}
/* Tablet */
@media (min-width: 641px) and (max-width: 1080px) {
  .grid-nav-btn { width: 28px; height: 28px; }
}
/* Touch devices: always visible */

@media (hover: none) and (pointer: coarse) {
  .grid-nav-btn { opacity: 1 !important; pointer-events: auto !important; }
}

/* 1 & 5. Remove Hover on List View inside Friend Profiles / Watch Later lists */

/* 4. Make Add Signs/Buttons slightly more compact on Mobile Layouts */
@media (max-width: 768px) {
  [id*="add"] svg {
    transform: scale(0.82) !important;
    transform-origin: center center !important;
  }
}

/* ── Continue Watching button — Ongoing section ── */
/* ── Start Watching button (queue cards) ── *//* List view (Watchlist): Start on top, Up Next below */.up-next-tag { display:inline-flex; align-items:center; padding:3px 9px; border-radius:var(--radius-xs, 4px); background:#264e78; color:#fff;
  font-family:'Manrope',var(--sans); font-size:11px; font-weight:700; letter-spacing:.6px; text-transform:uppercase; }
/* "New Season" — a To Be Continued show with new episodes out (mssNewSeasonHoldHTML /
   mssNewSeasonBadgeHTML, config.js): the Up Next cover in plum, and a genre-shaped badge in the
   same plum; in list view Up Next is an icon button like the others */
.mss-new-badge { display:inline-flex; align-items:center; gap:4px; background:#6d3d8f; border-color:#6d3d8f; }
.mss-new-badge svg { width:11px; height:11px; flex-shrink:0; }
/* ── Comments popup mobile fix ── */
@media(max-width:640px) {
  #commentsPopupCard,
  [id$="CommentsCard"] {
    max-height:85dvh !important;
    border-radius:var(--radius-lg) !important;
  }
  #commentsPopupHeader,
  [id$="CommentsHeader"] { padding:14px 16px !important; gap:12px !important; }
  [id$="CommentsTitle"],
  #commentsPopupTitle { font-size:16px !important; }
  [id$="CommentsBody"],
  #commentsPopupBody { padding:12px 16px !important; }
}

/* ═════════════════════════════════════════════════════════════
   §41  Profile Additions
   ═════════════════════════════════════════════════════════════ */


/* ═════════════════════════════════════════════════════════════
   §42  TMDB Search Dropdown
   ═════════════════════════════════════════════════════════════ */
.tmdb-dropdown {
  position:fixed; z-index:1500;
  background:var(--bg-3); border:0.5px solid var(--border-2);
  border-radius:var(--radius); 
  display:none; flex-direction:column;
  max-height:240px; overflow-y:auto;overscroll-behavior-y:contain;
  scrollbar-width:thin; scrollbar-color:var(--border-2) transparent;
  box-sizing:border-box;
}
.tmdb-dropdown::-webkit-scrollbar { width:4px; display:block; }
.tmdb-dropdown::-webkit-scrollbar-thumb { background:var(--border-2); border-radius:4px; }
/* ── Universal input clear (×) button ── */
.input-clear-btn {
  position:absolute; inset-inline-end:10px; top:50%; transform:translateY(-50%);
  width:22px; height:22px; border-radius:50%; border:none; background:none;
  color:var(--text-3); font-size:12px; cursor:pointer;
  display:flex; align-items:center; justify-content:center;
  opacity:0; pointer-events:none; transition:opacity .15s, color .15s;
}
.input-clear-btn.visible { opacity:1; pointer-events:auto; }
.input-clear-btn:hover { color:var(--text); }
.clear-btn-wrap {
  position:relative; display:flex; flex:1; min-width:0;
  background:none; border:none; padding:0; margin:0;
}

.tmdb-dropdown.dd-connected {
  z-index:390;
  border:0.5px solid var(--olive-light); border-top:none;
  border-radius:0 0 var(--radius-sm) var(--radius-sm);
  
}
/* ── Search suggestions under a search box (people, lists, titles): friends, Lists, Notes and the social pages.
   The popover look (solid panel, 1px border, roomy rows), joined to the field it belongs to ── */
.username-dropdown { position:fixed; z-index:401; display:none; max-height:320px; overflow-y:auto; overflow-x:hidden; padding:6px;
  background:var(--panel); border:1px solid var(--border-2); border-top:0; border-radius:0 0 12px 12px; }
.username-dropdown.open { display:block; animation:lyrMenu .14s var(--layer-in); }
.ud-item { display:flex; align-items:center; gap:12px; min-height:48px; padding:6px 10px; border-radius:8px; cursor:pointer; transition:background-color .15s; }
a.ud-item { color:inherit; text-decoration:none; }
.ud-item:focus-visible { outline:2px solid var(--olive-light); outline-offset:-2px; }
.ud-item:hover, .ud-item.ud-active { background:var(--olive-faint); }
.ud-avatar { width:36px; height:36px; border-radius:50%; flex-shrink:0; display:flex; align-items:center; justify-content:center; overflow:hidden;
  background:var(--raised); border:1px solid var(--border-2); font-family:var(--serif); font-size:16px; color:var(--text-2); }
.ud-avatar img { width:100%; height:100%; object-fit:cover; border-radius:50%; }
.ud-info { flex:1; min-width:0; }
.ud-username { font-size:14px; font-weight:600; color:var(--text); }
.ud-username em { color:var(--olive-light); font-style:normal; font-weight:700; }
.ud-display { font-size:11.5px; color:var(--text-3); margin-top:2px; }
.ud-loading, .ud-empty { padding:14px; font-size:13px; color:var(--text-3); text-align:center; }
.ud-type-tag { flex-shrink:0; padding:2px 8px; border-radius:6px; border:1px solid var(--border-olive); background:var(--olive-faint);
  font-size:9.5px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; color:var(--olive-light); }
@media (prefers-reduced-motion:reduce) { .username-dropdown.open { animation:none; } }
/* initTMDBSearch's dropdown (Add Entry's title field) is appended to <body>, so it needs its own
   z-index above the side panels / full pages (2000) it opens from */
.tmdb-dropdown.dd-connected-modal { z-index:2060; }
.dd-connected-active {
  border-color:var(--olive-light) !important;
  border-end-start-radius:0 !important;
  border-end-end-radius:0 !important;
  box-shadow:none !important;
}

/* ── sel-dd: reusable theme-aware dropdown (select replacement) ──
   Used anywhere a native <select> needs a connected, custom-styled menu — e.g.
   the Add Entry modal's Category/Status fields. */
.sel-dd { position:relative; }
.sel-dd-trigger {
  width:100%; height:42px; box-sizing:border-box; display:flex; align-items:center; justify-content:space-between;
  padding:0 14px; border-radius:var(--radius-sm); cursor:pointer;
  background:var(--bg-3); border:1px solid var(--border-input); color:var(--text);
  font-size:14px; font-family:var(--sans); transition:border-color .15s;
}
.sel-dd-trigger:hover { border-color:var(--border-olive); }
.sel-dd-label { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; min-width:0; }
.sel-dd-placeholder .sel-dd-label { color:var(--text-3); }
.sel-dd-chevron { transition:transform .15s, color .15s; flex-shrink:0; margin-inline-start:8px; color:var(--text-3); }
.sel-dd-trigger[aria-expanded="true"] .sel-dd-chevron { transform:rotate(180deg); color:var(--olive-light); }

.tmdb-dropdown.open { display:flex; animation:fadeIn .15s var(--ease); }
@media(max-width:640px) {
  .tmdb-dropdown { border-radius:var(--radius-sm); max-height:220px; }

}
.tmdb-loading, .tmdb-empty {
  padding:14px 16px; font-size:13px; color:var(--text-3); text-align:center;
}
.tmdb-item {
  display:flex; align-items:center; gap:10px;
  padding:10px 14px; cursor:pointer;
  border-bottom:0.5px solid var(--border);
  transition:background .12s var(--ease);
}
.tmdb-item:last-child { border-bottom:none; }
.tmdb-item:hover { background:var(--card-2); }
.tmdb-item.is-active { background:var(--olive-faint); box-shadow:inset 3px 0 0 var(--olive-light); }
.tmdb-thumb {
  width:36px; height:54px; flex-shrink:0;
  border-radius:4px; overflow:hidden;
  background:var(--bg-2); display:flex; align-items:center; justify-content:center;
}
.tmdb-thumb img { width:100%; height:100%; object-fit:cover; }
.tmdb-thumb.tmdb-thumb-round { width:42px; height:42px; border-radius:50%; align-self:center; }
.tmdb-thumb-ph { width:100%; height:100%; background:var(--bg-2); }
.tmdb-info { flex:1; min-width:0; }
.tmdb-title { font-size:13px; font-weight:500; color:var(--text); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.tmdb-meta { font-size:11px; color:var(--text-3); margin-top:2px; }

/* ═════════════════════════════════════════════════════════════
   §43  Popup Action Buttons
   ═════════════════════════════════════════════════════════════ */
.popup-action-btn {
  display:inline-flex;align-items:center;gap:6px;
  padding:8px 14px;border-radius:var(--radius-sm);
  background:var(--bg-3);color:var(--text-2);
  border:0.5px solid var(--border);
  font-family:var(--sans);font-size:12px;font-weight:500;
  cursor:pointer;transition:all .15s;white-space:nowrap;
  flex:1;min-width:0;
  justify-content:center;
}
/* Every popup's button row (any id ending in "PopupActions") — Manrope, solid olive, red danger. */
[id$="PopupActions"] .popup-action-btn { font-family:'Manrope',var(--sans); font-weight:500; }
[id$="PopupActions"] .popup-action-btn {
  background:var(--olive); color:var(--text-on-brand); border-color:var(--olive);
}
[id$="PopupActions"] .popup-action-btn:hover { background:var(--brand-hover); border-color:var(--olive-light); color:var(--text-on-brand); }
[id$="PopupActions"] .popup-action-btn.popup-action-danger {
  background:var(--error-solid); border-color:var(--error-fg); color:#fff;
}
[id$="PopupActions"] .popup-action-btn.popup-action-danger:hover { background:var(--error-bg); border-color:var(--error-fg); }
@media(max-width:600px) {
  /* One button per line on phones instead of wrapping 2-3 to a row. */
  [id$="PopupActions"] { flex-direction:column; }
  [id$="PopupActions"] .popup-action-btn { width:100%; flex:none; }
}
.popup-action-btn:hover {
  border-color:var(--border-olive);color:var(--olive-light);
  background:var(--olive-faint);
}
.popup-action-btn svg { flex-shrink:0;opacity:.7; }
.popup-action-btn:hover svg { opacity:1; }
@media(max-width:400px) {
  /* Stack vertically on very small screens */
  [id$="PopupActions"] {
    flex-direction:column;
  }
  .popup-action-btn { white-space:normal;text-align:center; }
}
@media(max-width:480px) {
  .popup-action-btn { font-size:11px;padding:7px 10px;gap:5px; }
}

/* ═════════════════════════════════════════════════════════════
   §44  Rewatch System
   ═════════════════════════════════════════════════════════════ */

.rewatch-badge {
  display:inline-flex;align-items:center;gap:4px;
  padding:4px 10px;border-radius:20px;
  background:var(--olive);border:0.5px solid var(--olive);
  color:var(--text-on-brand);font-size:11px;font-weight:600;
  letter-spacing:.3px;font-family:'Manrope',var(--sans);
  white-space:nowrap;flex-shrink:0;
}
.rewatch-badge svg { flex-shrink:0;width:11px;height:11px; }


/* ── Rewatch badge responsive scaling — same size across all three, scaled down together instead of drifting independently ── */
@media(max-width:640px) {
  .rewatch-badge {
    font-size:10px;padding:3px 9px;gap:3px;
  }
  .rewatch-badge svg { width:10px;height:10px; }}
@media(max-width:400px) {
  .rewatch-badge {
    font-size:9px;padding:3px 8px;
  }}

/* ═════════════════════════════════════════════════════════════
   §45  Create Card (side panel)
   ═════════════════════════════════════════════════════════════ */
/* Redesigned Nov 2026 (create-card.js). The preview sits on its own stage at the top; with more than one card
   (a long note) thumbnails go down its right side (a row under it on phones) and ‹ › step through them. */
.cc-stage { display:flex; gap:12px; padding:16px; border-radius:var(--radius); background:var(--surface-section); border:1px solid var(--border-default); }
.cc-pv { position:relative; flex:1; min-width:0; min-height:220px; display:flex; justify-content:center; align-items:center; }
/* the whole card always shows: scaled down to the panel's width and to most of the screen's height */
.cc-canvas { display:block; width:auto; height:auto; max-width:100%; max-height:min(62dvh, 620px); border-radius:12px; box-shadow:0 12px 32px rgba(0,0,0,.30); }
.cc-canvas.is-a4 { border-radius:3px; }
.cc-pv img { max-height:min(62dvh, 620px); width:auto !important; margin:0 auto; }
.cc-pv-load { padding:3rem 1rem; text-align:center; color:var(--text-muted); font-size:13px; }
.cc-step { position:absolute; top:50%; translate:0 -50%; width:36px; height:36px; display:grid; place-items:center; padding:0; border-radius:999px; border:1px solid var(--border-strong); background:var(--surface-elevated); color:var(--text-body); cursor:pointer; box-shadow:0 2px 10px rgba(0,0,0,.22); }
.cc-step:hover { background:var(--action-secondary-hover); }
.cc-step.is-prev { inset-inline-start:0; } .cc-step.is-next { inset-inline-end:0; }
.cc-thumbs { display:flex; flex-direction:column; gap:8px; max-height:min(62dvh, 620px); overflow:auto; padding:2px; }
.cc-thumbs[hidden] { display:none; }
.cc-thumb { position:relative; flex:none; width:56px; padding:0; border:2px solid transparent; border-radius:8px; background:none; overflow:hidden; cursor:pointer; opacity:.72; transition:opacity .15s, border-color .15s; }
.cc-thumb canvas { display:block; width:100%; height:auto; }
.cc-thumb span { position:absolute; inset-block-end:4px; inset-inline-end:4px; padding:2px 5px; border-radius:6px; font:700 10px/1.2 'Manrope',var(--sans); background:var(--overlay-photo); color:var(--text-on-photo); }
.cc-thumb:hover { opacity:1; }
.cc-thumb.is-on { opacity:1; border-color:var(--border-selected); }
.cc-size { margin:10px 0 0; text-align:center; font:600 12px/1.4 'Manrope',var(--sans); color:var(--text-muted); font-variant-numeric:tabular-nums; }
.cc-prompt { text-align:center; padding:14px 10px 0; }
.cc-opts > .cc-sec:first-child { margin-top:20px; }
.cc-opts .xs-switch { padding:9px 12px; }
.lyr.is-page .cc-stage { flex-direction:column; padding:12px; }
.lyr.is-page .cc-canvas, .lyr.is-page .cc-pv img { max-height:54dvh; }
.lyr.is-page .cc-thumbs { flex-direction:row; justify-content:center; max-height:none; }
.lyr.is-page .cc-thumb { width:42px; }
.lyr.is-page .cc-step { width:40px; height:40px; }

/* ── Library cards (js/library-view.js — library.html + both profile Library tabs). Kept at the end of the file: these used to sit in each page's own \3c style>, after style.css, so they still win over the older rules above. ── */.fv-rank-row { display:flex;align-items:center;gap:20px;background:var(--card);border:0.5px solid var(--border);border-radius:var(--radius-lg);padding:20px 24px;min-height:160px;overflow:hidden;box-sizing:border-box;cursor:pointer;transition:border-color var(--trans) var(--ease),background var(--trans) var(--ease); }
.fv-rank-row:hover { border-color:var(--border-olive);background:var(--card-2); }
.fv-rank-poster { width:84px;height:120px;border-radius:var(--radius-sm);overflow:hidden;flex-shrink:0;background:var(--bg-3);display:flex;align-items:center;justify-content:center;}
.fv-rank-poster img { width:100%;height:100%;object-fit:cover }
.fv-rank-info { flex:1;min-width:0 }
.fv-rank-title { font-family:'Oswald',var(--sans);font-size:19px;font-weight:600;display:flex;align-items:center;gap:10px;flex-wrap:wrap;overflow:hidden; }
.fv-rank-meta { font-size:12px;color:var(--text-3);margin-top:4px }   /* title → tags: 4px on every list card */
@media(max-width:900px) {
  .fv-rank-row { padding:14px 16px; gap:14px; }
  .fv-rank-poster { width:70px; height:98px; }
  .fv-rank-title { font-size:15px; }}
@media(max-width:640px) {
  .fv-rank-row { padding:10px 12px; gap:10px; min-height:unset; }
  .fv-rank-poster { width:56px; height:78px; }
  .fv-rank-title { font-size:13px; }}
@media(max-width:400px) {
  .fv-rank-row { padding:8px 10px; gap:8px; }
  .fv-rank-poster { width:48px; height:66px; }
  .fv-rank-title { font-size:12px; }}

/* ═════════════════════════════════════════════════════════════
   §46  Episode Ratings (episode-ratings.js → MSSEp)
   ═════════════════════════════════════════════════════════════ */
/* the colour bands are the rating scale's 9 tiers: .ep-band-<key> in css/theme.css (MSSEp.band → mssScoreTier).
   --band-* stay as names for a few older bits (person page, the episodes chart's worst-episode ring) */
:root { --band-great:var(--st-great); --band-good:var(--st-decent); --band-decent:var(--st-mixed); --band-meh:var(--st-weak); --band-bad:var(--st-bad); }
/* the filled look: chips, badges, heatmap cells — the tier's fill and the text on it; Masterpiece is the gold gradient */
.ep-band-garbage, .ep-band-bad, .ep-band-weak, .ep-band-mixed, .ep-band-decent, .ep-band-great, .ep-band-excellent, .ep-band-outstanding, .ep-band-masterpiece {
  background:var(--st-fill); color:var(--st-on); }
.ep-band-masterpiece { box-shadow:inset 0 0 0 1px rgba(255,240,190,.55); }
.ep-eyebrow { font-family:var(--serif); font-size:11px; letter-spacing:2.2px; text-transform:uppercase; color:var(--olive-light); }
/* opt-in */
/* the episode card on the Episodes page (episodes.html) */
/* quick-rate */
.ep-title { font-family:var(--serif); font-size:22px; font-weight:600; line-height:1.2; margin:4px 0 4px; color:var(--text-heading); }
.ep-meta { font-size:12.5px; color:var(--text-2); }
.ep-overview { margin-top:10px; }
.lyr .ep-eyebrow + .lyr-stats { margin-top:10px; }
.ep-overview-txt { margin:0; font-size:13.5px; line-height:1.6; color:var(--text-2); white-space:pre-line; }
.ep-overview-txt.is-clamped { display:-webkit-box; -webkit-line-clamp:3; line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
.ep-overview .ep-link { margin-top:4px; min-height:24px; }
.ep-rate { margin:16px 0 10px; display:flex; flex-direction:column; align-items:center; gap:12px; }
.ep-score { min-width:150px; padding:10px 22px 8px; border-radius:var(--radius); text-align:center; transition:background .2s, color .2s; }
.ep-score b { display:block; font-family:var(--bebas); font-weight:400; font-size:58px; line-height:1; letter-spacing:1px; }
.ep-score-input { display:block; width:100%; max-width:150px; margin:0 auto; padding:0; border:none; border-bottom:2px dashed currentColor; border-radius:0; background:transparent; color:inherit; text-align:center; font-family:var(--bebas); font-weight:400; font-size:58px; line-height:1; letter-spacing:1px; outline:none; cursor:text; }
.ep-score-input:focus { border-bottom-style:solid; }
.ep-score span { display:block; font-family:var(--serif); font-size:12px; letter-spacing:2.4px; text-transform:uppercase; margin-top:2px; opacity:.9; }
.ep-slider-row { display:flex; align-items:center; gap:10px; width:100%; }
/* the score slider: 10 rounded segments filled up to the score; the real range input sits on top, invisible */
.ep-bar { position:relative; flex:1; min-width:0; height:36px; display:flex; align-items:center; }
.ep-bar-segs { display:flex; gap:4px; width:100%; pointer-events:none; border-radius:6px; }
.ep-bar-segs i { flex:1; height:12px; border-radius:6px; background:linear-gradient(90deg, var(--olive) calc(var(--f, 0) * 100%), var(--border-2) 0); }
.ep-slider { position:absolute; inset:0; width:100%; height:100%; margin:0; opacity:0; cursor:pointer; }
.ep-bar:has(.ep-slider:focus-visible) .ep-bar-segs { outline:2px solid var(--olive-light); outline-offset:5px; }
.ep-step { width:44px; height:38px; flex-shrink:0; border-radius:8px; cursor:pointer; background:transparent; border:1px solid var(--border-2); color:var(--text); display:grid; place-items:center;   /* like the − / + on Currently Watching (.msf-cbtn) */
  transition:background-color .15s, border-color .15s, transform .12s; }
.ep-step:hover { background:var(--olive-faint); border-color:var(--border-olive); }
.ep-step:active { transform:scale(.94); }
.ep-step svg { width:16px; height:16px; }
.lyr.is-page .ep-step { width:44px; height:44px; }
.ep-extra-btn { padding:7px 12px; border-radius:var(--radius-sm); cursor:pointer; background:transparent; border:1px dashed var(--border-2); color:var(--text-2); font-family:'Manrope',var(--sans); font-size:12.5px; font-weight:600; }
.ep-extra-btn[aria-expanded="true"] { border-style:solid; border-color:var(--border-olive); color:var(--olive-light); }
.ep-tags { display:flex; flex-wrap:wrap; gap:6px; margin-top:10px; }
.ep-note { margin-top:10px; }
.ep-note textarea { width:100%; box-sizing:border-box; resize:vertical; min-height:72px; }
.ep-hint { flex-basis:100%; font-size:11px; color:var(--text-2); margin-top:4px; text-align:end; }
.ep-nav { display:flex; align-items:center; justify-content:space-between; gap:8px; padding:10px 22px 0; }
.ep-nav-btn { background:none; border:none; cursor:pointer; color:var(--text-2); font-family:'Manrope',var(--sans); font-size:13px; font-weight:600; padding:6px 4px; }
.ep-nav-btn:hover { color:var(--olive-light); }
.ep-stop { background:none; border:none; cursor:pointer; color:var(--text-3); font-size:11.5px; text-decoration:underline; text-underline-offset:3px; }
.ep-queue { position:relative; margin-bottom:16px; padding:8px 12px; border-radius:var(--radius-sm); border:1px solid var(--border); overflow:hidden; font-size:11.5px; font-weight:700; letter-spacing:.6px; text-transform:uppercase; color:var(--text-2); background:var(--raised); }
.ep-queue span { position:absolute; inset-inline-start:0; bottom:0; height:2px; background:var(--olive-light); }
/* Rate episodes inside its panel: details under the picture, tags and the note in labelled sections */
.lyr .ep-eyebrow small { font-size:.85em; opacity:.8; margin-inline-start:4px; }   /* TMDB's series-wide number (e.g. One Piece #62) */
.lyr .ep-title { margin:6px 0 4px; }
.lyr .ep-rate { margin:18px 0 4px; }
.lyr .ep-tags { margin-top:0; align-items:center; }
.lyr .ep-note { margin-top:22px; }
.lyr .ep-note .lyr-sec-h label { cursor:pointer; }
.ep-link { background:none; border:0; padding:0; color:var(--olive-light); font:700 12px 'Manrope',var(--sans); cursor:pointer; text-decoration:underline; text-underline-offset:3px; }
.ep-link:focus-visible { outline:2px solid var(--olive-light); outline-offset:2px; border-radius:4px; }
.lyr .ep-nav { padding:18px 0 0; }
.lyr.is-side .ep-nav { display:none; }
.ep-stop-row { margin:18px 0 0; text-align:center; }
.ep-done { padding-top:22px; text-align:center; }
.lyr .ep-done { padding-top:6px; display:flex; flex-direction:column; align-items:center; gap:14px; }
.ep-done .ep-score { width:fit-content; }
.ep-done-row { display:flex; flex-wrap:wrap; justify-content:center; gap:4px; }
.ep-done-row i { min-width:34px; height:30px; padding:0 4px; border-radius:5px; display:inline-flex; align-items:center; justify-content:center; font-style:normal; font-family:var(--bebas); font-size:15px; }
.eg-more { display:flex; justify-content:center; margin-top:1.25rem; }
.eg-show-avg { padding:2px 8px; border-radius:4px; font-family:var(--bebas); font-size:16px; letter-spacing:.4px; }   /* a friend's episode average (title page) */
.eg-mini { display:flex; flex-wrap:wrap; gap:2px; max-height:42px; overflow:hidden; }
.eg-mini i { width:9px; height:9px; border-radius:2px; }
.eg-mini i:not([class*="ep-band-"]) { background:var(--bg-3); }
/* ── Episodes overview (episodes-home.js): episodes.html, ?left=1 and the profile Episodes tabs ──
   summary row · rated-show rows with an episode strip · best episodes · how you score · what's left to rate */
.egh-sum { display:grid; grid-template-columns:repeat(4, minmax(0, 1fr)) minmax(0, 1.6fr); margin:0 0 16px; background:var(--lib-card); border:1px solid var(--lib-line); border-radius:18px; overflow:hidden; }
.egh-sum-c { display:flex; flex-direction:column; justify-content:center; gap:6px; min-width:0; padding:16px 20px; text-decoration:none; color:inherit; }
.egh-sum-c + .egh-sum-c { border-inline-start:1px solid var(--lib-line); }
.egh-sum-c b { font:400 30px/1 var(--bebas); letter-spacing:.4px; color:var(--text); }
.egh-sum-c.is-avg b { color:var(--st, var(--lib-green)); }
.egh-sum-c > span { font:600 12px 'Manrope',var(--sans); color:var(--text-3); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.egh-sum-c.is-last b { font:700 18px/1.2 var(--serif); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
a.egh-sum-c:hover b { color:var(--olive-light); }
a.egh-sum-c:focus-visible { outline:2px solid var(--olive-light); outline-offset:-3px; border-radius:16px; }
.egh-cols { display:grid; grid-template-columns:minmax(0, 1fr) 340px; gap:16px; align-items:start; }
.egh-cols.is-one { grid-template-columns:minmax(0, 1fr); margin-bottom:1.5rem; }
.egh-col-main, .egh-col-side { display:flex; flex-direction:column; gap:16px; min-width:0; }
.egh-card { min-width:0; background:var(--lib-card); border:1px solid var(--lib-line); border-radius:18px; padding:16px 18px 18px; }
#egResults .egh-card + .egh-card { margin-top:16px; }
.egh-head { display:flex; align-items:center; justify-content:space-between; gap:10px 14px; flex-wrap:wrap; margin:0 0 6px; }
.egh-head .sort-bar { border-bottom:none; padding:0; margin:0; background:transparent; position:relative; }
.egh-head .sort-bar::before { content:none; }
.egh-head-sub { margin:6px 0 0; font-size:12.5px; color:var(--text-3); }
.egh-link { flex:none; min-height:32px; display:inline-flex; align-items:center; padding:0 4px; background:none; border:0; font:700 12.5px 'Manrope',var(--sans); color:var(--olive-light); text-decoration:none; cursor:pointer; }
.egh-link:hover { text-decoration:underline; text-underline-offset:3px; }
.egh-link:focus-visible { outline:2px solid var(--olive-light); outline-offset:2px; border-radius:4px; }
/* a show row: poster · title + status · counts · strip · average · › */
/* rated shows: a grid of cards (owner: the old full-width rows left too much empty space) — poster, title + status,
   the numbers, then every episode as a square stretched across the card */
.egh-rows { display:grid; grid-template-columns:repeat(auto-fill, minmax(min(100%, 400px), 1fr)); gap:12px; }
.egh-row { display:flex; align-items:center; gap:14px; min-width:0; padding:14px 14px 14px 12px; text-decoration:none; color:inherit; border-radius:14px; border:1px solid var(--lib-line); background:color-mix(in srgb, var(--card) 70%, transparent); transition:border-color .15s, background-color .15s; }
.egh-row:hover { border-color:var(--border-olive); background:var(--olive-faint); }
.egh-row:hover .egh-title { color:var(--olive-light); }
.egh-row:focus-visible { outline:2px solid var(--olive-light); outline-offset:-2px; border-radius:10px; }
.egh-poster { width:56px; aspect-ratio:2/3; flex-shrink:0; border-radius:6px; overflow:hidden; background:var(--bg-3); }
.egh-poster img { width:100%; height:100%; object-fit:cover; display:block; }
.egh-main { flex:1; min-width:0; display:flex; flex-direction:column; gap:5px; }
.egh-line { display:flex; align-items:center; gap:8px; min-width:0; }
.egh-title { font:700 16px/1.2 var(--serif); color:var(--text-heading); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; min-width:0; }
.egh-pill { flex:none; padding:2px 8px; border-radius:999px; font:700 10.5px/1.5 'Manrope',var(--sans); color:var(--text-2); background:var(--lib-track); }
.egh-pill.is-on { background:var(--olive); color:var(--text-on-brand); }
.egh-pill.is-wait { background:color-mix(in srgb, var(--lib-gold) 22%, transparent); color:var(--lib-gold); }
.egh-sub { font-size:12px; color:var(--text-3); }
.egh-desc { font-size:12.5px; line-height:1.45; color:var(--text-2); display:-webkit-box; -webkit-line-clamp:2; line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.egh-strip { display:grid; grid-template-columns:repeat(auto-fit, minmax(5px, 1fr)); gap:2px; max-height:30px; overflow:hidden; margin-top:2px; }
.egh-strip i { height:8px; border-radius:2px; box-shadow:none; }
.egh-strip i:not([class]) { background:var(--lib-track); }
.egh-avg { flex:none; min-width:42px; padding:5px 8px 4px; border-radius:7px; text-align:center; font:400 18px/1 var(--bebas); letter-spacing:.4px; }
.egh-avg small { display:block; margin-top:2px; font:700 8.5px 'Manrope',var(--sans); letter-spacing:.8px; opacity:.85; }
.egh-go { flex:none; display:flex; color:var(--text-3); }
.egh-more { display:flex; justify-content:center; margin-top:12px; }
/* best episodes: rank · still · name · show + S E · score */
.egh-eps { list-style:none; margin:0; padding:0; }
.egh-eps li + li { border-top:1px solid var(--lib-line); }
.egh-ep { display:flex; align-items:center; gap:10px; min-height:52px; padding:7px 0; text-decoration:none; color:inherit; }
.egh-ep:hover b { color:var(--olive-light); }
.egh-ep:focus-visible { outline:2px solid var(--olive-light); outline-offset:2px; border-radius:8px; }
.egh-ep-n { width:16px; flex:none; text-align:center; font:400 16px/1 var(--bebas); color:var(--text-3); }
.egh-ep-still { width:64px; aspect-ratio:16/9; flex:none; border-radius:6px; overflow:hidden; background:var(--bg-3); }
.egh-ep-still img { width:100%; height:100%; object-fit:cover; display:block; }
.egh-ep-txt { flex:1; min-width:0; display:flex; flex-direction:column; gap:2px; }
.egh-ep-txt b { font:700 13.5px/1.25 'Manrope',var(--sans); color:var(--text); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.egh-ep-txt small { font-size:11.5px; color:var(--text-3); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.egh-chip { flex:none; min-width:38px; padding:5px 7px 4px; border-radius:7px; text-align:center; font:400 17px/1 var(--bebas); letter-spacing:.4px; }
.egh-eps.is-all .egh-ep-n { width:24px; }
/* how you score: five bars + one line */
.egh-bars { list-style:none; margin:8px 0 0; padding:0; display:flex; flex-direction:column; gap:9px; }
.egh-bars li { display:grid; grid-template-columns:58px minmax(0, 1fr) 34px; align-items:center; gap:10px; }
.egh-bar-l { font:600 12px 'Manrope',var(--sans); color:var(--text-2); white-space:nowrap; }
.egh-bar { height:7px; border-radius:4px; background:var(--lib-track); overflow:hidden; }
.egh-bar i { display:block; height:100%; border-radius:4px; box-shadow:none; }
.egh-bars b { font:400 16px/1 var(--bebas); text-align:end; color:var(--text); }
.egh-insight { margin:14px 0 0; padding-top:12px; border-top:1px solid var(--lib-line); font-size:12.5px; line-height:1.55; color:var(--text-2); }
/* what's left to rate: one row of posters */
.egh-posters { display:grid; grid-template-columns:repeat(8, minmax(0, 1fr)); gap:12px; margin-top:12px; }
.egh-pos { display:flex; flex-direction:column; gap:4px; min-width:0; text-decoration:none; color:inherit; }
.egh-pos-img { aspect-ratio:2/3; border-radius:8px; overflow:hidden; background:var(--bg-3); border:1px solid var(--lib-line); }
.egh-pos-img img { width:100%; height:100%; object-fit:cover; display:block; }
.egh-pos b { margin-top:2px; font:700 12px/1.25 'Manrope',var(--sans); color:var(--text); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.egh-pos small { font:700 11px 'Manrope',var(--sans); color:var(--olive-light); }
.egh-pos:hover b { color:var(--olive-light); }
.egh-pos:focus-visible { outline:2px solid var(--olive-light); outline-offset:2px; border-radius:8px; }
.egh-skel-box { display:block; height:280px; border-radius:12px; }
@media (max-width:1000px) {
  .egh-cols { display:flex; flex-direction:column; align-items:stretch; }
  .egh-col-main, .egh-col-side { display:contents; }      /* phones / tablets: list, best, how you score, then what's left */
  .egh-left { order:3; }
}
@media (max-width:820px) { .egh-posters { grid-template-columns:repeat(4, minmax(0, 1fr)); } .egh-pos:nth-child(n+5) { display:none; } }
/* tablets: the five numbers as 3 + 2, Best episodes and How you score side by side under the list */
@media (min-width:641px) and (max-width:1000px) {
  .egh-cols { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); align-items:start; }
  .egh-rated, .egh-left { grid-column:1 / -1; }
}
@media (max-width:900px) {
  .egh-sum { grid-template-columns:repeat(6, minmax(0, 1fr)); }
  .egh-sum-c { grid-column:span 2; }
  .egh-sum-c:nth-child(4), .egh-sum-c:nth-child(5) { grid-column:span 3; border-top:1px solid var(--lib-line); }
  .egh-sum-c:nth-child(4) { border-inline-start:0; }
}
@media (max-width:640px) {
  .egh-sum-c { padding:12px 10px; text-align:center; align-items:center; }
  .egh-sum-c b { font-size:26px; }
  .egh-sum-c.is-last b { font-size:15px; max-width:100%; }
  .egh-sum-c > span { white-space:normal; font-size:11px; }
  .egh-card { padding:14px; }
  .egh-row { gap:12px; padding:12px; }
  .egh-poster { width:44px; }
  .egh-title { font-size:15px; }
  .egh-go { display:none; }
}
.ep-show-progress { height:6px; border-radius:3px; background:var(--bg-3); overflow:hidden; margin-bottom:12px; }
.ep-show-progress span { display:block; height:100%; background:var(--olive-light); }
.ep-show-mini { max-height:none; gap:3px; }
.ep-show-progress + .lyr-chips { margin-top:-2px; }
/* the summary's seasons: S1 · its average · one square per rated episode · how many */
.ep-sum-seasons { list-style:none; margin:0; padding:0; border:1px solid var(--border); border-radius:12px; overflow:hidden; }
.ep-sum-season { display:grid; grid-template-columns:34px 46px minmax(0, 1fr) auto; align-items:center; gap:10px; min-height:48px; padding:8px 14px; }
.ep-sum-season + .ep-sum-season { border-top:1px solid var(--border); }
.ep-sum-sn { font:400 18px/1 var(--bebas); color:var(--text-2); letter-spacing:.3px; }
.ep-sum-avg { display:grid; place-items:center; height:28px; border-radius:8px; font:400 17px/1 var(--bebas); letter-spacing:.3px; }
.ep-sum-n { font:600 11.5px 'Manrope',var(--sans); color:var(--text-3); white-space:nowrap; }
@media (max-width:420px) { .ep-sum-season { grid-template-columns:30px 42px minmax(0, 1fr); } .ep-sum-n { display:none; } }
.ep-show-mini i { width:12px; height:12px; }
.ep-step:focus-visible, .ep-extra-btn:focus-visible, .ep-nav-btn:focus-visible, .ep-stop:focus-visible { outline:2px solid var(--olive-light); outline-offset:2px; }
@media(max-width:640px) {
  .ep-score b, .ep-score-input { font-size:50px; }
  .ep-title { font-size:19px; }
}

/* ═════════════════════════════════════════════════════════════
   §47  Your TV on Discover (tv-schedule.js → MSSSchedule)
   ═════════════════════════════════════════════════════════════ */
.ys-wrap:empty { display:none; }
.ys-section { margin-bottom:2.5rem; }
.ys-row { display:flex; gap:14px; overflow-x:auto; padding:4px 2px 8px; scrollbar-width:thin; scroll-snap-type:x proximity; }
.ys-ep, .ys-season { flex:0 0 auto; text-decoration:none; color:inherit; scroll-snap-align:start; }
.ys-ep { width:240px; } .ys-season { width:150px; }
.ys-ep-still, .ys-season-poster { position:relative; border-radius:var(--radius); overflow:hidden; background:var(--bg-3); border:0.5px solid var(--border); }
.ys-ep-still { aspect-ratio:16/9; } .ys-season-poster { aspect-ratio:2/3; }
.ys-ep-still img, .ys-season-poster img { width:100%; height:100%; object-fit:cover; display:block; }
.ys-ep-still img.ys-ep-poster { object-fit:cover; object-position:center 20%; }
.ys-badge { position:absolute; inset-inline-start:8px; bottom:8px; padding:3px 8px; border-radius:4px; background:rgba(0,0,0,.66); color:#fff; font-family:var(--bebas); font-size:14px; letter-spacing:.6px; }
.ys-ep-title { font-family:var(--serif); font-size:15px; font-weight:600; color:var(--text-heading); margin-top:8px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.ys-ep-sub { font-size:12px; color:var(--text-3); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.ys-ep:hover .ys-ep-title, .ys-season:hover .ys-ep-title { color:var(--olive-light); }
.ys-guide { display:grid; grid-template-columns:repeat(auto-fill, minmax(320px, 1fr)); gap:10px; }
.ys-guide-row, .ys-cal-item { display:flex; align-items:center; gap:12px; padding:10px; background:var(--card); border:0.5px solid var(--border); border-radius:var(--radius); text-decoration:none; color:inherit; transition:border-color .15s; }
.ys-guide-row:hover, .ys-cal-item:hover { border-color:var(--border-olive); }
.ys-guide-poster { width:42px; aspect-ratio:2/3; border-radius:5px; overflow:hidden; background:var(--bg-3); flex-shrink:0; }
.ys-guide-poster img { width:100%; height:100%; object-fit:cover; display:block; }
.ys-guide-info { flex:1; min-width:0; display:flex; flex-direction:column; gap:2px; }
.ys-guide-info b { font-family:var(--serif); font-size:15px; font-weight:600; color:var(--text-heading); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.ys-guide-info small { font-size:12px; color:var(--text-3); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.ys-pill { flex-shrink:0; padding:4px 10px; border-radius:3px; font-size:11px; font-weight:700; letter-spacing:.3px; white-space:nowrap; }
.ys-pill-out { background:var(--olive); color:var(--text-on-brand); }
.ys-pill-soon { background:#264e78; color:#fff; }
.ys-pill-wait { background:var(--bg-3); color:var(--text-2); }
.ys-pill-done { background:transparent; border:0.5px solid var(--border-2); color:var(--text-3); }
.ys-cal { display:flex; flex-direction:column; gap:12px; }
.ys-cal-day { display:grid; grid-template-columns:86px minmax(0, 1fr); gap:14px; align-items:start; }
.ys-cal-date { text-align:center; padding:8px 4px; border-radius:var(--radius); background:var(--olive-faint); border:0.5px solid var(--border-olive); }
.ys-cal-date b { display:block; font-family:var(--bebas); font-weight:400; font-size:30px; line-height:1; color:var(--olive-light); }
.ys-cal-date span { font-size:10.5px; letter-spacing:.8px; text-transform:uppercase; color:var(--text-2); }
.ys-cal-items { display:flex; flex-direction:column; gap:8px; min-width:0; }
@media(max-width:640px) {
  .ys-ep { width:200px; } .ys-season { width:120px; }
  .ys-guide { grid-template-columns:1fr; }
  .ys-cal-day { grid-template-columns:64px minmax(0, 1fr); gap:10px; }
  .ys-cal-date b { font-size:24px; }
  .ys-pill { font-size:10px; padding:3px 7px; }
}

/* ═════════════════════════════════════════════════════════════
   §48  Placeholders (config.js → mssImagePlaceholders)
   Framed images fade in once loaded, with the light sweep meanwhile; page
   loaders show skeleton blocks instead of a spinner.
   The sweep is ONE light that crosses the whole screen (background-attachment:fixed), so every
   box lights up as it passes — the theme's greens with the OTHER theme's base colour at its core:
   light mode → deep forest green, dark mode → light green with cream.
   ═════════════════════════════════════════════════════════════ */
.mss-img-fx :is([class*="poster"], [class*="still"], [class*="backdrop"], [class*="photo"], [class*="avatar"], [class*="cast"], [class*="cover"], [class*="thumb"], .fr-av) > img { transition:opacity .25s ease; }
.mss-img-fx :is([class*="poster"], [class*="still"], [class*="backdrop"], [class*="photo"], [class*="avatar"], [class*="cast"], [class*="cover"], [class*="thumb"], .fr-av) > img:not(.is-loaded) { opacity:0; }
.mss-img-fx :is([class*="poster"], [class*="still"], [class*="backdrop"], [class*="photo"], [class*="avatar"], [class*="cast"], [class*="cover"], [class*="thumb"], .fr-av).fx-vis:has(> img:not(.is-loaded)) {
  background-image:var(--aw-sweep); background-size:300vw 100vh; background-attachment:fixed; background-repeat:no-repeat; animation:mssSweep 2.1s var(--aw-ease) infinite;
}
/* Phones and tablets: the light crosses each box on its own (no screen-wide fixed background —
   Safari repaints those on every frame and runs out of memory on long pages) */
@media (pointer: coarse) {
  .mss-img-fx :is([class*="poster"], [class*="still"], [class*="backdrop"], [class*="photo"], [class*="avatar"], [class*="cast"], [class*="cover"], [class*="thumb"], .fr-av).fx-vis:has(> img:not(.is-loaded)),
  .skel, .page-loading:not(.has-skel)::before, .page-loading:not(.has-skel)::after, .skel-ghost, .msf-card.is-skel :is(.msf-card__poster, .msf-card__skl), .msf-row.is-skel .msf-row__poster, .dt-skel, .qp-skel, .pp-skel, .nf-card.is-skel, .bw-chip.is-skel, .tv-people.is-loading .tv-face, .es-sheet.is-skel, .ex-pv.is-skel::after, .df-skel {
    background-attachment:scroll !important; background-size:300% 100% !important; animation-name:mssSweepEl !important; }
  .has-skel :is([class*="poster"], .skel-cover:not(.skel-round)).skel { background-size:min(34px, 34%) auto, 300% 100% !important; background-attachment:scroll, scroll !important; animation-name:mssSweepPlayEl !important; }
  .skel-txt { background:var(--aw-sweep) 150% 0 / 300% 100% no-repeat scroll, var(--skel-bg) !important; animation-name:mssSweepEl !important; }
}
@keyframes mssSweepEl { from { background-position:-50% 0; } to { background-position:150% 0; } }
@keyframes mssSweepPlayEl { from { background-position:50% 46%, -50% 0; } to { background-position:50% 46%, 150% 0; } }
/* ── Page loaders: skeletons shaped like the page (mssSkeleton, config.js) ──
   The boxes use the page's own card / grid / stat classes, so they size and
   scale exactly like the loaded page; everything inside is relative (%, em,
   clamp) so it shrinks cleanly on small phones. */
.page-loading { flex-direction:column; align-items:stretch; gap:14px; padding:1.5rem 0; }
.page-loading .spinner { display:none; }
.page-loading:not(.has-skel)::before, .page-loading:not(.has-skel)::after { content:''; display:block; border-radius:var(--radius); }
.page-loading:not(.has-skel)::before { height:120px; }
.page-loading:not(.has-skel)::after { height:72px; width:70%; }
.page-loading.has-skel { display:block; padding:0; pointer-events:none; }
.has-skel:not(.skel-exact) > * + * { margin-top:clamp(12px, 3vw, 18px); }
.has-skel .nc-card:hover { transform:none; box-shadow:none; border-color:var(--border); }
.skel { display:block; border-radius:var(--radius-xs, 4px); }
.skel, .page-loading:not(.has-skel)::before, .page-loading:not(.has-skel)::after {
  background-color:var(--skel-bg); background-image:var(--aw-sweep); background-size:300vw 100vh; background-attachment:fixed; background-repeat:no-repeat;
  animation:mssSweep 2.1s var(--aw-ease) infinite;
}
/* Every loading placeholder shares that one sweep (owner, 19 Nov 2026 — some pulsed, some breathed, some stood still): the page
   skeletons above and the ones components draw themselves — cards and rows, Discover's hero and Also trending, Browse's chips,
   Pick for me, the poster / backdrop pickers, the notes header, cast photos, Export's previews */
.msf-card.is-skel :is(.msf-card__poster, .msf-card__skl), .msf-row.is-skel .msf-row__poster, .dt-skel, .qp-skel, .pp-skel, .nf-card.is-skel, .bw-chip.is-skel, .tv-people.is-loading .tv-face, .es-sheet.is-skel, .ex-pv.is-skel::after, .df-skel {
  background-image:var(--aw-sweep); background-size:300vw 100vh; background-attachment:fixed; background-repeat:no-repeat;
  animation:mssSweep 2.1s var(--aw-ease) infinite;
}
.dt-skel, .qp-skel, .pp-skel, .bw-chip.is-skel, .tv-people.is-loading .tv-face { background-color:var(--skel-bg); }
/* the ones on a surface that's dark in both themes (Discover's hero, Export): the dark theme's light sweep */
.es-sheet.is-skel, .ex-pv.is-skel::after, .df-skel { background-image:var(--aw-sweep-dark); }
:root { --aw-sweep-dark:linear-gradient(105deg, transparent 0 34%, rgba(166,204,177,.10) 41%, rgba(166,204,177,.38) 47%, rgba(226,218,208,.40) 50%, rgba(166,204,177,.38) 53%, rgba(166,204,177,.10) 59%, transparent 66% 100%); }
/* poster placeholders: a faint play mark in the theme's green */
.has-skel :is([class*="poster"], .skel-cover:not(.skel-round)).skel {
  background-image:var(--aw-play), var(--aw-sweep); background-size:min(34px, 34%) auto, 300vw 100vh; background-attachment:scroll, fixed;
  background-position:50% 46%, 100vw 0; background-repeat:no-repeat !important; animation-name:mssSweepPlay;   /* (some poster boxes set their own background) */
}
/* the cards breathe gently while they wait, one after another */
.page-loading :is(.msf-row, .fv-rank-row, .nc-card, .skel-row, .page-stat, .egh-row, .skel-tile) { animation:mssBreathe 2.4s ease-in-out infinite; }
.skel-line { height:.8em; max-width:100%; margin:0 0 .55em; font-size:clamp(11px, 2.6vw, 14px); }
.skel-xs { height:.6em; margin:.5em 0 0; }
.skel-sm { height:.65em; }
.skel-title { height:1.15em; font-size:clamp(13px, 3.4vw, 18px); }
.skel-h1 { height:1.4em; font-size:clamp(16px, 4.8vw, 28px); margin-bottom:.4em; }
.skel-head { height:1em; font-size:clamp(12px, 3vw, 15px); margin:0; }
.skel-gap { margin-top:clamp(18px, 4vw, 28px) !important; }
.skel-badge { height:1.5em; border-radius:var(--radius-xs, 4px); }
.skel-num { width:42%; height:clamp(18px, 5vw, 30px); border-radius:4px; }
.skel-field { height:clamp(36px, 9vw, 44px); border-radius:var(--radius-sm); margin:0 0 12px; font-size:inherit; }
.skel-tabs { height:clamp(34px, 8vw, 42px); border-radius:var(--radius-sm); }
.skel-col { flex:1; min-width:0; }
.skel-stack { display:flex; flex-direction:column; gap:clamp(10px, 2.6vw, 14px); }
.skel-section-body { display:flex; flex-direction:column; gap:10px; padding:clamp(10px, 2.6vw, 16px); }.has-skel .nc-poster.skel { border-radius:0; }
.has-skel .nc-poster.skel { border-radius:var(--radius-sm); }/* Exact skeletons (mssSkeleton.define): the page's own markup with its text masked */
:root {
  --skel-bg:var(--fill-subtle); --aw-edge:rgba(166,204,177,.10); --aw-glow:rgba(166,204,177,.38); --aw-core:rgba(226,218,208,.40);
  --aw-play:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237EB86C' stroke-opacity='.32' stroke-width='1.6' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M10 8.5v7l5.5-3.5z' fill='%237EB86C' fill-opacity='.32'/%3E%3C/svg%3E");
  --aw-sweep:linear-gradient(105deg, transparent 0 34%, var(--aw-edge) 41%, var(--aw-glow) 47%, var(--aw-core) 50%, var(--aw-glow) 53%, var(--aw-edge) 59%, transparent 66% 100%);
  --aw-ease:cubic-bezier(.45,.05,.35,1);
}
html[data-theme="light"] {
  --skel-bg:var(--fill-subtle); --aw-edge:rgba(30,92,38,.08); --aw-glow:rgba(30,92,38,.30); --aw-core:rgba(15,45,20,.42);
  --aw-play:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231A4520' stroke-opacity='.28' stroke-width='1.6' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M10 8.5v7l5.5-3.5z' fill='%231A4520' fill-opacity='.28'/%3E%3C/svg%3E");
  --aw-sweep:linear-gradient(105deg, transparent 0 34%, var(--aw-edge) 41%, var(--aw-glow) 47%, var(--aw-core) 50%, var(--aw-glow) 53%, var(--aw-edge) 59%, transparent 66% 100%);
}
.page-loading.skel-exact * { text-overflow:clip !important; }   /* no "…" left over from the sample text */
/* Simpler, to the point (owner, 19 Nov 2026): a loading card or row shows its picture and its title — the small details
   (badges on the poster, year, meta, scores, the overview) wait for the real thing. Hidden, not removed, so each card keeps
   its height and nothing jumps when the content arrives. No dark shade over a poster that isn't there yet. */
.page-loading .msf-card__poster::after { display:none; }
.page-loading .msf-card__poster > *, .page-loading :is(.msf-card__year, .msf-card__line2, .msf-card__meta, .msf-card__sub),
.page-loading :is(.dx-rank, .dx-year, .dx-meta, .dx-sub, .dx-ov, .dx-chips), .page-loading .msf-row__poster > * { visibility:hidden; }
.skel-txt {
  color:transparent !important; -webkit-text-fill-color:transparent; border-radius:4px; -webkit-box-decoration-break:clone; box-decoration-break:clone;
  background:var(--aw-sweep) 100vw 0 / 300vw 100vh no-repeat fixed, var(--skel-bg);
  -webkit-mask:linear-gradient(#000, #000) 0 50% / 100% 62% no-repeat; mask:linear-gradient(#000, #000) 0 50% / 100% 62% no-repeat;   /* a text-high bar, not the whole line */
  animation:mssSweep 2.1s var(--aw-ease) infinite;
}
.skel-txt * { visibility:hidden; }
.skel-ghost { color:transparent !important; -webkit-text-fill-color:transparent; border-color:transparent !important; box-shadow:none !important;
  background:var(--aw-sweep) 100vw 0 / 300vw 100vh no-repeat fixed, var(--skel-bg) !important;
  animation:mssSweep 2.1s var(--aw-ease) infinite; }
.skel-ghost * { visibility:hidden; }
.skel-icon { opacity:.28; }
.page-loading.skel-exact :is(.msf-row, .fv-rank-row, .nc-card):hover { transform:none; box-shadow:none; }
/* A loading box inside a row of cards (Discover, home rows…) lends its cards to the row itself,
   so they line up and size exactly like the real ones instead of squeezing into one cell */
:is(.msf-grid, .msf-rail, .dl-list) > .page-loading.has-skel { display:contents; }.skel-row { display:flex; align-items:center; gap:clamp(10px, 3vw, 14px); padding:clamp(10px, 2.8vw, 14px); background:var(--card); border:0.5px solid var(--border); border-radius:var(--radius); }
.skel-avatar { width:clamp(34px, 9vw, 44px); aspect-ratio:1; border-radius:50%; flex-shrink:0; }
.skel-head-row .skel-line:last-child { margin-bottom:0; }
.skel-media { display:flex; gap:clamp(14px, 4vw, 28px); align-items:flex-start; }
.skel-cover { width:clamp(92px, 26vw, 200px); aspect-ratio:2/3; flex-shrink:0; border-radius:var(--radius); }
.skel-cover.skel-round { width:clamp(72px, 20vw, 140px); aspect-ratio:1; border-radius:50%; }
.skel-hero { width:100%; aspect-ratio:16/6; border-radius:var(--radius-lg); }
.skel-tiles { display:grid; grid-template-columns:repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap:clamp(10px, 3vw, 16px); }
.skel-tile { aspect-ratio:16/10; border-radius:var(--radius-lg); }
@media(max-width:640px) { .skel-hero { aspect-ratio:16/9; } }
.sr-only { position:absolute !important; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.page-loading :is(.msf-row, .fv-rank-row, .nc-card, .skel-row, .page-stat, .egh-row, .skel-tile):nth-child(6n+2) { animation-delay:0.1s; }
.page-loading :is(.msf-row, .fv-rank-row, .nc-card, .skel-row, .page-stat, .egh-row, .skel-tile):nth-child(6n+3) { animation-delay:0.2s; }
.page-loading :is(.msf-row, .fv-rank-row, .nc-card, .skel-row, .page-stat, .egh-row, .skel-tile):nth-child(6n+4) { animation-delay:0.3s; }
.page-loading :is(.msf-row, .fv-rank-row, .nc-card, .skel-row, .page-stat, .egh-row, .skel-tile):nth-child(6n+5) { animation-delay:0.4s; }
.page-loading :is(.msf-row, .fv-rank-row, .nc-card, .skel-row, .page-stat, .egh-row, .skel-tile):nth-child(6n+6) { animation-delay:0.5s; }
@keyframes mssSweep { from { background-position:100vw 0; } to { background-position:-200vw 0; } }
/* Reduce motion: the placeholders stay still (the same boxes, no sweep, no breathing) */
@media (prefers-reduced-motion:reduce) {
  .skel, .skel-txt, .skel-ghost, .page-loading::before, .page-loading::after, .mss-img-fx .fx-vis, .msf-card.is-skel :is(.msf-card__poster, .msf-card__skl), .msf-row.is-skel .msf-row__poster, .dt-skel, .qp-skel, .pp-skel, .nf-card.is-skel, .bw-chip.is-skel, .tv-people.is-loading .tv-face, .es-sheet.is-skel, .ex-pv.is-skel::after, .df-skel,
  .page-loading :is(.msf-row, .fv-rank-row, .nc-card, .skel-row, .page-stat, .egh-row, .skel-tile), .epc-skel-bub { animation:none !important; }
}
@keyframes mssSweepPlay { from { background-position:50% 46%, 100vw 0; } to { background-position:50% 46%, -200vw 0; } }
@keyframes mssBreathe { 50% { opacity:.72; } }
/* When the page's content replaces its loader it rises in, the first cards one after another (mssSkeleton
   adds .mss-arrive for a moment; 'backwards' so hover lifts still work after) */
.mss-arrive, .mss-arrive :is(.msf-row, .fv-rank-row, .nc-card, .page-stat, .egh-row):nth-child(-n+12) { animation:mssArrive .45s cubic-bezier(.2,.8,.2,1) backwards; }
.mss-arrive :is(.msf-row, .fv-rank-row, .nc-card, .page-stat, .egh-row):nth-child(2) { animation-delay:35ms; }
.mss-arrive :is(.msf-row, .fv-rank-row, .nc-card, .page-stat, .egh-row):nth-child(3) { animation-delay:70ms; }
.mss-arrive :is(.msf-row, .fv-rank-row, .nc-card, .page-stat, .egh-row):nth-child(4) { animation-delay:105ms; }
.mss-arrive :is(.msf-row, .fv-rank-row, .nc-card, .page-stat, .egh-row):nth-child(5) { animation-delay:140ms; }
.mss-arrive :is(.msf-row, .fv-rank-row, .nc-card, .page-stat, .egh-row):nth-child(6) { animation-delay:175ms; }
.mss-arrive :is(.msf-row, .fv-rank-row, .nc-card, .page-stat, .egh-row):nth-child(7) { animation-delay:210ms; }
.mss-arrive :is(.msf-row, .fv-rank-row, .nc-card, .page-stat, .egh-row):nth-child(8) { animation-delay:245ms; }
.mss-arrive :is(.msf-row, .fv-rank-row, .nc-card, .page-stat, .egh-row):nth-child(9) { animation-delay:280ms; }
.mss-arrive :is(.msf-row, .fv-rank-row, .nc-card, .page-stat, .egh-row):nth-child(10) { animation-delay:315ms; }
.mss-arrive :is(.msf-row, .fv-rank-row, .nc-card, .page-stat, .egh-row):nth-child(11) { animation-delay:350ms; }
.mss-arrive :is(.msf-row, .fv-rank-row, .nc-card, .page-stat, .egh-row):nth-child(12) { animation-delay:385ms; }
@keyframes mssArrive { from { opacity:0; transform:translateY(8px) scale(.985); } }
/* A slow load says so — only after 1.5s, so quick loads never see it (mssSkeleton). A floating pill in the toast spot
   (bottom centre; above the bottom bar on phones), over the page — it never takes room in it. Restored 14 Nov 2026
   (owner) from before the popups redesign, in the toast's look. When a toast is up, it moves up over it (never the
   same spot). Its text changes by fading out and in while the pill eases to its new width (no jump). */
.mss-slow { position:fixed; left:50%; bottom:28px; z-index:2990; transform:translate(-50%, 12px); opacity:0; pointer-events:none;
  display:flex; align-items:center; gap:10px; box-sizing:border-box; padding:9px 16px 9px 12px; border-radius:999px; white-space:nowrap; overflow:hidden;
  background:var(--surface-elevated); color:var(--text-body); border:1px solid var(--border-strong); font:600 13px/1.4 'Manrope',var(--sans);   /* the theme's raised surface (owner, 18 Nov 2026) */
  transition:opacity .25s ease-out, transform .25s var(--layer-in, ease-out), width .3s ease, bottom .25s ease; }
.mss-slow.show { opacity:1; transform:translate(-50%, 0); }
.mss-slow-tx { transition:opacity .2s ease; }
.mss-slow-tx.is-out { opacity:0; }
html:has(#toast.visible) .mss-slow { bottom:calc(28px + 64px); }
@media(max-width:1199px) {
  .mss-slow { bottom:calc(var(--bnav-top) + 46px + 66px); }
  html:has(#toast.visible) .mss-slow { bottom:calc(var(--bnav-top) + 46px + 66px + 64px); }
}
/* The MSF logo as the loader: it turns round like a coin (on its upright axis — a wide logo
   spinning flat would wobble the chip), pausing a moment face-on each turn. Two faces, so it
   never shows back-to-front (reduced motion: still) */
.mss-slow-logo { position:relative; flex-shrink:0; width:42px; aspect-ratio:467 / 198; transform-style:preserve-3d;
  animation:mssLogoTurn 1.8s cubic-bezier(.6,0,.35,1) infinite; }
.mss-slow-logo::before, .mss-slow-logo::after { content:''; position:absolute; inset:0; background:url(../icons/logo-dark.svg) center / contain no-repeat;
  -webkit-backface-visibility:hidden; backface-visibility:hidden; }
[data-theme="light"] .mss-slow-logo::before, [data-theme="light"] .mss-slow-logo::after { background-image:url(../icons/logo-light.svg); }
.mss-slow-logo::after { transform:rotateY(180deg); }
@keyframes mssLogoTurn { 0%, 20% { transform:perspective(160px) rotateY(0deg); } 100% { transform:perspective(160px) rotateY(360deg); } }
@media(prefers-reduced-motion:reduce) {
  .mss-img-fx :is([class*="poster"], [class*="still"], [class*="backdrop"], [class*="photo"], [class*="avatar"], [class*="cast"], [class*="cover"], [class*="thumb"], .fr-av), .page-loading::before, .page-loading::after, .skel, .skel-txt, .skel-ghost, .page-loading *, .mss-arrive, .mss-arrive *, .mss-slow-logo { animation:none !important; }
  .mss-slow { transform:translate(-50%, 0); transition:opacity .12s linear; } .mss-slow-tx { transition:opacity .12s linear; }
}
/* ── Right-to-left content language (MSSLang, config.js — Arabic, Hebrew,
   Persian, Urdu, Kurdish): each block of TMDB text (titles, overviews,
   names, bios) takes the direction of its own first letter, so Arabic
   reads and aligns right-to-left while English text stays as it is. ── */
:root[data-content-rtl] :is(p, h1, h2, h3, h4, li, [class*="title"], [class*="name"], [class*="overview"], [class*="desc"], [class*="bio"], [class*="tagline"]) { unicode-bidi:plaintext; }

/* Right-to-left site language (MSSI18n): "forward" / "back" arrows point the
   other way. Scroll arrows (.grid-nav-btn) stay physical — they scroll left / right. */
[dir="rtl"] svg:has(> polyline[points="12 5 19 12 12 19"]),
[dir="rtl"] svg:has(> polyline[points="12 19 5 12 12 5"]) { transform:scaleX(-1); }
[dir="rtl"] .grid-nav-btn svg { transform:none; }

/* ── MSSPicker (config.js) — dropdown with type-to-search. Same build as the
   title page's .td-dd: field-style button, menu joined underneath. ── */
.mss-pick { position:relative; width:100%; }
.mss-pick-trigger {
  width:100%; min-height:44px; box-sizing:border-box; display:flex; align-items:center; justify-content:space-between; gap:10px;
  padding:0 14px; border-radius:var(--radius-sm); cursor:pointer; text-align:start;
  background:var(--bg-3); border:1px solid var(--border-2); color:var(--text);
  font:inherit; font-size:14px; transition:border-color .15s, background-color .15s;
}
.mss-pick-trigger:hover { border-color:var(--border-olive); }
.mss-pick-trigger:focus-visible { outline:none; border-color:var(--olive-light); box-shadow:0 0 0 3px var(--olive-faint); }
.mss-pick-value { flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.mss-pick-value.mss-pick-placeholder { color:var(--text-3); }
.mss-pick-chevron { flex-shrink:0; color:var(--text-3); transition:transform .15s; }
.mss-pick.open .mss-pick-trigger { border-color:var(--olive-light); }
.mss-pick.open .mss-pick-chevron { transform:rotate(180deg); color:var(--olive-light); }
/* the list: the popover look — its own card just under the field (solid panel, 1px border, 12px corners) */
.mss-pick-menu {
  display:none; position:absolute; top:calc(100% + 6px); inset-inline:0; z-index:40;
  background:var(--panel); border:1px solid var(--border-2); border-radius:12px; overflow:hidden; animation:lyrMenu .14s var(--layer-in);
}
.mss-pick.open .mss-pick-menu { display:block; }
.mss-pick-search { display:flex; align-items:center; gap:8px; padding:10px 14px; border-bottom:1px solid var(--border); color:var(--text-3); }
.mss-pick-search svg { flex-shrink:0; }
.mss-pick-search input { flex:1; min-width:0; background:none; border:none; outline:none; color:var(--text); font:inherit; font-size:14px; padding:2px 0; }
.mss-pick-search input::placeholder { color:var(--text-3); }
.mss-pick-list { list-style:none; margin:0; padding:6px; max-height:min(280px, 45dvh); overflow-y:auto; overscroll-behavior-y:contain; }
.mss-pick-group { padding:10px 10px 4px; font:800 10.5px/1.3 'Manrope',var(--sans); letter-spacing:.14em; text-transform:uppercase; color:var(--text-3); }
.mss-pick-opt { min-height:38px; padding:9px 10px; border-radius:8px; font-size:14px; color:var(--text); cursor:pointer; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.mss-pick-opt.active { background:var(--olive-faint); }
.mss-pick-opt.selected { background:var(--olive-faint); color:var(--olive-light); font-weight:600; }
.mss-pick-none { padding:14px; font-size:13px; color:var(--text-3); text-align:center; }
@media(hover:hover) { .mss-pick-opt:hover { background:var(--olive-faint); } }
@media (prefers-reduced-motion:reduce) { .mss-pick-menu { animation:none; } }
@media(max-width:640px) { .mss-pick-search input, .mss-pick-trigger { font-size:16px; } }   /* 16px: iPhone doesn't zoom in */
.mss-pick-trigger:disabled { opacity:.6; cursor:progress; }
/* typed: you type in the field; the list floats over everything, kept on screen by place() in MSSPicker */
.mss-pick-typed .mss-pick-trigger { cursor:text; }
.mss-pick-typed .mss-pick-trigger:focus-within { border-color:var(--olive-light); box-shadow:0 0 0 3px var(--olive-faint); }
.mss-pick-typed .mss-pick-trigger input { flex:1; width:100%; min-width:0; height:100%; padding:0; background:none; border:none; outline:none; color:var(--text); font:inherit; }
.mss-pick-typed .mss-pick-trigger input::placeholder { color:var(--text-3); opacity:1; }
.mss-pick-typed .mss-pick-chevron { cursor:pointer; box-sizing:content-box; padding:10px 0 10px 2px; }
.mss-pick-typed .mss-pick-menu { position:fixed; top:0; left:0; inset-inline:auto; z-index:60; }

/* ── Title logos (tmdbTitleHTML, nav.js): name artwork in place of the written title ── */
.mss-logo { display:block; width:auto; height:auto; max-width:min(100%, 540px); max-height:clamp(64px, 10vw, 140px); object-fit:contain; filter:drop-shadow(0 2px 12px rgba(0,0,0,.55)) drop-shadow(0 0 1px rgba(0,0,0,.35)); }
.mss-logo-tall .mss-logo { max-width:min(100%, 300px); max-height:clamp(96px, 14vw, 190px); }
.mss-logo-wide .mss-logo { max-height:clamp(48px, 7vw, 96px); }
.mss-logo-name { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.mss-logo-failed .mss-logo { display:none; }
/* the big backdrop cards (mssPaintLogo): the title's name artwork in place of the written title, sized to each card */
/* Home's Continue watching: the title's name artwork, big (owner, 19 Nov 2026) */
.mh-hero-t.mss-logo-title:not(.mss-logo-failed) { display:block; line-height:0; text-shadow:none; }
.mh-hero-t .mss-logo { max-width:min(100%, 440px); max-height:clamp(64px, 4vw + 40px, 120px); }
.mh-hero-t.mss-logo-tall .mss-logo { max-width:min(100%, 240px); max-height:clamp(90px, 5vw + 56px, 150px); }
.mh-hero-t.mss-logo-wide .mss-logo { max-height:clamp(44px, 3vw + 24px, 80px); }
:is(.pf-fav-title, .mh-fav-title, .lib-pod-title).mss-logo-title:not(.mss-logo-failed) { display:block; line-height:0; padding-bottom:4px; -webkit-line-clamp:unset; overflow:visible; }
:is(.pf-fav-title, .mh-fav-title, .lib-pod-title) .mss-logo { max-width:min(100%, 240px); max-height:56px; }
:is(.pf-fav-title, .mh-fav-title, .lib-pod-title).mss-logo-tall .mss-logo { max-width:min(100%, 150px); max-height:78px; }
:is(.pf-fav-title, .mh-fav-title, .lib-pod-title).mss-logo-wide .mss-logo { max-height:40px; }
:is(.pf-fav.is-r1 .pf-fav-title, .mh-fav.is-r1 .mh-fav-title, .lib-pod-1 .lib-pod-title) .mss-logo { max-width:min(100%, 420px); max-height:clamp(70px, 8vw, 120px); }
:is(.pf-fav.is-r1 .pf-fav-title, .mh-fav.is-r1 .mh-fav-title, .lib-pod-1 .lib-pod-title).mss-logo-tall .mss-logo { max-width:min(100%, 220px); max-height:clamp(80px, 8vw, 116px); }
:is(.pf-fav.is-r1 .pf-fav-title, .mh-fav.is-r1 .mh-fav-title, .lib-pod-1 .lib-pod-title).mss-logo-wide .mss-logo { max-height:clamp(52px, 5vw, 76px); }
:is(.pf-fav.is-r2 .pf-fav-title, .lib-pod-2 .lib-pod-title, .lib-pod-3 .lib-pod-title) .mss-logo { max-width:min(100%, 300px); max-height:72px; }
@media (max-width:640px) {
  :is(.pf-fav-title, .mh-fav-title, .lib-pod-title) .mss-logo { max-width:min(100%, 170px); max-height:44px; }
  :is(.pf-fav.is-r1 .pf-fav-title, .mh-fav.is-r1 .mh-fav-title, .lib-pod-1 .lib-pod-title) .mss-logo { max-width:min(100%, 220px); max-height:64px; }
}
.mss-logo-failed .mss-logo-name { position:static; width:auto; height:auto; margin:0; overflow:visible; clip:auto; white-space:normal; }
@media(max-width:640px) { .mss-logo { max-width:min(100%, 300px); max-height:84px; } .mss-logo-tall .mss-logo { max-width:200px; max-height:120px; } .mss-logo-wide .mss-logo { max-height:60px; } }

/* ── Page scroll lock (mssLockScroll, config.js): no bounce / pull-to-refresh behind a popup,
   and a popup that reaches its end doesn't hand the swipe on to the page.
   Only the popup itself gets "contain" — not everything inside it: Safari treats any
   overflow:hidden box as a scroll box, so "contain" on those stopped a swipe or a
   trackpad scroll that started on a list, a card or a picture from reaching the part
   that actually scrolls (only the empty edges scrolled). The scrolling parts set
   their own contain. ── */
html.mss-scroll-locked, html.mss-scroll-locked body { overscroll-behavior:none; }
html.mss-scroll-locked [role="dialog"] { overscroll-behavior:contain; }

/* ── "Add to List" picker (list-popup.js → MSSList.addTo): your lists, one under another ── */
.la-list { display:flex; flex-direction:column; gap:12px; padding:8px 0 12px; }
.la-card { position:relative; display:flex; flex-direction:column; width:100%; text-align:start; font:inherit; color:inherit; cursor:pointer; }
.la-card.in { border-color:var(--olive-light); box-shadow:0 0 0 1px var(--olive-light) inset; }
.la-card:disabled { opacity:.6; cursor:progress; }
.la-card:focus-visible { outline:2px solid var(--olive-light); outline-offset:2px; }
.la-state { position:absolute; top:16px; inset-inline-end:16px; display:inline-flex; align-items:center; gap:5px; padding:5px 11px; border-radius:var(--radius-sm); font-size:12px; font-weight:700; border:1px solid var(--border-olive); color:var(--olive-light); background:var(--card); }
.la-card.in .la-state { background:var(--olive); border-color:var(--olive); color:var(--text-on-brand); }
.la-shared { font-size:12px; color:var(--text-3); margin:-4px 0 8px; }
.la-empty { display:flex; flex-direction:column; align-items:center; gap:8px; text-align:center; padding:2rem 1rem; color:var(--text-3); font-size:13px; }
.la-empty b { color:var(--text); font-size:15px; }

/* ── Add to Library popup (MSSInfo.addToLibrary, info-popup.js): where · what it is · who can see ── */
#mssAddGo { display:inline-flex; align-items:center; justify-content:center; gap:6px; white-space:nowrap; }
#mssAddGo:disabled { opacity:.6; cursor:default; }

/* ── Rich notes (MSSRich, config.js): toolbar + styled text ── */
.mss-rt-row { display:flex; align-items:center; gap:4px 8px; flex-wrap:wrap; margin:0 0 8px; }
.mss-rt { display:flex; gap:4px; flex-wrap:wrap; }
/* the spoiler toggle at the end of the B · I · U · S · Quote row: as wide as its words
   (an easter egg's longer wording too) — drops to its own line when the row is full */
.mss-rt-end { margin-inline-start:auto; flex:0 1 auto; min-width:0; }
.mss-rt-end .spoiler-toggle { margin:0; height:32px; box-sizing:border-box; padding:0 11px 0 8px; gap:7px; }
.mss-rt-end .spoiler-toggle-box { width:17px; height:17px; border-radius:5px; }
.mss-rt-end .spoiler-toggle-box svg { width:10px; height:10px; }
.mss-rt-end .spoiler-toggle-text b { font-size:12.5px; white-space:nowrap; }
@media(max-width:480px) { /* phones: tight enough that "Mark as spoiler" stays on the row */
  .mss-rt-row { column-gap:6px; }
  .mss-rt-end .spoiler-toggle { padding:0 8px 0 7px; gap:6px; }
  .mss-rt-end .spoiler-toggle-text b { font-size:12px; }
}
.mss-rt-btn { width:34px; height:32px; display:inline-flex; align-items:center; justify-content:center; padding:0; border-radius:var(--radius-sm); border:0.5px solid var(--border-2); background:var(--card); color:var(--text-2); font:600 15px 'Manrope',var(--sans); cursor:pointer; transition:border-color .15s, color .15s, background-color .15s; }
.mss-rt-btn:hover { border-color:var(--border-olive); color:var(--text); background:var(--olive-faint); }
.mss-rt-btn:focus-visible { outline:2px solid var(--olive-light); outline-offset:2px; }
.mss-rt-btn:active { transform:translateY(1px); }
.mss-rt-btn.on, .mss-rt-btn.on:hover { background:var(--olive); border-color:var(--olive); color:var(--text-on-brand); }
/* the writing box (MSSRich.attach): looks like the textarea it replaces, styles show as you type */
:where(.mss-rte) { min-height:120px; max-height:min(60vh, 560px); }    /* the box's own class (np-textarea, field-input) can set these */
.mss-rte { display:block; overflow-y:auto; white-space:pre-wrap; overflow-wrap:anywhere; cursor:text; text-align:start; outline:none; }
.mss-rte:empty::before { content:attr(data-placeholder); color:var(--text-3); pointer-events:none; }
.mss-rte:focus-visible { outline:none; }
.mss-rte strong, .mss-rte b { font-weight:700; }
.mss-rte blockquote, .mss-rte .mss-rq { margin:8px 0; padding:2px 0; padding-inline-start:14px; border-inline-start:3px solid var(--border-olive); font-style:italic; color:var(--text-2); }
.mss-rte blockquote::before, .mss-rte blockquote::after { content:none; }
:is(div, blockquote).mss-rich { font-style:normal; white-space:normal; }   /* beats the italic note styles, so *italic* shows */
.mss-rich strong { font-weight:700; color:var(--text); }
.mss-rich em { font-style:italic; }
.mss-rich s { opacity:.75; }
.mss-rq { margin:10px 0; padding:4px 0; padding-inline-start:14px; border-inline-start:3px solid var(--border-olive); font-style:italic; color:var(--text-2); }
.mss-rq::before { content:'“'; } .mss-rq::after { content:'”'; }
.mss-rq:first-child { margin-top:2px; } .mss-rq:last-child { margin-bottom:2px; }
.mss-rq em { font-style:normal; }

/* ── The site's search box — one look on every page (SF.searchHTML in sort-filter.js, and the same markup on Home,
   Discover, Episodes, Notes, Lists, Friends, Compare, Movie Night, Help and Setup): a card-coloured field with a thin
   input border, --radius-sm corners, no shadow, and the green Search button at the end. Two sizes, set by the
   variables below, never by per-page heights:
   · standard — a page's own search: 44px tall, 14px text
   · compact  — a search sitting in a toolbar beside 36–44px buttons (Library / category header, profile Library tab,
     Home, Notes / Lists toolbar, Diary): 40px tall, 13.5px text, a slimmer Search button
   Phones (≤640px): both are 44px (tap size), the typed text is 16px (iOS doesn't zoom in) and Search is an icon. ── */
.sf-search-row { margin:0 0 1.25rem; }
.sf-search { --sfs-h:44px; --sfs-fs:14px; --sfs-go:16px;
  position:relative; display:flex; align-items:stretch; width:100%; height:var(--sfs-h); box-sizing:border-box; overflow:hidden;
  background:var(--surface-card); border:1px solid var(--border-input); border-radius:var(--radius-sm); transition:border-color .15s, box-shadow .15s; }
.lib-head .sf-search, .lib-bar-search .sf-search, .sf-search.mh-search, .nt-tools .sf-search, .dy-searchrow .sf-search { --sfs-h:40px; --sfs-fs:13.5px; --sfs-go:12px; }
.sf-search:hover { border-color:var(--border-brand); }
.sf-search:focus-within { border-color:var(--text-link); box-shadow:0 0 0 3px var(--selected-bg); }   /* the focus ring is part of the field, not a shadow */
.sf-search-ic { display:none; }   /* older markup still carries it; the Search button is the icon */
.sf-search-input { flex:1; min-width:0; height:100%; padding:0 14px; border:none; outline:none; background:transparent; color:var(--text-body); font:400 var(--sfs-fs) 'Manrope',var(--sans); }
.sf-search-input::placeholder { color:var(--text-muted); font-size:var(--sfs-fs); opacity:1; }
/* search fields: no native styling or clear "x" (pages add their own clear button) */
input[type=search] { -webkit-appearance:none; appearance:none; }
input[type=search]::-webkit-search-cancel-button, input[type=search]::-webkit-search-decoration { -webkit-appearance:none; appearance:none; }
.sf-search-count { align-self:center; margin-inline-end:8px; font-size:12px; font-weight:600; color:var(--text-muted); white-space:nowrap; }
.sf-search-count b { font-family:var(--bebas); font-size:16px; font-weight:400; letter-spacing:.3px; color:var(--text-link); vertical-align:-1px; }
.sf-search-clear { display:none; align-self:center; width:30px; height:30px; margin-inline-end:6px; flex-shrink:0; align-items:center; justify-content:center; border:none; border-radius:50%;
  background:var(--bg-3); color:var(--text-muted); cursor:pointer; }
.sf-search.has-q .sf-search-clear { display:inline-flex; }
.sf-search-clear:hover { background:var(--selected-bg); color:var(--text-body); }
.sf-search-clear:focus-visible { outline:2px solid var(--focus-ring); outline-offset:-2px; }
.sf-search-go { flex-shrink:0; display:flex; align-items:center; gap:8px; padding:0 var(--sfs-go); border:none; cursor:pointer;
  background:var(--brand); color:var(--text-on-brand); font:600 var(--sfs-fs) 'Manrope',var(--sans); transition:background-color .15s; }
.sf-search-go:hover { background:var(--brand-hover); }
.sf-search-go svg { width:16px; height:16px; flex-shrink:0; }
.sf-search-go span { white-space:nowrap; }
@media (max-width:640px) {
  .sf-search, .lib-head .sf-search, .lib-bar-search .sf-search, .sf-search.mh-search, .nt-tools .sf-search, .dy-searchrow .sf-search { --sfs-h:44px; --sfs-fs:14px; --sfs-go:0; }
  .sf-search-input { font-size:16px; }
  .sf-search-go { width:44px; justify-content:center; }
  .sf-search-go span { display:none; }
  .sf-search-clear { width:40px; height:40px; margin-inline-end:0; background:none; }
}

/* Row header with "See All" on the right — Discover rows + home Recommended for You */
.disc-section-head { display:flex; align-items:baseline; justify-content:space-between; gap:1rem; margin-bottom:.25rem; flex-wrap:wrap; }
.disc-see-all {
  display:inline-flex; align-items:center; gap:5px; font-size:12.5px; color:var(--olive-light);
  text-decoration:none; white-space:nowrap; flex-shrink:0; transition:opacity .15s;
}
.disc-see-all:hover { opacity:.75; }
.disc-see-all svg { width:12px; height:12px; }
.disc-see-all:focus-visible { outline:2px solid var(--olive-light); outline-offset:3px; border-radius:4px; }

/* ═════════════════════════════════════════════════════════════
   §49  Browse on Discover (browse.js → MSSBrowse)
   Results reuse the search results look (.inline-search-*)
   ═════════════════════════════════════════════════════════════ */
.brw-panel { position:relative; z-index:60; background:var(--card); border:0.5px solid var(--border); border-radius:var(--radius-lg); padding:1.25rem 1.25rem 1.35rem; margin:0 0 3rem; }   /* its own layer: open dropdowns sit over the rows + side nav below (nav is 400) */
.brw-head .section-title { margin-bottom:1rem; }
.brw-fields { display:grid; grid-template-columns:repeat(7, minmax(0, 1fr)); gap:14px 12px; align-items:end; }
.brw-field .field-label { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.brw-actions { grid-column:1 / -1; display:flex; justify-content:flex-end; align-items:center; gap:10px; }
.brw-filter { margin-inline-end:auto; display:flex; }
.brw-actions .sf-clear-btn, .brw-actions .sf-apply-btn { flex:0 0 auto; min-width:120px; display:inline-flex; align-items:center; justify-content:center; gap:7px; }
.brw-back {
  margin-inline-start:auto; align-self:center; display:inline-flex; align-items:center; gap:6px; padding:7px 14px; cursor:pointer;
  border-radius:var(--radius-sm); background:none; border:0.5px solid var(--border); color:var(--text-2);
  font-family:'Manrope',var(--sans); font-size:12.5px; font-weight:600; transition:border-color .15s, color .15s;
}
.brw-back:hover { border-color:var(--border-olive); color:var(--olive-light); }
.brw-back:focus-visible, .brw-actions button:focus-visible, .dp-more:focus-visible { outline:2px solid var(--olive-light); outline-offset:2px; }
#discBrowseResults { scroll-margin-top:calc(var(--page-pt) + 88px); }
@media(max-width:1100px) { .brw-fields { grid-template-columns:repeat(4, minmax(0, 1fr)); } }
@media(max-width:640px) {
  .brw-panel { padding:1rem; margin-bottom:2.25rem; }
  .brw-fields { grid-template-columns:repeat(2, minmax(0, 1fr)); gap:12px 10px; }
  .brw-actions .sf-clear-btn, .brw-actions .sf-apply-btn { flex:1; min-width:0; }
  .brw-back { margin-inline-start:0; }
}

/* ═════════════════════════════════════════════════════════════
   §50  Side nav (Discover sections, Social sections)
   Desktop: a sticky card of links on the left. ≤900px: a dropdown on top.
   ═════════════════════════════════════════════════════════════ */
.disc-layout { display:flex; gap:clamp(1.5rem, 3vw, 3rem); align-items:flex-start; }
.disc-side-nav {
  position:sticky; top:calc(var(--page-pt) + 88px); flex-shrink:0; width:220px;
  display:flex; flex-direction:column; gap:2px;
  background:var(--card); border:0.5px solid var(--border); border-radius:var(--radius-lg);
  padding:.85rem; max-height:calc(100vh - var(--page-pt) - 120px); overflow-y:auto;
}
.disc-nav-dd-wrap { display:none; margin-bottom:1.5rem; }
.disc-nav-dd-wrap .sel-dd { width:100%; }
.disc-nav-dd-wrap .sel-dd-trigger { width:100%; }
.disc-side-link {
  display:block; padding:9px 14px; border-radius:var(--radius-sm); font-size:13.5px;
  color:var(--text-2); text-decoration:none; border:1.5px solid transparent;
  transition:all .15s var(--ease); white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.disc-side-link:hover { color:var(--text); background:var(--card); }
.disc-side-link.active { color:var(--olive-light); border-color:var(--border-olive); background:var(--olive-faint); }
button.disc-side-link { width:100%; background:none; font:inherit; font-size:13.5px; text-align:start; cursor:pointer; display:flex; align-items:center; gap:10px; }
button.disc-side-link:hover { background:var(--bg-3); }
button.disc-side-link.active { background:var(--olive-faint); }
button.disc-side-link:focus-visible { outline:2px solid var(--olive-light); outline-offset:2px; }
.disc-side-head { font-size:10px; font-weight:700; letter-spacing:1.6px; text-transform:uppercase; color:var(--text-3); padding:6px 14px 8px; }
.disc-main { flex:1; min-width:0; }
@media(max-width:900px) {
  .disc-side-nav { display:none; }
  .disc-nav-dd-wrap { display:block; }
}

/* ═════════════════════════════════════════════════════════════
   §51  Social — Polls + the share popup (social.js)
   ═════════════════════════════════════════════════════════════ */
.soc-overlay {
  position:fixed; inset:0; z-index:1300; background:var(--popup-backdrop);
  display:flex; align-items:center; justify-content:center; padding:16px;
  padding-top:max(16px, env(safe-area-inset-top)); box-sizing:border-box;
  opacity:0; transition:opacity 220ms var(--ease); pointer-events:none; overflow-y:auto;
}
.soc-overlay.open { opacity:1; pointer-events:auto; }
.soc-card {
  background:var(--bg-2); border:1.5px solid var(--olive-light); 
  border-radius:var(--radius-lg); width:100%; max-width:520px; max-height:calc(100dvh - 32px);
  display:flex; flex-direction:column; box-sizing:border-box; position:relative;
}
.soc-av { border-radius:50%; overflow:hidden; flex-shrink:0; display:inline-flex; align-items:center; justify-content:center; background:var(--olive); color:var(--text-on-brand); font-family:var(--serif); font-weight:600; }
.soc-av img { width:100%; height:100%; object-fit:cover; }
.soc-head { display:flex; align-items:flex-end; justify-content:flex-end; gap:12px; flex-wrap:wrap; margin-bottom:1rem; }
.soc-head-start { justify-content:flex-start; }
.soc-toggle { margin:0 auto 1.25rem; max-width:100%; }
.soc-toggle .pn-toggle-btn { display:inline-flex; align-items:center; justify-content:center; gap:6px; }
.poll-link { background:none; border:none; padding:4px 2px; cursor:pointer; display:inline-flex; align-items:center; gap:5px; font-family:'Manrope',var(--sans); font-size:12.5px; font-weight:600; color:var(--text-2); }
.poll-link:hover { color:var(--olive-light); }
.poll-link.poll-danger:hover { color:var(--error-fg); }
.poll-link:focus-visible, .poll-opt:focus-visible, .pf-mode:focus-visible, .pf-chip:focus-visible, .pf-r:focus-visible { outline:2px solid var(--olive-light); outline-offset:2px; }

/* A poll — author · status (Live / Ended) · your own: edit / end / delete,
   the question, options (A B C for text, poster / photo for titles and people),
   result bars once you've voted, a trophy on the winner, comments as bubbles */
.poll-list { display:flex; flex-direction:column; gap:14px; }
.poll-card { background:var(--card); border:0.5px solid var(--border); border-radius:var(--radius); padding:18px 20px; scroll-margin-top:calc(var(--page-pt) + 88px); }
.poll-card.ended { background:var(--bg-2); }
.poll-by { display:flex; align-items:center; flex-wrap:wrap; gap:8px 10px; }
.poll-who { display:flex; align-items:center; gap:10px; min-width:0; flex:1 1 170px; text-decoration:none; color:inherit; }
.poll-status { margin-inline-start:auto; }
.poll-who > span { display:flex; flex-direction:column; min-width:0; }
.poll-who b { font-size:14px; color:var(--text); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.poll-who small { font-size:11.5px; color:var(--text-3); display:flex; align-items:center; gap:4px; flex-wrap:wrap; }
.poll-who small span { display:inline-flex; align-items:center; gap:3px; }
.poll-status { display:inline-flex; align-items:center; gap:6px; flex-shrink:0; padding:4px 9px; border-radius:4px; font-size:11.5px; font-weight:700; letter-spacing:.3px; white-space:nowrap; background:var(--bg-3); color:var(--text-3); }
.poll-status.live { background:var(--olive-faint); color:var(--olive-light); }
.poll-q { font-family:var(--serif); font-weight:600; font-size:clamp(18px, 2.6vw, 22px); line-height:1.3; margin:14px 0 12px; color:var(--text-heading); overflow-wrap:anywhere; }
.poll-opts { display:flex; flex-direction:column; gap:8px; }
.poll-opt { position:relative; overflow:hidden; display:flex; align-items:center; gap:12px; width:100%; min-height:52px; padding:7px 14px 7px 9px; box-sizing:border-box; text-align:start;
  border-radius:var(--radius-sm); border:1px solid var(--border-2); background:var(--bg-2); color:var(--text); font:inherit; }
button.poll-opt { cursor:pointer; transition:border-color .15s, background-color .15s, transform .1s; }
button.poll-opt:hover { border-color:var(--olive-light); }
button.poll-opt:active { transform:scale(.995); }
button.poll-opt:focus-visible { outline:2px solid var(--olive-light); outline-offset:2px; }
button.poll-opt:disabled { cursor:progress; opacity:.75; }
.poll-opt.mine { border-color:var(--olive-light); }
.poll-bar { position:absolute; inset-block:0; inset-inline-start:0; background:var(--olive-faint); transition:width .6s var(--ease); pointer-events:none; }
.poll-opt.top .poll-bar { background:color-mix(in srgb, var(--olive-light) 24%, transparent); }
.poll-opt > *:not(.poll-bar) { position:relative; }
.poll-letter { width:30px; height:30px; flex-shrink:0; border-radius:6px; display:inline-flex; align-items:center; justify-content:center;
  font-family:var(--bebas); font-size:17px; letter-spacing:.3px; background:var(--bg-3); border:0.5px solid var(--border-2); color:var(--text-2); }
.poll-opt.mine .poll-letter { background:var(--olive); border-color:var(--olive); color:var(--text-on-brand); }
.poll-thumb { width:30px; height:44px; border-radius:4px; overflow:hidden; flex-shrink:0; background:var(--bg-3); display:flex; align-items:center; justify-content:center; color:var(--text-3); }
.poll-thumb.is-person { width:38px; height:38px; border-radius:50%; }
.poll-thumb img { width:100%; height:100%; object-fit:cover; }
.poll-opt-text { display:flex; flex-direction:column; min-width:0; flex:1; }
.poll-opt-text b { font-size:14.5px; font-weight:600; overflow-wrap:anywhere; }
.poll-opt-text small { font-size:11.5px; color:var(--text-3); }
.poll-check, .poll-win { width:22px; height:22px; border-radius:50%; color:#fff; display:inline-flex; align-items:center; justify-content:center; flex-shrink:0; }
.poll-check { background:var(--olive-light); }
.poll-win { background:var(--gold-accent); }
.poll-opt-res { display:flex; flex-direction:column; align-items:flex-end; flex-shrink:0; line-height:1; min-width:46px; }
.poll-opt-res b { font-family:var(--bebas); font-weight:400; font-size:22px; letter-spacing:.3px; }
.poll-opt-res small { font-size:10.5px; color:var(--text-3); margin-top:3px; white-space:nowrap; }
.poll-foot { display:flex; align-items:center; justify-content:space-between; gap:8px 14px; flex-wrap:wrap; margin-top:14px; }
.poll-meta { font-size:12.5px; color:var(--text-3); }
.poll-meta b { font-family:var(--bebas); font-weight:400; font-size:16px; color:var(--text-2); letter-spacing:.3px; }
.poll-hint { color:var(--olive-light); font-weight:600; }
/* comments */
.poll-comments { margin-top:14px; padding-top:14px; border-top:0.5px solid var(--border); display:flex; flex-direction:column; gap:12px; }
.poll-c { display:flex; gap:10px; align-items:flex-start; }
.poll-c-body { flex:1; min-width:0; padding:8px 12px; background:var(--bg-2); border:0.5px solid var(--border); border-radius:4px var(--radius-sm) var(--radius-sm) var(--radius-sm); }
.poll-card.ended .poll-c-body { background:var(--card); }
.poll-c.is-me .poll-c-body { background:var(--olive-faint); border-color:var(--border-olive); }
.poll-c-by { display:flex; align-items:baseline; gap:8px; }
.poll-c-by b { font-size:13px; }
.poll-c-by small { font-size:11px; color:var(--text-3); }
.poll-c-text { font-size:13.5px; line-height:1.5; color:var(--text-2); margin-top:2px; white-space:pre-wrap; overflow-wrap:anywhere; }
.poll-c-acts { display:flex; gap:10px; margin-top:2px; }
.poll-c-none { font-size:13px; color:var(--text-3); }
.poll-c-new { display:flex; gap:8px; align-items:flex-end; }
.poll-c-new textarea { flex:1; min-height:40px; max-height:160px; resize:none; box-sizing:border-box; padding:10px 12px; border-radius:var(--radius-sm);
  border:0.5px solid var(--border-input); background:var(--bg-2); color:var(--text); font:inherit; font-size:16px; }
.poll-c-new textarea:focus { outline:none; border-color:var(--olive-light); }
.poll-c-edit { flex-wrap:wrap; }
@media(prefers-reduced-motion:reduce) { .poll-status i { animation:none; } .poll-bar { transition:none; } }

/* New / Edit poll + Recommend popups */
.pf-q, .pf-input { width:100%; box-sizing:border-box; padding:10px 12px; border-radius:var(--radius-sm); border:0.5px solid var(--border-input); background:var(--bg-3); color:var(--text); font:inherit; font-size:15px; }
.pf-q { display:block; resize:none; min-height:44px; max-height:140px; line-height:1.4; }
.pf-q:focus, .pf-input:focus { outline:none; border-color:var(--olive-light); }
.pf-count { text-align:end; font-size:11px; color:var(--text-3); margin-top:4px; font-family:var(--bebas); letter-spacing:.4px; }
.pf-note { display:flex; align-items:center; gap:6px; font-size:12px; color:var(--text-3); margin:4px 0 8px; }
.pf-opt { border:0.5px solid var(--border); border-radius:var(--radius-sm); padding:10px; margin-bottom:8px; background:var(--card); }
.pf-picked, .pf-locked { display:flex; align-items:center; gap:10px; }
.pf-modes { display:flex; gap:6px; margin-bottom:8px; flex-wrap:wrap; }
.pf-mode { display:inline-flex; align-items:center; gap:5px; padding:5px 10px; border-radius:999px; border:0.5px solid var(--border-2); background:none; color:var(--text-2); cursor:pointer; font:inherit; font-size:12px; font-weight:600; }
.pf-mode.active { background:var(--olive); border-color:var(--olive); color:var(--text-on-brand); }
.pf-input-row { display:flex; align-items:center; gap:6px; }
.pf-x { flex-shrink:0; width:32px; height:32px; border-radius:50%; border:none; background:none; color:var(--text-3); cursor:pointer; display:inline-flex; align-items:center; justify-content:center; }
.pf-x:hover { color:var(--error-fg); background:var(--bg-3); }
.pf-results:empty { display:none; }
.pf-results { margin-top:6px; display:flex; flex-direction:column; max-height:240px; overflow-y:auto; }
.pf-r { display:flex; align-items:center; gap:10px; padding:6px 8px; border:none; border-radius:var(--radius-sm); background:none; color:var(--text); cursor:pointer; text-align:start; font:inherit; }
.pf-r:hover { background:var(--bg-3); }
.pf-r-msg { font-size:12.5px; color:var(--text-3); padding:6px 4px; }
.pf-add { margin:2px 0 4px; }
.pf-chips { display:flex; flex-wrap:wrap; gap:8px; }
.pf-chip { padding:7px 12px; border-radius:999px; border:0.5px solid var(--border-2); background:var(--bg-3); color:var(--text-2); cursor:pointer; font:inherit; font-size:12.5px; font-weight:600; }
.pf-chip.active { background:var(--olive); border-color:var(--olive); color:var(--text-on-brand); }
.rec-what { display:flex; align-items:center; gap:12px; padding:10px 12px; margin:10px 0 2px; border-radius:var(--radius); background:var(--card); border:0.5px solid var(--border); }
.rec-what img, .rec-what-ph { width:40px; height:60px; border-radius:5px; object-fit:cover; flex-shrink:0; background:var(--bg-3); display:flex; align-items:center; justify-content:center; color:var(--text-3); }
.rec-what span { display:flex; flex-direction:column; min-width:0; }
.rec-what b { font-family:var(--serif); font-size:16px; font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.rec-what small { font-size:12px; color:var(--text-3); margin-top:2px; }
#recForm :is(.soc-pick-who small, .pf-count, .rec-what small) { color:var(--text-2); }
.rec-mine { display:flex; align-items:center; gap:10px; min-height:44px; margin-top:8px; font-size:13.5px; font-weight:600; color:var(--text); cursor:pointer; }
.rec-mine input { width:18px; height:18px; flex:none; accent-color:var(--toggle-track-on); }
.soc-pick-row.is-off { cursor:default; }
.soc-pick-row.is-off .soc-pick-who small { color:var(--text-2); }
.soc-pick-row.is-off .soc-pick-who b { color:var(--text-2); }
/* Friend picker (same look as Lists → invite collaborators) */
.soc-pick-search { position:relative; margin:4px 0 8px; }
.soc-pick-search > svg { position:absolute; inset-inline-start:13px; top:50%; transform:translateY(-50%); color:var(--text-3); pointer-events:none; }
.soc-pick-search input { width:100%; box-sizing:border-box; padding-block:10px; padding-inline:38px 14px; border-radius:var(--radius-sm); border:1px solid var(--border-input); background:var(--bg-3); color:var(--text); font:inherit; font-size:16px; outline:none; }
.soc-pick-search input:focus { border-color:var(--olive-light); box-shadow:0 0 0 3px var(--olive-faint); }
.soc-picked:empty { display:none; }
.soc-picked { display:flex; flex-wrap:wrap; gap:6px; margin:0 0 8px; }
/* An info strip — icon + bold line + one sentence (Episode Chat intro, challenge form) */
.soc-tip { display:flex; align-items:flex-start; gap:12px; margin:0 0 1rem; padding:12px 14px; border-radius:var(--radius-sm); background:var(--olive-faint); border:0.5px solid var(--border-olive); }
.soc-tip-ic { width:32px; height:32px; border-radius:50%; flex-shrink:0; display:flex; align-items:center; justify-content:center; background:var(--card); color:var(--olive-light); }
.soc-tip > div { display:flex; flex-direction:column; gap:2px; min-width:0; }
.soc-tip b { font-size:13.5px; font-weight:600; color:var(--text); }
.soc-tip > div > span { font-size:12.5px; line-height:1.5; color:var(--text-2); }
@media(max-width:640px) { .soc-tip { padding:10px 12px; gap:10px; } .soc-tip-ic { width:28px; height:28px; } }
.soc-chip { display:inline-flex; align-items:center; gap:6px; padding:3px 4px 3px 3px; border-radius:999px; background:var(--olive-faint); border:0.5px solid var(--border-olive); color:var(--olive-light); font:inherit; font-size:12.5px; font-weight:600; cursor:pointer; }
.soc-chip .soc-av { width:22px !important; height:22px !important; font-size:10px !important; }
.soc-chip svg { opacity:.8; }
.soc-chip:hover { border-color:var(--error-fg); color:var(--error-fg); }
.soc-pick-list { display:flex; flex-direction:column; max-height:min(260px, 34dvh); overflow-y:auto; overscroll-behavior:contain; margin:0 -6px; }
.soc-pick-row { display:flex; align-items:center; gap:12px; padding:8px 6px; border-radius:var(--radius-sm); cursor:pointer; }
.soc-pick-row:hover { background:var(--card); }
.soc-pick-who { flex:1; min-width:0; display:flex; flex-direction:column; }
.soc-pick-who b { font-size:14px; font-weight:600; color:var(--text); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.soc-pick-who small { font-size:12px; color:var(--text-3); }
.soc-pick-btn { flex-shrink:0; min-width:78px; padding:7px 14px; border-radius:var(--radius-sm); font-family:'Manrope',var(--sans); font-size:12.5px; font-weight:600; cursor:pointer;
  background:transparent; border:1px solid var(--border-olive); color:var(--olive-light); display:inline-flex; align-items:center; justify-content:center; gap:5px; }
.soc-pick-btn:hover { background:var(--olive-faint); }
.soc-pick-btn.on { background:var(--olive); border-color:var(--olive); color:var(--text-on-brand); }
.soc-pick-btn:focus-visible, .soc-chip:focus-visible { outline:2px solid var(--olive-light); outline-offset:2px; }
.soc-pick-empty { padding:22px 10px; text-align:center; color:var(--text-3); font-size:13px; display:flex; flex-direction:column; align-items:center; gap:8px; }
.soc-pick-empty a { color:var(--olive-light); font-weight:600; text-decoration:none; }

.soc-toggle-sm { margin:0; }
.soc-toggle-sm .pn-toggle-btn { padding:8px 20px; font-size:13px; }
.rec-chip { display:inline-flex; align-items:center; gap:6px; padding:7px 12px; border-radius:var(--radius-sm); border:0.5px solid var(--border-2); background:var(--card);
  color:var(--text-2); font:inherit; font-size:13px; font-weight:600; cursor:pointer; transition:background-color .15s, border-color .15s, color .15s; }
.rec-chip b { font-family:var(--bebas); font-weight:400; font-size:15px; letter-spacing:.3px; color:var(--text-3); }
.rec-chip:hover:not(:disabled) { border-color:var(--border-olive); color:var(--text); }
.rec-chip.active { background:var(--olive); border-color:var(--olive); color:var(--text-on-brand); }
.rec-chip.active b { color:rgba(255,255,255,.8); }
.rec-chip:disabled { opacity:.45; cursor:default; }
.rec-chip:focus-visible, .rec-icon:focus-visible { outline:2px solid var(--olive-light); outline-offset:2px; }

.rec-btn { padding:7px 14px; font-size:12.5px; }
.rec-btn { display:inline-flex; align-items:center; gap:7px; border-radius:var(--radius-sm); border:0.5px solid var(--border-olive); background:transparent; color:var(--olive-light); font:inherit; font-size:12.5px; font-weight:500; cursor:pointer; }
.rec-btn:hover { background:var(--olive-faint); }
.rec-icon { width:32px; height:32px; flex-shrink:0; border-radius:var(--radius-sm); border:0.5px solid var(--border-2); background:none; color:var(--text-3);
  display:inline-flex; align-items:center; justify-content:center; cursor:pointer; transition:color .15s, border-color .15s; }
.rec-icon:hover { color:var(--text); border-color:var(--border-olive); }
.rec-icon-x:hover { color:var(--error-fg); border-color:var(--error-fg); }

.rec-new { margin-inline-start:auto; padding:2px 7px; border-radius:4px; background:var(--error-solid); color:#fff; font-size:10px; font-weight:700; letter-spacing:.6px; text-transform:uppercase; }
.rec-new + time { margin-inline-start:0; }
.rec-bub time { font-size:10.5px; color:var(--text-3); white-space:nowrap; }
.rec-bub { max-width:85%; align-self:flex-start; display:flex; flex-direction:column; gap:3px; }
.rec-bub > div { padding:8px 12px; background:var(--card); border:0.5px solid var(--border); border-radius:4px var(--radius-sm) var(--radius-sm) var(--radius-sm);
  font-size:13.5px; line-height:1.45; color:var(--text); white-space:pre-wrap; overflow-wrap:anywhere; }
.rec-bub.mine { align-self:flex-end; align-items:flex-end; }
.rec-bub.mine > div { background:var(--olive-faint); border-color:var(--border-olive); border-radius:var(--radius-sm) 4px var(--radius-sm) var(--radius-sm); }

.rec-input { display:flex; align-items:flex-end; gap:6px; padding:5px 5px 5px 12px; background:var(--card); border:1px solid var(--border-input); border-radius:var(--radius-sm); transition:border-color .15s; }
.rec-input:focus-within { border-color:var(--olive-light); }
.rec-input textarea { flex:1; min-width:0; min-height:34px; max-height:140px; padding:7px 0; box-sizing:border-box; resize:none; border:none; outline:none; background:transparent;
  color:var(--text); font:inherit; font-size:16px; line-height:1.3; }
.rec-input textarea::placeholder { color:var(--text-3); }
.rec-send { width:34px; height:34px; flex-shrink:0; border-radius:var(--radius-xs); border:none; background:var(--action-primary-bg); color:var(--text-on-primary); display:inline-flex; align-items:center; justify-content:center; cursor:pointer; transition:background-color .15s; }
.rec-send:hover { background:var(--action-primary-hover); }
.rec-send:focus-visible { outline:2px solid var(--olive-light); outline-offset:2px; }
@media(max-width:640px) {
  .poll-card { padding:14px; }
  .poll-opt { padding-inline-end:10px; gap:10px; }
  /* segmented toggles (Friends · Community · Yours, Received · Sent …) fill the width and never clip */
  .soc-toggle:not(.soc-toggle-sm) { width:100%; }
  .soc-toggle .pn-toggle-btn { flex:1; min-width:0; padding:10px 8px; white-space:nowrap; }
  .soc-toggle-sm .pn-toggle-btn { padding:8px 14px; }
  .soc-head .btn-add-entry { padding:8px 14px; }
}
/* ═════════════════════════════════════════════════════════════
   §52  Episode chat (episode-chat.js) — popup, Social list, row chips
   ═════════════════════════════════════════════════════════════ */
.epc-sub { display:flex; align-items:center; gap:5px; margin:0 0 4px; font-size:12px; color:var(--text-3); min-width:0; }
/* loading: the thread's shape, shimmering (the site's .skel sweep), the bubbles breathing one after another */
.epc-skel-num { display:block; width:34px; height:22px; margin:2px auto 3px; border-radius:6px; }
.epc-skel .epc-msg { width:100%; max-width:none; }
.epc-skel .epc-msg.mine { justify-content:flex-start; }
.epc-skel-av { flex:none; width:28px; height:28px; border-radius:50%; }
.epc-skel-bub { height:40px; border-radius:14px; animation:mssSweep 2.1s var(--aw-ease) infinite, mssBreathe 2.4s ease-in-out infinite; }
.epc-skel .epc-msg:nth-child(2) .epc-skel-bub { animation-delay:0s, .2s; } .epc-skel .epc-msg:nth-child(3) .epc-skel-bub { animation-delay:0s, .4s; }
.epc-skel .epc-msg:nth-child(4) .epc-skel-bub { animation-delay:0s, .6s; height:58px; } .epc-skel .epc-msg:nth-child(5) .epc-skel-bub { animation-delay:0s, .8s; }
@media (prefers-reduced-motion:reduce) { .epc-skel-bub { animation:none; } }
.epc-sub b { color:var(--text-2); font-weight:600; }
.epc-who-avs { display:inline-flex; flex-shrink:0; }
.epc-who-avs .soc-av { box-shadow:0 0 0 1.5px var(--panel); }
.epc-who-avs .soc-av + .soc-av { margin-inline-start:-6px; }
.epc-who-text { min-width:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.epc-thread { list-style:none; margin:0; padding:12px 0 0; display:flex; flex-direction:column; gap:12px; }
.epc-msg { display:flex; align-items:flex-end; gap:8px; max-width:88%; }
.epc-msg.mine { align-self:flex-end; flex-direction:row-reverse; }
.epc-msg-main { display:flex; flex-direction:column; gap:3px; min-width:0; }
.epc-msg.mine .epc-msg-main { align-items:flex-end; }
.epc-msg .rec-bub { max-width:100%; }
.epc-meta { font-size:10.5px; color:var(--text-3); display:flex; align-items:center; gap:4px; flex-wrap:wrap; }
.epc-meta b { color:var(--text-2); font-weight:600; }
.epc-meta .poll-link { font-size:10.5px; padding:0; }
.epc-empty { flex:1; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:6px; padding:2rem 1.5rem; text-align:center; color:var(--text-3); font-size:13px; }
.epc-empty svg { color:var(--olive-light); }
.epc-empty b { color:var(--text); font-size:15px; }
.epc-locked { flex:1; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:10px; padding:2rem 1.5rem; text-align:center; }
.epc-lock-ic { width:60px; height:60px; border-radius:50%; display:flex; align-items:center; justify-content:center; background:var(--olive-faint); color:var(--olive-light); }
.epc-lock-title { font-family:var(--serif); font-size:18px; font-weight:600; color:var(--text-heading); }
.epc-lock-text { font-size:13.5px; color:var(--text-3); line-height:1.55; max-width:380px; }
.epc-locked .lyr-btn { text-decoration:none; margin-top:6px; }
.epc-list { display:flex; flex-direction:column; gap:10px; }
.epc-row { display:flex; align-items:center; gap:14px; width:100%; padding:12px 14px; text-align:start; cursor:pointer; font:inherit; color:inherit;
  background:var(--card); border:0.5px solid var(--border); border-radius:var(--radius); transition:border-color .15s; }
.epc-row:hover { border-color:var(--border-olive); }
.epc-row:focus-visible { outline:2px solid var(--olive-light); outline-offset:2px; }
.epc-row.is-new { border-color:var(--border-olive); box-shadow:0 0 0 1px var(--border-olive); }
.epc-row-poster { width:44px; height:66px; border-radius:4px; overflow:hidden; flex-shrink:0; background:var(--bg-3); display:flex; align-items:center; justify-content:center; color:var(--text-3); }
.epc-row-poster img { width:100%; height:100%; object-fit:cover; }
.epc-row-main { flex:1; min-width:0; display:flex; flex-direction:column; gap:5px; }
.epc-row-top { display:flex; align-items:center; gap:8px; flex-wrap:wrap; min-width:0; }
.epc-row-top b { font-family:var(--serif); font-size:16px; font-weight:600; color:var(--text-heading); }
.epc-row-ep { font-size:12.5px; color:var(--text-2); font-style:italic; }
.epc-row-last { font-size:13px; color:var(--text-2); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.epc-row.locked .epc-row-last { color:var(--text-3); display:inline-flex; align-items:center; gap:5px; }
.epc-row-side { display:flex; flex-direction:column; align-items:flex-end; gap:6px; flex-shrink:0; }
.epc-row-side time { font-size:11px; color:var(--text-3); }
.epc-row-n { display:inline-flex; align-items:center; gap:4px; font-size:12px; color:var(--text-3); font-weight:600; }
.epc-row-side .rec-new { margin:0; }
/* the count on an episode row (Episodes page) */
.epc-chip { display:inline-flex; flex-direction:column; align-items:center; justify-content:center; gap:2px; min-width:44px; padding:6px 8px; border-radius:var(--radius-sm); cursor:pointer;
  border:0.5px solid var(--border-olive); background:var(--olive-faint); color:var(--olive-light); font:inherit; }
.epc-chip b { font-family:var(--bebas); font-weight:400; font-size:16px; line-height:1; letter-spacing:.3px; }
.epc-chip.is-new { background:var(--olive); color:var(--text-on-brand); border-color:var(--olive); }
.epc-chip.locked { background:var(--bg-3); color:var(--text-3); border-color:var(--border-2); }
.epc-chip:focus-visible { outline:2px solid var(--olive-light); outline-offset:2px; }
@media(max-width:640px) {
  .epc-row { gap:10px; padding:10px 12px; }
  .epc-row-poster { width:38px; height:57px; }
}
/* ═════════════════════════════════════════════════════════════
   §53  Movie Night (movie-night.js) — option rows reuse the Polls styles
   ═════════════════════════════════════════════════════════════ */
.mn-list { display:flex; flex-direction:column; gap:14px; }
.mn-card { background:var(--card); border:0.5px solid var(--border); border-radius:var(--radius); padding:18px 20px; display:flex; flex-direction:column; gap:14px; scroll-margin-top:calc(var(--page-pt) + 88px); }
.mn-card.is-cancelled { opacity:.7; background:var(--bg-2); }
.mn-head { display:flex; align-items:center; gap:14px; flex-wrap:wrap; }
.mn-date { width:52px; height:56px; flex-shrink:0; border-radius:var(--radius-sm); display:flex; flex-direction:column; align-items:center; justify-content:center; overflow:hidden;
  background:var(--olive); color:var(--text-on-brand); }
.mn-date small { font-size:10px; font-weight:700; letter-spacing:1px; text-transform:uppercase; opacity:.85; }
.mn-date b { font-family:var(--bebas); font-weight:400; font-size:26px; line-height:1; }
.mn-date.none { background:var(--bg-3); color:var(--text-3); box-shadow:none; border:0.5px solid var(--border-2); }
.mn-head-info { flex:1; min-width:150px; }
.mn-title { font-family:var(--serif); font-size:20px; font-weight:600; color:var(--text-heading); line-height:1.25; overflow-wrap:anywhere; }
.mn-when { font-size:12.5px; color:var(--text-3); margin-top:3px; }
.mn-when b { color:var(--text-2); }
.mn-status { padding:4px 9px; border-radius:4px; font-size:11.5px; font-weight:700; letter-spacing:.3px; background:var(--bg-3); color:var(--text-3); }
.mn-status.open { background:var(--olive-faint); color:var(--olive-light); }
.mn-status.decided { background:var(--olive); color:var(--text-on-brand); }
.mn-people { display:flex; align-items:center; gap:10px 14px; flex-wrap:wrap; }
.mn-avs { display:flex; }
.mn-av { display:inline-flex; border-radius:50%; box-shadow:0 0 0 2px var(--card); }
.mn-av + .mn-av { margin-inline-start:-8px; }
.mn-av.going { box-shadow:0 0 0 2px var(--card), 0 0 0 3.5px var(--olive-light); }
.mn-av.declined { opacity:.4; }
.mn-count { font-size:12.5px; color:var(--text-3); }
.mn-count b { font-family:var(--bebas); font-weight:400; font-size:16px; color:var(--text-2); letter-spacing:.3px; }
.mn-rsvp { margin-inline-start:auto; }
.mn-pick-eyebrow { display:inline-flex; align-items:center; gap:5px; font-size:10.5px; font-weight:700; letter-spacing:1.2px; text-transform:uppercase; color:var(--olive-light); }
.mn-none { font-size:13px; color:var(--text-3); }
/* Section heads inside a night (Vote for one, On your watchlists, From your Blend) */
.mn-rail-head { display:flex; align-items:center; gap:8px; margin-bottom:-2px; font-family:var(--serif); font-size:13px; font-weight:500; letter-spacing:2.5px; text-transform:uppercase; color:var(--olive-light); }
.mn-rail-head b { margin-inline-start:auto; font-family:var(--bebas); font-weight:400; font-size:15px; letter-spacing:.3px; color:var(--text-3); }
/* The ballot — poster cards (MSSCard.poster) */
.mn-b { position:relative; cursor:pointer; border-radius:var(--radius-sm); }
.mn-b .msf-card__poster { box-shadow:0 0 0 0 var(--olive-light); transition:box-shadow .2s; }
.mn-b.mine .msf-card__poster { box-shadow:0 0 0 3px var(--olive-light); }
.mn-b.pick .msf-card__poster { box-shadow:0 0 0 3px var(--olive); }
.mn-b:focus-visible { outline:2px solid var(--olive-light); outline-offset:3px; }
.mn-b-flag { position:absolute; top:8px; inset-inline-end:8px; z-index:2; display:inline-flex; align-items:center; gap:4px; padding:4px 8px; border-radius:4px; background:linear-gradient(155deg, var(--p-forest-600) 0%, var(--p-forest-800) 60%, var(--p-forest-900) 100%); color:#fff; font-size:10.5px; font-weight:800; letter-spacing:.3px; }
.mn-b .mn-voters { position:absolute; bottom:8px; inset-inline-end:8px; z-index:2; display:flex; }
.mn-voters .soc-av { box-shadow:0 0 0 1.5px var(--card); }
.mn-voters .soc-av + .soc-av { margin-inline-start:-7px; }
.mn-b-rm { position:absolute; top:8px; inset-inline-start:8px; z-index:3; width:30px; height:30px; display:flex; align-items:center; justify-content:center; border:none; border-radius:50%; background:rgba(0,0,0,.62); color:#fff; cursor:pointer; }
.mn-b-rm:hover { background:var(--error-bg); }
.mn-b-rm:focus-visible { outline:2px solid #fff; outline-offset:1px; }
.mn-b-bar { height:6px; border-radius:3px; background:var(--bg-3); overflow:hidden; margin-top:8px; }
.mn-b-bar span { display:block; height:100%; border-radius:3px; background:var(--olive-light); transition:width .6s var(--ease); }
.mn-b.lead .mn-b-bar span, .mn-b.pick .mn-b-bar span { background:var(--olive); }
.mn-b-pct { display:flex; align-items:center; gap:4px; font-size:11.5px; font-weight:600; color:var(--text-3); margin-top:5px; }
.mn-b.mine .mn-b-pct { font-weight:700; }
.mn-b.mine .mn-b-pct, .mn-b.lead .mn-b-pct { color:var(--olive-light); }
.mn-b-add { aspect-ratio:2/3; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:6px; padding:12px; text-align:center; border-radius:var(--radius-sm);
  border:1.5px dashed var(--border-olive); background:var(--olive-faint); color:var(--text-2); font:inherit; cursor:pointer; transition:border-color .15s, background .15s; }
.mn-b-add:hover, .mn-b-add[aria-expanded="true"] { border-color:var(--olive-light); background:color-mix(in srgb, var(--olive-light) 14%, transparent); }
.mn-b-add:focus-visible { outline:2px solid var(--olive-light); outline-offset:3px; }
.mn-b-add-ic { width:48px; height:48px; border-radius:50%; display:flex; align-items:center; justify-content:center; background:var(--olive); color:var(--text-on-brand); margin-bottom:4px; }
.mn-b-add b { font-size:14px; color:var(--text); }
.mn-b-add small { font-size:11.5px; color:var(--text-3); }
/* Suggestion rails — smaller posters with a + */
.mn-rail-sec { display:flex; flex-direction:column; gap:12px; }
.mn-s:focus-visible { outline:2px solid var(--olive-light); outline-offset:3px; border-radius:var(--radius-sm); }
.mn-s-plus { position:absolute; top:7px; inset-inline-end:7px; z-index:2; width:30px; height:30px; border-radius:50%; display:flex; align-items:center; justify-content:center; background:var(--olive); color:var(--text-on-brand);  transition:transform .15s; }
.mn-s:hover .mn-s-plus { transform:scale(1.1); }
.mn-s-why { font-size:11px; color:var(--text-3); line-height:1.35; margin-top:2px; display:-webkit-box; -webkit-line-clamp:2; line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.mn-s-why b { font-family:var(--bebas); font-weight:400; font-size:13.5px; color:var(--olive-light); letter-spacing:.3px; }
@media(prefers-reduced-motion:reduce) { .mn-b .msf-card__poster, .mn-b-bar span, .mn-s-plus { transition:none; } }
.mn-add { display:flex; flex-direction:column; gap:10px; }
.mn-hits { display:flex; flex-direction:column; margin-top:4px; max-height:260px; overflow-y:auto; }
.mn-hits:empty { display:none; }
.mn-host { display:flex; gap:8px; flex-wrap:wrap; padding-top:12px; border-top:0.5px solid var(--border); }
.mn-host .rec-btn { padding:9px 14px; font-size:13px; }
.mn-invite { display:flex; flex-wrap:wrap; gap:6px; }
.mn-inv { padding:4px 10px 4px 4px; background:var(--bg-3); border-color:var(--border-2); color:var(--text-2); }
.mn-inv.on { background:var(--olive-faint); border-color:var(--olive-light); color:var(--olive-light); }
.mn-inv:hover { border-color:var(--olive-light); color:var(--olive-light); }
.mn-cancel { margin-top:14px; }
@media(max-width:640px) {
  .mn-card { padding:14px; gap:12px; }
  .mn-rsvp { margin-inline-start:0; width:100%; }
    .mn-host > * { flex:1; justify-content:center; }
  .mn-voters { display:none; }
}
/* Movie Night → After the movie (052): everyone's take on the pick */
.mn-after { display:flex; flex-direction:column; gap:10px; padding:14px; border-radius:var(--radius-sm); background:var(--bg-2); border:0.5px solid var(--border); }
.mn-after-head { display:flex; align-items:center; gap:8px; flex-wrap:wrap; font-size:10.5px; font-weight:700; letter-spacing:1.2px; text-transform:uppercase; color:var(--olive-light); }
.mn-after-head small { font-size:11.5px; font-weight:600; letter-spacing:0; text-transform:none; color:var(--text-3); margin-inline-start:auto; }
.mn-group { display:inline-flex; align-items:baseline; gap:5px; padding:3px 9px; border-radius:4px; background:var(--olive); color:var(--text-on-brand); letter-spacing:.3px; text-transform:none; font-size:11.5px; }
.mn-group b { font-family:var(--bebas); font-weight:400; font-size:18px; line-height:1; }
.mn-hl { display:flex; flex-wrap:wrap; gap:6px 14px; font-size:12.5px; color:var(--text-2); }
.mn-hl span { display:inline-flex; align-items:center; gap:5px; }
.mn-hl svg { color:var(--olive-light); }
.mn-hl b { color:var(--text); }
.mn-takes { display:grid; grid-template-columns:repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap:10px; }
.mn-take { display:flex; flex-direction:column; gap:8px; padding:12px; text-align:start; font:inherit; color:inherit; border-radius:var(--radius-sm);
  background:var(--card); border:0.5px solid var(--border); min-width:0; }
button.mn-take { cursor:pointer; transition:border-color .15s; }
button.mn-take:hover { border-color:var(--border-olive); }
button.mn-take:focus-visible { outline:2px solid var(--olive-light); outline-offset:2px; }
.mn-take.me { border-color:var(--border-olive); }
.mn-take.empty { opacity:.75; }
.mn-take-top { display:flex; align-items:center; gap:10px; min-width:0; }
.mn-take-who { flex:1; min-width:0; display:flex; flex-direction:column; }
.mn-take-who b { font-size:13.5px; color:var(--text); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.mn-take-who small { font-size:11px; color:var(--text-3); }
.mn-take-score { flex-shrink:0; min-width:38px; padding:3px 7px; border-radius:4px; text-align:center; font-family:var(--bebas); font-size:19px; letter-spacing:.3px; line-height:1.2;
  background:var(--olive-faint); color:var(--olive-light); border:0.5px solid var(--border-olive); }
.mn-take-score.top { background:var(--gold-accent); color:#fff; border-color:var(--gold-accent); }
.mn-take-score.none { background:var(--bg-3); color:var(--text-3); border-color:var(--border-2); }
.mn-take-note { margin:0; padding:7px 10px; border-inline-start:2px solid var(--olive-light); background:var(--bg-2); border-radius:0 6px 6px 0; font-size:12.5px; color:var(--text-2); line-height:1.45;
  display:-webkit-box; -webkit-line-clamp:3; line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; overflow-wrap:anywhere; }
.mn-tags { display:flex; flex-wrap:wrap; gap:5px; }
.mn-tag { display:inline-flex; align-items:center; gap:4px; padding:2px 7px; border-radius:4px; font-size:11px; font-weight:600; background:var(--bg-3); color:var(--text-2); max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.mn-tag.fav { background:var(--gold-accent); color:#fff; }
.mn-take-cta { display:inline-flex; align-items:center; gap:5px; font-size:12px; font-weight:700; color:var(--olive-light); }
.mn-cmp-btn { align-self:flex-start; padding:7px 14px; }
.mn-cmp { overflow-x:auto; border-radius:var(--radius-sm); border:0.5px solid var(--border); background:var(--card); }
.mn-cmp:focus-visible { outline:2px solid var(--olive-light); outline-offset:2px; }
.mn-cmp table { border-collapse:collapse; width:100%; font-size:12.5px; }
.mn-cmp th, .mn-cmp td { padding:7px 10px; text-align:center; border-bottom:0.5px solid var(--border); white-space:nowrap; }
.mn-cmp th { font-weight:600; color:var(--text-2); }
.mn-cmp th .soc-av { margin-inline-end:5px; vertical-align:middle; }
.mn-cmp .mn-cmp-grp th { padding-top:10px; text-align:start; font-family:var(--serif); font-weight:500; font-size:10.5px; letter-spacing:1.8px; text-transform:uppercase; color:var(--olive-light); background:var(--olive-faint); }
.mn-cmp td:first-child, .mn-cmp th:first-child { text-align:start; color:var(--text-3); position:sticky; inset-inline-start:0; background:var(--card); }
.mn-cmp td { font-family:var(--bebas); font-size:16px; letter-spacing:.3px; color:var(--text); }
.mn-cmp td:first-child { font-family:inherit; font-size:12px; letter-spacing:0; }
.mn-cmp td.best { color:var(--olive-light); }
.mn-cmp-total td { border-bottom:none; font-size:18px; color:var(--olive-light); }
.mn-cmp-total td:first-child { color:var(--text); font-weight:700; }
/* ═════════════════════════════════════════════════════════════
   §54  Challenges (challenges.js) — progress bars, leaderboard, trophy badges
   ═════════════════════════════════════════════════════════════ */
.ch-list { display:flex; flex-direction:column; gap:14px; }
.ch-card { background:var(--card); border:0.5px solid var(--border); border-radius:var(--radius); padding:18px 20px; display:flex; flex-direction:column; gap:14px; scroll-margin-top:calc(var(--page-pt) + 88px); }
.ch-card.is-ended { background:var(--bg-2); }
.ch-head { display:flex; align-items:center; gap:14px; flex-wrap:wrap; }
.ch-ic { width:46px; height:46px; flex-shrink:0; border-radius:var(--radius-sm); display:flex; align-items:center; justify-content:center; background:var(--gold-accent); color:#fff; }
.ch-card.is-ended .ch-ic { background:var(--bg-3); color:var(--text-3); box-shadow:none; }
.ch-head-info { flex:1; min-width:160px; }
.ch-title { font-family:var(--serif); font-size:20px; font-weight:600; color:var(--text-heading); line-height:1.25; overflow-wrap:anywhere; }
.ch-meta { font-size:12.5px; color:var(--text-3); margin-top:3px; }
.ch-meta b { font-family:var(--bebas); font-weight:400; font-size:15px; color:var(--text-2); letter-spacing:.3px; }
.ch-state { padding:4px 9px; border-radius:4px; font-size:11.5px; font-weight:700; letter-spacing:.3px; background:var(--bg-3); color:var(--text-3); white-space:nowrap; }
.ch-state.live { background:var(--olive-faint); color:var(--olive-light); }
.ch-state.upcoming { background:var(--tv-faint); color:var(--tv-accent); }
.ch-invite { display:flex; align-items:center; justify-content:space-between; gap:10px 14px; flex-wrap:wrap; padding:12px 14px; border-radius:var(--radius-sm); background:var(--olive-faint); border:0.5px solid var(--border-olive); font-size:13px; color:var(--text-2); }
.ch-invite > span { display:inline-flex; align-items:center; gap:6px; }
.ch-invite-acts { display:flex; gap:8px; }
.ch-invite-acts .rec-btn { padding:8px 14px; }
.ch-mine { display:flex; align-items:center; gap:16px; }
.ch-mine-n { display:flex; align-items:baseline; gap:4px; flex-shrink:0; }
.ch-mine-n b { font-family:var(--bebas); font-weight:400; font-size:40px; line-height:1; color:var(--olive-light); }
.ch-mine-n span { font-family:var(--bebas); font-size:20px; color:var(--text-3); letter-spacing:.3px; }
.ch-mine-main { flex:1; min-width:0; display:flex; flex-direction:column; gap:6px; }
.ch-mine-text { font-size:12.5px; color:var(--text-3); display:flex; align-items:center; gap:5px; }
.ch-mine-text b { color:var(--gold-accent); }
.ch-bar { display:block; height:6px; border-radius:3px; background:var(--bg-3); overflow:hidden; }
.ch-bar.big { height:10px; border-radius:5px; }
.ch-bar i { display:block; height:100%; border-radius:inherit; background:var(--olive-light); transition:width .6s var(--ease); }
.ch-row.done .ch-bar i, .ch-card .ch-mine .ch-bar i[style="width:100%"] { background:var(--gold-accent); }
.ch-board-head { display:flex; align-items:center; gap:6px; font-size:10.5px; font-weight:700; letter-spacing:1.2px; text-transform:uppercase; color:var(--text-3); margin-bottom:-6px; }
.ch-board-head b { font-family:var(--bebas); font-weight:400; font-size:14px; letter-spacing:.3px; color:var(--text-2); }
.ch-board { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:4px; }
.ch-row { display:flex; align-items:center; gap:10px; padding:7px 10px; border-radius:var(--radius-sm); }
.ch-row.me { background:var(--olive-faint); }
.ch-rank { width:22px; flex-shrink:0; text-align:center; font-family:var(--bebas); font-size:17px; color:var(--text-3); display:inline-flex; justify-content:center; }
.ch-row-main { flex:1; min-width:0; display:flex; flex-direction:column; gap:4px; }
.ch-row-name { display:flex; align-items:baseline; gap:8px; min-width:0; }
.ch-row-name b { font-size:13.5px; color:var(--text); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.ch-row-name small { font-size:11px; font-weight:700; color:var(--gold-accent); white-space:nowrap; }
.ch-row-n { flex-shrink:0; font-size:12px; color:var(--text-3); }
.ch-row-n b { font-family:var(--bebas); font-weight:400; font-size:17px; color:var(--text); letter-spacing:.3px; }
.ch-pending { display:flex; align-items:center; gap:4px; flex-wrap:wrap; font-size:11.5px; color:var(--text-3); }
.ch-pending > span:not(:last-child) { opacity:.6; }
.ch-pending > span:last-child { margin-inline-start:6px; }
.ch-acts { display:flex; align-items:center; gap:12px; padding-top:12px; border-top:0.5px solid var(--border); }
.ch-acts .rec-btn { padding:8px 14px; }
.ch-in { height:44px; padding:0 14px; font-size:15px; }
.ch-in::placeholder { color:var(--text-3); }
/* equal-width buttons: Goal presets, What counts, date ranges */
.ch-seg { display:grid; grid-template-columns:repeat(auto-fit, minmax(64px, 1fr)); gap:8px; }
.ch-seg-btn { display:flex; align-items:center; justify-content:center; gap:7px; min-height:40px; padding:8px 10px; box-sizing:border-box; border-radius:var(--radius-sm);
  border:0.5px solid var(--border-2); background:var(--bg-3); color:var(--text-2); font:inherit; font-size:13px; font-weight:600; cursor:pointer; transition:border-color .15s, background .15s, color .15s; }
.ch-seg-btn:hover { border-color:var(--border-olive); color:var(--text); }
.ch-seg-btn.active { background:var(--olive); border-color:var(--olive); color:var(--text-on-brand); }
.ch-seg-btn:focus-visible, .ch-step-btn:focus-visible, .ch-all:focus-visible { outline:2px solid var(--olive-light); outline-offset:2px; }
.ch-seg-btn svg { width:16px; height:16px; flex-shrink:0; }
.ch-goal .ch-seg, .ch-cats { grid-template-columns:repeat(5, minmax(0, 1fr)); }
.ch-spans { grid-template-columns:repeat(4, minmax(0, 1fr)); }
.ch-cats .ch-seg-btn { flex-direction:column; gap:5px; min-height:62px; font-size:12.5px; }
/* Goal: − 10 + stepper beside the presets */
.ch-goal { display:grid; grid-template-columns:auto 1fr; gap:10px; align-items:stretch; }
.ch-step { display:flex; align-items:stretch; height:40px; border:0.5px solid var(--border-2); border-radius:var(--radius-sm); background:var(--bg-3); overflow:hidden; }
.ch-step:focus-within { border-color:var(--olive-light); }
.ch-step-btn { width:38px; flex-shrink:0; display:flex; align-items:center; justify-content:center; border:none; background:none; color:var(--text-2); cursor:pointer; }
.ch-step-btn:hover { background:var(--olive-faint); color:var(--olive-light); }
.ch-step input { width:48px; min-width:0; border:none; border-inline:0.5px solid var(--border-2); background:transparent; color:var(--text); text-align:center;
  font-family:var(--bebas); font-size:22px; letter-spacing:.5px; padding:0; outline:none; }
/* Genre uses the filter dropdown (SF.dd) — its options are buttons here */
.sf-dd button.td-dd-opt { display:block; width:100%; text-align:start; border:none; background:none; font-weight:500; }
.sf-dd button.td-dd-opt:focus-visible { outline:2px solid var(--olive-light); outline-offset:-2px; }
#chGenreDD .sf-dd-trigger { height:44px; font-size:14.5px; }
#chFormBody .ch-spans { margin-top:10px; }
#chFormBody .soc-tip { margin:14px 0 0; }
/* "Invite friends ……… Select all" */
.ch-label-row { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.ch-label-row > span { min-width:0; }
.ch-all { flex-shrink:0; background:none; border:none; padding:2px 0; cursor:pointer; font-family:'Manrope',var(--sans); font-size:12px; font-weight:700; letter-spacing:0; text-transform:none; color:var(--olive-light); }
.ch-all:hover { text-decoration:underline; }
#chFormBody .mn-invite { margin-bottom:8px; }
@media(max-width:520px) {
  .ch-goal { grid-template-columns:1fr; }
  .ch-step { width:fit-content; }
  .ch-seg-btn { font-size:12.5px; padding:8px 6px; }
  .ch-cats { grid-template-columns:1fr 1fr; }
  .ch-cats .ch-seg-btn { flex-direction:row; min-height:44px; gap:8px; }
  .ch-cats .ch-seg-btn:first-child { grid-column:1 / -1; }
  .ch-in { font-size:16px; }
}
@media(max-width:380px) { .ch-spans { grid-template-columns:1fr 1fr; } }
/* ═════════════════════════════════════════════════════════════
   §55  Date range picker (date-range.js) — Starts / Ends cards + month calendar
   ═════════════════════════════════════════════════════════════ */
.dr-cards { display:grid; grid-template-columns:1fr auto 1fr; align-items:stretch; gap:8px; }
.dr-card { position:relative; display:grid; grid-template-columns:auto 1fr; grid-template-rows:auto auto; column-gap:10px; align-items:center; text-align:start;
  padding:12px 14px; min-width:0; border-radius:var(--radius-sm); border:0.5px solid var(--border-2); background:var(--bg-3); color:var(--text); font:inherit; cursor:pointer;
  transition:border-color .15s, background .15s, box-shadow .15s; }
.dr-card:hover { border-color:var(--border-olive); }
.dr-card.active { border-color:var(--olive-light); background:var(--olive-faint); box-shadow:0 0 0 3px var(--olive-faint); }
.dr-card:focus-visible { outline:2px solid var(--olive-light); outline-offset:2px; }
.dr-card-label { grid-column:1 / -1; font-family:'Oswald',var(--sans); font-size:10.5px; font-weight:600; letter-spacing:1.4px; text-transform:uppercase; color:var(--olive-light); margin-bottom:4px; }
.dr-card-day { font-family:var(--bebas); font-size:38px; line-height:.9; color:var(--text); }
.dr-card-rest { display:flex; flex-direction:column; gap:1px; min-width:0; }
.dr-card-rest b { font-size:13.5px; font-weight:700; color:var(--text); white-space:nowrap; }
.dr-card-rest span { font-size:11.5px; color:var(--text-3); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.dr-card > svg { position:absolute; top:12px; inset-inline-end:12px; width:13px; height:13px; color:var(--text-3); }
.dr-card.active > svg { color:var(--olive-light); }
.dr-len { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:4px; padding:0 2px; color:var(--text-3); }
.dr-len b { font-size:11px; font-weight:700; color:var(--olive-light); white-space:nowrap; }
.dr-cal { margin-top:10px; padding:12px; border-radius:var(--radius-sm); border:0.5px solid var(--olive-light); background:var(--bg-2); }
.dr-cal[hidden] { display:none; }
.dr-cal-head { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.dr-cal-title { font-family:var(--serif); font-size:16px; font-weight:600; color:var(--text-heading); }
.dr-nav { width:38px; height:38px; display:flex; align-items:center; justify-content:center; border-radius:var(--radius-sm); border:0.5px solid var(--border-2); background:var(--bg-3); color:var(--text-2); cursor:pointer; }
.dr-nav:hover:not(:disabled) { border-color:var(--olive-light); color:var(--olive-light); }
.dr-nav:disabled { opacity:.35; cursor:default; }
.dr-nav:focus-visible { outline:2px solid var(--olive-light); outline-offset:2px; }
[dir="rtl"] .dr-nav svg { transform:scaleX(-1); }
.dr-cal-hint { font-size:12px; color:var(--text-3); text-align:center; margin:6px 0 10px; }
.dr-week, .dr-grid { display:grid; grid-template-columns:repeat(7, minmax(0, 1fr)); }
.dr-week span { text-align:center; font-size:11px; font-weight:700; color:var(--text-3); padding-bottom:6px; }
.dr-grid { row-gap:4px; }
.dr-day { position:relative; height:40px; padding:0; border:none; background:none; color:var(--text); font:inherit; font-size:14px; font-weight:600; cursor:pointer; }
.dr-day span { position:relative; z-index:1; display:inline-flex; align-items:center; justify-content:center; width:36px; height:36px; max-width:100%; border-radius:var(--radius-sm); transition:background .12s; }
.dr-day:hover:not(:disabled) span { background:var(--olive-faint); }
.dr-day.in-range { background:var(--olive-faint); }
.dr-day.is-start { background:linear-gradient(to right, transparent 50%, var(--olive-faint) 50%); }
.dr-day.is-end { background:linear-gradient(to left, transparent 50%, var(--olive-faint) 50%); }
.dr-day.is-start.is-end { background:none; }
[dir="rtl"] .dr-day.is-start { background:linear-gradient(to left, transparent 50%, var(--olive-faint) 50%); }
[dir="rtl"] .dr-day.is-end { background:linear-gradient(to right, transparent 50%, var(--olive-faint) 50%); }
.dr-day.is-start span, .dr-day.is-end span { background:var(--olive); color:var(--text-on-brand); }
.dr-day.is-today span { box-shadow:inset 0 0 0 1.5px var(--olive-light); }
.dr-day:disabled { color:var(--text-3); opacity:.4; cursor:default; }
.dr-day:focus-visible { outline:none; }
.dr-day:focus-visible span { outline:2px solid var(--olive-light); outline-offset:1px; }
/* One date in a popup (Date of birth, Watched On) */
/* days (5 or 6 weeks), months and years all take the same room: the calendar never grows, shrinks or moves while you pick */
#drPopBody { min-height:347px; }
.dr-pop-ov { position:fixed; inset:0; z-index:2040; }
.dr-pop.is-popover { position:fixed; width:320px; max-width:calc(100vw - 16px); padding:14px; border-radius:12px; border:1px solid var(--border-2); background:var(--panel); color:var(--text); outline:none; animation:lyrMenu .14s var(--layer-in); }
.dr-pop-ov.is-leaving .dr-pop { animation:fadeOut .1s linear forwards; }
.dr-pop-top { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:8px; }
.dr-pop-h { font-size:18px; }
@media (prefers-reduced-motion:reduce) { .dr-pop.is-popover { animation:none; } }
.dr-pop-title { min-height:38px; padding:0 10px; background:none; border:none; border-radius:var(--radius-sm); cursor:pointer; }
.dr-pop-title:not(:disabled):hover { background:var(--olive-faint); }
.dr-pop-title:disabled { cursor:default; color:var(--text); }
.dr-pop-title:focus-visible { outline:2px solid var(--olive-light); outline-offset:1px; }
.dr-pop-week { margin-top:10px; }
.dr-pop-grid { display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:6px; margin-top:12px; }
.dr-pop-cell { min-height:48px; font:inherit; font-size:14px; font-weight:600; color:var(--text); background:var(--bg-3); border:0.5px solid var(--border-2); border-radius:var(--radius-sm); cursor:pointer; }
.dr-pop-cell:hover:not(:disabled) { border-color:var(--olive-light); }
.dr-pop-cell.is-on { background:var(--olive); border-color:var(--olive); color:var(--text-on-brand); }
.dr-pop-cell:disabled { opacity:.4; cursor:default; }
.dr-pop-cell:focus-visible { outline:2px solid var(--olive-light); outline-offset:1px; }
.dr-card.empty { border-style:dashed; border-color:var(--border-olive); }
.dr-card-ic { display:flex; align-items:center; color:var(--olive-light); }
.dr-card.dim { opacity:.65; }
.dr-card-rest b:empty { display:none; }
/* time panel (date + time mode) */
.dr-quick { display:grid; grid-template-columns:repeat(5, minmax(0, 1fr)); gap:6px; }
.dr-chip { min-height:38px; padding:6px 4px; border-radius:var(--radius-sm); border:0.5px solid var(--border-2); background:var(--bg-3); color:var(--text-2); font:inherit; font-size:12.5px; font-weight:700; cursor:pointer; white-space:nowrap; transition:border-color .15s, background .15s; }
.dr-chip:hover { border-color:var(--border-olive); color:var(--text); }
.dr-chip.active { background:var(--olive); border-color:var(--olive); color:var(--text-on-brand); }
.dr-chip:focus-visible, .dr-step-btn:focus-visible, .dr-clear:focus-visible { outline:2px solid var(--olive-light); outline-offset:2px; }
.dr-clock { display:flex; align-items:center; justify-content:center; gap:10px; flex-wrap:wrap; margin:14px 0 4px; }
.dr-step { display:flex; flex-direction:column; align-items:center; border:0.5px solid var(--border-2); border-radius:var(--radius-sm); background:var(--bg-3); overflow:hidden; }
.dr-step b { font-family:var(--bebas); font-weight:400; font-size:40px; line-height:1; min-width:64px; text-align:center; padding:4px 0; color:var(--text); border-block:0.5px solid var(--border-2); }
.dr-step-btn { width:100%; height:34px; display:flex; align-items:center; justify-content:center; border:none; background:none; color:var(--text-2); cursor:pointer; }
.dr-step-btn:hover { background:var(--olive-faint); color:var(--olive-light); }
.dr-colon { font-family:var(--bebas); font-size:36px; color:var(--text-3); }
.dr-ampm { display:flex; flex-direction:column; gap:6px; margin-inline-start:4px; }
.dr-ampm .dr-chip { width:56px; }
.dr-time-foot { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-top:12px; padding-top:12px; border-top:0.5px solid var(--border); }
.dr-clear { display:inline-flex; align-items:center; gap:5px; background:none; border:none; padding:6px 2px; cursor:pointer; font:inherit; font-size:12.5px; font-weight:600; color:var(--text-3); }
.dr-clear:hover { color:var(--error-fg); }
.dr-done { flex:0 0 auto; padding:9px 22px; }
@media(max-width:520px) {
  .dr-cards { grid-template-columns:1fr 1fr; }
  .dr-len { grid-column:1 / -1; grid-row:2; flex-direction:row; justify-content:center; }
  .dr-len svg { display:none; }
  .dr-card { padding:10px 12px; }
  .dr-card-day { font-size:32px; }
  .dr-cal { padding:10px 8px; }
  .dr-day { height:38px; }
  .dr-day span { width:34px; height:34px; }
}
@media(max-width:380px) { .dr-chip { font-size:12px; padding:6px 2px; } .dr-step b { font-size:34px; min-width:54px; } }
@media(max-width:360px) { .dr-card { grid-template-columns:1fr; } .dr-card-rest b { font-size:12.5px; } }
@media(prefers-reduced-motion:reduce) { .dr-card, .dr-day span { transition:none; } }
/* ═════════════════════════════════════════════════════════════
   §56  Official challenges (challenges.js) — Featured cards, the official form, medals on cards
   ═════════════════════════════════════════════════════════════ */
.mss-medal { display:block; flex-shrink:0; }
.ch-medal { display:flex; flex-shrink:0; }
.chf-sec { margin-bottom:1.5rem; }
.ch-head-btns { display:flex; gap:8px; flex-wrap:wrap; justify-content:flex-end; }
.ch-new-plain { padding:9px 14px; }
.chf-sec-head { display:flex; align-items:center; gap:8px; margin-bottom:12px; font-family:var(--serif); font-size:13px; font-weight:500; letter-spacing:2.5px; text-transform:uppercase; color:var(--olive-light); }
.chf-list { display:flex; flex-direction:column; gap:14px; }
.chf { position:relative; overflow:hidden; isolation:isolate; display:flex; gap:22px; align-items:flex-start; padding:20px 22px; border-radius:var(--radius);
  background:radial-gradient(120% 140% at 0% 0%, var(--olive-faint), transparent 60%), var(--card); border:0.5px solid var(--border-olive); scroll-margin-top:calc(var(--page-pt) + 88px); }
.chf.is-hidden { border-style:dashed; }
.chf.is-ended { opacity:.75; }
.chf-medal { flex-shrink:0; }
.chf-body { flex:1; min-width:0; display:flex; flex-direction:column; gap:10px; }
.chf-eyebrow { display:flex; align-items:center; flex-wrap:wrap; gap:6px 12px; font-size:12px; font-weight:600; color:var(--text-3); }
.chf-state { padding:3px 8px; border-radius:4px; font-size:11px; font-weight:800; letter-spacing:.4px; text-transform:uppercase; background:var(--bg-3); color:var(--text-2); }
.chf-state.live { background:var(--olive); color:var(--text-on-brand); }
.chf-state.soon { background:var(--gold-accent); color:#151c17; }
html[data-theme="light"] .chf-state.soon { color:#fff; }
.chf-title { margin:0; font-family:var(--serif); font-size:24px; font-weight:600; line-height:1.2; color:var(--text-heading); overflow-wrap:anywhere; }
.chf-desc { margin:0; font-size:14px; line-height:1.55; color:var(--text-2); }
.chf-foot { display:flex; align-items:center; flex-wrap:wrap; gap:10px 16px; margin-top:4px; }
.chf-foot .ch-mine { flex:1 1 260px; }
.chf-join { padding:10px 18px; }
.chf-count { display:inline-flex; align-items:center; gap:5px; font-size:12.5px; color:var(--text-3); }
.chf-count b { font-family:var(--bebas); font-weight:400; font-size:16px; color:var(--text-2); letter-spacing:.3px; }
.chf-done { display:inline-flex; align-items:center; gap:7px; padding:9px 14px; border-radius:var(--radius-sm); background:var(--olive); color:var(--text-on-brand); font-size:13.5px; font-weight:700; }
/* the official form */
.chf-ta { resize:vertical; min-height:76px; line-height:1.5; padding:10px 14px; }
.chf-medals { display:grid; grid-template-columns:repeat(auto-fill, minmax(104px, 1fr)); gap:8px; }
.chf-medal-opt { display:flex; flex-direction:column; align-items:center; gap:6px; padding:10px 6px; border-radius:var(--radius-sm); border:0.5px solid var(--border-2); background:var(--bg-3); color:var(--text-2); font:inherit; font-size:12px; font-weight:700; cursor:pointer; transition:border-color .15s, background .15s; }
.chf-medal-opt:hover { border-color:var(--border-olive); }
.chf-medal-opt.active { border-color:var(--olive-light); background:var(--olive-faint); color:var(--olive-light); box-shadow:0 0 0 2px var(--olive-faint); }
.chf-medal-opt:focus-visible { outline:2px solid var(--olive-light); outline-offset:2px; }
#chfListBox, #chfAutoBox { margin-top:10px; }
.chf-search { margin-bottom:10px; }
.chf-search input { font-size:16px; }
.mn-hits .pf-r:disabled { opacity:.5; cursor:default; }
.chf-chosen-head { font-size:12.5px; color:var(--text-3); margin-bottom:8px; }
.chf-chosen-head b { font-family:var(--bebas); font-weight:400; font-size:16px; color:var(--olive-light); }
.chf-chosen { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:6px; max-height:300px; overflow-y:auto; }
.chf-chosen li { display:flex; align-items:center; gap:10px; padding:6px 8px; border-radius:var(--radius-sm); background:var(--bg-3); border:0.5px solid var(--border); }
.chf-any { display:inline-flex; align-items:center; gap:5px; margin-top:5px; padding:4px 9px; border-radius:999px; cursor:pointer; font:600 11.5px 'Manrope',var(--sans);
  background:transparent; color:var(--text-2); border:0.5px solid var(--border-2); white-space:nowrap; transition:background-color .15s, color .15s, border-color .15s; }
.chf-any:hover { border-color:var(--olive-light); color:var(--text); }
.chf-any.on { background:var(--olive-faint); color:var(--olive-light); border-color:var(--border-olive); }
.chf-any:focus-visible { outline:2px solid var(--olive-light); outline-offset:2px; }
.chf-chosen .poll-opt-text { align-items:flex-start; }
.chf-chosen-tip { font-size:12px; color:var(--text-3); margin:8px 2px 0; line-height:1.45; }
.chf-chosen-tip b { color:var(--text-2); font-weight:600; }
.chf-tagline { font-weight:700; color:var(--olive-light); }
.chf-chosen-empty { font-size:12.5px; color:var(--text-3); padding:10px 0; }
.chf-spots { grid-template-columns:repeat(auto-fit, minmax(120px, 1fr)); }
#chFormBody .chf-spots + .soc-tip, #chFormBody .ch-spans + .soc-tip { margin-top:14px; }
@media(max-width:640px) {
  .chf { flex-direction:column; align-items:center; text-align:center; padding:18px 16px; gap:14px; }
  .chf-body { align-items:center; width:100%; }
  .chf-eyebrow, .chf-foot, .spot-tags, .spot-posters, .spot-note { justify-content:center; }
  .chf-foot .ch-mine { width:100%; text-align:start; }
  .chf-title { font-size:21px; }
}

/* ═════════════════════════════════════════════════════════════
   §57  Spotlight popup (spotlights.js) + its tags and poster strip (also on Featured cards)
   ═════════════════════════════════════════════════════════════ */
.spot-tags { display:flex; flex-wrap:wrap; gap:6px; }
.spot-tag { display:inline-flex; align-items:center; gap:5px; padding:5px 10px; border-radius:6px; background:var(--bg-3); border:0.5px solid var(--border-2); color:var(--text-2); font-size:12px; font-weight:700; }
.spot-tag.is-official { background:var(--olive); border-color:var(--olive); color:var(--text-on-brand); }
.spot-posters { display:flex; gap:6px; flex-wrap:wrap; }
.spot-poster { width:42px; aspect-ratio:2/3; border-radius:4px; overflow:hidden; background:var(--bg-3); display:flex; align-items:center; justify-content:center; color:var(--text-3); font-size:12px; font-weight:700; flex-shrink:0; }
.spot-poster img { width:100%; height:100%; object-fit:cover; }
.spot-poster.more { border:0.5px dashed var(--border-2); }
.spot-poster { position:relative; }
.spot-poster.done img { opacity:.9; }
.spot-poster-mark { position:absolute; bottom:3px; inset-inline-end:3px; width:16px; height:16px; border-radius:50%; display:flex; align-items:center; justify-content:center;
  background:var(--olive); color:var(--text-on-brand);  font-style:normal; }
.spot-poster-mark.any { background:rgba(0,0,0,.62); }
.spot-note { display:flex; flex-wrap:wrap; align-items:center; gap:4px; margin-top:6px; font-size:12px; color:var(--text-3); }
.spot-note svg { color:var(--olive-light); }
@media(prefers-reduced-motion:reduce) { .chf-any { transition:none; } }
.spot-card { --spot:var(--olive-light); --spot-glow:var(--olive-faint); }
.spot-card .spot-hero { border-radius:12px; margin-bottom:16px; overflow:hidden; }
.spot-hero { position:relative; display:flex; justify-content:center; padding:30px 20px 18px; background:radial-gradient(60% 75% at 50% 45%, var(--spot-glow), transparent 75%), linear-gradient(180deg, color-mix(in srgb, var(--spot) 14%, transparent), transparent); flex-shrink:0; }
.spot-medal { position:relative; animation:spotIn .7s var(--spring) both, spotFloat 4s ease-in-out .7s infinite; }
@keyframes spotIn { from { opacity:0; transform:scale(.6) rotate(-8deg); } to { opacity:1; transform:none; } }
@keyframes spotFloat { 0%, 100% { transform:translateY(0); } 50% { transform:translateY(-5px); } }
.spot-main { padding:0 24px 8px; display:flex; flex-direction:column; align-items:center; text-align:center; gap:12px; }
.spot-eyebrow svg { vertical-align:-2px; margin-inline-end:5px; }
.spot-eyebrow { display:block; font-family:'Oswald',var(--sans); font-size:12px; font-weight:600; letter-spacing:2px; text-transform:uppercase; color:var(--spot); }
.spot-title { margin:0; font-family:var(--serif); font-size:28px; font-weight:600; line-height:1.15; color:var(--text-heading); overflow-wrap:anywhere; }
.spot-desc { margin:0; font-size:14.5px; line-height:1.55; color:var(--text-2); }
.spot-chips { display:flex; flex-wrap:wrap; justify-content:center; gap:6px; }
.spot-chips span { display:inline-flex; align-items:center; gap:5px; padding:5px 10px; border-radius:6px; background:var(--bg-3); color:var(--text-2); font-size:12.5px; font-weight:600; }
.spot-chips .is-when { background:var(--spot); color:var(--spot-on, #0d130f); font-weight:800; }
.spot-main .spot-tags, .spot-main .spot-posters, .spot-main .spot-note { justify-content:center; }
@media(max-width:520px) {
  .spot-hero { padding:24px 16px 12px; }
  .spot-medal svg { width:136px; height:auto; }
  .spot-main { padding:0 16px 4px; }
  .spot-title { font-size:24px; }
}
@media(prefers-reduced-motion:reduce) { .spot-medal { animation:none; } }
/* "You finished!" (spotlights.js complete, 067) — the spotlight's shell, with light rays behind the medal */
.spot-done .spot-hero { overflow:hidden; padding-top:36px; }
.spot-rays { position:absolute; left:50%; top:50%; width:520px; height:520px; margin:-260px 0 0 -260px; border-radius:50%; pointer-events:none;
  background:repeating-conic-gradient(from 0deg, color-mix(in srgb, var(--spot) 22%, transparent) 0deg 9deg, transparent 9deg 24deg);
  -webkit-mask:radial-gradient(closest-side, #000 18%, transparent 72%); mask:radial-gradient(closest-side, #000 18%, transparent 72%);
  animation:spotRays 26s linear infinite; }
@keyframes spotRays { to { transform:rotate(360deg); } }
.spot-done .spot-medal { animation:spotWin .8s var(--spring) both, spotFloat 4s ease-in-out .8s infinite; }
@keyframes spotWin { 0% { transform:scale(.4) rotate(-14deg); opacity:0; } 70% { transform:scale(1.08) rotate(3deg); opacity:1; } 100% { transform:none; } }
.spot-done-kicker { display:block; font-family:'Manrope',var(--sans); font-size:14px; font-weight:600; letter-spacing:.2px; color:var(--text-2); margin-bottom:4px; }
@media(prefers-reduced-motion:reduce) { .spot-rays, .spot-done .spot-medal { animation:none; } }
/* The MSF Member medal's popup (spotlights.js member, 075): gold, confetti, a shine across the medal */
.spot-member { box-shadow:0 0 60px var(--spot-glow); }
.spot-confetti { position:absolute; inset:0; pointer-events:none; overflow:hidden; }
.spot-confetti i { position:absolute; top:-12px; left:var(--x); width:7px; height:12px; border-radius:2px; background:var(--c); opacity:0;
  transform:rotate(var(--r)); animation:spotConfetti 2.6s cubic-bezier(.25,.6,.4,1) var(--d) both; }
.spot-confetti i:nth-child(3n) { width:6px; height:6px; border-radius:50%; }
@keyframes spotConfetti { 0% { opacity:0; transform:translateY(0) rotate(var(--r)); } 12% { opacity:1; } 100% { opacity:0; transform:translateY(260px) rotate(calc(var(--r) + 540deg)); } }
.spot-shine { overflow:hidden; border-radius:50% 50% 12px 12px; }
.spot-shine::after { content:''; position:absolute; inset:-10% -60%; pointer-events:none;
  background:linear-gradient(105deg, transparent 40%, rgba(255,255,255,.55) 50%, transparent 60%); transform:translateX(-70%);
  animation:spotShine 2.8s ease-in-out 1s infinite; mix-blend-mode:overlay; }
@keyframes spotShine { 0%, 55% { transform:translateX(-70%); } 85%, 100% { transform:translateX(70%); } }
.spot-member .spot-desc b { color:var(--text); }
@media(prefers-reduced-motion:reduce) { .spot-confetti, .spot-shine::after { animation:none; display:none; } }
/* "Let me choose" (061): picks on the card + the "Does this count?" popup (nav.js) */
.ch-pick-tag { color:var(--olive-light); font-weight:600; }
.ch-picks { padding:12px 0 2px; border-top:0.5px solid var(--border); }
.ch-picks-head { display:flex; align-items:center; gap:6px; font-size:12px; font-weight:700; letter-spacing:.4px; color:var(--text-2); margin-bottom:8px; }
.ch-picks-head span { font-weight:500; color:var(--text-3); }
.ch-picks-head svg { color:var(--olive-light); }
.ch-pick-list { --msf-rail-w:clamp(100px, 6vw + 70px, 130px); }   /* small standard cards (decor) with a ✕ to take one off */
.ch-pick { position:relative; min-width:0; }
.ch-pick-x { position:absolute; top:10px; inset-inline-start:10px; z-index:4; width:30px; height:30px; border:2px solid #fff; border-radius:50%; background:var(--error-solid); color:#fff; cursor:pointer;
  display:flex; align-items:center; justify-content:center; padding:0; }
.ch-pick-x:hover { background:var(--error-bg); }
.ch-pick-x:focus-visible { outline:2px solid var(--olive-light); outline-offset:2px; }
.ch-picks-empty { margin:0; font-size:12.5px; color:var(--text-3); }
.pick-ask-title { display:flex; align-items:center; gap:12px; margin-bottom:18px; }
.pick-ask-poster { width:44px; height:66px; border-radius:6px; overflow:hidden; flex-shrink:0; background:var(--bg-3); display:flex; align-items:center; justify-content:center; color:var(--text-3); font-weight:700; }
.pick-ask-poster img { width:100%; height:100%; object-fit:cover; }
.pick-ask-title b { display:block; font-family:var(--serif); font-size:17px; color:var(--text-heading); line-height:1.25; }
.pick-ask-title small { font-size:12px; color:var(--text-3); }
.pick-ask-list { display:flex; flex-direction:column; gap:6px; }
.pick-ask-opt { display:flex; align-items:center; gap:10px; padding:10px 12px; border-radius:var(--radius-sm); background:var(--bg-3); border:0.5px solid var(--border); cursor:pointer; }
.pick-ask-opt:has(input:checked) { background:var(--olive-faint); border-color:var(--border-olive); }
.pick-ask-opt input { width:18px; height:18px; accent-color:var(--toggle-track-on); flex-shrink:0; }
.pick-ask-opt > span { display:flex; align-items:center; gap:7px; flex-wrap:wrap; min-width:0; }
.pick-ask-opt svg { color:var(--olive-light); flex-shrink:0; }
.pick-ask-opt b { font-size:14px; color:var(--text); overflow-wrap:anywhere; }
.pick-ask-opt small { font-size:12px; color:var(--text-3); }
/* Challenge details popup (challenges.js → details) */
.ch-title-btn { all:unset; cursor:pointer; border-radius:4px; }
.ch-title-btn:hover { color:var(--olive-light); }
.ch-title-btn:focus-visible { outline:2px solid var(--olive-light); outline-offset:3px; }
.chf-info { padding:7px 12px; font-size:12.5px; }
.chi-hero { display:flex; gap:16px; align-items:center; margin-bottom:14px; }
.chi-medal { flex-shrink:0; }
.chi-ic { width:64px; height:64px; border-radius:18px; }
.chi-hero-main { min-width:0; display:flex; flex-direction:column; gap:7px; }
.chi-chips { display:flex; flex-wrap:wrap; gap:6px; }
.chi-chips span { display:inline-flex; align-items:center; gap:5px; padding:4px 9px; border-radius:6px; background:var(--bg-3); color:var(--text-2); font-size:12px; font-weight:600; }
.chi-chips .chi-when { background:var(--olive); color:var(--text-on-brand); font-weight:700; }
.chi-chips .chi-when.soon { background:var(--olive-faint); color:var(--olive-light); }
.chi-chips .chi-when.ended { background:var(--bg-3); color:var(--text-3); }
.chi-title { margin:0; font-family:var(--serif); font-size:22px; font-weight:600; line-height:1.2; color:var(--text-heading); overflow-wrap:anywhere; }
.chi-desc { margin:0; font-size:14px; line-height:1.55; color:var(--text-2); }
.chi-prog { display:flex; align-items:center; gap:14px; padding:12px 14px; margin-bottom:6px; border-radius:var(--radius); background:var(--olive-faint); border:0.5px solid var(--border-olive); }
.chi-steps { list-style:none; counter-reset:chi; margin:0 0 6px; padding:0; display:flex; flex-direction:column; gap:9px; }
.chi-steps li { counter-increment:chi; position:relative; padding-inline-start:32px; font-size:13.5px; line-height:1.5; color:var(--text-2); }
.chi-steps li::before { content:counter(chi); position:absolute; inset-inline-start:0; top:0; width:22px; height:22px; border-radius:50%; display:flex; align-items:center; justify-content:center;
  background:var(--olive); color:var(--text-on-brand); font:700 11.5px 'Manrope',var(--sans); }
.chi-steps b { color:var(--text); font-weight:600; }
.chi-steps svg { vertical-align:-2px; color:var(--olive-light); }
.chi-st { flex-shrink:0; display:inline-flex; align-items:center; gap:4px; padding:4px 8px; border-radius:999px; font-size:11px; font-weight:700; white-space:nowrap; }
.chi-st.done { background:var(--olive); color:var(--text-on-brand); }
.chi-st.any { background:var(--olive-faint); color:var(--olive-light); }
.chi-st.during { background:transparent; color:var(--text-3); border:0.5px solid var(--border-2); }
.chi-medals { display:flex; justify-content:center; gap:18px; flex-wrap:wrap; padding:6px 0 4px; }
.chi-medals > span { display:flex; flex-direction:column; align-items:center; gap:3px; text-align:center; font-size:12px; color:var(--text-3); }
.chi-medals > span b { font-size:13px; color:var(--text); }
.chi-medals.one { align-items:center; gap:14px; }
.chi-medals.one > span { align-items:flex-start; text-align:start; }
@media(max-width:480px) {
  .chi-hero { flex-direction:column; text-align:center; }
  .chi-hero .chi-chips { justify-content:center; }
  .chi-title { font-size:20px; }
  .chi-st span, .chi-st { font-size:10.5px; }
}
@media(max-width:640px) {
  .ch-card { padding:14px; gap:12px; }
  .ch-mine { gap:12px; }
  .ch-mine-n b { font-size:34px; }
  .ch-invite-acts { width:100%; } .ch-invite-acts > * { flex:1; justify-content:center; }
}
/* A quoted line in a notification (poll comment, recommendation message) */
.notif-quote { margin-top:6px; padding:6px 10px; border-inline-start:2px solid var(--olive-light); background:var(--olive-faint); border-radius:0 6px 6px 0; font-size:12.5px; color:var(--text-2); line-height:1.45;
  display:-webkit-box; -webkit-line-clamp:2; line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; overflow-wrap:anywhere; }


/* ═════════════════════════════════════════════════════════════
   §59  Teams for official challenges (064) — "Pick your side", the team bar, the form
   ═════════════════════════════════════════════════════════════ */
.team-pick-lead { margin:0; font-family:var(--serif); font-size:19px; font-weight:600; color:var(--text-heading); text-align:center; }
.team-pick-sub { margin:4px 0 14px; font-size:13px; line-height:1.5; color:var(--text-3); text-align:center; }
.team-cards { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.team-card { all:unset; box-sizing:border-box; position:relative; display:flex; flex-direction:column; align-items:center; gap:5px; padding:16px 12px 14px; text-align:center; cursor:pointer;
  border-radius:var(--radius); background:var(--bg-3); border:2px solid transparent; transition:border-color .15s, background-color .15s, transform .15s; }
.team-card:hover { transform:translateY(-2px); }
.team-card.on { border-color:var(--team); background:color-mix(in srgb, var(--team) 12%, var(--bg-3)); box-shadow:0 0 0 1px var(--text-3); }
.team-card:focus-visible { outline:2px solid var(--olive-light); outline-offset:2px; }
.team-card b { font-family:var(--serif); font-size:17px; font-weight:600; color:var(--text-heading); line-height:1.2; overflow-wrap:anywhere; }
.team-side { font-size:12.5px; line-height:1.45; color:var(--text-2); }
.team-card small { display:inline-flex; align-items:center; gap:4px; font-size:11.5px; color:var(--text-3); }
.team-medal { height:122px; display:flex; align-items:flex-end; }
.team-check { position:absolute; top:10px; inset-inline-end:10px; width:24px; height:24px; border-radius:50%; display:none; align-items:center; justify-content:center; background:var(--team); color:#fff; font-style:normal; }
.team-card.on .team-check { display:flex; }
.chf-teams { display:flex; flex-direction:column; gap:6px; }
.chf-teams-names { display:flex; justify-content:space-between; gap:10px; font-size:12.5px; color:var(--text-3); }
.chf-teams-names span { display:inline-flex; align-items:center; gap:6px; min-width:0; }
.chf-teams-names b { color:var(--text); font-weight:700; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.chf-teams-names i { width:10px; height:10px; border-radius:50%; background:var(--team); flex-shrink:0; }
.chf-teams-bar { display:flex; height:8px; border-radius:4px; overflow:hidden; background:var(--bg-3); }
.chf-teams-bar i { display:block; height:100%; transition:width .3s; }
.chf-myteam { font-size:12.5px; color:var(--text-2); }
.chf-team-rows { display:flex; flex-direction:column; gap:10px; margin-bottom:6px; }
.chf-team-row { display:flex; gap:12px; align-items:flex-start; padding:10px; border-radius:var(--radius-sm); background:var(--bg-3); }
.chf-team-medal { flex-shrink:0; }
.chf-team-fields { flex:1; min-width:0; display:flex; flex-direction:column; gap:6px; }
.chf-team-colors { display:flex; flex-wrap:wrap; gap:6px; }
.chf-team-color { width:24px; height:24px; border-radius:50%; border:2px solid var(--card); box-shadow:0 0 0 1px var(--border-2); cursor:pointer; padding:0; }
.chf-team-color.on { box-shadow:0 0 0 2px var(--text); }
.chf-team-color:focus-visible { outline:2px solid var(--olive-light); outline-offset:2px; }
@media(prefers-reduced-motion:reduce) { .team-card, .chf-teams-bar i { transition:none; } }
@media(max-width:420px) { .team-cards { gap:8px; } .team-card { padding:12px 8px; } .team-medal { height:100px; } .team-medal svg { width:92px; height:auto; } .chf-team-row { flex-direction:column; align-items:center; } }

/* ══ §60 Switch account (nav.js _navAccounts) — inside a side panel / full page ══ */
.acc-sw-list { display:flex; flex-direction:column; gap:8px; margin:0; padding:0; list-style:none; }
.acc-sw-item { display:flex; align-items:stretch; gap:8px; }
.acc-sw-row {
  flex:1; min-width:0; display:flex; align-items:center; gap:12px; min-height:60px; padding:10px 12px;
  border-radius:12px; border:1px solid var(--border-2); background:var(--raised);
  color:var(--text); font:inherit; text-align:start;
}
button.acc-sw-row { cursor:pointer; transition:border-color var(--trans) var(--ease), background var(--trans) var(--ease); }
button.acc-sw-row:hover { border-color:var(--border-olive); }
.acc-sw-row.is-current { border:1.5px solid var(--olive-light); background:var(--olive-faint); }
.acc-sw-row.is-busy { opacity:.6; cursor:wait; }
.acc-sw-row:focus-visible { outline:2px solid var(--olive-light); outline-offset:2px; }
.acc-sw-ava {
  width:40px; height:40px; border-radius:50%; overflow:hidden; flex:none;
  display:grid; place-items:center; background:var(--olive-faint); color:var(--olive-light); font-weight:600;
}
.acc-sw-ava img { width:100%; height:100%; object-fit:cover; }
.acc-sw-name { flex:1; min-width:0; display:flex; flex-direction:column; }
.acc-sw-name b, .acc-sw-name small { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.acc-sw-name b { font-size:14px; font-weight:700; }
.acc-sw-name small { font-size:12px; color:var(--text-2); }
.acc-sw-cur { display:inline-flex; align-items:center; gap:4px; font-size:12px; font-weight:700; color:var(--olive-light); white-space:nowrap; }
.acc-sw-row.is-current + .lyr-hint { margin-top:10px; }
.acc-sw-more { width:60px; align-self:stretch; flex:none; display:grid; place-items:center; border-radius:12px; border:1px solid var(--border-2); background:var(--raised); color:var(--text); cursor:pointer; }
.acc-sw-more:hover { background:var(--olive-faint); }
.acc-sw-more:focus-visible { outline:2px solid var(--olive-light); outline-offset:2px; }
.acc-sw-empty { margin:0; padding:16px; border:1px dashed var(--border-2); border-radius:12px; text-align:center; font-size:13px; color:var(--text-3); }

/* Home — Friends Activity: the friend's avatar on the poster + "@name · 2h ago" */
.hf-av { position:absolute; top:8px; left:8px; z-index:2; width:30px; height:30px; border-radius:50%; overflow:hidden; display:flex; align-items:center; justify-content:center;
  background:var(--olive); color:var(--text-on-brand); font:600 13px/1 'Oswald',var(--sans); border:2px solid var(--bg); }
.hf-av img { width:100%; height:100%; object-fit:cover; }
.hf-who { font-size:12px; color:var(--text-2); margin-top:3px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.hf-who b { font-weight:600; color:var(--text); }
@media(max-width:400px) { .hf-av { width:26px; height:26px; top:6px; left:6px; font-size:11px; } .hf-who { font-size:11px; } }

/* Rows (home, Discover, category pages, Library, Watched) scroll left → right on
   phones and tablets too, like on laptops: a little of the next card peeks in
   so it's clear you can swipe. */
/* ── List Studio (list-studio.js): picker tools, your list's rows, Ranked / Unranked ── */
.fp-bar { display:flex; align-items:center; gap:6px; padding:10px 20px; border-bottom:0.5px solid var(--border); flex-wrap:wrap; }
.fp-bar > span { font-size:12px; color:var(--text-3); margin-inline-end:auto; }
.fp-chip { display:inline-flex; align-items:center; gap:5px; padding:6px 11px; border-radius:999px; border:1px solid var(--border-2); background:var(--bg-3); color:var(--text-2); font:500 12.5px var(--sans); cursor:pointer; white-space:nowrap; transition:border-color .15s, background .15s, color .15s; }
.fp-chip:hover:not(:disabled):not(.on) { border-color:var(--border-olive); color:var(--text); }
.fp-chip.on { background:var(--olive); border-color:var(--olive); color:var(--text-on-brand); }
.fp-chip:disabled { opacity:.45; cursor:default; }
.fp-chip:focus-visible, .la-mv:focus-visible, .la-seg button:focus-visible, .ls-pick:focus-visible { outline:2px solid var(--olive-light); outline-offset:2px; }
.fp-year { font-size:12px; font-weight:400; color:var(--text-3); }
.fav-picker-item:focus-visible { outline:2px solid var(--olive-light); outline-offset:-2px; }

.la-seg { display:grid; grid-template-columns:1fr 1fr; gap:4px; padding:4px; border-radius:var(--radius); background:var(--bg-3); border:1px solid var(--border); }
.la-seg button { display:flex; align-items:center; justify-content:center; gap:6px; padding:9px; border-radius:var(--radius-sm); border:none; background:transparent; color:var(--text-2); font:600 13px var(--sans); cursor:pointer; }
.la-seg button.on { background:var(--olive); color:var(--text-on-brand); }
.la-note { display:flex; gap:8px; align-items:flex-start; font-size:12.5px; color:var(--text-2); padding:10px 12px; border-radius:var(--radius); background:var(--olive-faint); border:1px solid var(--border-olive); }
.la-help { font-size:12px; color:var(--text-3); display:flex; align-items:center; gap:4px; flex-wrap:wrap; }
.la-help:empty { display:none; }
.la-help svg { color:var(--text-2); }
.la-row { display:flex; align-items:center; gap:10px; padding:9px 14px 9px 10px; border-bottom:0.5px solid var(--border); background:var(--bg-2); }
.la-row.dragging { position:relative; z-index:5; background:var(--olive-faint);  border-radius:var(--radius-sm); }
.la-grip { width:22px; height:40px; margin:0; }
.la-num { flex:none; width:40px; text-align:center; font:400 22px/1 var(--bebas); color:var(--olive-light); }
.la-pos { padding:6px 0; border-radius:var(--radius-sm); border:1px solid var(--border); background:var(--bg-3); -moz-appearance:textfield; appearance:textfield; }
.la-pos::-webkit-outer-spin-button, .la-pos::-webkit-inner-spin-button { -webkit-appearance:none; margin:0; }
.la-pos:focus { outline:none; border-color:var(--olive-light); }
.fav-picker-poster.la-poster { width:38px; height:54px; font-size:15px; }
.la-moves { display:flex; flex-direction:column; gap:3px; flex:none; }
.la-mv { width:30px; height:24px; display:flex; align-items:center; justify-content:center; border-radius:var(--radius-xs, 6px); border:1px solid var(--border-2); background:var(--bg-3); color:var(--text-2); cursor:pointer; padding:0; }
.la-mv:hover:not(:disabled) { border-color:var(--olive-light); color:var(--olive-light); }
.la-mv:disabled { opacity:.3; cursor:default; }
.la-x { height:30px; width:30px; border-radius:50%; flex:none; }
.la-x:hover { border-color:var(--red, var(--error-fg)) !important; color:var(--red, var(--error-fg)) !important; }
@media(max-width:600px) {
  .la-row { gap:8px; padding:8px 10px 8px 6px; }
  .la-seg button { padding:8px; }
  .la-num { width:34px; font-size:19px; }
  .fav-picker-poster.la-poster { width:32px; height:46px; }
}
@media(max-width:360px) { .la-x { width:26px; height:26px; } .la-mv { width:26px; } .la-row { gap:6px; } }
.la-help-grip { display:inline-flex; vertical-align:-3px; color:var(--text-2); }

/* List Studio layout */
.ls-tabs { display:none; }
.ls-field { display:block; margin-bottom:12px; }
.ls-field-l { display:block; font-size:12px; font-weight:600; color:var(--text-2); margin-bottom:6px; }
.ls-field-l small { font-weight:400; color:var(--text-3); }
.ls-field .list-desc-field { margin-bottom:4px; }
.la-seg button { flex-direction:column; gap:2px; text-align:center; }
.la-seg button small { font-size:11px; font-weight:500; opacity:.8; }
.ls-src, .ls-tabs.pn-toggle { width:100%; max-width:none; box-sizing:border-box; }
.ls-src { margin:0 0 10px; display:flex; }
.ls-src .pn-toggle-btn, .ls-tabs .pn-toggle-btn { flex:1; white-space:nowrap; }
.ls-sub-phone { display:none; }
.ls-search { padding:0; border:none; margin-bottom:2px; }
.ls-search svg { inset-inline-start:12px; }
.ls-bar { padding:10px 0; }
.ls-results { border:1px solid var(--border); border-radius:var(--radius); overflow:hidden; background:var(--bg-3); }
.ls-pick { width:100%; border:none; border-bottom:0.5px solid var(--border); background:transparent; color:var(--text); font:inherit; text-align:start; }
.ls-pick .fav-picker-info, .ls-pick .fav-picker-name, .ls-pick .fav-picker-sub { display:block; }
.ls-pick .fav-picker-check { color:var(--text-3); }
.ls-pick.selected .fav-picker-check { color:#fff; }
.ls-results .fav-picker-item { padding:10px 14px; gap:12px; }
.ls-results .fav-picker-poster { width:40px; height:58px; font-size:16px; }
.ls-more { display:flex; margin:10px auto; }
/* scores: the site's number font with the star, compact */
.ls-score { flex:none; display:inline-flex; align-items:baseline; gap:3px; font-family:var(--bebas); font-size:16px; line-height:1; color:var(--olive-light); white-space:nowrap; letter-spacing:.3px; }
.ls-score span { font-size:.85em; }
@media(max-width:360px) { .la-row .la-poster { display:none; } }
.ls-list { border:1px solid var(--border); border-radius:var(--radius); overflow:hidden; background:var(--bg-2); margin-top:8px; }
.ls-list .la-row:last-child { border-bottom:none; }
.ls-empty { display:flex; flex-direction:column; align-items:center; gap:6px; padding:40px 20px; text-align:center; color:var(--text-3); font-size:13px; }
.ls-empty svg { opacity:.5; }
.ls-empty b { color:var(--text-2); font-size:14px; }
@media(max-width:860px) {
  .ls-tabs.pn-toggle { display:flex; margin:12px 16px 0; width:auto; }
  .ls-sub-wide { display:none; } .ls-sub-phone { display:inline; }
  .ls-grid { margin-top:10px; }
  .ls-grid[data-tab="opts"] .ls-side { display:none; }
  .ls-grid .ls-side { border-top:none; }
}
/* Who can view a list (068) — next to Ranked / Unranked */
.list-vis-badge { display:inline-flex; align-items:center; gap:4px; flex-shrink:0; height:22px; padding:0 9px; border-radius:999px; box-sizing:border-box; border:1px solid var(--border-olive); color:var(--olive-light); background:var(--olive-faint);
  font:700 10.5px/1 var(--sans); letter-spacing:.8px; text-transform:uppercase; white-space:nowrap; vertical-align:middle; margin-inline-start:6px; }
@media(max-width:640px) { .list-vis-badge { height:20px; font-size:9.5px; padding:0 8px; } }
.ls-vis { display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:6px; }
.ls-vis-opt { display:flex; flex-direction:column; align-items:flex-start; gap:2px; padding:10px; border-radius:var(--radius); border:1px solid var(--border-2); background:var(--bg-3); color:var(--text); font:inherit; text-align:start; cursor:pointer; transition:border-color .15s, background .15s; }
.ls-vis-opt svg { color:var(--olive-light); margin-bottom:4px; }
.ls-vis-opt b { font-size:13px; font-weight:700; }
.ls-vis-opt small { font-size:11px; color:var(--text-3); line-height:1.35; }
.ls-vis-opt:hover { border-color:var(--border-olive); }
.ls-vis-opt.on { border-color:var(--olive-light); background:var(--olive-faint); box-shadow:inset 0 0 0 1px var(--olive-light); }
.ls-vis-opt:focus-visible { outline:2px solid var(--olive-light); outline-offset:2px; }
.ls-link { display:flex; flex-wrap:wrap; align-items:center; gap:6px; margin-top:8px; }
.ls-link small { flex-basis:100%; font-size:11.5px; color:var(--text-3); }
@media(max-width:400px) { .ls-vis { grid-template-columns:1fr; } .ls-vis-opt { flex-direction:row; align-items:center; gap:8px; } .ls-vis-opt svg { margin:0; } .ls-vis-opt small { margin-inline-start:auto; text-align:end; } }
.la-help > span { flex:1; min-width:0; }
#lpPopupActions .lp-del { flex:0 0 52px; }   /* delete: just its icon */
/* Who can view a note (069) — note editor + the title's edit page */
.mss-vis-box { margin-top:10px; padding:10px 12px 12px; border-radius:var(--radius-sm); border:1px solid var(--border); background:var(--bg-3); }
.mss-vis-head { margin-bottom:8px; }
.mss-vis-l { font:600 11px/1 'Oswald',var(--sans); letter-spacing:1.4px; text-transform:uppercase; color:var(--olive-light); }
.mss-vis-seg { display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); padding:3px; gap:3px; border-radius:var(--radius-sm); background:var(--bg-2); border:0.5px solid var(--border-2); }
.mss-vis-opt { display:inline-flex; align-items:center; justify-content:center; gap:6px; min-height:36px; min-width:0; padding:6px 8px; border:none; border-radius:calc(var(--radius-sm) - 2px); background:none; color:var(--text-2); font:600 13px 'Manrope',var(--sans); cursor:pointer; transition:background .15s, color .15s; }
.mss-vis-opt span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.mss-vis-opt svg { flex:none; }
.mss-vis-opt:hover:not(.on) { color:var(--text); background:var(--olive-faint); }
.mss-vis-opt.on { background:var(--olive); color:var(--text-on-brand); }
.mss-vis-opt:focus-visible { outline:2px solid var(--olive-light); outline-offset:1px; }
.mss-vis-hint { margin:8px 2px 0; font-size:12px; line-height:1.45; color:var(--text-2); }
.mss-vis-links { display:flex; gap:6px; margin-top:10px; }
.mss-vis-links[hidden] { display:none; }
.mss-vis-link { display:inline-flex; align-items:center; justify-content:center; gap:6px; flex:1; min-height:34px; padding:6px 10px; border-radius:var(--radius-sm); border:1px solid var(--border-olive); background:var(--olive-faint); color:var(--olive-light); font:600 12.5px 'Manrope',var(--sans); cursor:pointer; transition:border-color .15s; }
.mss-vis-link.mss-vis-new { flex:0 0 auto; background:none; border-color:var(--border-2); color:var(--text-2); }
.mss-vis-link:hover { border-color:var(--olive-light); }
.mss-vis-link:focus-visible { outline:2px solid var(--olive-light); outline-offset:2px; }
/* Watchlist priority uses the same control; its words are longer ("Want to Watch"), so when the box is too narrow for
   three across, the three stack as rows (owner: the words always show in full) */
.mss-vis-box[data-kind="prio"] { container-type:inline-size; }
@container (max-width:400px) {
  .mss-vis-box[data-kind="prio"] .mss-vis-seg { grid-template-columns:1fr; }
  .mss-vis-box[data-kind="prio"] .mss-vis-opt { flex-direction:row; justify-content:flex-start; gap:8px; min-height:40px; padding:6px 12px; font-size:13px; }
}
@media (max-width:360px) { /* small phones: icon over the word, so all three read in full */
  .mss-vis-opt { flex-direction:column; gap:3px; min-height:46px; padding:6px 2px; font-size:12px; }
  .mss-vis-new span { display:none; }
}

/* List Studio: Sort / Status / Type / Genre use the site's dropdowns (SF.dd) */
.ls-tools { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:10px 10px; padding-top:10px; }
.ls-dd { min-width:0; }
.ls-dd-l { display:block; font:600 11px/1 'Oswald',var(--sans); letter-spacing:1.4px; text-transform:uppercase; color:var(--olive-light); margin-bottom:6px; }
/* Order by: every order shown — a card per group, like the Sort menus */
.ls-order-head { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:10px; }
.ls-order-top { display:flex; gap:6px; }
.ls-order { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:8px; }
.ls-og { padding:9px 10px 10px; border-radius:var(--radius-sm); border:1px solid var(--border); background:var(--bg-3); transition:border-color .15s; min-width:0; }
.ls-og.on { border-color:var(--border-olive); }
.ls-og-wide { grid-column:1 / -1; }
.ls-og-h { display:block; font:600 10.5px/1 'Oswald',var(--sans); letter-spacing:1.3px; text-transform:uppercase; color:var(--text-2); margin-bottom:7px; }
.ls-og.on .ls-og-h { color:var(--olive-light); }
.ls-og-btns { display:grid; grid-auto-flow:column; grid-auto-columns:minmax(0, 1fr); gap:6px; }
.ls-og-wide .ls-og-btns { grid-auto-flow:row; grid-template-columns:repeat(4, minmax(0, 1fr)); }
.ls-og .genre-opt, .ls-order-top .genre-opt { display:inline-flex; align-items:center; justify-content:center; gap:5px; padding:7px 6px; font-size:12px; min-width:0; }
.ls-og .genre-opt:not(.selected), .ls-order-top .genre-opt:not(.selected) { background:var(--bg-2); }
.ls-order-top .genre-opt { padding:6px 10px; }
.ls-og .genre-opt:disabled, .ls-order-top .genre-opt:disabled { opacity:.45; cursor:default; }
.ls-og .genre-opt:focus-visible, .ls-order-top .genre-opt:focus-visible { outline:2px solid var(--olive-light); outline-offset:2px; }
@media(max-width:480px) {
  .ls-og-wide .ls-og-btns { grid-template-columns:repeat(2, minmax(0, 1fr)); }
  .ls-tools { gap:10px 8px; }
}
@media(max-width:340px) { .ls-og .genre-opt { font-size:11.5px; padding:7px 3px; } }
.ls-search svg { z-index:1; }
/* Export Studio: search boxes like List Studio’s; Which show = search, Sort (.sel-dd), a list to pick from */
.xs-search { margin-bottom:8px; }
.es-sort { display:flex; align-items:center; gap:10px; margin-bottom:10px; } .es-sort .lyr-sec-h { margin:0; } .es-sort .sel-dd { flex:1; min-width:0; }


/* ── Easter eggs (js/easter-egg.js) ── a spliced-frame glitch, a rubber stamp on the note box, the stamp in a confirm */
.mss-splice { animation:mssSplice 1s steps(1, end); }
@keyframes mssSplice {
  0%   { transform:translate(0, 0); filter:none; }
  12%  { transform:translate(-3px, 1px) skewX(-2deg); filter:contrast(1.6) saturate(0); }
  24%  { transform:translate(4px, -1px); filter:invert(1) contrast(1.4); }
  36%  { transform:translate(-2px, 0) skewX(1deg); filter:contrast(1.3) saturate(0); }
  48%  { transform:translate(2px, 1px); filter:none; }
  60%  { transform:translate(0, 0); }
}
.mss-egg-stamp {
  --stamp:#c8372d;
  position:fixed; z-index:1400; pointer-events:none;
  display:flex; flex-direction:column; align-items:center; gap:2px;
  padding:8px 16px 9px; border:3px double var(--stamp); border-radius:6px;
  background:var(--bg-2); color:var(--stamp); 
  transform:rotate(-6deg);
}
.mss-egg-stamp b { font:400 30px/1 var(--bebas); letter-spacing:2px; text-transform:uppercase; }
.mss-egg-stamp span { font:700 11px/1.2 'Manrope',var(--sans); letter-spacing:.4px; color:var(--text-2); }
.mss-egg-stamp.in { animation:mssStamp .6s cubic-bezier(.2, 1.4, .4, 1); }
.mss-egg-stamp.out { opacity:0; transition:opacity .8s; }
@keyframes mssStamp { from { opacity:0; transform:rotate(-14deg) scale(1.9); } to { opacity:1; transform:rotate(-6deg) scale(1); } }
@media (prefers-reduced-motion: reduce) {
  .mss-splice { animation:none; }
  .mss-egg-stamp.in { animation:none; }
}
.confirm-overlay[data-tone="egg"] .cf-head .confirm-icon { width:auto; height:auto; padding:6px 4px 0; background:none; }   /* the stamp instead of an icon tile */
.mss-egg-confirm-stamp { display:inline-block; padding:5px 12px 4px; border:3px double #c8372d; border-radius:6px; color:#c8372d; font:400 26px/1 var(--bebas); letter-spacing:2px; text-transform:uppercase; transform:rotate(-6deg); }
.confirm-overlay[data-tone="egg"].open .mss-egg-confirm-stamp { animation:mssStamp .6s cubic-bezier(.2, 1.4, .4, 1) .15s backwards; }
@media (prefers-reduced-motion: reduce) { .confirm-overlay[data-tone="egg"].open .mss-egg-confirm-stamp { animation:none; } }

/* ── Dropped (071): titles you gave up on — muted, where you stopped, a score that doesn't count ── */
.dropped-tag {
  display:inline-flex; align-items:center; gap:5px; padding:3px 9px; border-radius:var(--radius-xs, 4px);
  background:var(--bg-3); border:1px solid var(--border-2); color:var(--text-2);
  font:600 11px/1.3 'Manrope',var(--sans); white-space:nowrap;
}
.dropped-tag svg { flex:none; color:var(--text-3); }/* the rating popup: a dropped title's score, greyed with a note */
/* the Drop dialog: a movie can note where you stopped */
.drop-at { border:none; margin:2px 0 0; padding:0; display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
.drop-at[hidden] { display:none; }
.drop-at legend { width:100%; margin-bottom:8px; font-size:12px; font-weight:600; color:var(--text-2); }
.drop-at legend small { font-weight:500; color:var(--text-3); }
.drop-at label { display:inline-flex; align-items:center; gap:6px; color:var(--text-3); font-size:13px; font-weight:600; }
.drop-at input { width:64px; height:44px; padding:0 10px; border-radius:var(--radius-sm); border:1px solid var(--border-input); background:var(--card-2); color:var(--text); font:600 16px 'Manrope',var(--sans); text-align:center; }
.drop-at input:focus-visible { outline:2px solid var(--olive-light); outline-offset:1px; }
.drop-at input { -moz-appearance:textfield; appearance:textfield; }
.drop-at input::-webkit-inner-spin-button, .drop-at input::-webkit-outer-spin-button { -webkit-appearance:none; margin:0; }
.field-optional { font-size:10px; font-weight:500; letter-spacing:.5px; text-transform:none; color:var(--text-3); margin-inline-start:4px; }

/* ── Switch rows (Settings → Notifications, Notification settings) ── */
.push-row { display:flex; align-items:center; justify-content:space-between; gap:14px; }
.push-name { font-size:14px; font-weight:600; color:var(--text); }
.push-sub { font-size:12.5px; color:var(--text-3); line-height:1.5; margin-top:3px; }
.push-switch {
  position:relative; flex-shrink:0; width:48px; height:28px; border-radius:999px; cursor:pointer;
  background:var(--bg-3); border:1px solid var(--border-2); transition:background .2s, border-color .2s; padding:0;
}
.push-switch span {
  position:absolute; top:3px; inset-inline-start:3px; width:20px; height:20px; border-radius:50%; background:#fff;
   transition:transform .2s cubic-bezier(.2,.8,.2,1);
}
.push-switch[aria-checked="true"] { background:var(--toggle-track-on); border-color:var(--toggle-track-on); }
.push-switch[aria-checked="true"] span { transform:translateX(20px); }
[dir="rtl"] .push-switch[aria-checked="true"] span { transform:translateX(-20px); }
.push-switch:focus-visible { outline:2px solid var(--olive-light); outline-offset:2px; }
.push-switch:disabled { opacity:.45; cursor:default; }
.push-link { display:inline-block; margin-top:12px; font-size:12.5px; font-weight:600; color:var(--olive-light); text-decoration:none; }

/* ── Notification settings (notifications.html?tab=settings · Settings › Notifications · notif-settings.js) ──
   Sections, each a heading + boxes of hairline rows (no cards inside cards). Wide screens: boxes side by side. */
.ns-wrap { display:flex; flex-direction:column; gap:32px; }
.ns-sec-head { margin-bottom:16px; }
.ns-sec-title { font:600 22px/1.15 var(--serif); color:var(--text-heading); }
.ns-sec-sub { font-size:13px; line-height:1.5; color:var(--text-2); margin-top:4px; }
.ns-grid { display:grid; grid-template-columns:repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap:16px; align-items:start; }
.ns-stack { display:flex; flex-direction:column; gap:20px; }
/* Who gets notified: the switch and its explanation side by side when there's room */
#nsWho { display:flex; align-items:center; gap:10px 20px; flex-wrap:wrap; }
#nsWho .ns-aud { width:auto; flex:0 1 520px; }
#nsWho .ns-aud-note { flex:1 1 280px; margin:0; }
/* What they hear about: two columns on the Notifications page (desktop), hairlines between */
@media (min-width:1100px) {
  .np-main .ns-share-box { display:grid; grid-template-columns:1fr 1fr; gap:1px; background:var(--ntf-line); }
  .np-main .ns-share-box > .ns-row { background:var(--mc-bg); border-top:0; }
  .np-main .ns-share-box::after { content:''; background:var(--mc-bg); }
}
.ns-title { font:800 10.5px/1 var(--sans); letter-spacing:.14em; text-transform:uppercase; color:var(--ntf-green); margin:0 0 10px 2px; }
.ns-box { background:var(--mc-bg); border:1px solid var(--mc-bd); border-radius:16px; overflow:hidden; }
.ns-box-pad { padding:16px; }
.ns-row { display:flex; align-items:center; gap:14px; padding:13px 16px; min-height:56px; }
.ns-row + .ns-row { border-top:1px solid var(--ntf-line); }
.ns-txt { flex:1; min-width:0; }
.ns-name { font:700 14px/1.3 var(--sans); color:var(--text); }
.ns-sub { font-size:12.5px; line-height:1.45; color:var(--text-3); margin-top:2px; }
.ns-group-head { background:var(--ntf-day); }
.ns-group-ic { width:32px; height:32px; flex:none; display:grid; place-items:center; border-radius:50%; background:var(--olive); color:var(--text-on-brand); }
.ns-group-name { font:600 16px/1.2 var(--serif); color:var(--text-heading); }
.push-switch[aria-checked="mixed"] { background:color-mix(in srgb, var(--olive) 45%, var(--bg-3)); border-color:var(--border-olive); }
.push-switch[aria-checked="mixed"] span { transform:translateX(10px); }
[dir="rtl"] .push-switch[aria-checked="mixed"] span { transform:translateX(-10px); }
.ns-share .ns-who-btn { flex:none; }
.ns-chips { margin-top:8px; }
.ns-who-btn {
  display:inline-flex; align-items:center; gap:6px; min-height:30px; padding:0 11px; border-radius:var(--radius-sm); cursor:pointer;
  background:transparent; border:1px solid var(--mc-bd); color:var(--text-2); font:700 12px var(--sans);
}
.ns-who-btn:hover { border-color:var(--border-olive); color:var(--text); }
.ns-who-btn.has { border-color:var(--border-olive); color:var(--ntf-green); background:var(--olive-faint); }
.ns-who-btn:focus-visible, .ns-pick-row:focus-visible { outline:2px solid var(--olive-light); outline-offset:2px; }
.ns-chips { display:flex; flex-wrap:wrap; gap:5px; width:100%; }
.ns-chip { display:inline-flex; align-items:center; gap:5px; padding:3px 9px 3px 3px; border-radius:999px; background:var(--bg-3); border:0.5px solid var(--border-2); font-size:11.5px; font-weight:600; color:var(--text-2); }
.ns-av { width:20px; height:20px; border-radius:50%; overflow:hidden; flex:none; display:grid; place-items:center; background:var(--olive); color:var(--text-on-brand); font-size:10px; font-weight:700; }
.ns-av img { width:100%; height:100%; object-fit:cover; }
.ns-aud { width:100%; margin:0; }
.ns-aud .pn-toggle-btn { flex:1; display:inline-flex; align-items:center; justify-content:center; gap:6px; white-space:nowrap; padding-inline:14px; }
.ns-aud .pn-toggle-btn svg { width:13px; height:13px; }
.ns-aud-note { font-size:12.5px; color:var(--text-2); line-height:1.5; margin:.75rem 0 0; }
.ns-muted { opacity:.45; }
.ns-loading { padding:16px; font-size:13px; color:var(--text-3); }
.ns-sw-skel { width:48px; height:28px; flex:none; border-radius:99px; }
.ns-txt .skel-line { display:block; margin:3px 0; }
.ns-back { display:inline-flex; align-items:center; gap:6px; min-height:36px; margin-bottom:1rem; padding:4px 0; border:0; background:none; font:700 12.5px var(--sans); color:var(--ntf-green); text-decoration:none; cursor:pointer; }
.ns-back:hover { text-decoration:underline; text-underline-offset:3px; }
.ns-back:focus-visible { outline:2px solid var(--olive-light); outline-offset:2px; border-radius:4px; }
@media (max-width:767px) {
  .ns-wrap { gap:26px; }
  .ns-share { flex-wrap:wrap; }
  .ns-share .ns-txt { flex-basis:calc(100% - 62px); }
  .ns-share .ns-who-btn { order:3; margin-inline-start:0; }
  .ns-row { padding:12px 14px; }
  .ns-sec-title { font-size:20px; }
}
@media (max-width:480px) { .ns-aud { flex-direction:column; } .ns-aud .pn-toggle-btn { justify-content:flex-start; padding-block:12px; } .ns-aud .pn-toggle-btn + .pn-toggle-btn { border-inline-start:0; border-top:0.5px solid var(--border-2); } }
.ns-pick-hint { margin:0 0 12px; }
.ns-pick-list { margin-top:12px; overflow:hidden; border:1px solid var(--border); border-radius:var(--radius); background:var(--bg-3); }
.ns-pick-row { display:flex; align-items:center; gap:10px; width:100%; padding:9px 12px; border:none; background:none; color:var(--text); font:inherit; text-align:start; cursor:pointer; }
.ns-pick-row + .ns-pick-row { border-top:0.5px solid var(--border); }
.ns-pick-row:hover, .ns-pick-row.on { background:var(--olive-faint); }
.ns-pick-row .ns-av { width:32px; height:32px; font-size:13px; }
.ns-pick-name { flex:1; min-width:0; font-size:13.5px; font-weight:600; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ns-pick-box { flex:none; width:22px; height:22px; border-radius:6px; border:1.5px solid var(--border-2); display:grid; place-items:center; color:#fff; }
.ns-pick-row.on .ns-pick-box { background:var(--toggle-track-on); border-color:var(--toggle-track-on); }
.ns-pick-none { padding:16px; font-size:13px; color:var(--text-3); text-align:center; }

/* ── Your Friends / Only-me titles (073): a small lock on your own poster ── */
.fv-rank-poster, .dp-poster, #mssCommentsPoster { position:relative; }
.mss-hidden-badge {
  position:absolute; bottom:6px; inset-inline-end:6px; z-index:3; width:22px; height:22px; border-radius:50%;
  display:grid; place-items:center; background:rgba(4,19,10,.74); color:#fff; 
  -webkit-backdrop-filter:blur(4px); backdrop-filter:blur(4px); pointer-events:auto;
}
.mss-hidden-badge { line-height:0; font-size:0; }
/* the icon pinned to the exact middle (Safari can nudge a grid-centred inline svg down / right);
   -54% lifts the lock a touch, since its heavy body sits low in the icon */
.mss-hidden-badge svg { display:block; position:absolute; top:50%; left:50%; width:12px; height:12px; transform:translate(-50%, -54%); }
.lp-poster .mss-hidden-badge { display:none; }   /* the tiny Library posters */

/* ── Share card (js/share-card.js): the drawn card, its name a link laid over it; the panel ── */
.sc-card { position:relative; width:100%; }
.sc-card canvas { display:block; width:100%; height:auto; }
.sc-link { position:absolute; border-radius:6px; }
.sc-link:hover { outline:1.5px solid var(--border-strong); outline-offset:3px; }
.sc-link:focus-visible { outline:2px solid var(--focus-ring); outline-offset:3px; }
.sc-ed { display:flex; flex-direction:column; gap:22px; }
.sc-pv { width:min(290px, 78%, calc(50vh * 9 / 16)); min-width:170px; margin-inline:auto; }
.sc-ctl { display:flex; flex-direction:column; gap:16px; }
@media (max-width:767px) { .sc-pv { width:min(60%, calc(40vh * 9 / 16)); min-width:150px; } .sc-ed { gap:16px; } .sc-ctl { gap:14px; } }
.sc-lab { margin:0 0 8px; font:700 13.5px 'Manrope',var(--sans); color:var(--text); }
.sc-frame { align-self:flex-start; margin-top:-6px; }
.sc-note { margin:-6px 0 0; font:500 13px/1.5 'Manrope',var(--sans); color:var(--text-muted); } .sc-note a { color:var(--text-link); text-decoration:underline; }
.sc-fr { width:370px; height:300px; border-radius:18px; background:center 25% / cover no-repeat; }

/* ── An event's countdown on its titles before a window starts (js/events.js countdown) ── */
/* the glass of Will you like it? (.tp-like, title.css), in the header's own colours */
.mss-ev-count { display:flex; flex-direction:column; align-items:center; gap:6px; align-self:flex-start; padding:12px 16px; border-radius:var(--radius); text-align:center;
  border:1px solid rgba(255,255,255,.2); background:rgba(0,0,0,.6); -webkit-backdrop-filter:blur(8px); backdrop-filter:blur(8px); color:#fff; }
.mss-ev-count b { font:800 10px/1.2 'Manrope',var(--sans); letter-spacing:.16em; text-transform:uppercase; color:var(--tv-green); }
.mss-ev-count time { font:400 30px/1 var(--bebas); letter-spacing:.02em; white-space:nowrap; }
.tp-scores .mss-ev-count { align-self:stretch; width:256px; }
.tp-page.is-phone .tp-scores:has(.mss-ev-count) { flex-basis:100%; align-items:stretch; }
.tp-page.is-phone .tp-scores .mss-ev-count { width:auto; flex-direction:row; justify-content:space-between; padding:10px 12px; }
.tp-page.is-phone .tp-scores .mss-ev-count time { font-size:24px; }

/* ── Phones turned sideways (nav.js _navPortraitOnPhones sets html.mss-sideways from the
   phone's real orientation — not a media query, which an open keyboard fools). Phone-sized
   only (the overlay is never added on iPads and other tablets, which work both ways). ── */
.mss-rotate { display:none; }
html.mss-sideways .mss-rotate {
  position:fixed; inset:0; z-index:100000; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px;
  padding:24px; text-align:center; background:var(--bg); color:var(--text-2); font-family:'Manrope',var(--sans);
}
html.mss-sideways .mss-rotate b { font-size:17px; color:var(--text); }
html.mss-sideways .mss-rotate span { font-size:13px; color:var(--text-3); }
html.mss-sideways .mss-rotate-ic { width:64px; height:64px; border-radius:50%; display:grid; place-items:center; margin-bottom:6px;
  background:var(--olive); color:var(--text-on-brand); animation:mssRotate 1.6s cubic-bezier(.6,0,.3,1) infinite; }
html.mss-sideways body { overflow:hidden; }
@keyframes mssRotate { 0%, 20% { transform:rotate(0); } 60%, 100% { transform:rotate(-90deg); } }
@media (prefers-reduced-motion: reduce) { .mss-rotate-ic { animation:none; } }

/* ═════════════════════════════════════════════════════════════
   List page look — list-view.html and ratings.html (moved from list-view.html)
   ═════════════════════════════════════════════════════════════ */
.lv-back {
  display:inline-flex; align-items:center; gap:6px;
  font-size:13px; color:var(--text-3); text-decoration:none;
  margin-bottom:1.5rem; transition:color .15s;
}
.lv-back:hover { color:var(--olive-light); }

.lv-head { margin-bottom:.5rem; }
.lv-title-row { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:nowrap; margin-bottom:.5rem; }
.lv-title-inner { display:flex; align-items:center; gap:10px; min-width:0; flex:1; }
.lv-title-wrap { min-width:0; }

/* ── Ranked/Unranked choice checkboxes — adapted from Uiverse (vishnupprajapat) ── */
.lv-owner { display:flex; align-items:center; gap:8px; margin-bottom:.6rem; }
.lv-avatar {
  width:26px; height:26px; border-radius:50%; overflow:hidden; flex-shrink:0;
  background:var(--olive-faint); color:var(--olive-light); font-family:var(--serif); font-size:12px;
  display:flex; align-items:center; justify-content:center;
}
.lv-avatar img { width:100%; height:100%; object-fit:cover; }
.lv-username { font-size:13px; color:var(--text-3); }
.lv-desc {
  font-size:13.5px; color:var(--text-2); line-height:1.6; margin-bottom:14px;
  padding-inline-start:12px; border-inline-start:2px solid var(--border-olive); white-space:pre-line; overflow-wrap:anywhere;
}
.lv-controls { display:flex; align-items:center; justify-content:space-between; gap:1rem; margin:1.5rem 0 2rem; flex-wrap:wrap; }
.lv-count { font-size:13px; color:var(--text-3); }

/* ── The list page (Lists redesign — list-view.html): a compact title-page hero, the bar, the two views ── */
.lh { --tv-green:var(--p-forest-300); --tv-gold:var(--p-score-top-dark); position:relative; isolation:isolate; overflow:hidden; display:flex; flex-direction:column; justify-content:space-between; gap:18px;
  min-height:var(--hero-h); padding:16px 22px 22px; border-radius:22px; background:#121613; color:#fff; color-scheme:dark; margin-bottom:14px; }
.lh-bd { position:absolute; inset:0; z-index:-2; width:100%; height:100%; object-fit:cover; object-position:center 25%; opacity:0; transition:opacity .3s ease-out; }
.lh.has-bd .lh-bd { opacity:1; }
.lh.is-poster .lh-bd { filter:blur(18px) saturate(1.1); transform:scale(1.15); }
.lh-shade { position:absolute; inset:0; z-index:-1; background:linear-gradient(180deg, rgba(0,0,0,.42) 0%, rgba(0,0,0,.28) 36%, rgba(0,0,0,.68) 74%, rgba(0,0,0,.84) 100%); }   /* white text ≥ 4.5:1 on any picture */
.lh-top { display:flex; align-items:center; justify-content:flex-end; gap:12px; min-height:36px; }
/* ‹ Lists · @owner — above the hero, on the page (owner) */
.lh-crumb { display:flex; align-items:center; gap:4px; min-width:0; margin:0 0 12px; font:700 13px/1 'Manrope',var(--sans); color:var(--text-2); }
#lvOwner { display:inline-flex; align-items:center; gap:8px; min-width:0; }   /* the dot, picture and @name on one centre line */
#lvOwner:empty { display:none; }
.lh-dot { color:var(--text-muted); }
.lh-crumb a { color:inherit; text-decoration:none; }
.lh-crumb a:hover { text-decoration:underline; text-underline-offset:3px; }
.lh-owner { display:inline-flex; align-items:center; gap:6px; }
.lh-av { width:22px; height:22px; border-radius:50%; overflow:hidden; display:inline-grid; place-items:center; background:var(--olive-faint); color:var(--olive-light); font:600 11px var(--serif); }
.lh-av img { width:100%; height:100%; object-fit:cover; }
.lh-bd-btn { display:inline-flex; align-items:center; gap:6px; min-height:36px; padding:0 12px; border-radius:var(--radius-sm); cursor:pointer;
  border:1px solid rgba(255,255,255,.22); background:rgba(0,0,0,.42); color:#fff; font:700 12.5px 'Manrope',var(--sans); }
.lh-bd-btn:hover { background:rgba(0,0,0,.62); }
.lh-bd-btn svg { width:14px; height:14px; }
.lh-bd-btn[hidden] { display:none; }
.lh-in { display:flex; align-items:flex-end; justify-content:space-between; gap:18px; }
/* the name and description on a contained glass panel, so they read over any picture */
.lh-text { flex:1; min-width:0; max-width:760px; padding:16px 18px; border-radius:16px; background:rgba(4,19,10,.5); border:1px solid rgba(255,255,255,.12); -webkit-backdrop-filter:blur(6px); backdrop-filter:blur(6px); }
.lh-chips { display:flex; flex-wrap:wrap; gap:6px; margin-bottom:8px; }
.lh-chips:empty { display:none; }
.lh-chips .list-vis-badge { margin:0; color:#fff; border-color:rgba(255,255,255,.3); background:rgba(255,255,255,.1); }
.lh-title { margin:0; font:600 44px/1.1 var(--serif); color:#fff; overflow-wrap:anywhere; text-wrap:balance; }
.lh-desc { margin:8px 0 0; font:500 15px/1.55 'Manrope',var(--sans); color:rgba(255,255,255,.86); white-space:pre-line; overflow-wrap:anywhere; }
.lh-desc[hidden] { display:none; }
.lh-stats { flex:none; display:grid; grid-template-columns:repeat(2, minmax(0, auto)); gap:12px 22px; margin:0; padding:14px 18px; border-radius:16px;
  background:rgba(4,19,10,.5); border:1px solid rgba(255,255,255,.12); -webkit-backdrop-filter:blur(6px); backdrop-filter:blur(6px); }
.lh-stat dt { font:800 10.5px/1 'Manrope',var(--sans); letter-spacing:.12em; text-transform:uppercase; color:rgba(255,255,255,.7); margin-bottom:5px; }
.lh-stat dd { margin:0; font:700 13.5px/1.25 'Manrope',var(--sans); color:#fff; white-space:nowrap; }
.lh-stat dd b { font:400 24px/1 var(--bebas); letter-spacing:.3px; }
.lh-score { font-size:24px; }
.lh-score.msf-score, .lh-score.msf-score.is-gold { color:var(--st, var(--tv-green)); }
.lv-bar { display:flex; align-items:center; justify-content:space-between; gap:10px; flex-wrap:wrap; margin:0 0 16px; }
.lv-bar-l, .lv-bar-r { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.lv-bar-r { margin-inline-start:auto; justify-content:flex-end; }   /* Sort, Filter and the view switch on the right, also when they wrap under the actions (phones) */
.lv-btn { display:inline-flex; align-items:center; justify-content:center; gap:7px; min-height:40px; padding:0 14px; border-radius:var(--radius-sm); cursor:pointer;
  border:1px solid var(--border-2); background:var(--card); color:var(--text); font:700 13px 'Manrope',var(--sans); white-space:nowrap; }
.lv-btn:hover { border-color:var(--border-olive); }
.lv-btn:focus-visible { outline:2px solid var(--olive-light); outline-offset:2px; }
.lv-btn.is-main { background:var(--action-primary-bg); border-color:var(--action-primary-bg); color:var(--text-on-primary); }
.lv-btn.is-main:hover { background:var(--olive-2, var(--action-primary-hover)); }
.lv-btn.is-icon { width:40px; padding:0; }
.lv-react { display:inline-flex; gap:6px; }
.lv-react .lv-btn.is-icon { width:auto; padding:0 12px; }
.lv-react .lv-btn.is-on { border-color:var(--olive-light); color:var(--olive-light); background:var(--olive-faint); }
.lv-rows .lp-card { cursor:pointer; }
.lv-more { grid-column:1 / -1; }   /* Show more: its own row under the cards */
.lv-rows .lp-poster .cg-rank-badge { z-index:3; }
.lv-rows .lp-title { font-size:19px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.lp-titlerow { display:flex; align-items:baseline; gap:8px; min-width:0; }
.lp-titlerow .lp-title { min-width:0; }
.lp-yr { display:none; flex:none; font:600 12.5px/1 'Manrope',var(--sans); color:var(--text-3); font-variant-numeric:tabular-nums; }
/* phones (owner, 19 Nov 2026): the poster fills the card's left side, edge to edge; the year right after the title */
@media (max-width:640px) {
  .lv-rows .lp-card:not(.is-main) { padding:0; padding-inline-end:12px; gap:14px; min-height:150px; }
  .lv-rows .lp-card:not(.is-main) .lp-poster { min-width:100px; max-width:none; border-radius:0; box-shadow:none; }
  .lv-rows .lp-kicker .lp-k-yr { display:none; }
  .lv-rows .lp-yr { display:inline-block; padding:3px 6px; border-radius:6px; color:var(--text-2); background:color-mix(in srgb, var(--lib-card, var(--card)) 88%, transparent); }   /* readable over the backdrop */
}
@media(max-width:640px) {
  .lh { min-height:420px; padding:12px 14px 14px; border-radius:18px; gap:12px; }
  .lh-in { flex-direction:column; align-items:stretch; gap:10px; }
  .lh-text { padding:12px 14px; }
  .lh-title { font-size:32px; }
  .lh-desc { font-size:13.5px; }
  .lh-stats { grid-template-columns:repeat(4, minmax(0, auto)); justify-content:space-between; gap:8px 12px; padding:10px 12px; }
  .lh-stat dd { font-size:12px; white-space:normal; } .lh-stat dd b, .lh-score { font-size:20px; }
  .lh-bd-btn span { display:none; } .lh-bd-btn { width:36px; padding:0; justify-content:center; }
  .lv-btn span { display:none; } .lv-btn { width:40px; padding:0; } .lv-btn.is-main span, .lv-react .lv-btn span { display:inline; } .lv-btn.is-main, .lv-react .lv-btn { width:auto; padding:0 14px; }
}

/* ── The list editor (list-studio.js — list-view.html?…&edit=1 / ?new=1): details + your list left, Add titles right ── */
.le-head { display:flex; align-items:flex-end; justify-content:space-between; gap:14px; margin:0 0 18px; }
.le-head-l { min-width:0; }
.le-name { margin:8px 0 0; font:600 44px/1.1 var(--serif); color:var(--text-heading); overflow-wrap:anywhere; }
.le-bar { display:flex; gap:8px; flex:none; }
.le-cancel, .le-save { display:inline-flex; align-items:center; justify-content:center; gap:7px; min-height:42px; padding:0 18px; border-radius:var(--radius-sm); cursor:pointer; font:700 13.5px 'Manrope',var(--sans); }
.le-cancel { border:1px solid var(--border-2); background:var(--card); color:var(--text); }
.le-save { border:1px solid var(--action-primary-bg); background:var(--action-primary-bg); color:var(--text-on-primary); }
.le-save:disabled { opacity:.5; cursor:default; }
.le-cancel:focus-visible, .le-save:focus-visible { outline:2px solid var(--olive-light); outline-offset:2px; }
.le-cols { display:grid; grid-template-columns:minmax(0, 1fr) 440px; gap:22px; align-items:start; }
.le-main { display:flex; flex-direction:column; gap:16px; min-width:0; }
.le-panel { min-width:0; padding:18px; border-radius:20px; border:1px solid var(--border); background:var(--card); }
.le-add { position:sticky; top:calc(var(--nav-h, 72px) + 12px); max-height:calc(100vh - var(--nav-h, 72px) - 24px); overflow-y:auto; overscroll-behavior-y:contain; }
.le-sec + .le-sec { margin-top:18px; }
#lsOrder:not(:empty) { margin-top:18px; }
.le-label { display:flex; align-items:baseline; gap:8px; margin-bottom:12px; font:800 10.5px/1 'Manrope',var(--sans); letter-spacing:.12em; text-transform:uppercase; color:var(--olive-light); }
.le-label span { font:600 12px 'Manrope',var(--sans); letter-spacing:0; text-transform:none; color:var(--text-3); }
.le-name-in { font:600 22px var(--serif); height:48px; }
.le-panel .list-desc-count { display:inline; margin:0; font-size:11.5px; }
.le-panel .list-desc-field { min-height:96px; font-size:14.5px; line-height:1.55; background:var(--raised); }
.le-order { display:flex; align-items:center; gap:8px; }
.le-order .ls-dd { flex:1; min-width:0; }
.le-danger { display:flex; align-items:center; gap:10px; flex-wrap:wrap; padding:4px 2px; font:600 12px 'Manrope',var(--sans); color:var(--text-3); }
.le-del { display:inline-flex; align-items:center; gap:6px; min-height:40px; padding:0 14px; border-radius:var(--radius-sm); border:1px solid color-mix(in srgb, var(--danger) 45%, transparent);
  background:transparent; color:var(--danger); font:700 13px 'Manrope',var(--sans); cursor:pointer; }
.le-del:hover { background:var(--danger-tint); }
.le-panel .la-row.dragging { border:1.5px solid var(--olive-light); transform-origin:center; rotate:-.6deg; }
.le-add .ls-results { max-height:none; }
@media(max-width:860px) {
  .le-cols { grid-template-columns:minmax(0, 1fr); }
  .le-add { position:static; max-height:none; overflow:visible; }
  .le-name { font-size:32px; }
  .le-panel { padding:14px; border-radius:16px; }
  /* Cancel · Save changes: fixed above the bottom bar — the Edit page's phone bar */
  .le-bar { position:fixed; z-index:390; inset-inline:10px; bottom:calc(var(--bnav-top) + 42px); padding:8px; justify-content:flex-end;
    border-radius:var(--radius-lg); border:1px solid rgba(255,255,255,.12); background:#121613; color-scheme:dark; }
  .le-bar .le-cancel { flex:1; border-color:rgba(255,255,255,.22); background:transparent; color:#fff; }
  .le-bar .le-save { flex:2; }
  .le-page { padding-bottom:110px; }
  .le-panel .la-moves { display:none; }   /* phones: the handle moves a title (the PDF) — room for its name */
}
@media (prefers-reduced-motion:reduce) { .lh-bd { transition:none; } .le-panel .la-row.dragging { rotate:none; } }

/* ── Grid view ── */
/* the standard card grid (.msf-grid); no scroll-in animation — Show more adds rows (owner) */
.lv-card { width:100%; box-sizing:border-box; }

/* ── v572: plain page layout (like Discover's See All) ── */
.lv-owner-row { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:.9rem; }
.lv-owner-row .lv-owner { margin-bottom:0; }
.lv-title-row { display:flex; align-items:center; justify-content:flex-start; column-gap:16px; row-gap:8px; flex-wrap:wrap; margin-bottom:1.1rem; }
.lv-title {
  font-family:var(--serif); font-size:clamp(26px, 6vw, 44px); font-weight:600; line-height:1.25;
  margin:0; min-width:0; overflow-wrap:anywhere; white-space:normal;
  overflow:visible; text-overflow:clip; padding-bottom:2px;   /* keep descenders (g, y, p) from clipping */
}
.lv-desc {
  font-size:clamp(13px, 3.4vw, 14.5px); color:var(--text-2); line-height:1.65; max-width:none; width:100%;
  margin:0 0 1.4rem; white-space:pre-line; overflow-wrap:anywhere; padding:0; border:none;
}
.lv-controls {
  display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap;
  margin:0 0 1.5rem; padding-bottom:12px; border-bottom:0.5px solid var(--border);
}
.lv-count { font-size:13px; color:var(--text-3); }
.lv-count b { font-family:var(--bebas); font-weight:400; font-size:18px; color:var(--text-2); letter-spacing:.3px; }
.lv-controls-right { display:flex; align-items:center; gap:8px; margin-inline-start:auto; }
.lv-sf-bar:empty { display:none; }
.lv-sf-bar .sort-bar { border-bottom:none; padding:0; margin:0; background:transparent; position:relative; backdrop-filter:none; -webkit-backdrop-filter:none; }
.lv-sf-bar .sort-bar::before { content:none; }
@media(max-width:600px) {
  .lv-controls { gap:10px; }
}
/* Scores are numbers → Bebas Neue, like every other page */

/* ═════════════════════════════════════════════════════════════
   Emoji (MSSEmoji, config.js) — laptops / desktops only
   ═════════════════════════════════════════════════════════════ */
/* the smiley in the corner of the box you're typing in — positioned next to the box, so it scrolls with it */
.mss-emo-trigger { position:absolute; z-index:5; width:28px; height:28px; padding:0; border-radius:50%; display:flex; align-items:center; justify-content:center;
  background:var(--card); border:0.5px solid var(--border-2); color:var(--text-3); cursor:pointer;  margin:0;
  transition:color .15s, border-color .15s, background .15s, transform .15s; }
.mss-emo-trigger:hover, .mss-emo-trigger:focus-visible { color:var(--olive-light); border-color:var(--border-olive); background:var(--olive-faint); transform:scale(1.06); }
.mss-emo-trigger:focus-visible { outline:2px solid var(--olive-light); outline-offset:2px; }
.mss-emo-trigger svg { width:17px; height:17px; }
.mss-emo-trigger[hidden] { display:none; }
/* in a note's B · I · U toolbar */
.mss-rt-emo svg { width:15px; height:15px; }
@media (hover:none), (pointer:coarse) { .mss-rt-emo { display:none !important; } }

/* your five most used + "+" — WhatsApp-style; part of the page next to the smiley, so it scrolls under the top bar like the rest */
.mss-emo-quick { position:absolute; z-index:6; display:none; align-items:center; gap:2px; padding:5px; border-radius:999px;
  background:var(--bg-2); border:1.5px solid var(--olive-light); }
.mss-emo-quick.open { display:flex; animation:mssEmoPop .16s var(--ease); }
@keyframes mssEmoPop { from { opacity:0; transform:translateY(4px) scale(.96); } to { opacity:1; transform:none; } }
.mss-emo-q { width:40px; height:40px; border:none; border-radius:50%; background:none; padding:0; cursor:pointer; font-size:24px; line-height:1;
  font-family:'Apple Color Emoji','Segoe UI Emoji','Noto Color Emoji',sans-serif; transition:background .12s, transform .12s; }
.mss-emo-q:hover, .mss-emo-q:focus-visible { background:var(--olive-faint); transform:scale(1.14); outline:none; }
.mss-emo-q:focus-visible { box-shadow:0 0 0 2px var(--olive-light); }
.mss-emo-more { display:flex; align-items:center; justify-content:center; margin-inline-start:2px; background:var(--bg-3); color:var(--olive-light); border:0.5px solid var(--border-olive); }
.mss-emo-more svg { width:18px; height:18px; }
.mss-emo-more:hover, .mss-emo-more:focus-visible { background:var(--olive); color:var(--text-on-brand); transform:none; }

/* every emoji — a popup like the site's others (MSSDialog: centred, page locked) */
/* every emoji: a popover beside the box you're typing in (desktop), a full page on phones */
.mss-emo-ov { position:fixed; inset:0; z-index:2045; opacity:0; pointer-events:none; transition:opacity .14s; }
.mss-emo-ov.open { opacity:1; pointer-events:auto; }
.mss-emo { position:fixed; width:min(380px, calc(100vw - 16px)); height:min(470px, calc(100dvh - 16px)); display:flex; flex-direction:column;
  background:var(--panel); border:1px solid var(--border-2); border-radius:12px; overflow:hidden;
  transform:translateY(-4px); transition:transform .14s var(--layer-in); }
.mss-emo-ov.open .mss-emo { transform:none; }
@media (max-width:559px) {
  .mss-emo { inset:0; width:auto; height:auto; border:0; border-radius:0; padding-bottom:env(safe-area-inset-bottom); }
  .mss-emo-head { padding-top:calc(14px + env(safe-area-inset-top)); }
}
.mss-emo-head { display:flex; align-items:center; justify-content:space-between; padding:14px 14px 0 16px; }
.mss-emo-head b { font-family:var(--serif); font-size:19px; font-weight:600; }
.mss-emo-search { display:flex; align-items:center; gap:8px; margin:10px 12px 8px; padding:0 12px; border:1.5px solid var(--border-olive); border-radius:var(--radius-sm); background:var(--bg-3); color:var(--text-3); }
.mss-emo-search:focus-within { border-color:var(--olive-light); box-shadow:0 0 0 3px var(--olive-faint); }
.mss-emo-search svg { width:15px; height:15px; flex:none; }
.mss-emo-search input { flex:1; min-width:0; border:none; background:transparent; color:var(--text); font:14px var(--sans); padding:10px 0; outline:none; }
.mss-emo-tabs { display:flex; gap:2px; padding:0 8px 6px; border-bottom:0.5px solid var(--border-2); }
.mss-emo-tab { flex:1; min-width:0; height:32px; border:none; border-radius:var(--radius-sm); background:none; font-size:17px; line-height:1; cursor:pointer; opacity:.55; filter:grayscale(.6);
  transition:opacity .15s, filter .15s, background .15s; position:relative; }
.mss-emo-tab:hover { opacity:1; filter:none; background:var(--bg-3); }
.mss-emo-tab.on { opacity:1; filter:none; background:var(--olive-faint); }
.mss-emo-tab.on::after { content:''; position:absolute; left:22%; right:22%; bottom:-6px; height:2px; border-radius:2px; background:var(--olive-light); }
.mss-emo-tab:focus-visible { outline:2px solid var(--olive-light); outline-offset:-2px; }
.mss-emo-grid { flex:1; overflow-y:auto; padding:4px 8px 8px; scrollbar-width:thin; overscroll-behavior:contain; }
.mss-emo-h { position:sticky; top:-4px; z-index:1; padding:8px 4px 6px; background:var(--bg-2); font:600 10.5px var(--sans); letter-spacing:1.4px; text-transform:uppercase; color:var(--olive-light); }
.mss-emo-set { display:grid; grid-template-columns:repeat(auto-fill, minmax(38px, 1fr)); }
.mss-emo-e { aspect-ratio:1; border:none; border-radius:var(--radius-sm); background:none; font-size:24px; line-height:1; cursor:pointer; padding:0;
  font-family:'Apple Color Emoji','Segoe UI Emoji','Noto Color Emoji',sans-serif; transition:background .1s, transform .1s; }
.mss-emo-e:hover, .mss-emo-e:focus-visible { background:var(--olive-faint); transform:scale(1.12); outline:none; }
.mss-emo-e:focus-visible { box-shadow:0 0 0 2px var(--olive-light); }
.mss-emo-e:active { transform:scale(.94); }
.mss-emo-wait { padding:36px 12px; text-align:center; color:var(--text-3); font-size:13px; }
.mss-emo-foot { display:flex; align-items:center; gap:10px; padding:8px 14px; border-top:0.5px solid var(--border-2); background:var(--bg-3); min-height:46px; }
.mss-emo-big { font-size:24px; line-height:1; font-family:'Apple Color Emoji','Segoe UI Emoji','Noto Color Emoji',sans-serif; }
.mss-emo-name { font-size:12.5px; color:var(--text-2); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.mss-emo-added { margin-left:auto; font-size:12px; font-weight:600; color:var(--olive-light); white-space:nowrap; }
@media(prefers-reduced-motion:reduce) { .mss-emo-quick.open { animation:none; } .mss-emo, .mss-emo-ov, .mss-emo-e, .mss-emo-q, .mss-emo-trigger { transition:none; } .mss-emo-e:hover, .mss-emo-q:hover { transform:none; } }

/* Create Card: TMDB didn't answer → say so, with Try again (create-card.js) */
.cc-retry { display:flex; flex-direction:column; align-items:center; gap:10px; }
.cc-retry[hidden] { display:none; }
.cc-retry span { font-size:12.5px; color:var(--text-3); line-height:1.45; max-width:340px; }

/* ═════════════════════════════════════════════════════════════
   Error screens (mssErrorPage, config.js) — the retro TV from offline.html,
   with its own screen per error: static · colour bars · padlock · test card · cracked
   ═════════════════════════════════════════════════════════════ */
.has-mss-err > :not(.mss-err) { display:none !important; }
.mss-err {
  container-type:inline-size;
  --etv:#1B1B21; --etv-edge:#2A2A32; --etv-ant:#55555F; --etv-screen:#050507; --etv-red:#E5675F;
  display:flex; align-items:center; max-width:1120px; margin:0 auto; padding:clamp(8px, 3vw, 40px) 0 24px;
  min-height:calc(100dvh - var(--page-pt, 140px) - 120px);
}
.mss-err-grid { width:100%; display:grid; grid-template-columns:1fr; justify-items:center; align-items:center; gap:clamp(28px, 5vw, 72px); }
[data-theme="light"] .mss-err { --etv:#2B2A28; --etv-edge:#3A3936; --etv-ant:#3A3936; --etv-screen:#0B0B0D; --etv-red:#B3372F; }
@container (min-width:860px) { .mss-err-grid { grid-template-columns:minmax(0, 1.05fr) minmax(0, 1fr); justify-items:stretch; } }
.mss-err.is-inline { min-height:0; padding:24px 0; }
.mss-err.is-inline .mss-err-grid { gap:28px; }
.mss-err.is-inline .mss-err-tv { max-width:380px; }
.mss-err.is-inline .mss-err-title { font-size:clamp(24px, 4.5vw, 36px); }

.mss-err-tv { position:relative; width:100%; max-width:470px; justify-self:center; padding-top:13%; }
.mss-err-ant { position:absolute; left:50%; top:0; width:44%; height:15%; transform:translateX(-50%); overflow:visible; color:var(--etv-ant); }
.mss-err-ant g { transform-origin:50% 100%; animation:mssErrWobble 5s ease-in-out infinite; }
.mss-err-body {
  position:relative; border-radius:28px; padding:5.5%;
  background:linear-gradient(160deg, var(--etv-edge), var(--etv) 55%); border:1px solid rgba(255,255,255,.1);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08), inset 0 -10px 24px rgba(0,0,0,.35);
}
.mss-err-screen {
  position:relative; aspect-ratio:16/10; border-radius:16px; overflow:hidden; background:var(--etv-screen);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.05), inset 0 0 50px rgba(0,0,0,.9); container-type:inline-size;
}
.mss-err-bars { position:absolute; inset:0; display:flex; flex-direction:column; opacity:.55; }
.mss-err-bars > div { display:flex; flex:1; }
.mss-err-bars > div:first-child { flex:6.5; } .mss-err-bars > div:last-child { flex:2.5; }
.mss-err-bars span { flex:1; }
.mss-err-screen.is-bars .mss-err-bars { opacity:.92; }
.mss-err-noise { position:absolute; inset:0; width:100%; height:100%; opacity:.32; mix-blend-mode:screen; image-rendering:pixelated; }
.mss-err-screen.is-cracked .mss-err-noise { opacity:.45; }
.mss-err-crack { position:absolute; inset:0; width:100%; height:100%; opacity:.85; filter:drop-shadow(0 0 2px rgba(255,255,255,.6)); }
.mss-err-lockbg { position:absolute; inset:0; background:radial-gradient(ellipse at 50% 45%, #3B2347, #160D1C 70%); }
.mss-err-lockbg::after { content:''; position:absolute; inset:0; background:repeating-linear-gradient(135deg, rgba(255,255,255,.035) 0 10px, transparent 10px 20px); }
.mss-err-card { position:absolute; inset:0; background:linear-gradient(rgba(255,255,255,.16) 1px, transparent 1px) 0 0 / 10% 12.5%,
  linear-gradient(90deg, rgba(255,255,255,.16) 1px, transparent 1px) 0 0 / 10% 12.5%, #363D38; }
.mss-err-card span { position:absolute; left:50%; top:50%; width:62%; aspect-ratio:1; transform:translate(-50%, -50%); border-radius:50%;
  border:3px solid rgba(255,255,255,.75);
  background:linear-gradient(180deg, #C6C3B6 0 22%, transparent 22% 78%, #111 78%),
    linear-gradient(90deg, #C9A34A 0 14.3%, #3E8C8C 14.3% 28.6%, #4F8A3F 28.6% 42.9%, #8A4A8C 42.9% 57.1%, var(--error-bg) 57.1% 71.4%, #3D5BA8 71.4% 85.7%, #EDEDED 85.7%); }
.mss-err-lines { position:absolute; inset:0; background:repeating-linear-gradient(0deg, rgba(0,0,0,.28) 0 1px, transparent 1px 3px); }
.mss-err-screen::after { content:''; position:absolute; left:0; right:0; height:22%; top:-22%; background:linear-gradient(180deg, transparent, rgba(255,255,255,.07), transparent); animation:mssErrScan 4.5s linear infinite; }
.mss-err-vig { position:absolute; inset:0; background:radial-gradient(ellipse at center, transparent 45%, rgba(0,0,0,.65) 100%); }
.mss-err-plate {
  position:absolute; left:50%; top:50%; transform:translate(-50%, -50%); z-index:1;
  display:flex; align-items:center; gap:.4em; max-width:92%;
  font-family:var(--bebas); font-size:clamp(12px, min(8cqi, 120cqi / var(--n, 10)), 38px); letter-spacing:.09em; line-height:1; white-space:nowrap;
  color:#fff; background:rgba(0,0,0,.72); padding:.38em .7em .3em; border-radius:6px; border:1px solid rgba(255,255,255,.18);
  animation:mssErrFlicker 3.2s steps(1) infinite;
}
.mss-err-plate svg { width:.85em; height:.85em; flex-shrink:0; margin-top:-.08em; }
.mss-err-screen.is-card .mss-err-plate, .mss-err-screen.is-bars .mss-err-plate { animation:none; }
.mss-err-foot { display:flex; align-items:center; justify-content:space-between; margin-top:4.2%; padding:0 2%; }
.mss-err-grille { display:flex; gap:5px; } .mss-err-grille i { width:22px; height:3px; border-radius:2px; background:rgba(255,255,255,.12); }
.mss-err-knobs { display:flex; gap:10px; align-items:center; }
.mss-err-knobs i { width:14px; height:14px; border-radius:50%; background:#343E37; box-shadow:inset 0 -2px 3px rgba(0,0,0,.4); }
.mss-err-knobs .mss-err-led { width:7px; height:7px; background:var(--etv-red); box-shadow:0 0 8px var(--etv-red); }
.mss-err-legs { display:flex; justify-content:space-between; padding:0 18%; }
.mss-err-legs i { width:8%; height:16px; background:var(--etv); border-radius:0 0 6px 6px; }
.mss-err-legs i:first-child { transform:skewX(14deg); } .mss-err-legs i:last-child { transform:skewX(-14deg); }

.mss-err-copy { width:100%; max-width:480px; justify-self:center; }
.mss-err-eyebrow { font-size:11.5px; font-weight:600; letter-spacing:2px; text-transform:uppercase; color:var(--olive-light); margin-bottom:12px; }
.mss-err[data-kind="crash"] .mss-err-eyebrow, .mss-err[data-kind="server"] .mss-err-eyebrow, .mss-err[data-kind="tmdb"] .mss-err-eyebrow { color:var(--etv-red); }
.mss-err-title { font-family:var(--serif); font-weight:600; font-size:clamp(30px, 6vw, 50px); line-height:1.05; letter-spacing:-.2px; margin-bottom:14px; color:var(--text-heading); outline:none; }
.mss-err-text { font-size:15px; line-height:1.65; color:var(--text-2); margin-bottom:24px; }
.mss-err-acts { display:flex; flex-wrap:wrap; gap:12px; }
.mss-err-btn {
  display:inline-flex; align-items:center; justify-content:center; gap:9px; min-height:46px; padding:0 22px; border-radius:999px;
  font:600 14px/1 var(--sans); text-decoration:none; cursor:pointer; border:1px solid transparent;
  background:var(--action-primary-bg); color:var(--text-on-primary); 
  transition:transform .15s, filter .2s, border-color .2s, background .2s;
}
.mss-err-btn:hover { filter:brightness(1.08); transform:translateY(-1px); }
.mss-err-btn:active { transform:scale(.97); }
.mss-err-btn.is-ghost { background:var(--card); color:var(--text); border-color:var(--border); box-shadow:none; }
.mss-err-btn.is-ghost:hover { border-color:var(--border-olive); filter:none; }
.mss-err-btn:focus-visible { outline:2px solid var(--olive-light); outline-offset:3px; }
.mss-err-auto { display:flex; align-items:center; gap:10px; margin-top:18px; font-size:13px; color:var(--text-3); }
.mss-err-ring { width:22px; height:22px; flex-shrink:0; transform:rotate(-90deg); }
.mss-err-ring circle { fill:none; stroke-width:3; stroke:var(--border); }
.mss-err-ring .v { stroke:var(--olive-light); stroke-linecap:round; stroke-dasharray:56.55; transition:stroke-dashoffset .25s linear; }
.mss-err-code { margin-top:18px; font:500 11.5px/1 ui-monospace, SFMono-Regular, Menlo, monospace; color:var(--text-3); letter-spacing:.4px; }

@keyframes mssErrScan { to { top:100%; } }
@keyframes mssErrWobble { 0%,100% { transform:rotate(-2deg); } 50% { transform:rotate(2deg); } }
@keyframes mssErrFlicker { 0%,47%,49%,84%,100% { opacity:1; } 48% { opacity:.55; } 83% { opacity:.8; } }
@media (prefers-reduced-motion:reduce) { .mss-err *, .mss-err *::before, .mss-err *::after { animation:none !important; } }
@container (max-width:859px) { .mss-err-grid { gap:28px; } .mss-err-tv { max-width:400px; } }
@media (max-width:899px) { .mss-err { min-height:0; } }
@media (max-width:420px) {
  .mss-err-acts .mss-err-btn { flex:1 1 100%; }
  .mss-err-body { border-radius:20px; } .mss-err-screen { border-radius:11px; } .mss-err-grille i { width:14px; }
}


/* ═════════════════════════════════════════════════════════════
   Screensaver (js/screensaver.js) — the bouncing-logo Easter egg.
   The logo is one solid colour (its PNG is the mask), easing to the next
   colour at each bounce, with a soft glow in the same colour.
   ═════════════════════════════════════════════════════════════ */
.mss-ss { position:fixed; inset:0; z-index:3000; overflow:hidden; pointer-events:none; opacity:0; transition:opacity .6s ease;
  background:rgba(4,4,8,.42); touch-action:none; }
html[data-theme="light"] .mss-ss { background:rgba(30,42,34,.36); }
.mss-ss.on { opacity:1; pointer-events:auto; cursor:none; }
.mss-ss.out { transition-duration:.25s; }
.mss-ss-logo { position:absolute; left:0; top:0; width:clamp(110px, 20vw, 230px); aspect-ratio:507 / 320; will-change:transform;
  background:var(--ss-c, var(--p-forest-300)); transition:background-color .45s ease;
  -webkit-mask:url(../icons/logo-nav.png) center / contain no-repeat; mask:url(../icons/logo-nav.png) center / contain no-repeat;
  filter:drop-shadow(0 0 18px color-mix(in srgb, var(--ss-c, var(--p-forest-300)) 55%, transparent)); }
/* "Your folio is resting" — its own little floating card, so it never reads as page text */
.mss-ss-hint { position:absolute; left:50%; bottom:calc(34px + env(safe-area-inset-bottom)); transform:translateX(-50%); z-index:2;
  display:flex; align-items:center; gap:12px; padding:12px 18px 12px 12px; border-radius:16px; white-space:nowrap; color:#fff;
  background:rgba(12,12,16,.78); -webkit-backdrop-filter:blur(14px) saturate(1.3); backdrop-filter:blur(14px) saturate(1.3);
  border:1px solid rgba(255,255,255,.14);  opacity:0; }
.mss-ss.on .mss-ss-hint { animation:mssSsHintIn .6s ease 1.2s forwards; }
.mss-ss-hint-ic { width:36px; height:36px; border-radius:11px; display:grid; place-items:center; flex-shrink:0;
  background:color-mix(in srgb, var(--ss-c, var(--p-forest-300)) 26%, transparent); color:var(--ss-c, var(--p-forest-300)); transition:background .45s, color .45s; }
.mss-ss-hint-ic svg { width:19px; height:19px; animation:mssSsNod 3.2s ease-in-out infinite; }
.mss-ss-hint-tx { display:flex; flex-direction:column; gap:2px; text-align:start; }
.mss-ss-hint-tx b { font-family:var(--serif); font-weight:500; font-size:16px; letter-spacing:.5px; }
.mss-ss-hint-tx small { font-size:12px; font-weight:600; color:rgba(255,255,255,.62); }
.mss-ss-burst { position:absolute; width:0; height:0; pointer-events:none; }
.mss-ss-burst i { position:absolute; width:7px; height:7px; margin:-3.5px; border-radius:50%; background:var(--ss-c, var(--p-forest-300)); transform:rotate(var(--a)); animation:mssSsBurst .9s ease-out forwards; }
/* toasts (the corner!) show above it, clear of the hint */
body.mss-ss-running .toast { z-index:3100; bottom:calc(112px + env(safe-area-inset-bottom)); }
@media (max-width:1199px) { /* clear of the phone / tablet bottom bar */
  .mss-ss-hint { bottom:calc(118px + env(safe-area-inset-bottom)); }
  body.mss-ss-running .toast { bottom:calc(196px + env(safe-area-inset-bottom)); }
}
@keyframes mssSsHintIn { from { opacity:0; transform:translate(-50%, 10px); } to { opacity:1; transform:translate(-50%, 0); } }
@keyframes mssSsNod { 0%,100% { transform:rotate(-8deg); } 50% { transform:rotate(8deg); } }
@keyframes mssSsBurst { from { opacity:1; transform:rotate(var(--a)) translateY(0); } to { opacity:0; transform:rotate(var(--a)) translateY(var(--d)); } }

/* ═════════════════════════════════════════════════════════════
   Touch screens — every control can be tapped comfortably:
   at least 44×44px (Apple's and Google's guideline).
   • Pills, toggles and small buttons share one height: 40px.
   • Icons and text links keep their look; an invisible ::after
     around them widens what your finger can hit to 44×44.
   ═════════════════════════════════════════════════════════════ */
@media (pointer: coarse) {
  :is(.genre-opt, .pn-toggle-btn, .td-notes-sort-btn, .mss-vis-opt, .prof-edit-btn, .prof-share-btn, .td-refresh,
      .sel-dd-trigger, .btn-add-entry, .fm-btn, .td-trailer-link) { min-height:40px; }
  :is(.ntop-btn, .nav-top-user .nav-user-avatar) { width:44px; height:44px; }   /* the top bar's buttons */
  .mss-theme-opt { min-height:40px; }                                                       /* light / dark */
  :is(.vt-btn, .chevron-btn) { width:36px; height:36px; }                                  /* list / grid, open / close */
  .sf-icon-btn { min-width:36px; min-height:36px; }                                        /* sort / filter */
  /* :where = no weight, so anything already placed absolutely (a popup's ✕…) stays where it is */
  :where(.ep-btn, .sf-icon-btn, .vt-btn, .chevron-btn, .fm-icon-btn, .mss-rt-btn,
      .qp-trigger, .input-clear-btn, .push-switch, .dp-close, .sf-close,
      .genre-opt, .pn-toggle-btn, .td-notes-sort-btn, .mss-vis-opt, .prof-edit-btn, .prof-share-btn, .td-refresh, .sel-dd-trigger,
      .btn-add-entry, .fm-btn, .td-trailer-link, .disc-see-all, .push-link, .settings-back-link, .td-ep-graph-link,
      .xp-all, .cc-strip, .sec-left, .td-in-lib-go, .export-btn,
      .apage, .fr-tab, .fl-count, .fl-req-chip, .mh-more, .dz-see, .df-btn, .dx-add) { position:relative; }
  :is(.ep-btn, .sf-icon-btn, .vt-btn, .chevron-btn, .fm-icon-btn, .mss-rt-btn,
      .qp-trigger, .input-clear-btn, .push-switch, .dp-close, .sf-close,
      .genre-opt, .pn-toggle-btn, .td-notes-sort-btn, .mss-vis-opt, .prof-edit-btn, .prof-share-btn, .td-refresh, .sel-dd-trigger,
      .btn-add-entry, .fm-btn, .td-trailer-link, .disc-see-all, .push-link, .settings-back-link, .td-ep-graph-link,
      .xp-all, .cc-strip, .sec-left, .td-in-lib-go, .export-btn,
      .apage, .fr-tab, .fl-count, .fl-req-chip, .mh-more, .dz-see, .df-btn, .dx-add,
      .fm-pin, .back-to-top)::after {
    content:''; position:absolute; inset:min(0px, calc((100% - 44px) / 2)); border-radius:inherit;
  }
  .df-dot { position:relative; }
  .df-dot::after { content:''; position:absolute; inset:-18px -3px; }   /* the Discover slider's dots: tall, but never over the next dot */
}

/* Posters that used to float on a shadow sit on a hairline border instead */
:is( .fv-rank-poster, .nc-poster, .td-poster, .fa-poster) { border:0.5px solid var(--border-2); }

/* ── Title page: guests who tapped a poster on the sign-in page (login.html → title.html?from=wall) ── */
.td-wall-nudge { display:flex; align-items:center; gap:12px; margin-bottom:12px; padding:12px 12px 12px 14px; max-width:520px;
  border-radius:var(--radius); background:var(--olive-faint); border:1px solid var(--border-olive); }
.td-wall-nudge-ic { width:36px; height:36px; flex-shrink:0; border-radius:50%; display:grid; place-items:center; color:var(--olive-light); border:1px solid var(--border-olive); }
.td-wall-nudge-tx { flex:1; min-width:0; display:flex; flex-direction:column; gap:2px; font-size:14px; }
.td-wall-nudge-tx small { font-size:12.5px; color:var(--text-2); }
.td-wall-nudge .btn-save { flex-shrink:0; text-decoration:none; white-space:nowrap; }
@media (max-width:520px) {
  .td-wall-nudge { flex-wrap:wrap; }
  .td-wall-nudge .btn-save { width:100%; justify-content:center; text-align:center; }
}

/* ── Password guide (MSSPass in config.js): sign-up, reset password and Settings ── */
.mss-pw { display:flex; flex-direction:column; gap:7px; }
.mss-pw-meter { display:grid; grid-template-columns:repeat(4, 1fr); gap:5px; }
.mss-pw-meter i { height:4px; border-radius:2px; background:var(--border-2); transition:background .25s; }
.mss-pw-meter[data-s="1"] i:nth-child(-n+1) { background:var(--error-bg); }
.mss-pw-meter[data-s="2"] i:nth-child(-n+2) { background:#E2B53E; }
.mss-pw-meter[data-s="3"] i:nth-child(-n+3), .mss-pw-meter[data-s="4"] i { background:var(--olive-light); }
.mss-pw-row { display:flex; justify-content:space-between; gap:10px; font-size:12px; line-height:1.4; color:var(--text-3); }
.mss-pw-word { font-weight:700; }
.mss-pw[data-s="1"] .mss-pw-word { color:var(--error-fg); }
.mss-pw[data-s="2"] .mss-pw-word { color:#B8862A; }
.mss-pw[data-s="3"] .mss-pw-word, .mss-pw[data-s="4"] .mss-pw-word { color:var(--olive-light); }
.mss-pw-count { font-variant-numeric:tabular-nums; }
.mss-pw-rules { list-style:none; margin:2px 0 0; padding:10px 12px; display:grid; gap:6px; border-radius:10px; background:var(--bg-2); border:0.5px solid var(--border); }
.mss-pw-rules li { display:flex; align-items:center; gap:8px; font-size:12.5px; color:var(--text-2); line-height:1.35; transition:color .2s; }
.mss-pw-rules li i { width:16px; height:16px; flex-shrink:0; border-radius:50%; border:1.5px solid var(--border-2); display:grid; place-items:center; transition:all .2s; }
.mss-pw-rules li.ok { color:var(--text); }
.mss-pw-rules li.ok i { border-color:var(--olive-light); background:var(--olive-light); }
.mss-pw-rules li.ok i::after { content:''; width:7px; height:4px; border:solid var(--card-solid); border-width:0 0 2px 2px; transform:translateY(-1px) rotate(-45deg); }
.mss-pw-rules li.warn { color:var(--error-fg); }
.mss-pw-rules li.warn i { border-color:var(--error-fg); }
.mss-pw-rules em { font-style:normal; font-size:10.5px; font-weight:700; letter-spacing:.4px; text-transform:uppercase; color:var(--text-2); margin-inline-start:auto; }
.mss-pw-rules li.ok em { color:var(--olive-light); }
.mss-pw-rules li[data-r="name"] { display:none; }
.mss-pw-rules li[data-r="name"].warn { display:flex; }
/* one-line version (sign-up): a bar + the next thing to add */
.mss-pw.is-compact { flex-direction:row; align-items:center; gap:10px; }
.mss-pw-bar { flex:none; width:64px; height:5px; border-radius:3px; background:var(--border-2); overflow:hidden; }
.mss-pw-bar i { display:block; height:100%; width:0; background:var(--text-3); transition:width .25s, background .25s; }
.mss-pw[data-s="1"] .mss-pw-bar i { width:25%; background:var(--danger); }
.mss-pw[data-s="2"] .mss-pw-bar i { width:50%; background:var(--text-2); }
.mss-pw[data-s="3"] .mss-pw-bar i { width:75%; background:var(--olive-light); }
.mss-pw[data-s="4"] .mss-pw-bar i { width:100%; background:var(--olive-light); }
.mss-pw-line { min-width:0; font-size:12.5px; line-height:1.35; color:var(--text-2); }
.mss-pw.is-compact[data-s="1"] .mss-pw-line { color:var(--danger); }

/* ══ Empty states (mssEmpty / mssArt in config.js): a little illustration, a friendly line, what to do next ══ */
:root { --ill-line:#9A9AA2; --ill-fill:rgba(255,255,255,.04); --ill-ground:rgba(126,184,108,.10); }
[data-theme="light"] { --ill-line:#6E6A62; --ill-fill:rgba(0,0,0,.035); --ill-ground:rgba(30,92,38,.09); }
.mss-es { display:flex; flex-direction:column; align-items:center; text-align:center; padding:2.4rem 1.25rem 2.6rem; max-width:420px; margin:0 auto; }
.mss-es-art { width:176px; height:132px; margin:0 auto 16px; color:var(--ill-line); flex-shrink:0; }
.mss-es-art svg { width:100%; height:100%; overflow:visible; display:block; }
.mss-es-title { font-family:var(--serif); font-weight:600; font-size:21px; line-height:1.2; letter-spacing:.2px; color:var(--text-heading); }
.mss-es-text { margin-top:7px; font-size:14px; line-height:1.55; color:var(--text-2); max-width:36ch; }
.mss-es-text a { color:var(--olive-light); font-weight:600; }
.mss-es-acts { display:flex; flex-wrap:wrap; justify-content:center; gap:8px; margin-top:18px; }
.mss-es-btn { display:inline-flex; align-items:center; gap:7px; min-height:42px; padding:0 16px; border-radius:11px; font:700 13.5px 'Manrope',var(--sans); cursor:pointer; text-decoration:none;
  border:1px solid var(--border-2); background:var(--card-solid); color:var(--text); transition:border-color .2s, background .2s; }
.mss-es-btn:hover { border-color:var(--olive-light); }
.mss-es-btn.primary { background:var(--action-primary-bg); border-color:var(--action-primary-bg); color:var(--text-on-primary); }
.mss-es-btn.primary:hover { background:var(--action-primary-hover); }
.mss-es-btn svg { width:15px; height:15px; flex-shrink:0; }
.mss-es.compact { padding:1.4rem 1rem 1.6rem; }
.mss-es-guest { max-width:520px; padding-top:2.8rem; }
.mss-es-guest .mss-es-title { font-size:26px; }
.mss-es-guest .mss-es-text { max-width:44ch; }
.mss-es-perks { display:grid; gap:9px; width:100%; max-width:400px; margin:18px 0 0; padding:14px 16px; list-style:none; text-align:left; font-size:13.5px; line-height:1.4; color:var(--text-2); border:1px solid var(--border); border-radius:14px; }
.mss-es-perks li { display:flex; gap:9px; align-items:flex-start; }
.mss-es-perks svg { flex-shrink:0; width:15px; height:15px; margin-top:2px; color:var(--olive-light); }
.mss-es-guest .mss-es-acts { width:100%; max-width:400px; }
.mss-es-guest .mss-es-btn { flex:1 1 140px; justify-content:center; min-height:46px; }
.mss-es-link { margin-top:14px; padding:6px; font-size:13.5px; font-weight:600; color:var(--olive-light); text-decoration:none; }
.mss-es-link:hover { text-decoration:underline; text-underline-offset:3px; }
.mss-es.compact .mss-es-art { width:136px; height:102px; margin-bottom:10px; }
.mss-es.compact .mss-es-title { font-size:17.5px; }
.mss-es.compact .mss-es-text { font-size:13px; }
/* starter titles (an empty Watchlist only) */
.mss-es-start { width:100%; max-width:380px; margin-top:22px; padding-top:16px; border-top:1px dashed var(--border-2); }
.mss-es-start[hidden] { display:none; }
.mss-es-start-h { font-size:11px; font-weight:700; letter-spacing:1.4px; text-transform:uppercase; color:var(--text-3); margin-bottom:10px; }
.mss-es-start-row { display:grid; grid-template-columns:repeat(4, minmax(0, 1fr)); gap:10px; }
.mss-es-start-item { position:relative; display:flex; flex-direction:column; gap:5px; min-width:0; }
.mss-es-start-poster { display:block; aspect-ratio:2/3; border-radius:8px; overflow:hidden; border:1px solid var(--border-2); background:var(--bg-3); }
.mss-es-start-poster img { width:100%; height:100%; object-fit:cover; display:block; }
.mss-es-start-poster:hover { border-color:var(--olive-light); }
.mss-es-start-pic { position:relative; }
.mss-es-start-add { position:absolute; bottom:5px; right:5px; width:28px; height:28px; border-radius:50%; display:grid; place-items:center; cursor:pointer;
  background:var(--action-primary-bg); color:var(--text-on-primary); border:2px solid var(--card-solid); }
.mss-es-start-add:hover { background:var(--action-primary-hover); }
.mss-es-start-name { font-size:11.5px; font-weight:600; color:var(--text-2); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
/* one gentle motion per picture */
.i-line { fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.i-acc  { fill:none; stroke:var(--olive-light); stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.i-gold { fill:none; stroke:var(--gold-accent); stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.i-silver { fill:none; stroke:#B0AEA6; stroke-width:2; }
.i-bronze { fill:none; stroke:#B87A4B; stroke-width:2; }
.i-fill { fill:var(--ill-fill); }
.i-ground { fill:var(--ill-ground); }
.i-dot { fill:var(--olive-light); }
.i-soft { fill:var(--olive-faint); }
@keyframes mssEsBob { 50% { transform:translateY(-3px); } }
@keyframes mssEsBlink { 0%,92%,100% { opacity:1; } 95% { opacity:.15; } }
@keyframes mssEsZz { 0% { opacity:0; transform:translate(0,0); } 30% { opacity:1; } 100% { opacity:0; transform:translate(8px,-12px); } }
.mss-es-art .bob { animation:mssEsBob 3.6s ease-in-out infinite; transform-box:fill-box; }
.mss-es-art .blink { animation:mssEsBlink 4s infinite; }
.mss-es-art .zz { animation:mssEsZz 2.6s ease-out infinite; transform-box:fill-box; }
.mss-es-art .zz.d2 { animation-delay:1.3s; }
@media (prefers-reduced-motion:reduce) { .mss-es-art .bob, .mss-es-art .blink, .mss-es-art .zz { animation:none; } }
/* Polls' four tabs (Friends · Community · Yours · Completed) on the narrowest phones */
@media (max-width:360px) { .soc-toggle .pn-toggle-btn { padding-inline:4px; font-size:12px; } }

/* ── Section headers (Currently Watching · Watchlist · To Be Continued · Watched · Dropped) ──
   on the category pages and the Library: a bigger icon, name and count — they read too small,
   on phones above all. (Overrides the older per-width sizes above.) */
.section-block-title { font-size:16px; gap:9px; }
.section-block-title svg { width:18px; height:18px; flex-shrink:0; }
.section-pill { font-size:15px; padding:2px 10px; border-radius:7px; line-height:1.3; }
.sec-left { gap:10px; }
@media (max-width:640px) {
  .section-block-title { font-size:15px; gap:7px; white-space:nowrap; }
  .section-block-title svg { width:17px; height:17px; }
  .section-pill { font-size:14px; padding:2px 8px; flex-shrink:0; }
  .section-block-header { padding:12px 10px; }
  .sec-left { gap:8px; }
}
@media (max-width:385px) {
  .section-block-title { font-size:14px; gap:6px; white-space:normal; }
  .section-block-title svg { width:16px; height:16px; }
  .section-pill { font-size:13px; padding:1px 7px; flex-shrink:0; }
}
/* Library: the marker where more cards get drawn as you scroll (library-view.js _libCards) */
.lib-more { flex:0 0 1px; width:1px; height:1px; min-height:1px; pointer-events:none; }
/* ── Challenges: "You finished" the same size as Details; Delete red and as tall as Edit ── */
.chf-foot .chf-done, .chf-foot .chf-info { box-sizing:border-box; min-height:38px; padding:7px 14px; font-size:13px; line-height:1.2; }
.chf-foot .chf-done { font-weight:600; }
.ch-head .rec-icon-x { width:32px; height:32px; min-height:32px; }
/* ── Movie Night: the head on phones — date · name, the status chip over ⋯ on the right ── */
@media (max-width:640px) {
  .mn-head { display:grid; grid-template-columns:auto minmax(0, 1fr) auto; column-gap:12px; row-gap:8px; align-items:start; }
  .mn-head .mn-date { grid-row:1 / 3; }
  .mn-head .mn-head-info { grid-row:1 / 3; min-width:0; }
  .mn-head .mn-status { grid-column:3; justify-self:end; }
  .mn-head .mn-more { grid-column:3; grid-row:2; justify-self:end; }
}
.mn-vote-mode { width:100%; margin-bottom:10px; }
.mn-chosen { display:flex; align-items:center; gap:12px; padding:10px 12px; border:0.5px solid var(--border-olive); border-radius:var(--radius-sm); background:var(--olive-faint); }
.mn-chosen .poll-opt-text { flex:1; min-width:0; }
/* Detail page genre buttons on phones: taller for tapping, so centre the text in them */
@media (pointer: coarse) { .genre-picker .genre-opt { display:inline-flex; align-items:center; justify-content:center; box-sizing:border-box; line-height:1.2; } }

/* ═════════════════════════════════════════════════════════════
   Followers · Following · Friends (follows.js, 083)
   ═════════════════════════════════════════════════════════════ */
.fl-counts { display:flex; justify-content:center; gap:clamp(6px, 2vw, 10px); margin:2px 0 12px; flex-wrap:wrap; }
.fl-count { display:inline-flex; align-items:baseline; gap:6px; padding:6px 12px; border-radius:var(--radius-sm); border:0.5px solid transparent;
  background:none; color:var(--text-2); font:inherit; font-size:13px; cursor:default; }
a.fl-count, button.fl-count { cursor:pointer; text-decoration:none; }
a.fl-count:hover, button.fl-count:hover { background:var(--olive-faint); border-color:var(--border-olive); }
a.fl-count:focus-visible, button.fl-count:focus-visible { outline:2px solid var(--olive-light); outline-offset:2px; }
.fl-count b { font-family:var(--bebas); font-weight:400; font-size:20px; letter-spacing:.3px; color:var(--text); }
.fl-req-chip { display:flex; align-items:center; gap:7px; margin:0 auto 12px; padding:7px 14px; border-radius:var(--radius-sm); cursor:pointer;
  background:var(--olive); color:var(--text-on-brand); border:0.5px solid var(--olive); font:inherit; font-size:12.5px; font-weight:600; }
.fl-req-chip:hover { background:var(--olive-2); }
/* the popup */
.fl-tabs { display:flex; gap:2px; padding:3px; margin-bottom:14px; border-radius:var(--radius-sm); background:var(--bg-3); border:1px solid var(--border); overflow-x:auto; scrollbar-width:none; }
.fl-tabs::-webkit-scrollbar { display:none; }
.fl-tab { flex:1; display:inline-flex; align-items:center; justify-content:center; gap:6px; min-height:38px; padding:6px 12px; border-radius:var(--radius-sm);
  border:1px solid transparent; background:none; color:var(--text-2); font:inherit; font-size:13px; font-weight:600; cursor:pointer; white-space:nowrap; }
.fl-tab.active { background:var(--panel); border-color:var(--border-2); color:var(--text); }
.fl-tab .fr-tab-dot { min-width:18px; height:18px; padding:0 5px; box-sizing:border-box; border-radius:999px; background:var(--error-solid); color:#fff; font-size:10px; font-weight:700; line-height:18px; text-align:center; }
.fl-body { min-height:200px; }
.fl-list { display:flex; flex-direction:column; gap:2px; }
.fl-row { display:flex; align-items:center; gap:10px; padding:8px 4px; border-bottom:0.5px solid var(--border); }
.fl-row:last-child { border-bottom:0; }
.fl-who { flex:1; min-width:0; display:flex; align-items:center; gap:12px; background:none; border:0; padding:0; text-align:start; color:inherit; font:inherit; cursor:pointer; }
.fl-who > span:last-child { display:flex; flex-direction:column; min-width:0; }
.fl-who b { font-size:14px; color:var(--text); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.fl-who small { display:flex; align-items:center; gap:5px; font-size:12px; color:var(--text-3); }
.fl-who small svg { width:11px; height:11px; }
.fl-who em { font-style:normal; font-size:10.5px; font-weight:600; padding:1px 6px; border-radius:4px; background:var(--bg-3); color:var(--text-2); }
.fl-who:hover b { color:var(--olive-light); }
.fl-acts { display:flex; align-items:center; gap:6px; flex-shrink:0; }
.fl-btn { display:inline-flex; align-items:center; justify-content:center; gap:5px; min-height:34px; min-width:92px; padding:0 12px; border-radius:var(--radius-sm);
  font:inherit; font-size:12.5px; font-weight:600; cursor:pointer; white-space:nowrap; transition:background .15s, border-color .15s; }
.fl-btn svg { width:13px; height:13px; }
.fl-btn.add { background:var(--action-primary-bg); color:var(--text-on-primary); border:0.5px solid var(--action-primary-bg); }
.fl-btn.add:hover { background:var(--action-primary-hover); }
.fl-btn.on { background:var(--olive-faint); color:var(--olive-light); border:0.5px solid var(--border-olive); }
.fl-btn.pending { background:transparent; color:var(--text-3); border:0.5px solid var(--border-2); }
.fl-shut { display:inline-flex; align-items:center; justify-content:center; gap:6px; min-height:34px; font:600 12.5px 'Manrope',var(--sans); color:var(--text-muted); }
.fl-shut svg { flex:none; }
.fm-actions .fl-shut { flex:1; }
.fl-btn:disabled { opacity:.6; cursor:default; }
.fl-empty { padding:2.5rem 1rem; text-align:center; color:var(--text-3); font-size:13.5px; }
.fl-more { display:flex; margin:12px auto 4px; }
@media (pointer: coarse) { .fl-btn { min-height:40px; } .fl-tab { min-height:42px; } }
/* Friends page: your counts, requests and people to follow back */
.fr-counts .fl-counts { justify-content:flex-start; margin:0 0 14px; }
.fr-back .fl-list, .fr-req .fl-list { margin-top:6px; }
/* someone else's profile: follow buttons, their request, a private account */
.pv-friend-btn.following { background:var(--olive-faint); color:var(--olive-light); border:0.5px solid var(--border-olive); }
.pv-friend-btn svg { width:13px; height:13px; }
.pv-ask { display:inline-flex; align-items:center; gap:6px; margin-inline-end:6px; font-size:12.5px; color:var(--text-2); }
.pv-ask svg { width:13px; height:13px; color:var(--olive-light); }
.pv-locked { display:flex; flex-direction:column; align-items:center; text-align:center; gap:10px; margin:1.5rem auto 2rem; max-width:440px;
  padding:2rem 1.5rem; border-radius:var(--radius); background:var(--card); border:0.5px solid var(--border-2); }
.pv-locked-ic { display:grid; place-items:center; width:58px; height:58px; border-radius:50%; background:var(--olive-faint); color:var(--olive-light); border:0.5px solid var(--border-olive); }
.pv-locked-ic svg { width:26px; height:26px; }
.pv-locked-title { font-family:'Oswald',var(--sans); font-size:20px; font-weight:600; color:var(--text-heading); }
.pv-locked-text { font-size:13.5px; color:var(--text-2); line-height:1.5; }
/* challenge invites: a follower (not a friend yet) */
.ch-chip-tag { font-size:10px; font-weight:600; color:var(--text-3); margin-inline-start:2px; }
.ns-pick-tag { font-size:10px; font-weight:600; color:var(--text-3); margin-inline-start:4px; }
/* someone else's profile: "Remove @x from your followers" */
.pv-rm-row { flex-basis:100%; display:flex; justify-content:center; margin-top:8px; }
.pv-rm { display:inline-flex; align-items:center; gap:5px; background:none; border:0; padding:4px 6px; font:inherit; font-size:12px; color:var(--text-3); cursor:pointer; border-radius:4px; }
.pv-rm svg { width:12px; height:12px; }
.pv-rm:hover { color:var(--error-fg); }
.pv-rm:focus-visible { outline:2px solid var(--olive-light); outline-offset:2px; }
/* Social → Friends · Following · Followers (friends.html) */
.fr-people-toggle { width:100%; margin:0 0 16px; }
.fr-people-toggle .pn-toggle-btn { flex:1; display:inline-flex; align-items:center; justify-content:center; gap:7px; }
.fr-people-n { font-family:var(--bebas); font-size:16px; font-weight:400; letter-spacing:.3px; opacity:.8; }
.fr-people-head { display:flex; flex-direction:column; align-items:flex-start; gap:2px; margin:0 0 14px; }
.fr-people-head .ns-back { margin-bottom:.4rem; }
.fr-people-title { font-family:'Oswald',var(--sans); font-size:22px; font-weight:500; color:var(--text-2); }
.fr-people-title b { font-weight:600; color:var(--text); }
.fr-people-count { font-size:12.5px; color:var(--text-3); margin:0 0 12px; }
.fr-people-count b { font-family:var(--bebas); font-size:17px; font-weight:400; color:var(--olive-light); letter-spacing:.3px; }
.fm-locked span { display:inline-flex; align-items:center; gap:6px; }
.fm-locked svg { width:13px; height:13px; }
.fm-user svg { width:11px; height:11px; vertical-align:-1px; }
/* The upload rule (mssUploadRuleHTML) — profile photo, your own poster */
.mss-upload-rule { display:flex; align-items:flex-start; gap:7px; margin:10px 0 0; font-size:11.5px; line-height:1.45; color:var(--text-3); text-align:start; }
.mss-upload-rule svg { width:13px; height:13px; flex-shrink:0; margin-top:1px; color:var(--olive-light); }
#avatarRule .mss-upload-rule { margin:1rem 0 0; padding-top:.85rem; border-top:0.5px solid var(--border); }

/* ═════════════════════════════════════════════════════════════
   Report popup (js/report.js · 086_reports.sql) — the confirm card with
   a reason list and an optional note. Sits above every other popup.
   ═════════════════════════════════════════════════════════════ */
.rpt-lead { margin:0 0 14px; }
.rpt-form { width:100%; display:flex; flex-direction:column; gap:12px; text-align:start; }
.rpt-reasons { display:flex; flex-direction:column; gap:6px; }
.rpt-reason { display:flex; align-items:flex-start; gap:10px; padding:12px 14px; border:1px solid var(--border-2); border-radius:12px; cursor:pointer; transition:border-color .15s, background .15s; }
.rpt-reason:hover { border-color:var(--border-olive); }
.rpt-reason:has(input:checked) { border-color:var(--olive-light); background:var(--olive-faint); }
.rpt-reason input { margin:3px 0 0; accent-color:var(--toggle-track-on); flex-shrink:0; width:16px; height:16px; }
.rpt-reason span { display:flex; flex-direction:column; gap:1px; min-width:0; }
.rpt-reason b { font-size:13.5px; font-weight:600; color:var(--text); }
.rpt-reason small { font-size:11.5px; color:var(--text-2); line-height:1.4; }   /* --text-3 is under 4.5:1 on the light popup */
.rpt-details { min-height:80px; padding:10px 14px; resize:vertical; }
.rpt-err { font-size:12px; color:var(--danger); min-height:0; }
.rpt-err:empty { display:none; }
/* the small "Report" links next to things */
.mss-report-link { background:none; border:none; padding:4px 2px; cursor:pointer; display:inline-flex; align-items:center; gap:4px; font:inherit; font-size:12px; color:var(--text-2); }   /* --text-2: --text-3 is under 4.5:1 on a reply card in dark */
.mss-report-link:hover { color:var(--error-fg); }
.mss-report-link:focus-visible { outline:2px solid var(--olive-light); outline-offset:2px; border-radius:4px; }
.lv-import-row .mss-report-link { align-self:center; }
.pv-rm-row + .pv-report-row { margin-top:0; }
.pv-report:hover { color:var(--error-fg); }

/* ═════════════════════════════════════════════════════════════
   Age restrictions (config.js MSSAge · 088) — only on accounts with a limit (html.mss-teen).
   [data-age] titles stay blurred until they're known to be fine; restricted ones
   keep the blur and get a 16+ / 18+ lock; [data-age-hide] ones are left out.
   ═════════════════════════════════════════════════════════════ */
.mss-teen [data-age]:not(.age-ok) { position:relative; cursor:not-allowed; }
.mss-teen [data-age]:not(.age-ok) img,
.mss-teen [data-age]:not(.age-ok) [style*="background-image"] { filter:blur(14px) saturate(.6); transform:scale(1.04); }
.mss-teen [data-age]:not(.age-ok) :is(img, [style*="background-image"]) { transition:filter .2s; }
.mss-teen [data-age].age-locked::after {
  content:attr(data-age-badge); position:absolute; top:6px; inset-inline-start:6px; z-index:3; pointer-events:none;
  display:inline-flex; align-items:center; gap:4px; padding:3px 7px 3px 22px; border-radius:6px;
  background:rgba(20,20,18,.82) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='11' width='18' height='11' rx='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E") no-repeat 7px 50% / 11px 11px;
  color:#fff; font:700 10.5px/1.2 'Manrope', var(--sans); letter-spacing:.4px;
}
.mss-teen [data-age-hide].age-locked { display:none !important; }
@media (prefers-reduced-motion: reduce) { .mss-teen [data-age] :is(img, [style*="background-image"]) { transition:none; transform:none; } }
/* Birth month + year (nav.js _navBirthPopup, login.html sign-up) */
.mss-birth-row { display:flex; gap:8px; width:100%; }
.mss-birth-row > .mss-pick { flex:1 1 0; min-width:0; }
.mss-birth-row > .mss-birth-d { flex-grow:.85; }
.mss-birth-row > .mss-birth-m { flex-grow:1.25; }
.mss-birth-row .mss-pick-trigger { padding:0 8px 0 10px; gap:2px; }
@media(max-width:360px) { .mss-birth-row { gap:6px; } .mss-birth-row .mss-pick-trigger { padding:0 6px 0 8px; } }
.mss-birth-row .mss-pick-opt { text-align:start; }
.mss-date-cal { flex:none; display:grid; place-items:center; width:44px; min-height:44px; padding:0; border:1px solid var(--border-2); border-radius:var(--radius-sm); background:var(--bg-3); color:var(--text-2); cursor:pointer; transition:border-color .15s, color .15s; }
.mss-date-cal:hover { border-color:var(--olive-light); color:var(--olive-light); }
.mss-date-cal:focus-visible { outline:2px solid var(--olive-light); outline-offset:2px; }
/* The date reads as one field: Day · Month · Year · calendar, joined by thin dividers */
.mss-birth-row { gap:0; border:0.5px solid var(--border-2); border-radius:var(--radius-sm); background:var(--bg-3); transition:border-color .15s, box-shadow .15s; }
[data-theme="light"] .mss-birth-row { background:var(--surface-card); }
.mss-birth-row:hover { border-color:var(--border-olive); }
.mss-birth-row:focus-within { border-color:var(--olive-light); box-shadow:0 0 0 3px var(--olive-faint); }
.mss-birth-row > * + * { border-inline-start:0.5px solid var(--border-2); }
.mss-birth-row .mss-pick-trigger, [data-theme="light"] .mss-birth-row .mss-pick-trigger { border:none; border-radius:0; background:transparent; box-shadow:none; }
.mss-birth-row .mss-pick-trigger:focus-visible { background:var(--olive-faint); }
.mss-birth-row .mss-pick-chevron { width:12px; height:12px; opacity:.7; }
.mss-birth-row .mss-date-cal { border:none; border-inline-start:0.5px solid var(--border-2); border-radius:0; background:transparent; }
.mss-birth-row .mss-pick-menu { min-width:150px; }

.notif-mod-note { font-style:italic; color:var(--text-2); }
/* Sign-in alerts (143): what It was me / Not me do, under the question */
.ntf-sub { display:block; margin-top:2px; font-size:.88em; color:var(--text-2); }

/* Discover search: the Filter button beside the results count */
.inline-search-filter { margin-top:10px; }

/* Type to narrow a dropdown (SF.ddSearch) */
.sf-dd-search { position:sticky; top:0; z-index:1; padding:6px; background:var(--bg-2); border-bottom:0.5px solid var(--border); }
.sf-dd-search input { width:100%; min-height:40px; padding:0 12px; box-sizing:border-box; font:inherit; font-size:16px; color:var(--text-body); background:var(--surface-card); border:1px solid var(--border-input); border-radius:var(--radius-sm); outline:none; }
.sf-dd-search input:focus { border-color:var(--text-link); box-shadow:0 0 0 3px var(--selected-bg); }   /* the search box's focus (see .sf-search) */
.td-dd-menu [hidden] { display:none; }

/* ── Rating steppers, score breakdown and final score: the title page and Import ── */
.ratings-section-label { font-family:var(--serif); font-weight:500; font-size:11px; }
.ratings-section-label{
  font-size:10px;letter-spacing:2.5px;text-transform:uppercase;
  color:var(--olive-light);margin-bottom:1rem;margin-top:1.5rem;
  display:flex;align-items:center;gap:10px;
}
.ratings-section-label::after{content:'';flex:1;height:0.5px;background:var(--border)}
.anim-toggle-btn{
  width:100%;padding:8px 12px;margin-top:6px;
  font-size:11px;letter-spacing:0.5px;text-transform:uppercase;
  border:0.5px dashed var(--border-2);border-radius:var(--radius-xs);
  background:transparent;color:var(--text-3);cursor:pointer;
  transition:all .2s;text-align:center;
}
.anim-toggle-btn:hover,.anim-toggle-btn.on{border-style:solid;border-color:var(--border-olive);color:var(--olive-light);}
/* ── The rating form (rate-form.js — the Edit page's Ratings tab, Import's detailed rating; edit page redesign):
   Core / Bonus columns where there's room, a card per group, rows of name · − · 10-segment bar · + · value ── */
.rf-wrap { container:rf / inline-size; }
.rf-cols { display:grid; grid-template-columns:minmax(0, 1fr); gap:24px; align-items:start; }
.rf-col { display:flex; flex-direction:column; gap:14px; min-width:0; }
.rf-col-h { display:flex; flex-wrap:wrap; align-items:baseline; justify-content:space-between; gap:4px 12px; }
.rf-col-t { margin:0; font:600 13px/1.2 var(--serif); letter-spacing:.16em; text-transform:uppercase; color:var(--text-heading); }
.rf-col-n { font:500 12px 'Manrope',var(--sans); color:var(--text-3); }
.rf-card { padding:14px 18px 8px; border-radius:var(--radius); border:1px solid var(--border); background:var(--panel); }
.rf-card.is-folded { padding-bottom:14px; }
.rf-card-h { display:flex; align-items:center; justify-content:space-between; gap:10px; min-height:30px; }
.rf-card-t { margin:0; font:600 12px/1.3 var(--serif); letter-spacing:.14em; text-transform:uppercase; color:var(--olive-light); }
.rf-avg { font:400 28px/1 var(--bebas); color:var(--st, var(--score-mine)); }   /* like the view page's group averages (.tv-group-h b) */
.rf-avg.is-none { color:var(--text-3); }
.rf-fold { display:inline-flex; align-items:center; gap:4px; min-height:32px; padding:0 4px; border:none; background:none; font:600 12px 'Manrope',var(--sans); color:var(--text-3); cursor:pointer; }
.rf-fold svg { transition:transform .15s; }
.rf-fold[aria-expanded="true"] svg { transform:rotate(180deg); }
.rf-fold:hover { color:var(--text); }
.rf-card-h:has(.rf-fold) { position:relative; }
/* the whole box toggles a folded bonus group, not only the "Not rated · n" button */
.rf-fold::after { content:''; position:absolute; inset:-14px -18px; border-radius:var(--radius); }
.rf-fold:focus-visible { outline:2px solid var(--olive-light); outline-offset:2px; border-radius:4px; }
.rf-card-b[hidden] { display:none; }
.rf-rows { display:flex; flex-direction:column; margin-top:6px; }
.rf-grid { display:flex; flex-direction:column; }
/* one rating */
.rf-row { display:grid; grid-template-columns:minmax(9rem, 13rem) auto minmax(0, 1fr) auto 3.2rem; align-items:center; column-gap:8px; min-height:48px;
  margin:0 -10px; padding:4px 10px; border-top:1px solid var(--border); border-radius:var(--radius-sm); }
.rf-rows > .rf-row:first-child { border-top-color:transparent; }
.rf-row:focus-within { background:var(--olive-faint); border-top-color:transparent; }
.rf-row:focus-within + .rf-row { border-top-color:transparent; }
.rf-name { display:flex; align-items:center; gap:6px; min-width:0; }
.rf-label { min-width:0; font:600 13.5px/1.3 'Manrope',var(--sans); color:var(--text); }
.rf-step.ep-step { width:32px; height:30px; }
.rf-bar { position:relative; display:flex; align-items:center; height:34px; cursor:pointer; touch-action:none; outline:none; }
.rf-segs { display:flex; gap:4px; width:100%; border-radius:6px; }
.rf-segs i { flex:1; height:10px; border-radius:5px; background:linear-gradient(90deg, var(--st, var(--score-mine)) calc(var(--f, 0) * 100%), var(--border-2) 0); }
[dir="rtl"] .rf-segs i { background:linear-gradient(270deg, var(--st, var(--score-mine)) calc(var(--f, 0) * 100%), var(--border-2) 0); }
.rf-bar:focus-visible .rf-segs { outline:2px solid var(--olive-light); outline-offset:5px; }
.rf-row.is-empty .rf-segs i { background:var(--border); }
.rf-set { position:absolute; bottom:calc(100% - 2px); left:var(--at, 50%); transform:translateX(-50%); padding:3px 7px; border-radius:6px; background:#121613; color:#fff; font:700 11px 'Manrope',var(--sans); white-space:nowrap; pointer-events:none; }
.rf-set[hidden] { display:none; }
.rf-val { width:100%; min-width:0; padding:0; border:none; background:none; text-align:end; font:400 22px/1 var(--bebas); letter-spacing:.3px; color:var(--st, var(--score-mine)); outline:none; }
.rf-val:focus { color:var(--text); text-decoration:underline; text-decoration-color:var(--border-olive); text-underline-offset:4px; }
.rf-row.is-empty .rf-val { color:var(--text-3); }
.rf-hint { flex-shrink:0; display:grid; place-items:center; width:26px; height:26px; padding:0; border-radius:50%; background:none; border:none; color:var(--text-3); cursor:pointer; }
.rf-hint:hover, .rf-hint[aria-expanded="true"] { color:var(--olive-light); }
.rf-hint:focus-visible { outline:2px solid var(--olive-light); outline-offset:1px; }
.rf-hint svg { width:13px; height:13px; }
/* ×: clear a rating back to "—" (only on rated rows) */
.rf-clear { flex-shrink:0; display:grid; place-items:center; width:26px; height:26px; margin-inline-start:auto; padding:0; border-radius:50%; background:none; border:none; color:var(--text-3); cursor:pointer; }
.rf-clear:hover { color:var(--text); background:var(--olive-faint); }
.rf-clear:focus-visible { outline:2px solid var(--olive-light); outline-offset:1px; }
.rf-clear svg { width:13px; height:13px; }
.rf-row.is-empty .rf-clear { display:none; }
.rf-tip { grid-column:1 / -1; margin:2px 0 8px; font:500 12.5px/1.45 'Manrope',var(--sans); color:var(--text-2); }
.rf-tip[hidden] { display:none; }
@media (hover:hover) { .rf-row:has(.rf-hint:hover) .rf-tip[hidden] { display:block; } }
.rf-sugg { flex-shrink:0; padding:2px 7px; font-size:10px; font-weight:700; letter-spacing:.3px; background:var(--olive-faint); color:var(--text); border:0.5px solid var(--border-olive); }
/* bonus: "+ name" chips for the ones not rated */
.rf-adds { display:flex; flex-wrap:wrap; gap:6px; padding:10px 0 8px; }
.rf-rows + .rf-adds { border-top:1px solid var(--border); margin-top:2px; }
.rf-add { display:inline-flex; align-items:center; gap:5px; min-height:32px; padding:0 12px; border-radius:var(--radius-sm); border:1px dashed var(--border-2); background:none;
  font:600 12.5px 'Manrope',var(--sans); color:var(--text-2); cursor:pointer; }
.rf-add:hover { border-style:solid; border-color:var(--border-olive); color:var(--text); background:var(--olive-faint); }
.rf-add:focus-visible { outline:2px solid var(--olive-light); outline-offset:2px; }
.rf-add svg { color:var(--olive-light); }
.rf-add.is-sugg { border-color:var(--border-olive); }
.rf-add-s { padding:1px 6px; border-radius:4px; background:var(--olive-faint); font-size:9.5px; font-weight:800; letter-spacing:.06em; text-transform:uppercase; color:var(--olive-light); }
/* wide: Core and Bonus side by side */
@container rf (min-width:960px) { .rf-cols { grid-template-columns:minmax(0, 1fr) minmax(0, 1fr); } }
/* narrow (phones, panels): the name and the value on one line, − bar + under them */
@container rf (max-width:560px) {
  .rf-card { padding:12px 14px 6px; }
  .rf-fold::after { inset:-12px -14px -14px; }
  .rf-row { grid-template-columns:auto minmax(0, 1fr) auto; grid-template-areas:"name name val" "minus bar plus" "tip tip tip"; row-gap:2px; padding:8px 10px; }
  .rf-name { grid-area:name; }
  .rf-val { grid-area:val; width:3.2rem; }
  .rf-step[data-delta="-0.5"] { grid-area:minus; }
  .rf-bar { grid-area:bar; }
  .rf-step[data-delta="0.5"] { grid-area:plus; }
  .rf-tip { grid-area:tip; }
  .rf-hint, .rf-clear { width:34px; height:34px; }
  .rf-step.ep-step { width:40px; height:36px; }
}

/* ══ Choice cards: a pick-one of two or three (role="radio"), each a card with a picture or an example and a line —
   Show my photo as (Settings, Edit profile), Show times as (Profile stats). The picked one is olive. ══ */
.mss-choices { display:grid; grid-template-columns:repeat(auto-fit, minmax(150px, 1fr)); gap:8px; }
.mss-choice { display:flex; align-items:center; gap:12px; width:100%; min-width:0; min-height:64px; padding:10px 14px; border-radius:var(--radius-sm); border:1px solid var(--border-2);
  background:var(--card); color:var(--text); font:inherit; text-align:start; cursor:pointer; transition:border-color .15s, background-color .15s; }
.mss-choice:hover { border-color:var(--border-olive); background:var(--olive-faint); }
.mss-choice:focus-visible { outline:2px solid var(--olive-light); outline-offset:2px; }
.mss-choice[aria-checked="true"] { border-color:var(--olive); background:var(--olive-faint); box-shadow:inset 0 0 0 1px var(--olive); }
.mss-choice-t { min-width:0; display:flex; flex-direction:column; gap:2px; }
.mss-choice-t b { font:700 14px 'Manrope',var(--sans); }
.mss-choice-t small { font:500 12.5px/1.4 'Manrope',var(--sans); color:var(--text-3); }
/* the picture: a photo's shape (a tall poster or a circle), or a value as an example */
.mss-choice-pic { flex:none; width:26px; height:38px; border-radius:5px; border:2px solid currentColor; color:var(--text-3); }
.mss-choice-pic.is-circle { width:34px; height:34px; border-radius:50%; }
.mss-choice[aria-checked="true"] .mss-choice-pic { color:var(--olive-light); background:var(--olive-faint); }
.mss-choice-v { flex:none; min-width:52px; font:400 24px/1 var(--bebas); letter-spacing:.02em; color:var(--text-2); }
.mss-choice[aria-checked="true"] .mss-choice-v { color:var(--olive-light); }
@media (prefers-reduced-motion:reduce) { .mss-choice { transition:none; } }

/* ══ Show pages: links and cast cards shared by title.html and the Season / Episode pages (their own styles: css/title.css) ══ */
.td-ep-graph-link { display:inline-flex; align-items:center; gap:6px; font-size:13px; font-weight:600; color:var(--olive-light); text-decoration:none; }
.td-ep-graph-link:hover { text-decoration:underline; text-underline-offset:3px; }
/* ── Cast ── */
.td-cast-card { flex-shrink:0; width:clamp(90px, 12vw, 140px); text-align:center; display:block; text-decoration:none; color:inherit; transition:opacity .15s; }
.td-cast-card:hover { opacity:.8; }
.td-cast-photo {
  width:clamp(90px, 12vw, 140px); height:clamp(90px, 12vw, 140px); border-radius:50%; overflow:hidden; background:var(--bg-3);
  margin-bottom:10px; display:flex; align-items:center; justify-content:center;
  border:0.5px solid var(--border); font-family:var(--serif); font-size:clamp(22px, 3vw, 34px); color:var(--olive-light);
}
.td-cast-photo img { width:100%; height:100%; object-fit:cover; }
.td-cast-name { font-size:clamp(12px, 1.8vw, 15px); font-weight:500; color:var(--text); line-height:1.3; }
.td-cast-char { font-size:clamp(10.5px, 1.5vw, 13px); color:var(--text-3); margin-top:3px; line-height:1.3; }
@media(max-width:640px) {
  .td-cast-card { width:100%; }
  .td-cast-photo { width:100%; height:auto; aspect-ratio:1/1; }
}
.sp-empty { margin:0; color:var(--text-2); font-size:14px; }
/* Notes on an episode, reviews of a season (show-pages.js — 108): the note cards without a poster */
.sp-notes-count { color:var(--text-3); }
.sp-note-write { text-decoration:none; }
.sp-note { cursor:default; }
.sp-note:hover { transform:none; }
.sp-note.is-mine { border-color:var(--border-olive); }
.nc-author { text-decoration:none; }
a.nc-author:hover span:last-child { color:var(--text); text-decoration:underline; text-underline-offset:2px; }
.sp-note-score { font-family:var(--bebas); font-size:16px; line-height:1; padding:4px 8px 2px; border-radius:6px; flex-shrink:0; }
.sp-note-text { font-size:14px; line-height:1.65; color:var(--text-2); overflow-wrap:anywhere; margin-bottom:6px; }
.sp-note-text p { margin:0 0 .6em; }
.sp-note-text.is-long:not(.is-open) { display:-webkit-box; -webkit-line-clamp:5; line-clamp:5; -webkit-box-orient:vertical; overflow:hidden; }
.sp-note-more { align-self:flex-start; background:none; border:0; padding:2px 0; margin-bottom:8px; font:600 12.5px 'Manrope',var(--sans); color:var(--olive-light); cursor:pointer; }
.sp-note-more:hover { text-decoration:underline; text-underline-offset:2px; }
.sp-note .spoiler { margin-bottom:8px; }
/* Replies popup */
#spRpList { display:flex; flex-direction:column; gap:10px; }
.sp-rp-item { padding:10px 12px; background:var(--raised); border:1px solid var(--border); border-radius:12px; }
.sp-rp-who { display:flex; align-items:baseline; justify-content:space-between; gap:8px; font-size:12.5px; }
.sp-rp-who b { color:var(--text); font-weight:600; }
.sp-rp-who span { color:var(--text-2); font-size:11.5px; }
.sp-rp-body { margin:4px 0 6px; font-size:13.5px; line-height:1.55; color:var(--text-2); white-space:pre-line; overflow-wrap:anywhere; }
.sp-rp-foot { display:flex; gap:14px; }
.sp-rp-join { display:flex; width:100%; text-decoration:none; }
/* Highest-Rated Seasons / Episodes (discover-categories.js: MSSTopEps) */
.disc-card-sub { font-size:12px; color:var(--text-2); margin-top:2px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.disc-top-progress { flex:0 0 100%; width:100%; grid-column:1 / -1; padding:14px 4px; font-size:13px; color:var(--text-2); }
.disc-top-progress i { display:block; height:6px; margin-top:8px; border-radius:999px; background:var(--bg-3); overflow:hidden; }
.disc-top-progress u { display:block; height:100%; width:0; background:var(--olive-light); border-radius:inherit; transition:width .3s; }
/* Passcode keypad (js/pin-pad.js — Messages lock screen + Settings passcode popups):
   dots that fill as you type, square number keys (a border on hover and press), a shake for a wrong code */
.pin-pad { display:flex; flex-direction:column; align-items:center; gap:10px; width:100%; }
.pin-label { font-size:14px; font-weight:600; color:var(--text); }
.pin-field { position:relative; display:flex; justify-content:center; padding:10px 14px; border-radius:999px; }
.pin-field:focus-within { outline:2px solid var(--olive-light); outline-offset:0; }
.pin-input { position:absolute; inset:0; width:100%; height:100%; opacity:0; border:0; padding:0; caret-color:transparent; pointer-events:none; }
.pin-dots { display:flex; gap:16px; }
.pin-dots i { width:14px; height:14px; border-radius:50%; border:1.5px solid var(--text-2); transition:background-color .12s; }
.pin-dots i.opt { border-style:dashed; border-color:var(--text-3); }
.pin-dots i.on { background:var(--text); border-color:var(--text); border-style:solid; }
.pin-field.is-wrong { animation:pinShake .42s var(--ease); }
@keyframes pinShake { 0%,100% { transform:none; } 15%,55% { transform:translateX(-10px); } 35%,75% { transform:translateX(10px); } 90% { transform:translateX(-4px); } }
.pin-msg { min-height:1.3em; font-size:12.5px; font-weight:600; color:#991b1b; text-align:center; }
[data-theme="dark"] .pin-msg { color:var(--error-fg); }
.pin-keys { display:grid; grid-template-columns:repeat(3, var(--pin-w)); gap:8px; --pin-w:clamp(68px, 23vw, 88px); --pin-h:clamp(44px, 6.4vh, 54px); margin-top:2px; }
.pin-key { width:var(--pin-w); height:var(--pin-h); border-radius:12px; display:flex; align-items:center; justify-content:center;
  background:var(--card-2); border:1.5px solid transparent; color:var(--text); cursor:pointer; font:400 24px/1 'Manrope',var(--sans);
  -webkit-tap-highlight-color:transparent; touch-action:manipulation; user-select:none; transition:background-color .12s, border-color .12s; }
.pin-key:hover:not(:disabled) { border-color:var(--border-olive); }
.pin-key:active:not(:disabled) { border-color:var(--olive-light); background:var(--card-3); }
.pin-key:focus-visible { outline:2px solid var(--olive-light); outline-offset:2px; }
.pin-key:disabled { cursor:default; }
.pin-go, .pin-del { background:none; font-size:14px; font-weight:700; }
.pin-go { color:var(--olive-light); }
[data-theme="light"] .pin-go { color:var(--olive); }
.pin-go:disabled, .pin-del:disabled { color:var(--text-3); opacity:.6; }
.pin-del { color:var(--text-2); }
@media (prefers-reduced-motion: reduce) { .pin-field.is-wrong { animation:none; } .pin-dots i { transition:none; } }
/* Diary: when did you watch it? (js/diary.js — a side panel S after a log, or Change) */
.dy-days { display:grid; grid-template-columns:repeat(auto-fit, minmax(92px, 1fr)); gap:8px; }
.dy-days .dy-chip { justify-content:center; }
@media (max-width:480px) { .dy-days { grid-template-columns:1fr 1fr; } .dy-days .dy-chip[data-day="pick"]:last-child, .dy-days .dy-chip[data-day="none"] { grid-column:1 / -1; } }
.dy-chip { display:inline-flex; align-items:center; gap:6px; min-height:42px; padding:8px 14px; border-radius:var(--radius-sm); cursor:pointer;
  background:transparent; border:1px solid var(--border-2); color:var(--text-2); font:500 13px 'Manrope',var(--sans); transition:background-color .15s, border-color .15s; }
.dy-chip:hover:not(:disabled) { color:var(--text); background:var(--olive-faint); }
.dy-chip:hover:not(:disabled) { border-color:var(--border-olive); }
.dy-chip[aria-pressed="true"] { background:var(--olive); border-color:var(--olive); color:var(--text-on-brand); font-weight:600; }
.dy-chip:focus-visible { outline:2px solid var(--olive-light); outline-offset:2px; }
.dy-chip:disabled { opacity:.5; cursor:default; }
.dy-time { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.dy-time-in { width:auto; flex:1; min-width:140px; }
.dy-time-in:disabled { opacity:.5; }
.dy-warn { min-height:1.3em; margin:14px 0 0; font-size:12.5px; font-weight:600; color:#92400e; }
[data-theme="dark"] .dy-warn { color:#fbbf24; }
/* ═════════════════════════════════════════════════════════════
   Diary (diary.html · js/diary-views.js) — Diary redesign, 14 Nov 2026
   Head: kicker · title · stats line; Timeline · Day · Week · Month · Year, ‹ Today ›, search,
   Filter on one row (phones: the title row has ‹ Today ›, the views + icons under it).
   Month: poster calendar left, the picked day + the month in numbers right (≥ 1024px).
   Timeline: a date rail and the day's watches, each its own row, score on the far right.
   ═════════════════════════════════════════════════════════════ */
:root { --dy-card:var(--mc-bg); --dy-line:var(--mc-bd); --dy-track:var(--lib-track); --dy-raise:color-mix(in srgb, #fff 5%, var(--mc-bg));
  --dy-green:var(--score-mine); --dy-gold-ink:#2B1E02; --dy-strip:rgba(233,183,58,.09); --dy-strip-line:rgba(233,183,58,.32);
  /* gold (owner, 14 Nov 2026: no flat mustard): the "perfect" score band's metal for fills, one clean gold for rings and bars */
  --dy-gold:var(--rating-top); --dy-gold-fill:var(--st-gold-fill); }
[data-theme="light"] { --dy-raise:color-mix(in srgb, #fff 55%, var(--mc-bg)); --dy-strip:#F7EDD0; --dy-strip-line:rgba(169,116,12,.30); }

/* head */
.dy-head { display:flex; align-items:flex-end; gap:8px; flex-wrap:wrap; padding-top:6px; margin-bottom:16px; }
.dy-head-l { flex:1 1 280px; min-width:0; margin-inline-end:auto; }
.dy-h1 { margin:8px 0 0; font-size:inherit; }
.dy-title { padding:0; background:none; border:0; border-radius:6px; cursor:pointer; text-align:start; color:var(--text-heading);
  font:600 clamp(30px, 3.6vw, 47px)/1 var(--serif); letter-spacing:-.3px; text-transform:uppercase; }
.dy-title:hover { color:var(--dy-green); }
.dy-title:focus-visible { outline:2px solid var(--olive-light); outline-offset:3px; }
.dy-sub { margin-top:6px; min-height:1.3em; font:500 13.5px var(--sans); color:var(--text-2); }
.dy-nav, .dy-tools { display:flex; align-items:center; gap:8px; }
.dy-tools { display:contents; }
.dy-views { order:1; display:flex; gap:2px; padding:3px; border-radius:12px; background:var(--dy-track); margin-inline-end:6px; }
.dy-nav { display:contents; }
.dy-nav > .dy-ic, .dy-today { order:2; }
#dyNext { margin-inline-end:6px; }
.dy-logbtn { order:5; }
#dySearchBtn { order:3; } #dyFilter { order:4; display:flex; }
.dy-view { min-height:34px; padding:0 14px; border:0; border-radius:var(--radius-sm); background:none; color:var(--text-2); cursor:pointer; font:600 13px var(--sans); white-space:nowrap; }
.dy-view:hover { color:var(--text); }
.dy-view[aria-pressed="true"] { background:var(--olive); color:var(--text-on-brand); }
.dy-view:focus-visible, .dy-ic:focus-visible, .dy-today:focus-visible, .dy-logbtn:focus-visible { outline:2px solid var(--olive-light); outline-offset:2px; }
.dy-ic, .dy-today { position:relative; min-width:40px; height:40px; display:inline-flex; align-items:center; justify-content:center; padding:0; border-radius:var(--radius-sm);
  background:var(--dy-card); border:1px solid var(--dy-line); color:var(--text); cursor:pointer; }
.dy-today { padding:0 14px; font:600 13px var(--sans); }
.dy-ic:hover, .dy-today:hover { border-color:var(--mc-bdh); }
.dy-ic.is-on { border-color:var(--olive-light); color:var(--dy-green); }
.dy-ic-n { position:absolute; top:-6px; inset-inline-end:-6px; min-width:18px; height:18px; padding:0 4px; border-radius:999px; background:var(--olive); color:var(--text-on-brand); font:700 10.5px/18px var(--sans); }
[dir="rtl"] .dy-ic svg { transform:scaleX(-1); }
.dy-logbtn { display:none; height:40px; align-items:center; gap:7px; padding:0 14px; border-radius:var(--radius-sm); border:1px solid var(--action-primary-bg); background:var(--action-primary-bg); color:var(--text-on-primary); cursor:pointer; font:600 13px var(--sans); white-space:nowrap; }
.dy-logbtn:hover { background:var(--action-primary-hover); }
#dyRoot[data-view="timeline"] .dy-logbtn { display:inline-flex; }
.dy-back { display:inline-flex; align-items:center; gap:4px; min-height:40px; font:700 13px var(--sans); color:var(--dy-green); text-decoration:none; }
.dy-back[hidden] { display:none; }
.dy-back:focus-visible { outline:2px solid var(--olive-light); outline-offset:2px; border-radius:6px; }
#dyRoot.is-dates .dy-nav, #dyRoot.is-dates .dy-views, #dyRoot.is-dates #dySearchBtn, #dyRoot.is-dates #dyFilter, #dyRoot.is-dates .dy-logbtn, #dyRoot.is-dates .dy-searchrow { display:none; }
#dyRoot.is-dates .dy-title { cursor:default; pointer-events:none; }
.dy-searchrow { margin:-4px 0 16px; }
.dy-searchrow[hidden] { display:none; }
@media (max-width:719px) {
  .dy-head { display:grid; grid-template-columns:minmax(0, 1fr) auto; gap:12px 8px; margin-bottom:12px; }
  .dy-head-l { grid-column:1; }
  .dy-nav { grid-column:2; grid-row:1; align-self:end; display:flex; margin:0; gap:6px; }
  #dyNext { margin:0; }
  .dy-nav .dy-ic { min-width:36px; }
  .dy-today { padding:0 12px; }
  .dy-tools { grid-column:1 / -1; display:flex; flex-wrap:wrap; gap:8px; }
  .dy-views { flex:1 1 250px; margin:0; }
  .dy-view { flex:1 1 auto; padding:0 6px; font-size:12.5px; }
  .dy-logbtn { width:40px; padding:0; justify-content:center; }
  .dy-logbtn span { display:none; }
  .dy-back { grid-column:2; grid-row:1; align-self:end; }
  .dy-title { font-size:clamp(26px, 8vw, 32px); }
  .dy-sub { font-size:12.5px; }
}

/* the gold strip: watches without a day */
.dy-strip { display:flex; align-items:center; gap:12px; margin-bottom:16px; padding:10px 12px; border-radius:14px; background:var(--dy-strip); border:1px solid var(--dy-strip-line); }
.dy-strip .dy-art { width:30px; }
.dy-strip-t { flex:1; min-width:0; display:flex; flex-direction:column; gap:2px; }
.dy-strip-t b { font:700 13.5px var(--sans); color:var(--text); }
.dy-strip-t small { font-size:12px; color:var(--text-2); }
.dy-strip-go { flex-shrink:0; display:inline-flex; align-items:center; gap:6px; min-height:40px; padding:0 14px; border-radius:var(--radius-sm); border:1px solid rgba(168,116,12,.55); background:var(--dy-gold-fill); color:var(--dy-gold-ink); cursor:pointer; font:700 13px var(--sans); }
.dy-strip-go:hover { filter:brightness(1.06); }
.dy-strip-go:focus-visible { outline:2px solid var(--olive-light); outline-offset:2px; }
[dir="rtl"] .dy-strip-go svg { transform:scaleX(-1); }
@media (max-width:719px) { .dy-strip-t small { display:none; } .dy-strip-t b { font-size:13px; } }

/* shared bits */
.dy-card { min-width:0; padding:16px; border-radius:18px; background:var(--dy-card); border:1px solid var(--dy-line); }
.dy-eyebrow { margin:0; font:800 11px/1.2 var(--sans); letter-spacing:.18em; text-transform:uppercase; color:var(--dy-green); }
.dy-pill { flex-shrink:0; padding:4px 10px; border-radius:999px; background:var(--dy-track); font:600 12px var(--sans); color:var(--text-2); white-space:nowrap; }
.dy-art { flex-shrink:0; display:flex; align-items:center; justify-content:center; width:48px; aspect-ratio:2 / 3; border-radius:6px; overflow:hidden; background:var(--mc-po); }
.dy-art img { width:100%; height:100%; object-fit:cover; display:block; }
.dy-art-ph { font:400 20px var(--bebas); color:var(--text-3); }
.dy-sc { flex-shrink:0; display:inline-flex; align-items:center; gap:3px; height:26px; padding:0 8px; border-radius:8px; background:var(--st-fill, var(--olive)); color:var(--st-on, var(--text-on-brand)); font:400 16px/1 var(--bebas); letter-spacing:.4px; }
.dy-sc svg { width:11px; height:11px; opacity:.85; }
.dy-sc.is-sm { height:22px; font-size:14px; padding:0 6px; }
.dy-type { display:inline-flex; align-items:center; height:18px; padding:0 6px; border-radius:5px; background:var(--tv-solid); color:#fff; font:800 9.5px var(--sans); letter-spacing:.08em; text-transform:uppercase; }
.dy-type.is-movie { background:var(--movie-solid); }
.dy-tag { display:inline-flex; align-items:center; gap:4px; height:18px; padding:0 6px; border-radius:5px; background:var(--dy-track); color:var(--text-2); font:800 9.5px var(--sans); letter-spacing:.08em; text-transform:uppercase; white-space:nowrap; }
.dy-tag.is-re { background:var(--dy-strip); color:var(--text); border:1px solid var(--dy-strip-line); }
.dy-tag svg { width:11px; height:11px; }
.dy-done, .dy-time { display:inline-flex; align-items:center; gap:4px; }
.dy-done { color:var(--dy-green); font-weight:600; }
.dy-more { flex-shrink:0; width:36px; height:36px; display:flex; align-items:center; justify-content:center; padding:0; border:0; border-radius:var(--radius-sm); background:none; color:var(--text-2); cursor:pointer; }
.dy-more:hover { color:var(--text); background:var(--dy-track); }
.dy-more:focus-visible { outline:2px solid var(--olive-light); outline-offset:0; }
.dy-ep-name:not(:empty)::before { content:' · '; }
.dy-btn { flex-shrink:0; display:inline-flex; align-items:center; justify-content:center; gap:7px; min-height:40px; padding:0 14px; border-radius:var(--radius-sm); cursor:pointer;
  background:transparent; border:1px solid var(--border-2); color:var(--text-2); font:600 13px var(--sans); white-space:nowrap; }
.dy-btn:hover { color:var(--text); border-color:var(--border-olive); background:var(--olive-faint); }
.dy-btn:focus-visible { outline:2px solid var(--olive-light); outline-offset:2px; }
.dy-btn.is-primary { background:var(--action-primary-bg); border-color:var(--action-primary-bg); color:var(--text-on-primary); }
.dy-btn.is-primary:hover { background:var(--action-primary-hover); border-color:var(--action-primary-hover); }
.dy-btn:disabled { opacity:.5; cursor:default; }

/* Month (and Day) layout */
.dy-body { display:grid; gap:16px; align-items:start; }
.dy-side { min-width:0; display:flex; flex-direction:column; gap:16px; }
@media (min-width:1024px) {
  .dy-body { grid-template-columns:minmax(0, 1.65fr) minmax(320px, 1fr); }
  .dy-body.is-day { grid-template-columns:minmax(280px, .85fr) minmax(0, 1.4fr); }
  .dy-body:not(.is-day) .dy-side { position:sticky; top:calc(var(--page-pt, 80px) - 16px); }
}
.dy-cal { min-width:0; }
.dy-card.dy-cal { padding:14px; }
.dy-month { display:flex; flex-direction:column; gap:6px; }
.dy-m-row { display:grid; grid-template-columns:repeat(7, minmax(0, 1fr)); gap:6px; }
.dy-m-wd { padding:4px 0 2px; text-align:center; font:700 10.5px var(--sans); letter-spacing:.14em; text-transform:uppercase; color:var(--text-3); }
.dy-m-wd abbr { text-decoration:none; }
.dy-wd-n { display:none; }
.dy-m-cell { min-width:0; }
.dy-m-day { position:relative; display:block; width:100%; aspect-ratio:6 / 5; padding:0; border:0; border-radius:10px; overflow:hidden; cursor:pointer;
  background:var(--dy-track); color:var(--text-3); font:600 12px var(--sans); text-align:start; }
.dy-m-num { position:absolute; top:6px; inset-inline-start:7px; line-height:1; }
.dy-m-day.has .dy-m-num { top:5px; inset-inline-start:5px; padding:3px 5px; border-radius:6px; background:rgba(4,19,10,.72); color:#fff; font-size:11px; }
.dy-m-day:hover { box-shadow:inset 0 0 0 1px var(--mc-bdh); }
.dy-m-day.is-today { outline:2px solid var(--dy-gold); outline-offset:-2px; }
.dy-m-day.is-picked { outline:3px solid var(--olive-light); outline-offset:-3px; }
.dy-m-day.is-picked.has { outline-offset:-1px; }
.dy-m-day:focus-visible { outline:3px solid var(--text); outline-offset:-1px; }
/* 1–4 titles share the square */
.dy-m-art { position:absolute; inset:0; display:grid; gap:2px; background:var(--dy-card); }
.dy-m-art.n2, .dy-m-art.n4 { grid-template-columns:1fr 1fr; }
.dy-m-art.n3 { grid-template-columns:1fr 1fr; grid-template-rows:1fr 1fr; }
.dy-m-art.n3 > :first-child { grid-row:1 / 3; }
.dy-m-art img, .dy-m-art i { width:100%; height:100%; min-height:0; object-fit:cover; object-position:center 20%; display:block; }
.dy-m-art i { display:flex; align-items:center; justify-content:center; background:var(--mc-po); font:400 18px var(--bebas); font-style:normal; color:var(--text-3); }
.dy-m-badge { position:absolute; bottom:5px; inset-inline-end:5px; min-width:22px; height:22px; padding:0 5px; border-radius:999px; display:flex; align-items:center; justify-content:center;
  background:var(--olive); color:var(--text-on-brand); border:2px solid rgba(255,255,255,.88); font:800 11px var(--sans); }
.dy-m-badge.is-ep { padding:0 7px; font-size:10.5px; }
.dy-sc.dy-m-sc { position:absolute; bottom:5px; inset-inline-end:5px; height:22px; padding:0 6px; font-size:14px; border:1.5px solid rgba(255,255,255,.7); }
.dy-month.is-compact .dy-m-day { aspect-ratio:1; }
.dy-month.is-compact .dy-m-day.has { background:var(--olive-faint); color:var(--text); }
.dy-month.is-compact .dy-m-day.has .dy-m-num { background:none; color:var(--text); padding:0; top:6px; inset-inline-start:7px; font-size:12px; }
.dy-m-dot { position:absolute; bottom:5px; inset-inline-end:5px; min-width:18px; height:18px; padding:0 4px; border-radius:999px; background:var(--olive); color:var(--text-on-brand); font:800 10px/18px var(--sans); text-align:center; }
.dy-legend { display:flex; flex-wrap:wrap; gap:6px 16px; margin-top:12px; font-size:11.5px; color:var(--text-2); }
.dy-legend span { display:inline-flex; align-items:center; gap:6px; }
.dy-legend i { width:9px; height:9px; border-radius:2px; }
.dy-legend .is-poster { background:var(--movie-solid); }
.dy-legend .is-badge { background:var(--olive); border-radius:50%; }
.dy-legend .is-today { border:2px solid var(--dy-gold); }
.dy-legend svg { width:11px; height:11px; color:var(--dy-green); }
@media (max-width:719px) {
  .dy-card.dy-cal { padding:10px 8px; }
  .dy-month, .dy-m-row { gap:4px; }
  .dy-wd-s { display:none; } .dy-wd-n { display:inline; }
  .dy-m-day { aspect-ratio:4 / 5; border-radius:8px; }
  .dy-m-day.has .dy-m-num { top:3px; inset-inline-start:3px; padding:2px 4px; font-size:10px; }
  .dy-m-badge { bottom:3px; inset-inline-end:3px; min-width:18px; height:18px; font-size:10px; border-width:1.5px; padding:0 3px; }
  .dy-m-badge.is-ep { padding:0 4px; font-size:9.5px; }
  .dy-sc.dy-m-sc { bottom:3px; inset-inline-end:3px; height:18px; padding:0 4px; font-size:12px; }
  .dy-sc.dy-m-sc svg { display:none; }
  .dy-legend { display:none; }
}

/* the picked day */
.dy-sel-head { display:flex; align-items:flex-end; justify-content:space-between; gap:10px; margin-bottom:12px; }
.dy-sel-t { margin:4px 0 0; font:600 26px/1.05 var(--serif); text-transform:uppercase; color:var(--text-heading); }
.dy-sel-list { display:flex; flex-direction:column; gap:8px; }
.dy-sel-empty { margin:0 0 4px; font-size:13px; color:var(--text-2); }
.dy-it { display:grid; grid-template-columns:minmax(0, 1fr) auto auto; align-items:center; gap:4px 8px; padding:8px 6px 8px 8px; border-radius:12px; background:var(--dy-raise); border:1px solid var(--dy-line); }
.dy-it:hover { border-color:var(--mc-bdh); }
.dy-it-main { min-width:0; display:flex; align-items:center; gap:12px; padding:0; background:none; border:0; color:inherit; text-decoration:none; cursor:pointer; text-align:start; font:inherit; border-radius:8px; }
.dy-it-main:focus-visible { outline:2px solid var(--olive-light); outline-offset:2px; }
.dy-it-art { position:relative; flex-shrink:0; }
.dy-it-art .dy-art { width:52px; }
.dy-it-n { position:absolute; bottom:-5px; inset-inline-start:-5px; min-width:22px; height:22px; padding:0 4px; border-radius:999px; background:var(--olive); color:var(--text-on-brand); border:2px solid var(--dy-raise); font:800 10.5px/18px var(--sans); text-align:center; }
.dy-it-text { flex:1; min-width:0; display:flex; flex-direction:column; gap:3px; }
.dy-it-tags { display:flex; flex-wrap:wrap; gap:4px; }
.dy-it-title { font:600 18px/1.15 var(--serif); color:var(--text-heading); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.dy-it-meta { display:flex; flex-wrap:wrap; align-items:center; gap:2px 10px; font-size:12px; color:var(--text-2); }
.dy-it-meta svg { width:12px; height:12px; }
.dy-it-rate { font-size:11.5px; font-weight:700; color:var(--dy-green); }
.dy-chev { flex-shrink:0; display:flex; color:var(--text-3); transition:transform .2s var(--ease); }
.dy-it.is-open .dy-chev { transform:rotate(180deg); }
.dy-it-eps { grid-column:1 / -1; display:flex; flex-direction:column; margin-top:6px; border-top:1px solid var(--dy-line); }
.dy-it-eps[hidden] { display:none; }
.dy-ep { display:flex; align-items:center; gap:8px; min-height:44px; border-bottom:1px solid var(--dy-line); }
.dy-ep:last-child { border-bottom:0; }
.dy-ep-main { flex:1; min-width:0; display:flex; flex-wrap:wrap; align-items:baseline; gap:2px 10px; padding:6px 2px; color:var(--text); text-decoration:none; font-size:13px; border-radius:6px; }
.dy-ep-main b { color:var(--dy-green); font-weight:800; }
.dy-ep-main .dy-ep-name { flex:1 1 140px; min-width:0; color:var(--text-2); }
.dy-ep-main .dy-ep-name::before { content:none; }
.dy-ep-main .dy-time, .dy-ep-main .dy-done { font-size:11.5px; color:var(--text-3); }
.dy-ep-main:focus-visible { outline:2px solid var(--olive-light); outline-offset:1px; }
.dy-log { display:flex; align-items:center; justify-content:center; gap:6px; width:100%; min-height:44px; margin-top:10px; border-radius:12px; border:1.5px dashed var(--border-2);
  background:none; color:var(--dy-green); cursor:pointer; font:700 13px var(--sans); }
.dy-log:hover { border-color:var(--olive-light); background:var(--olive-faint); }
.dy-log:focus-visible { outline:2px solid var(--olive-light); outline-offset:2px; }
@media (max-width:719px) { .dy-it-art .dy-art { width:44px; } .dy-it-title { font-size:16.5px; } }

/* the month in numbers */
.dy-nums .dy-eyebrow { margin-bottom:12px; }
.dy-stats { display:grid; grid-template-columns:repeat(4, minmax(0, 1fr)); gap:8px; }
.dy-stat { min-width:0; padding:10px 6px; border-radius:12px; background:var(--dy-raise); border:1px solid var(--dy-line); text-align:center; }
.dy-stat b { display:block; font:400 30px/1 var(--bebas); color:var(--text); letter-spacing:.3px; }
.dy-stat span { display:block; margin-top:4px; font-size:11px; color:var(--text-2); }
.dy-bars { display:flex; align-items:flex-end; gap:2px; height:64px; margin-top:16px; border-bottom:1px solid var(--dy-line); }
.dy-bars i { flex:1; min-width:0; border-radius:2px 2px 0 0; background:var(--dy-green); }
.dy-bars i.is-on { background:var(--dy-gold); }
.dy-bars-axis { display:flex; justify-content:space-between; margin-top:4px; font-size:10.5px; color:var(--text-3); }
.dy-best { display:flex; align-items:center; gap:10px; margin-top:10px; padding:8px 10px; border-radius:12px; background:var(--dy-raise); border:1px solid var(--dy-line); color:var(--text); text-decoration:none; }
.dy-best .dy-art { width:30px; border-radius:4px; }
.dy-best-t { flex:1; min-width:0; display:flex; flex-direction:column; gap:2px; }
.dy-best-t small { font:800 9.5px var(--sans); letter-spacing:.14em; text-transform:uppercase; color:var(--text-3); }
.dy-best-t b { font:600 15px/1.2 var(--serif); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.dy-best.is-top { background:var(--olive); border-color:var(--olive); color:var(--text-on-brand); }
.dy-best.is-top small { color:rgba(255,255,255,.75); }
.dy-best.is-top .dy-sc { box-shadow:0 0 0 1px rgba(255,255,255,.35); }
.dy-best:focus-visible { outline:2px solid var(--olive-light); outline-offset:2px; }
.dy-avg { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-top:12px; font-size:12.5px; color:var(--text-2); }

/* Week: all seven days */
.dy-week { display:grid; grid-template-columns:repeat(7, minmax(0, 1fr)); gap:8px; }
.dy-wk-day { min-width:0; display:flex; flex-direction:column; gap:10px; min-height:340px; padding:10px; border-radius:14px; background:var(--dy-card); border:1px solid var(--dy-line); }
.dy-wk-day.is-picked, .dy-wk-day.is-today { border:2px solid var(--olive-light); padding:9px; }
.dy-wk-head { display:flex; align-items:baseline; gap:6px; min-height:32px; padding:2px; background:none; border:0; border-radius:6px; color:var(--text); cursor:pointer; text-align:start; }
.dy-wk-wd { font:800 10.5px var(--sans); letter-spacing:.14em; text-transform:uppercase; color:var(--text-3); }
.dy-wk-date { font:600 17px/1 var(--serif); text-transform:uppercase; white-space:nowrap; }
.dy-wk-n { margin-inline-start:auto; align-self:center; min-width:20px; height:20px; padding:0 4px; border-radius:999px; background:var(--olive); color:var(--text-on-brand); font:800 10.5px/20px var(--sans); text-align:center; }
.dy-wk-list { display:flex; flex-direction:column; gap:12px; }
.dy-wk-item { display:flex; flex-direction:column; gap:3px; padding:0; background:none; border:0; color:var(--text); cursor:pointer; text-align:start; border-radius:8px; }
.dy-wk-art { position:relative; display:block; }
.dy-wk-art .dy-art { width:100%; border-radius:8px; }
.dy-wk-art .dy-tag { position:absolute; top:5px; inset-inline-start:5px; }
.dy-wk-t { margin-top:4px; font:700 12.5px/1.25 var(--sans); display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; overflow-wrap:anywhere; }
.dy-wk-s { font-size:11px; color:var(--text-2); }
.dy-wk-more { min-height:36px; padding:0; background:none; border:0; color:var(--dy-green); cursor:pointer; font:700 12px var(--sans); text-align:start; }
.dy-wk-empty { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:4px; min-height:110px; padding:10px; border-radius:10px; border:1.5px dashed var(--border-2); background:none; cursor:pointer; color:var(--text-3); font:600 11.5px var(--sans); }
.dy-wk-empty b { display:inline-flex; align-items:center; gap:3px; color:var(--dy-green); font-weight:700; }
.dy-wk-empty:hover { border-color:var(--olive-light); background:var(--olive-faint); }
.dy-wk-head:focus-visible, .dy-wk-item:focus-visible, .dy-wk-more:focus-visible, .dy-wk-empty:focus-visible { outline:2px solid var(--olive-light); outline-offset:2px; }
@media (max-width:1023px) {
  .dy-week { grid-template-columns:1fr; }
  .dy-wk-day { flex-direction:row; align-items:stretch; gap:10px; min-height:0; }
  .dy-wk-head { flex-direction:column; align-items:flex-start; justify-content:center; gap:3px; flex:0 0 64px; }
  .dy-wk-n { margin:4px 0 0; }
  .dy-wk-list { flex:1; min-width:0; flex-direction:row; gap:10px; overflow-x:auto; scrollbar-width:none; }
  .dy-wk-list::-webkit-scrollbar { display:none; }
  .dy-wk-item { flex:0 0 84px; }
  .dy-wk-more { flex:0 0 auto; align-self:center; }
  .dy-wk-empty { flex:1; flex-direction:row; justify-content:flex-end; gap:12px; min-height:48px; }
}

/* Year: a card per month */
.dy-ychips { display:flex; flex-wrap:wrap; gap:8px; margin:-4px 0 16px; }
.dy-ychip { display:inline-flex; align-items:center; gap:7px; min-height:36px; padding:0 12px; border-radius:var(--radius-sm); border:1px solid var(--dy-line); background:var(--dy-card); color:var(--text); cursor:pointer; font:700 12.5px var(--sans); }
.dy-ychip b { font-weight:600; color:var(--text-3); }
.dy-ychip[aria-pressed="true"] { background:var(--olive); border-color:var(--olive); color:var(--text-on-brand); }
.dy-ychip[aria-pressed="true"] b { color:rgba(255,255,255,.75); }
.dy-ychip:focus-visible { outline:2px solid var(--olive-light); outline-offset:2px; }
.dy-yr { display:grid; grid-template-columns:repeat(4, minmax(0, 1fr)); gap:12px; }
@media (max-width:1199px) { .dy-yr { grid-template-columns:repeat(3, minmax(0, 1fr)); } }
@media (max-width:719px) { .dy-yr { grid-template-columns:repeat(2, minmax(0, 1fr)); gap:10px; } }
.dy-ym { min-width:0; display:flex; flex-direction:column; gap:8px; padding:12px; border-radius:14px; background:var(--dy-card); border:1px solid var(--dy-line); color:var(--text); cursor:pointer; text-align:start; font:inherit; }
.dy-ym:hover { border-color:var(--mc-bdh); }
.dy-ym:focus-visible { outline:2px solid var(--olive-light); outline-offset:2px; }
.dy-ym.is-now { border:2px solid var(--dy-gold); padding:11px; }
.dy-ym-h { display:flex; align-items:center; justify-content:space-between; gap:6px; }
.dy-ym-h b { font:600 14px var(--serif); letter-spacing:.04em; text-transform:uppercase; }
.dy-ym-h i { padding:2px 7px; border-radius:6px; background:var(--dy-gold-fill); color:var(--dy-gold-ink); font:800 9.5px var(--sans); font-style:normal; letter-spacing:.1em; text-transform:uppercase; }
.dy-ym-art { display:grid; grid-template-columns:repeat(4, minmax(0, 1fr)); gap:4px; }
.dy-ym-art img, .dy-ym-art i { width:100%; aspect-ratio:2 / 3; object-fit:cover; border-radius:5px; background:var(--dy-track); display:block; }
.dy-ym-n { display:flex; align-items:baseline; gap:5px; font-size:11px; color:var(--text-2); }
.dy-ym-n b { font:400 30px/1 var(--bebas); color:var(--text); letter-spacing:.3px; }
.dy-ym-bar { height:4px; border-radius:2px; background:var(--dy-track); overflow:hidden; }
.dy-ym-bar i { display:block; height:100%; border-radius:2px; background:var(--dy-green); }
.dy-ym-most { font-size:11.5px; color:var(--text-2); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.dy-ym-most b { color:var(--text); font-weight:700; }
.dy-ym.is-future { cursor:default; color:var(--text-3); }
.dy-ym-soon { flex:1; display:flex; align-items:center; justify-content:center; min-height:120px; border-radius:10px; background:var(--dy-track); font-size:12px; color:var(--text-3); }
@media (max-width:719px) { .dy-ym { padding:10px; gap:6px; } .dy-ym.is-now { padding:9px; } .dy-ym-n b { font-size:24px; } .dy-ym-art { gap:3px; } }

/* Timeline: a date rail and the day's watches, each its own row */
.tl { max-width:1080px; }
.tl-day { display:grid; grid-template-columns:220px minmax(0, 1fr); gap:0 32px; padding:22px 0; border-top:1px solid var(--dy-line); }
/* a profile's Diary tab: the dates stay in place (the profile's own tab bar sticks there) */
.dy-tab .tl-date { position:static; }
.tl-day:first-child { border-top:0; padding-top:4px; }
.tl-date { position:sticky; top:calc(var(--page-pt, 104px) - 12px); align-self:start; display:flex; flex-direction:column; gap:4px; padding-top:10px; }
.tl-wd { font:800 11px/1.2 var(--sans); letter-spacing:.18em; text-transform:uppercase; color:var(--dy-green); }
.tl-dn { font:600 22px/1.15 var(--serif); color:var(--text-heading); }
.tl-n { font-size:12px; color:var(--text-3); }
.tl-list { list-style:none; margin:0; padding:0; }
.tl-row { display:flex; align-items:center; gap:8px; border-bottom:1px solid var(--dy-line); }
.tl-row:last-child { border-bottom:0; }
.tl-link { flex:1; min-width:0; display:flex; align-items:center; gap:14px; padding:10px 0; color:inherit; text-decoration:none; border-radius:8px; }
.tl-link:hover .tl-title { color:var(--dy-green); }
.tl-link:focus-visible { outline:2px solid var(--olive-light); outline-offset:2px; }
.tl-time { flex:0 0 68px; white-space:nowrap; font:600 12.5px var(--sans); font-variant-numeric:tabular-nums; color:var(--text-2); }
.tl-art { flex-shrink:0; display:flex; align-items:center; justify-content:center; width:52px; aspect-ratio:2 / 3; border-radius:6px; overflow:hidden; background:var(--mc-po); border:1px solid var(--dy-line); }
.tl-art img { width:100%; height:100%; object-fit:cover; display:block; }
.tl-main { flex:1; min-width:0; display:flex; flex-direction:column; gap:3px; }
.tl-title { font:600 18px/1.2 var(--serif); color:var(--text-heading); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; transition:color .15s; }
.tl-ep { font-size:13px; color:var(--text-2); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.tl-ep b { font-weight:800; color:var(--text); letter-spacing:.02em; }
.tl-meta { display:flex; flex-wrap:wrap; align-items:center; gap:4px 10px; font-size:11.5px; color:var(--text-3); }
.tl-meta svg { width:11px; height:11px; }
.tl-mtime { display:none; align-items:center; gap:4px; }
.tl-end { flex:0 0 auto; display:flex; align-items:center; gap:4px; }
.tl-sc { min-width:42px; text-align:end; font:400 26px/1 var(--bebas); letter-spacing:.3px; color:var(--st, var(--dy-green)); }
.tl-sc.is-gold { min-width:0; padding:4px 7px 2px; border-radius:8px; background:var(--st-gold-fill); color:var(--st-masterpiece-on); font-size:22px; }
.tl-end .dy-more { order:-1; }
.tl-more { display:flex; align-items:center; justify-content:center; gap:12px; min-height:64px; font-size:12.5px; color:var(--text-3); }
.tl-end-t { padding-top:8px; border-top:1px solid var(--dy-line); width:100%; text-align:center; }
@media (max-width:719px) {
  .tl-day { display:block; padding:0 0 14px; border-top:0; }
  .tl-date { top:var(--shell-b); z-index:2; flex-direction:row; flex-wrap:wrap; align-items:baseline; gap:2px 10px; margin:0 -18px; padding:12px 18px 8px; background:var(--bg); border-bottom:1px solid var(--dy-line); }
  .dy-tab .tl-date { margin:0; padding-inline:0; }
  .tl-wd { flex-basis:100%; }
  .tl-dn { font-size:18px; }
  .tl-n { margin-inline-start:auto; }
  .tl-time { display:none; }
  .tl-row { align-items:stretch; }
  .tl-link { gap:12px; padding:12px 0; align-items:flex-start; }
  .tl-art { width:48px; }
  .tl-title { font-size:16.5px; white-space:normal; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; }
  .tl-ep { white-space:normal; }
  .tl-ep .dy-ep-name { display:block; margin-top:1px; }
  .tl-ep .dy-ep-name::before { content:none; }
  .tl-mtime { display:inline-flex; }
  .tl-end { flex-direction:column; align-items:flex-end; justify-content:space-between; padding:12px 0 6px; gap:6px; }
  .tl-end .dy-more { order:0; margin-inline-end:-8px; }
  .tl-sc { font-size:24px; }
}

/* Timeline + At a glance beside it (≥ 1200px; phones and small screens: the Timeline alone) */
.dy-tlw { display:grid; gap:28px; align-items:start; }
.dy-tlw-main { min-width:0; }
.dy-tlw-side { display:none; }
@media (min-width:1200px) {
  .dy-tlw { grid-template-columns:minmax(0, 1fr) 340px; }
  .dy-tlw .tl { max-width:none; }
  .dy-tlw-side { display:block; position:sticky; top:calc(var(--page-pt, 104px) - 12px); max-height:calc(100dvh - var(--page-pt, 104px)); overflow:auto; overscroll-behavior:contain; scrollbar-width:thin; border-radius:18px; }
  /* a profile's Diary tab: stick under the profile's own small header and tab bar (de-tabs: --de-top + 84px, ~54px tall) */
  .dy-tab .dy-tlw-side { --dy-stick:calc(var(--de-top, 0px) + 152px); top:var(--dy-stick); max-height:calc(100dvh - var(--dy-stick) - 16px); }
}
.lib-glance.dy-gl { padding:0; overflow:clip; }
.dy-gl-head { display:flex; align-items:center; gap:10px; width:100%; min-height:56px; padding:14px 18px; border:0; background:none; color:var(--text); cursor:pointer; text-align:start; }
.dy-gl-head:hover .dy-chev { color:var(--text); }
.dy-gl-head:focus-visible { outline:2px solid var(--olive-light); outline-offset:-2px; border-radius:18px; }
.dy-gl-l { flex:1; min-width:0; display:flex; flex-direction:column; gap:6px; }
.dy-gl-line { font:600 13px var(--sans); color:var(--text-2); }
.dy-gl.is-open .dy-chev { transform:rotate(180deg); }
.dy-gl-body { padding:0 18px 18px; }
.dy-gl-body[hidden] { display:none; }
.dy-gl-kpis.lg-kpis { grid-template-columns:repeat(2, minmax(0, 1fr)); margin-bottom:12px; }
.dy-gl-streak { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-bottom:16px; }
.dy-gl-streak div { display:flex; align-items:baseline; gap:8px; padding:10px 12px; border-radius:14px; background:color-mix(in srgb, var(--lib-track) 45%, var(--lib-card)); border:1px solid color-mix(in srgb, var(--lib-line) 70%, transparent); }
.dy-gl-streak b { font:400 26px/1 var(--bebas); color:var(--dy-green); }
.dy-gl-streak small { font:600 11px/1.2 var(--sans); color:var(--text-3); }
.dy-gl .lg-rec { margin-bottom:16px; }
.dy-gl .lg-rec-row { text-decoration:none; }
.dy-gl-years li { grid-template-columns:40px minmax(0, 1fr) 44px; }

/* Set dates */
.dy-dates { display:grid; gap:16px; align-items:start; }
@media (min-width:1024px) { .dy-dates { grid-template-columns:minmax(0, 1.35fr) minmax(300px, 1fr); } .dy-dates-r { position:sticky; top:calc(var(--page-pt, 80px) - 16px); } }
.dy-dates-l { min-width:0; display:flex; flex-direction:column; gap:16px; }
.dy-dc-top { display:flex; gap:14px; margin-bottom:14px; }
.dy-dc-art { flex-shrink:0; width:80px; aspect-ratio:2 / 3; border-radius:8px; overflow:hidden; background:var(--mc-po); display:flex; align-items:center; justify-content:center; }
.dy-dc-art img { width:100%; height:100%; object-fit:cover; display:block; }
.dy-dc-txt { min-width:0; }
.dy-dc-txt .dy-tag { margin-inline-start:4px; }
.dy-dc-t { margin:6px 0 4px; font:600 24px/1.1 var(--serif); color:var(--text-heading); }
.dy-dc-txt p { margin:0; font-size:12.5px; line-height:1.5; color:var(--text-2); }
.dy-dc-foot { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:14px; }
.dy-dc-left { font-size:12.5px; color:var(--text-2); }
.dy-sd-modes { margin-bottom:12px; }
.dy-sd-modes .lyr-seg { display:inline-flex; max-width:100%; }
.dy-sd-modes .lyr-seg-opt { flex:0 0 auto; padding:0 14px; white-space:nowrap; }
.dy-sd-intro { margin:0 0 14px; font-size:13px; color:var(--text-2); }
.dy-sd-list { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:8px; }
.dy-sd-row { display:flex; align-items:center; gap:12px; min-height:56px; padding:8px 10px; border-radius:12px; background:var(--dy-raise); border:1px solid var(--dy-line); }
.dy-sd-row.is-set { border-color:var(--border-olive); }
.dy-sd-badge { flex-shrink:0; width:34px; height:34px; display:flex; align-items:center; justify-content:center; border-radius:8px; background:var(--tv-solid); color:#fff; font:600 13px var(--serif); }
.dy-sd-text { flex:1; min-width:0; display:flex; flex-direction:column; gap:1px; }
.dy-sd-text b { font:600 14px var(--serif); color:var(--text-heading); }
.dy-sd-text small { font-size:11.5px; color:var(--text-3); }
.dy-sd-pick { flex-shrink:0; display:inline-flex; align-items:center; gap:6px; min-height:36px; padding:0 12px; border-radius:var(--radius-sm); border:1px solid var(--dy-line); background:var(--dy-card); color:var(--text-2); cursor:pointer; font:600 12.5px var(--sans); white-space:nowrap; }
.dy-sd-pick:hover { border-color:var(--mc-bdh); color:var(--text); }
.dy-sd-pick.is-set { border-color:var(--olive-light); background:var(--olive-faint); color:var(--dy-green); }
.dy-sd-pick:focus-visible { outline:2px solid var(--olive-light); outline-offset:2px; }
.dy-sd-ok { flex-shrink:0; width:22px; height:22px; display:flex; align-items:center; justify-content:center; border-radius:50%; background:var(--olive); color:var(--text-on-brand); }
.dy-sd-ok.is-off { visibility:hidden; }
.dy-sd-note { display:flex; gap:8px; align-items:flex-start; margin:0; padding:10px 12px; border-radius:12px; background:var(--dy-raise); border:1px solid var(--dy-line); font-size:12.5px; line-height:1.5; color:var(--text-2); }
.dy-sd-note svg { flex-shrink:0; margin-top:2px; color:var(--dy-green); }
.dy-sum .dy-eyebrow { margin-bottom:10px; }
.dy-sum-for { margin:0 0 4px; font:600 15px var(--serif); color:var(--text-heading); }
.dy-sum-row { display:flex; align-items:center; justify-content:space-between; gap:10px; min-height:44px; border-bottom:1px solid var(--dy-line); font:600 13px var(--sans); color:var(--text); }
.dy-sum-v { display:inline-flex; align-items:center; gap:6px; color:var(--text-3); }
.dy-sum-v s { font-size:12px; }
.dy-sum-v b { font:400 22px/1 var(--bebas); color:var(--dy-green); letter-spacing:.3px; }
[dir="rtl"] .dy-sum-v svg { transform:scaleX(-1); }
.dy-sum-empty { margin:6px 0; font-size:12.5px; color:var(--text-2); }
.dy-sum-note { margin:10px 0 0; font-size:11.5px; line-height:1.5; color:var(--text-3); }
@media (max-width:719px) {
  .dy-dc-art { width:64px; }
  .dy-dc-t { font-size:20px; }
  .dy-sd-modes .lyr-seg { display:flex; flex-wrap:wrap; }
  .dy-sd-pick span { max-width:110px; overflow:hidden; text-overflow:ellipsis; }
}

/* Log a watch */
.dy-add-pick { display:flex; align-items:center; gap:12px; margin-bottom:18px; }
.dy-add-pick .dy-art { width:36px; }
.dy-add-sub { font-size:12.5px; color:var(--text-2); }
.dy-add-pick + .dy-days, .dy-add-ep { margin-bottom:18px; }
.dy-add-ep { display:grid; grid-template-columns:auto 1fr; align-items:center; gap:8px 12px; }
.dy-add-ep .lyr-sec-h { margin:0; }
.dy-add-ep[hidden] { display:none; }
@media (prefers-reduced-motion: reduce) { .dy-chev, .tl-title { transition:none; } }
/* Details page: Watched On → this title's watches in the Diary */
.det-diary-link { display:inline-flex; align-items:center; gap:6px; min-height:32px; font:600 12.5px 'Manrope',var(--sans); color:var(--olive-light); text-decoration:none; }
[data-theme="light"] .det-diary-link { color:var(--olive); }
.det-diary-link[hidden] { display:none; }
.det-diary-link:hover span { text-decoration:underline; }
.det-diary-link:focus-visible { outline:2px solid var(--olive-light); outline-offset:2px; border-radius:4px; }
/* Confirm popup: pick one (e.g. Delete entry? → keep or delete its Diary watches) */
.confirm-choices { display:flex; flex-direction:column; gap:8px; width:100%; text-align:start; }
.confirm-choices[hidden] { display:none; }
.confirm-choice { display:flex; align-items:flex-start; gap:12px; width:100%; min-height:48px; padding:12px 14px; border-radius:12px; cursor:pointer;
  background:transparent; border:1px solid var(--border-2); color:var(--text); text-align:start; transition:border-color .12s, background-color .12s; }
.confirm-choice:hover { border-color:var(--text-3); background:var(--olive-faint); }
.confirm-choice.on { border-color:var(--olive-light); background:var(--olive-faint); }
.confirm-choice:focus-visible { outline:2px solid var(--olive-light); outline-offset:2px; }
.confirm-choice-dot { flex-shrink:0; width:18px; height:18px; margin-top:1px; border-radius:50%; border:1.5px solid var(--border-2); background:var(--panel); transition:border-width .12s, border-color .12s; }
.confirm-choice.on .confirm-choice-dot { border:5px solid var(--olive-light); }
.confirm-choice-l { display:flex; flex-direction:column; gap:3px; min-width:0; }
.confirm-choice-l b { font:600 14px 'Manrope',var(--sans); }
.confirm-choice-l small { font-size:12.5px; line-height:1.45; color:var(--text-2); }
/* ═════════════════════════════════════════════════════════════
   On This Day (js/on-this-day.js): the title panel in On This Day mode (title-view.js — its line
   below), the Diary strip, the bell item
   ═════════════════════════════════════════════════════════════ */
/* the title panel's header: when you watched it (the favourite-character chip's look) */
.tv-otd { display:inline-flex; align-items:center; flex-wrap:wrap; gap:6px 8px; max-width:100%; min-height:30px; margin:0; padding:4px 12px; border-radius:var(--radius-sm); background:var(--olive); color:var(--text-on-brand); font:600 12.5px 'Manrope',var(--sans); }
.tv-otd svg { width:13px; height:13px; flex:none; }
.tv-otd > span { display:inline-flex; align-items:center; gap:6px; }
/* On This Day on phones: the panel is a full page — Back instead of ✕, and the title page's phone header sizes */
.tv-otd-back { display:none; }
.lyr.is-page .tv-otd-back { display:inline-grid; }
.lyr.is-page .tv-hero { padding:14px 16px 18px; }
.lyr.is-page .tv-top { inset:calc(12px + env(safe-area-inset-top)) 16px auto; }
.lyr.is-page .tv-hero-main { gap:14px; margin-top:132px; }
.lyr.is-page .tv-poster { width:96px; }
.lyr.is-page .tv-title { font-size:28px; }
.lyr.is-page .tv-ring { width:74px; align-self:flex-end; } .lyr.is-page .tv-ring circle { stroke-width:8; } .lyr.is-page .tv-ring b { font-size:26px; }
.lyr.is-page .tv-otd { font-size:11.5px; padding:4px 10px; }
.lyr.is-page .tv-otd-back ~ .is-wide { display:none; }
.lyr.is-page .tv-status.is-otd { letter-spacing:.06em; white-space:nowrap; }

/* The Diary's strip */
.otd-strip { display:flex; align-items:center; gap:12px; width:100%; margin-bottom:1rem; padding:8px 14px 8px 10px; border-radius:var(--radius-sm); cursor:pointer; text-align:start;
  background:linear-gradient(90deg, var(--olive-faint), transparent); border:1px solid var(--border-olive); color:var(--text); font:500 13.5px 'Manrope',var(--sans); }
.otd-strip:hover { border-color:var(--olive-light); }
.otd-strip:focus-visible { outline:2px solid var(--olive-light); outline-offset:2px; }
.otd-strip-posters { display:flex; flex-shrink:0; }
.otd-strip-posters img { width:26px; aspect-ratio:2 / 3; object-fit:cover; border-radius:4px; border:1.5px solid var(--bg); }
.otd-strip-posters img + img { margin-inline-start:-10px; }
.otd-strip-text { flex:1; min-width:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.otd-strip-text b { color:var(--olive-light); letter-spacing:.3px; }
[data-theme="light"] .otd-strip-text b { color:var(--olive); }

/* The bell: a little stack of posters, like a personal highlight */
.notif-av-otd { position:relative; width:100%; height:100%; display:flex; align-items:center; justify-content:center; border-radius:50%;
  background:radial-gradient(circle at 30% 30%, var(--olive-light), var(--olive)); color:#fff; overflow:hidden; }
.notif-av-otd img { position:absolute; width:58%; aspect-ratio:2 / 3; object-fit:cover; border-radius:3px; border:1.5px solid #fff; }
.notif-av-otd img:nth-child(1) { transform:translateX(-22%) rotate(-10deg); }
.notif-av-otd img:nth-child(2) { transform:translateX(22%) rotate(10deg); }
.notif-av-otd img:nth-child(3) { transform:translateY(4%); z-index:1; }

/* ── Guest showcase cards (folio-cards.js — "A folio in action" on the guest splash, Admin → Guest showcase preview) ──
   The PDF's cards: cream "Watching" and taste-match cards around a deep-olive rating card, each tilted a little.
   They sit on the dark poster wall in both themes, so .mf-stage uses the light theme's values (css/theme.css) for them. */
.mf-stage { --card-solid:#FEFCF3; --text:#1E2A22; --text-2:#3A453E; --bg-3:#E6E0CA; --border-2:rgba(30,42,34,.18); --olive:var(--p-forest-800); --olive-light:#24583A;   /* light-theme values from css/theme.css, fixed */
  display:flex; flex-direction:column; gap:14px; color:var(--text); }
.mf-card { display:flex; align-items:center; gap:16px; padding:16px 18px; border-radius:18px; border:1px solid var(--border-2); background:var(--card-solid); color:var(--text); }
.mf-poster { width:64px; aspect-ratio:2/3; flex:none; border-radius:10px; overflow:hidden; display:grid; place-items:center; background:var(--bg-3); font:600 20px var(--serif); color:var(--text-2); }
.mf-poster img { width:100%; height:100%; object-fit:cover; display:block; }
.mf-body { flex:1; min-width:0; display:flex; flex-direction:column; gap:4px; }
.mf-eyebrow { font-size:10px; font-weight:800; letter-spacing:2.2px; text-transform:uppercase; color:var(--text-2); }
.mf-title { font-family:var(--serif); font-size:22px; font-weight:600; line-height:1.1; overflow-wrap:anywhere; }
.mf-sub { font-size:12.5px; color:var(--text-2); }
.mf-prog { height:5px; margin-top:6px; border-radius:3px; background:var(--bg-3); overflow:hidden; }
.mf-prog i { display:block; height:100%; background:var(--olive); border-radius:3px; }
.mf-row { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-top:2px; font-size:12px; color:var(--text-2); }
.mf-plus { font-weight:800; color:var(--olive-light); }
.mf-rate { flex-direction:column; align-items:stretch; gap:12px; background:var(--olive); border-color:var(--olive); color:var(--text-on-brand); }
.mf-rate-top { display:flex; align-items:center; gap:16px; }
.mf-rate .mf-eyebrow { color:var(--p-forest-300); }
.mf-rate .mf-title { color:#fff; }
.mf-score { font-family:var(--bebas); font-size:44px; line-height:.95; letter-spacing:.5px; color:var(--st, var(--p-forest-300)); }
.mf-bars { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:7px; }
.mf-bars li { display:grid; grid-template-columns:minmax(80px, .9fr) minmax(0, 1.6fr) 30px; align-items:center; gap:12px; font-size:12.5px; font-weight:700; color:rgba(255,255,255,.9); }
.mf-bar-l { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.mf-bar { height:5px; border-radius:3px; background:rgba(255,255,255,.18); overflow:hidden; }
.mf-bar i { display:block; height:100%; background:var(--p-forest-300); border-radius:3px; }
.mf-bars b { font-family:var(--bebas); font-size:16px; font-weight:400; color:#fff; text-align:end; }
.mf-avs { display:flex; flex:none; }
.mf-av { width:42px; height:42px; border-radius:50%; overflow:hidden; display:grid; place-items:center; border:2px solid var(--card-solid); background:var(--olive);
  font:600 16px var(--serif); color:var(--text-on-brand); }
.mf-av + .mf-av { margin-inline-start:-12px; background:var(--text-2); }
.mf-av img { width:100%; height:100%; object-fit:cover; }
.mf-name { font-size:15px; font-weight:700; }
.mf-pct { font-family:var(--bebas); font-size:40px; line-height:1; color:var(--olive-light); }
/* the PDF's loose stack: each card a little off-straight */
.mf-stage .mf-watch { transform:rotate(-1.6deg); margin-inline-end:24px; }
.mf-stage .mf-rate { transform:rotate(1.2deg); margin-inline-start:40px; margin-top:-6px; }
.mf-stage .mf-match { transform:rotate(-1deg); margin-inline:12px 70px; margin-top:-6px; }

/* ═════════════════════════════════════════════════════════════
   §60  The standard item card — .msf-card (MSSCard.poster, config.js)
   One card for every movie, show, anime and cartoon in a grid or rail
   ("MSF standard item card" PDF). Cream frame with a border (no shadow —
   the owner's call), rounded 2:3 poster; cards in a row share one height. Top-left: rank (.cg-rank-badge, unchanged). Top-right: rewatch
   (.rewatch-badge) + Up Next / Taking a Break. Bottom-left: type tag.
   Line 1: title · year. Line 2: meta left, rating right (or progress).
   Sizes follow the card's own width (container query units).
   ═════════════════════════════════════════════════════════════ */
:root {
  --mc-bg:var(--surface-card); --mc-bd:var(--border-default); --mc-bdh:var(--border-brand);
  --mc-po:var(--fill-subtle); --mc-t:var(--text-heading-2); --mc-y:var(--text-muted); --mc-m:var(--text-supporting); --mc-sc:var(--rating-mine);
  --mc-tr:var(--fill-subtle); --mc-trf:var(--rating-mine); --mc-focus:var(--focus-ring);
  --score-mine:var(--rating-mine); --score-gold:var(--rating-top);          /* your score (no tier yet); Masterpiece 9.90+ */
  /* grid + rail sizing (no fixed column counts) */
  --msf-min:clamp(90px, 11.5vw + 50px, 230px);       /* phones 3 · foldables 4 · tablets 4–5 · laptops 5 · desktops 7 · TVs 9+ */
  --msf-rail-w:clamp(108px, 11vw + 66px, 250px);
  --msf-gap:clamp(8px, 1.1vw + 4px, 18px);
  --msf-rgap:clamp(12px, 1.3vw + 7px, 24px);
}
@media (min-width:2200px) { :root { --msf-min:250px; --msf-rail-w:270px; } }   /* TVs: bigger cards, not just more */

/* ── Grid and rail ── */
.msf-grid { display:grid; align-items:stretch; grid-template-columns:repeat(auto-fill, minmax(min(var(--msf-min), 100%), 1fr)); gap:var(--msf-rgap) var(--msf-gap); }
.msf-rail { display:grid; grid-auto-flow:column; align-items:stretch; grid-auto-columns:var(--msf-rail-w); gap:var(--msf-gap); overflow-x:auto; overscroll-behavior-x:contain;
  scroll-snap-type:x mandatory; scrollbar-width:none; padding:4px 2px 14px; margin:-4px -2px -10px; scroll-padding-inline:2px; }
.msf-rail::-webkit-scrollbar { display:none; }
.msf-rail > * { scroll-snap-align:start; }
/* rail arrows (desktop pointers only): one view per press, faded at either end */
.msf-rail-wrap .grid-nav-btn { width:34px; height:34px; border-radius:11px; background:var(--mc-bg); border:1px solid var(--mc-bd); color:var(--mc-t); top:38%; }
.msf-rail-wrap .grid-nav-btn[aria-disabled="true"] { opacity:.4 !important; pointer-events:none !important; }
.msf-rail-wrap.is-static .grid-nav-btn { display:none !important; }
@media not ((hover:hover) and (pointer:fine)) { .msf-rail-wrap .grid-nav-btn { display:none !important; } }

/* ── The card ── */
.msf-card {
  container:msfcard / inline-size;
  position:relative; min-width:0; display:flex; flex-direction:column; box-sizing:border-box;
  padding:clamp(5px, .35vw + 3.6px, 8px); border-radius:clamp(13px, .25vw + 12px, 18px);
  background:var(--mc-bg); border:1px solid var(--mc-bd);
  color:var(--mc-t); text-decoration:none; font-family:var(--sans); cursor:pointer; -webkit-tap-highlight-color:transparent;
  transition:transform var(--trans) var(--ease), border-color var(--trans) var(--ease);
}
@media (hover:hover) {
  .msf-card:hover { transform:translateY(-3px); border-color:var(--mc-bdh); }
  .msf-card:hover .msf-card__poster img { transform:scale(1.04); }
  .msf-card.is-dropped:hover .msf-card__poster img { filter:none; }
}
.msf-card:focus-visible { outline:2px solid var(--mc-focus); outline-offset:3px; }
.msf-card__main { display:flex; flex-direction:column; flex:1 0 auto; min-width:0; cursor:pointer; border-radius:clamp(9px, 2.2cqi + 6.5px, 13px); }
.msf-card__main:focus-visible { outline:2px solid var(--mc-focus); outline-offset:3px; }
.msf-card.has-controls:active { transform:none; }
.msf-card__main:active { transform:scale(.97); }
.msf-card:active { transform:scale(.97); }

.msf-card__poster { position:relative; aspect-ratio:2/3; border-radius:clamp(9px, 2.2cqi + 6.5px, 13px); overflow:hidden; background:var(--mc-po); flex:none; isolation:isolate; }
.msf-card__poster > img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; display:block; transition:transform 400ms var(--ease), filter 200ms var(--ease); }
.msf-card__poster::after { content:''; position:absolute; inset:auto 0 0 0; height:40%; background:linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.62)); pointer-events:none; z-index:1; }
.msf-card__poster .img-fallback, .msf-card__letter { position:absolute; inset:0; display:grid; place-items:center; background:var(--mc-po); color:var(--mc-y);
  font-family:var(--bebas); font-size:clamp(34px, 24cqi + 8px, 64px); line-height:1; }
.msf-card.is-dropped .msf-card__poster img { filter:grayscale(.75) brightness(.85); }

/* corners: rank (top-left, MSF's tab), rewatch + status (top-right), type (bottom-left) */
.msf-card__poster .cg-rank-badge, .msf-card__poster .cg-score-badge { z-index:3; }
.msf-card__tr { position:absolute; top:clamp(5px, 2cqi + 3px, 8px); inset-inline-end:clamp(5px, 2cqi + 3px, 8px); z-index:3;
  display:flex; align-items:center; justify-content:flex-end; gap:4px; max-width:calc(100% - 38px); }
.msf-card__tr .rewatch-badge { gap:3px; padding:clamp(2px, 1.6cqi, 4px) clamp(6px, 3.3cqi + 2px, 10px); font-size:clamp(9.5px, 1.4cqi + 7.8px, 11px); }
.msf-card__tr .rewatch-badge svg { width:clamp(9px, 1.6cqi + 7px, 11px); height:clamp(9px, 1.6cqi + 7px, 11px); }
.msf-card__status { display:inline-flex; align-items:center; gap:4px; min-width:0; white-space:nowrap; border-radius:999px;
  padding:clamp(2px, 1.6cqi, 4px) clamp(6px, 2.6cqi + 3px, 9px); font:700 clamp(8.5px, 1.6cqi + 6.7px, 10.5px)/1.2 var(--sans); letter-spacing:.3px; color:#fff;
  background:linear-gradient(155deg, var(--p-forest-600) 0%, var(--p-forest-800) 60%, var(--p-forest-900) 100%); border:.5px solid rgba(255,255,255,.18);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.22); }
.msf-card__status svg { flex:none; width:clamp(9px, 1.6cqi + 7px, 11px); height:clamp(9px, 1.6cqi + 7px, 11px); }
/* bottom-right: Up Next / Taking a Break, To Be Continued / New episodes (the top-right is the rewatch badge and the card's ⋯ menu) */
.msf-card__br { position:absolute; bottom:clamp(5px, 2cqi + 3px, 8px); inset-inline-end:clamp(5px, 2cqi + 3px, 8px); z-index:3;
  display:flex; align-items:center; justify-content:flex-end; gap:4px; max-width:calc(100% - 12px); }
.msf-card__br .msf-card__status-t, .msf-card__br .lib-tag-t { min-width:0; overflow:hidden; text-overflow:ellipsis; }
.msf-card__br .msf-card__status, .msf-card__br .lib-tag { min-width:0; overflow:hidden; }
.msf-card__poster:has(.msf-card__br) .msf-card__type { max-width:calc(50% - 10px); overflow:hidden; text-overflow:ellipsis; }
.msf-card__type { position:absolute; inset-inline-start:clamp(5px, 2cqi + 3px, 8px); bottom:clamp(5px, 2cqi + 3px, 8px); z-index:3;
  font:600 clamp(9px, 2.2cqi + 6.5px, 12px)/1.25 var(--sans) !important; letter-spacing:.3px; padding:clamp(2px, .9cqi + 1px, 3px) clamp(5px, 3.3cqi + 1.2px, 8px) !important;
  border-radius:3px !important; color:#fff !important; white-space:nowrap; }

/* info: title · year, then meta (left) + rating (right) */
.msf-card__info { display:flex; flex-direction:column; min-width:0; flex:1 0 auto; padding:clamp(6px, 2.6cqi + 3px, 9px) clamp(2px, 2.2cqi - .5px, 5px) clamp(2px, 1cqi + .8px, 3px); }
.msf-card__line1 { display:flex; align-items:flex-start; gap:6px; min-width:0; }
.msf-card__title { flex:1; min-width:0; font:600 clamp(11.5px, 2.6cqi + 8.6px, 15px)/1.22 var(--serif); letter-spacing:.15px; color:var(--text-heading);
  overflow:hidden; display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; line-clamp:2; overflow-wrap:anywhere; }   /* up to two lines, so most titles show in full */
.msf-card__year { flex:none; font:400 clamp(12px, 2.6cqi + 9px, 16px)/1.2 var(--bebas); color:var(--mc-y); padding-top:.05em; }
.msf-card__sub { margin-top:2px; font:600 clamp(10px, 1.65cqi + 8.1px, 12.5px)/1.3 var(--sans); color:var(--mc-m); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.msf-card__line2 { display:flex; align-items:center; justify-content:space-between; gap:6px; min-width:0; padding-top:clamp(3px, 2cqi + .8px, 6px); min-height:clamp(15px, 3cqi + 11.6px, 20px); }
.msf-card__meta { flex:1 1 auto; min-width:0; font:600 clamp(9.5px, 1.3cqi + 8px, 12px)/1.2 var(--sans); color:var(--mc-m); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.msf-card__meta .is-short { display:none; }
.msf-card .msf-score { flex:none; margin-inline-start:auto; font-size:clamp(13px, 2.6cqi + 10px, 17px); }

/* in progress: S4 · E12 + "51 / 86 eps", the bar, "59% watched" */
.msf-card__prog { padding-top:clamp(3px, 2cqi + .8px, 6px); }
.msf-card__prog-row { display:flex; align-items:center; justify-content:space-between; gap:6px; min-width:0; }
.msf-card__prog-row .w-ep-badge { flex:none; font:600 clamp(9px, 2.2cqi + 6.5px, 11px)/1.3 var(--sans); padding:clamp(2px, 1cqi + .8px, 3px) clamp(5px, 3.3cqi + 1.2px, 8px); border-radius:3px;
  background:var(--olive); border-color:var(--olive); color:var(--text-on-brand); }
.msf-card__count { min-width:0; font:600 clamp(9.5px, 1.6cqi + 7.7px, 11.5px)/1.2 var(--sans); color:var(--mc-m); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.msf-card__bar { height:4px; border-radius:9px; background:var(--mc-tr); margin-top:clamp(5px, 3.3cqi + 1.2px, 8px); overflow:hidden; }
.msf-card__bar i { display:block; height:100%; border-radius:9px; background:var(--mc-trf); }
.msf-card__bar.is-muted i { background:var(--mc-y); }
.msf-card__pl { margin-top:4px; font:600 clamp(9px, 1.6cqi + 7.2px, 10.5px)/1.2 var(--sans); color:var(--mc-m); }
/* the category pages' − / pause / + (and Start, Resume, Done…) — kept where they were */
.msf-card__controls { display:flex; align-items:stretch; gap:6px; margin-top:auto; padding-top:8px; padding:0 clamp(2px, 2.2cqi - .5px, 5px) clamp(2px, 1cqi + .8px, 3px); cursor:default; }   /* the buttons share the card's full width */

/* small cards: short meta ("4S · 86E"), the status pill as its icon only */
@container msfcard (max-width:150px) {
  .msf-card__meta .is-long { display:none; }
  .msf-card__meta .is-short { display:inline; }
}
@container msfcard (max-width:140px) {
  .msf-card__status { padding:clamp(2px, 1.6cqi, 4px); }
  .msf-card__status-t { display:none; }
}

/* loading + arrival */
.msf-card.is-skel { cursor:default; }
.msf-card.is-skel .msf-card__poster, .msf-card.is-skel .msf-card__skl { background-color:var(--mc-tr); }
.msf-card.is-skel .msf-card__poster::after { display:none; }
.msf-card__skl { height:clamp(9px, 2cqi + 6.6px, 12px); border-radius:6px; margin-top:6px; }
.msf-card__skl + .msf-card__skl { width:55%; visibility:hidden; }   /* the title's bar only, like the page skeletons — the line keeps the card's height */
.mss-arrive :is(.msf-grid, .msf-rail) > .msf-card:nth-child(-n+12) { animation:mssArrive .45s cubic-bezier(.2,.8,.2,1) backwards; }
.mss-arrive :is(.msf-grid, .msf-rail) > .msf-card:nth-child(2) { animation-delay:35ms; }
.mss-arrive :is(.msf-grid, .msf-rail) > .msf-card:nth-child(3) { animation-delay:70ms; }
.mss-arrive :is(.msf-grid, .msf-rail) > .msf-card:nth-child(4) { animation-delay:105ms; }
.mss-arrive :is(.msf-grid, .msf-rail) > .msf-card:nth-child(5) { animation-delay:140ms; }
.mss-arrive :is(.msf-grid, .msf-rail) > .msf-card:nth-child(6) { animation-delay:175ms; }
.mss-arrive :is(.msf-grid, .msf-rail) > .msf-card:nth-child(7) { animation-delay:210ms; }
.mss-arrive :is(.msf-grid, .msf-rail) > .msf-card:nth-child(8) { animation-delay:245ms; }
.mss-arrive :is(.msf-grid, .msf-rail) > .msf-card:nth-child(9) { animation-delay:280ms; }
.mss-arrive :is(.msf-grid, .msf-rail) > .msf-card:nth-child(10) { animation-delay:315ms; }
.mss-arrive :is(.msf-grid, .msf-rail) > .msf-card:nth-child(11) { animation-delay:350ms; }
.mss-arrive :is(.msf-grid, .msf-rail) > .msf-card:nth-child(12) { animation-delay:385ms; }

@media (prefers-reduced-motion:reduce) {
  .msf-card, .msf-card__poster img { transition:none; }
  .msf-card:hover, .msf-card:active, .msf-card__main:active { transform:none; }
  .msf-card:hover .msf-card__poster img { transform:none; }
  .mss-arrive :is(.msf-grid, .msf-rail) > .msf-card { animation:none !important; }
}

/* ── MSF's rating number: "★ 9.65" (yours 2 decimals, TMDB 1) — in its tier's colour (.st-<key>, css/theme.css) ── */
.msf-score { font-family:var(--bebas); font-weight:400; letter-spacing:.3px; line-height:1; white-space:nowrap; color:var(--st, var(--score-mine)); }
.msf-score.is-off { color:var(--score-mine); text-decoration:line-through; text-decoration-thickness:1px; }   /* a dropped title's score: green, struck (it doesn't count) */

/* ── View more (Library sections over 20) ── */
.msf-more { display:flex; justify-content:center; margin-top:clamp(16px, 2vw, 24px); }
.msf-more-btn { display:inline-flex; align-items:center; gap:8px; min-height:44px; padding:0 18px; border-radius:var(--radius-sm); border:1px solid var(--border-olive);
  background:transparent; color:var(--olive-light); font:700 13px var(--sans); cursor:pointer; transition:background var(--trans) var(--ease); }
.msf-more-btn:hover { background:var(--olive-faint); }
.msf-more-btn:focus-visible { outline:2px solid var(--mc-focus); outline-offset:2px; }
.msf-more-btn small { font-weight:600; color:var(--text-3); font-size:12px; }

/* list rows: the card's details as plain text, and its score */
.msf-row-meta { font:600 12px/1.3 var(--sans); color:var(--text-3); white-space:nowrap; align-self:center; }
.msf-row-meta .is-short { display:none; }
@media (max-width:480px) { .msf-row-meta .is-long { display:none; } .msf-row-meta .is-short { display:inline; } }
/* ── Library: the Watched podium (library-view.js) ── */
.lib-rest-head { display:flex; align-items:center; gap:10px; margin:clamp(20px, 2.4vw, 30px) 0 clamp(12px, 1.4vw, 16px); font:600 clamp(17px, 1.4vw + 12px, 22px) var(--serif); color:var(--text-heading); }

/* desktop: #1 big on the left, the full height; #2 and #3 stacked on the right (owner, 17 Nov 2026) */
.lib-podium { display:grid; grid-template-columns:1.45fr 1fr; grid-template-rows:auto auto; gap:clamp(10px, 1.2vw, 16px); }
.lib-pod-1 { grid-row:1 / span 2; }
.lib-pod:not(.lib-pod-1) .lib-pod-in { min-height:clamp(200px, 9vw + 90px, 250px); }
@media (min-width:1024px) {   /* #1 is twice as tall now: its poster, title and score grow with it */
  .lib-pod-1 .lib-pod-poster { width:clamp(140px, 8vw + 60px, 230px); }
  .lib-podium .lib-pod:not(.lib-pod-1) .lib-pod-poster { width:clamp(96px, 4vw + 60px, 132px); }
  .lib-pod-1 .lib-pod-title { font-size:clamp(22px, 1.2vw + 12px, 32px); }
  .lib-pod-1 .lib-pod-score .msf-score { font-size:clamp(40px, 2.4vw + 16px, 60px); }
}
.lib-pod-in { position:relative; isolation:isolate; overflow:hidden; height:100%; min-height:clamp(250px, 16vw + 80px, 340px); border-radius:16px; cursor:pointer;
  background:#101411; border:1px solid rgba(255,255,255,.08); color:#fff; display:flex; flex-direction:column; justify-content:flex-end;
  transition:transform var(--trans) var(--ease), box-shadow var(--trans) var(--ease); }
@media (hover:hover) { .lib-pod-in:hover { transform:translateY(-3px); } }
.lib-pod-in:focus-visible { outline:2px solid var(--mc-focus); outline-offset:3px; }
.lib-pod-in:active { transform:scale(.98); }
.lib-pod-bg { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; z-index:-2; }
.lib-pod-bg.is-bd { opacity:0; transition:opacity .4s; z-index:-1; }
.lib-pod-bg.is-bd.in { opacity:1; }
.lib-pod-bg.is-blur { filter:blur(14px) brightness(.7); transform:scale(1.15); }
.lib-pod-in::after { content:''; position:absolute; inset:0; z-index:-1; background:linear-gradient(180deg, rgba(4,19,10,.05) 0%, rgba(4,19,10,.55) 45%, rgba(4,19,10,.92) 100%); }
.lib-pod .cg-rank-badge { z-index:2; }
.lib-pod-tr { top:10px; inset-inline-end:10px; max-width:none; }
.lib-pod-body { padding:clamp(10px, 1vw + 4px, 16px); }
.lib-pod-main { display:flex; align-items:flex-end; gap:clamp(12px, 1vw + 4px, 18px); min-width:0; }
.lib-pod:not(.lib-pod-1) .lib-pod-poster { width:clamp(66px, 3.6vw + 38px, 104px); }
.lib-pod-poster { flex:none; width:clamp(78px, 4.5vw + 46px, 128px);   /* grows with the card, so the poster fills its height */ box-shadow:0 6px 18px rgba(0,0,0,.35); aspect-ratio:2/3; border-radius:8px; overflow:hidden; background:#232824; border:1px solid rgba(255,255,255,.18); position:relative; }
.lib-pod-poster img { width:100%; height:100%; object-fit:cover; display:block; }
.lib-pod-txt { flex:1; min-width:0; }
/* the badges under a title on every big backdrop card (mssPhotoTagsHTML): type tag + glass chips, under the title / logo */
.mss-tags { display:flex; flex-wrap:wrap; align-items:center; gap:6px; min-width:0; max-width:100%; margin-top:8px; }
.mss-tags .type-label { font:600 10.5px/1.3 var(--sans) !important; letter-spacing:.2px; padding:2px 7px !important; border-radius:3px !important; color:#fff !important; }
.mss-tag { font:600 10.5px/1.3 var(--sans); letter-spacing:.2px; padding:2px 7px; border:0.5px solid transparent; border-radius:3px; background:rgba(255,255,255,.16); color:#fff; white-space:nowrap;
  -webkit-backdrop-filter:blur(4px); backdrop-filter:blur(4px); }
.mss-tags:is(.pf-fav-meta, .mh-fav-meta) { white-space:normal; overflow:visible; }   /* wrap, never cut a chip */
.lib-pod-title { font:600 clamp(18px, 1vw + 11px, 26px)/1.1 var(--serif); letter-spacing:.15px; padding-bottom:.08em; color:#fff; overflow:hidden; display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; line-clamp:2; }
/* the top 3: your favourites under the title row, in the bright gold (the cards are always dark); least favourites muted */
.lp-favs.lib-pod-favs { display:flex; flex-wrap:wrap; gap:3px 12px; overflow:hidden; margin-top:10px; min-width:0; font-size:12px; max-height:calc(2 * 1.3em + 3px); line-height:1.3; }   /* two lines at most */
.lib-pod-favs .lp-fav { max-width:100%; color:#E7C873; font-size:12px; }
.lib-pod-favs .lp-fav.is-low { color:rgba(255,255,255,.62); }
.lib-pod-score { flex:none; text-align:end; }
.lib-pod-score small { display:block; font:800 10px var(--sans); letter-spacing:.12em; text-transform:uppercase; color:rgba(255,255,255,.7); margin-bottom:2px; }
.lib-pod-score .msf-score { font-size:clamp(30px, 1.8vw + 14px, 48px); color:var(--st, var(--p-forest-300)); }   /* the podium is always dark: the dark-theme tier colours (.lib-pod-in, theme.css) */
.lib-pod:not(.lib-pod-1) .lib-pod-score .msf-score { font-size:clamp(26px, 1.2vw + 14px, 38px); }
/* your score as the site's ring (as on the list cards, .lp-ring): the podium is always dark — its tier's colour, dark values */
.lib-pod-score { display:flex; flex-direction:column; align-items:center; }
.lib-pod-ring.tv-ring { --tv-green:var(--p-forest-300); --tv-gold:#E7C873; width:clamp(72px, 2.6vw + 40px, 96px); border-radius:50%;
  background:rgba(12,20,14,.62); -webkit-backdrop-filter:blur(6px); backdrop-filter:blur(6px); box-shadow:0 4px 16px rgba(0,0,0,.3); }
.lib-pod-ring.tv-ring circle { stroke-width:8; }
.lib-pod-ring.tv-ring b { font-size:clamp(24px, .9vw + 13px, 32px); }
.lib-pod-1 .lib-pod-ring.tv-ring { width:clamp(96px, 4vw + 44px, 132px); }
/* #2 and #3: your score in the bottom-right corner, as the profile's Top Favorites (.pf-fav-ring); the text keeps clear of it */
.lib-pod:not(.lib-pod-1) .lib-pod-score { position:absolute; inset-inline-end:clamp(12px, 1vw + 6px, 20px); bottom:clamp(12px, 1vw + 6px, 18px); z-index:1; }
.lib-pod:not(.lib-pod-1) .lib-pod-txt { padding-inline-end:calc(clamp(72px, 2.6vw + 40px, 96px) + 10px); }
.lib-pod-1 .lib-pod-ring.tv-ring circle { stroke-width:7; }
.lib-pod-1 .lib-pod-ring.tv-ring b { font-size:clamp(32px, 1.6vw + 12px, 44px); }
.lib-pod-note { margin:10px 0 0; padding-inline-start:10px; border-inline-start:2px solid rgba(255,255,255,.35); font:italic 500 12px/1.45 var(--sans); color:rgba(255,255,255,.82);
  overflow:hidden; display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; line-clamp:2; }
@media (max-width:1023px) {
  .lib-podium { grid-template-columns:1fr 1fr; }
  .lib-pod-1 { grid-column:1 / -1; grid-row:auto; }
  .lib-pod:not(.lib-pod-1) .lib-pod-in { min-height:clamp(250px, 16vw + 80px, 340px); }
}
@media (max-width:600px) {
  .lib-pod:not(.lib-pod-1) .lib-pod-note, .lib-pod:not(.lib-pod-1) .lib-pod-score small { display:none; }
  .lp-favs.lib-pod-favs { margin-top:8px; }
  .lib-pod:not(.lib-pod-1) .lp-favs.lib-pod-favs { gap:2px 10px; font-size:11px; }
  .lib-pod:not(.lib-pod-1) .lib-pod-favs .lp-fav { font-size:11px; }
  .lib-pod-in { min-height:250px; }
  .lib-pod-1 .lib-pod-poster { width:86px; }
  /* #2 and #3, half width: like #1 — the poster bottom-left, the title and your score beside it (the top stays for the
     rank and the rewatch badge, the backdrop shows above) */
  .lib-pod:not(.lib-pod-1) .lib-pod-in { min-height:190px; display:flex; flex-direction:column; justify-content:flex-end; }
  .lib-pod:not(.lib-pod-1) .lib-pod-body { padding:10px; }
  .lib-pod:not(.lib-pod-1) .lib-pod-main { display:grid; grid-template-columns:46px minmax(0, 1fr); grid-template-areas:"poster title"; align-items:end; column-gap:10px; }
  .lib-pod:not(.lib-pod-1) .lib-pod-poster { grid-area:poster; width:46px; border-radius:6px; align-self:end; }
  .lib-pod:not(.lib-pod-1) .lib-pod-txt { grid-area:title; }
  .lib-pod:not(.lib-pod-1) .lib-pod-title { font-size:14.5px; line-height:1.15; }
  .lib-pod:not(.lib-pod-1) .lib-pod-score { inset-inline-end:10px; bottom:10px; }
  .lib-pod:not(.lib-pod-1) .lib-pod-txt { padding-inline-end:52px; }
  .lib-pod:not(.lib-pod-1) .lib-pod-ring.tv-ring { width:44px; } .lib-pod:not(.lib-pod-1) .lib-pod-ring.tv-ring circle { stroke-width:9; } .lib-pod:not(.lib-pod-1) .lib-pod-ring.tv-ring b { font-size:16px; }
  .lib-pod-1 .lib-pod-ring.tv-ring { width:72px; } .lib-pod-1 .lib-pod-ring.tv-ring b { font-size:24px; }
  .lib-pod:not(.lib-pod-1) .lib-pod-tags { display:none; }
}
@media (prefers-reduced-motion:reduce) { .lib-pod-in, .lib-pod-bg { transition:none; } .lib-pod-in:hover, .lib-pod-in:active { transform:none; } }

/* a card shown just for its look (MSSCard decor), e.g. On This Day, Pick for Me */
.msf-card.is-decor { cursor:inherit; }
.msf-card.is-decor:hover, .msf-card.is-decor:active { transform:none; }

/* the category pages' card buttons: small, icon only (− / pause / +, Start, Resume, Done, Up Next) */
.msf-card__controls { gap:clamp(4px, 2cqi, 6px); flex-wrap:nowrap; margin-top:auto; padding-top:clamp(5px, 2.6cqi + 1px, 8px); }   /* at the foot of the card */
.msf-cbtn { flex:1 1 0; min-width:0; height:clamp(30px, 6cqi + 22px, 38px); display:inline-flex; align-items:center; justify-content:center; padding:0;
  border-radius:8px; border:1px solid var(--mc-bd); background:transparent; color:var(--mc-t); cursor:pointer;
  transition:background var(--trans) var(--ease), border-color var(--trans) var(--ease), transform .12s var(--ease); }
.msf-cbtn svg { width:clamp(13px, 2.6cqi + 10px, 16px); height:clamp(13px, 2.6cqi + 10px, 16px); }
.msf-cbtn:hover { border-color:var(--mc-bdh); background:var(--olive-faint); }
.msf-cbtn.is-primary { background:var(--action-primary-bg); border-color:var(--action-primary-bg); color:var(--text-on-primary); }
.msf-cbtn.is-primary:hover { background:var(--action-primary-hover); }
.msf-cbtn:active { transform:scale(.94); }
.msf-cbtn:focus-visible { outline:2px solid var(--mc-focus); outline-offset:2px; }
@media (prefers-reduced-motion:reduce) { .msf-cbtn { transition:none; } .msf-cbtn:active { transform:none; } }

/* ── The standard list row — MSSCard.row (list views): the card's frame (a border, no shadow), type, details, badges and score, side by side ── */
.msf-rows { display:flex; flex-direction:column; gap:clamp(8px, .8vw + 4px, 12px); }
.msf-row { position:relative; isolation:isolate; overflow:hidden; display:grid; grid-template-columns:minmax(0, 46%) auto minmax(0, 1fr); align-items:center; gap:0 clamp(10px, 1vw + 4px, 18px); min-width:0; padding:clamp(6px, .4vw + 4px, 8px); border-radius:clamp(13px, .25vw + 12px, 16px);
  background:var(--mc-bg); border:1px solid var(--mc-bd); color:var(--mc-t); text-decoration:none; font-family:var(--sans); cursor:pointer;
  -webkit-tap-highlight-color:transparent; transition:transform var(--trans) var(--ease), border-color var(--trans) var(--ease); }
@media (hover:hover) {
  .msf-row:hover { transform:translateY(-2px); border-color:var(--mc-bdh); }
  .msf-row:hover .msf-row__poster img { transform:scale(1.04); }
  .msf-row.is-dropped:hover .msf-row__poster img { filter:none; }
}
.msf-row:focus-visible { outline:2px solid var(--mc-focus); outline-offset:3px; }
.msf-row__main:focus-visible { outline:2px solid var(--mc-focus); outline-offset:-2px; }
.msf-row:not(.has-controls):active, .msf-row__main:active { transform:scale(.985); }
.msf-row__main { position:relative; z-index:1; min-width:0; display:flex; align-items:center; gap:clamp(10px, 1vw + 4px, 16px); border-radius:clamp(8px, .3vw + 7px, 11px); }
.has-controls > .msf-row__main { cursor:pointer; }
.msf-row__poster { position:relative; flex:none; width:clamp(68px, 4vw + 48px, 118px); aspect-ratio:2/3; border-radius:clamp(8px, .3vw + 7px, 11px); overflow:hidden; background:var(--mc-po); isolation:isolate; }
.msf-row__poster > img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; display:block; transition:transform 400ms var(--ease), filter 200ms var(--ease); }
.msf-row__poster .img-fallback, .msf-row__poster .msf-card__letter { position:absolute; inset:0; display:grid; place-items:center; background:var(--mc-po); color:var(--mc-y); font-family:var(--bebas); font-size:clamp(26px, 2vw + 16px, 40px); }
.msf-row__poster .cg-rank-badge { min-width:24px; height:24px; font-size:14px; padding-block:0; padding-inline:5px 6px; border-end-end-radius:8px; z-index:2; }
.msf-row__poster .cg-rank-badge::after { display:none; }
.msf-row__poster .cg-score-badge { top:4px; inset-inline-start:4px; font-size:12px; padding:2px 6px; min-width:0; }
.msf-row.is-dropped .msf-row__poster img { filter:grayscale(.75) brightness(.85); }
.msf-row__body { flex:1; min-width:0; display:flex; flex-direction:column; gap:clamp(4px, .3vw + 3px, 7px); padding-block:2px; }
.msf-row__line1 { display:flex; align-items:center; flex-wrap:wrap; gap:4px 8px; min-width:0; }
.msf-row__title { min-width:0; font:600 clamp(15px, .5vw + 13px, 19px)/1.2 var(--serif); letter-spacing:.15px; color:var(--text-heading); overflow-wrap:anywhere; }
.msf-row__year { font:400 clamp(15px, .4vw + 13.5px, 18px)/1 var(--bebas); color:var(--mc-y); }
.msf-row__badges { display:inline-flex; align-items:center; gap:4px; }
.msf-row__badges .rewatch-badge { padding:2px 8px; font-size:10.5px; }
.msf-row__tags { display:flex; align-items:center; flex-wrap:wrap; gap:6px 8px; min-width:0; }
.msf-row__tags .type-label { font:600 11px/1.3 var(--sans); padding:2px 8px; border-radius:3px; color:#fff; }
.msf-row__tags .w-ep-badge { font:600 11px/1.3 var(--sans); padding:2px 8px; border-radius:3px; background:var(--olive); border-color:var(--olive); color:var(--text-on-brand); }
.msf-row__sub { font:600 12px/1.3 var(--sans); color:var(--mc-m); min-width:0; }
.msf-row__prog { max-width:420px; }
.msf-row__prog .msf-card__bar { margin-top:2px; }
.msf-row__pl { margin-top:4px; font:600 11.5px/1.2 var(--sans); color:var(--mc-m); }
.msf-row__score { position:relative; z-index:1; justify-self:end; align-self:center; }
/* the right side: the poster as a soft backdrop, fading into the card */
.msf-row__art { grid-row:1 / -1; grid-column:-2 / -1; align-self:stretch; justify-self:stretch; min-height:100%; margin-block:calc(-1 * clamp(6px, .4vw + 4px, 8px)); margin-inline-end:calc(-1 * clamp(6px, .4vw + 4px, 8px));
  z-index:0; pointer-events:none; background:center 25% / cover no-repeat; opacity:.75; filter:saturate(1.05);
  -webkit-mask-image:linear-gradient(to left, #000 70%, transparent); mask-image:linear-gradient(to left, #000 70%, transparent); }
.msf-row__art.is-bd { opacity:0; transition:opacity .45s var(--ease); }
.msf-row__art.is-bd.in { opacity:.75; }
.msf-row__art.is-poster { filter:blur(10px) saturate(1.1); background-position:center 30%; }
[dir="rtl"] .msf-row__art { -webkit-mask-image:linear-gradient(to right, #000 70%, transparent); mask-image:linear-gradient(to right, #000 70%, transparent); }
@media (prefers-reduced-motion:reduce) { .msf-row__art.is-bd { transition:none; } }
.msf-row.is-dropped .msf-row__art { filter:grayscale(.8); }
.msf-row__score .msf-score { font-size:clamp(20px, .6vw + 17px, 26px); }
.msf-row.has-controls { grid-template-columns:minmax(0, 46%) auto auto minmax(0, 1fr); }
/* the category pages' buttons, in the middle of the row */
.msf-row__controls { position:relative; z-index:1; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:6px; cursor:default; }   /* stacked: + on top */
.msf-row__controls .msf-cbtn[aria-label="+1 episode"] { order:-1; }
.msf-row__controls .msf-cbtn { flex:none; width:44px; height:40px; background:color-mix(in srgb, var(--mc-bg) 88%, transparent); }
.msf-row__controls .msf-cbtn.is-primary { background:var(--action-primary-bg); }
.msf-row-block { display:flex; flex-direction:column; gap:4px; }
.msf-row-block > .cc-strip { align-self:flex-start; margin-inline-start:8px; }
.msf-row__note { font:italic 500 12px/1.4 var(--sans); color:var(--mc-m); overflow:hidden; display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; line-clamp:2; }
.msf-row__body .fav-chips { margin-top:0 !important; }
@media (max-width:600px) {
  .msf-row, .msf-row.has-controls { gap:6px 8px; grid-template-columns:minmax(0, 1fr) auto; grid-template-areas:'main ctl' 'score ctl'; }
  .msf-row > .msf-row__main { grid-area:main; }
  .msf-row > .msf-row__score { grid-area:score; justify-self:start; margin-inline-start:calc(clamp(68px, 4vw + 48px, 118px) + 10px); }
  .msf-row > .msf-row__controls { grid-area:ctl; }
  .msf-row__score:empty { display:none; }
  .msf-row__art { grid-area:auto; position:absolute; inset-block:0; inset-inline-end:0; width:46%; margin:0; }
  .msf-row__controls .msf-cbtn { width:38px; height:34px; }
  .msf-row__score .msf-score { font-size:19px; }
}
@media (prefers-reduced-motion:reduce) {
  .msf-row, .msf-row__poster img { transition:none; }
  .msf-row:hover, .msf-row:active, .msf-row__main:active { transform:none; }
  .msf-row:hover .msf-row__poster img { transform:none; }
}

.msf-row.is-skel { cursor:default; }
.msf-row.is-skel .msf-row__poster { background-color:var(--mc-tr); }
.mss-arrive .msf-rows > :is(.msf-row, .msf-row-block):nth-child(-n+8) { animation:mssArrive .45s cubic-bezier(.2,.8,.2,1) backwards; }
.mss-arrive .msf-rows > :nth-child(2) { animation-delay:35ms; } .mss-arrive .msf-rows > :nth-child(3) { animation-delay:70ms; } .mss-arrive .msf-rows > :nth-child(4) { animation-delay:105ms; }
@media (prefers-reduced-motion:reduce) { .mss-arrive .msf-rows > * { animation:none !important; } }

.msf-row .fav-chip-label { color:#fff; }   /* readable on the chip in both themes */

/* ══════════════════════════════════════════
   §14c  Title view — a title's side panel, its full page (item.html) and the phone page
         (js/title-view.js; cards redesign, Session 1)
   The header is always dark: the title's backdrop under a black shade (no blur), so it uses the
   bright greens / gold, like the podium. Everything below it uses the theme's tokens.
══════════════════════════════════════════ */
.lyr.is-side:has(.tv-hero) { -webkit-backdrop-filter:blur(3px); backdrop-filter:blur(3px); }   /* the page behind a title's panel: dimmed and a little blurred */
.lyr-head { position:relative; flex:none; }
.lyr-head + .lyr-body { padding:0; }
.lyr-foot.is-dock:has(.tv-foot-row, .tv-composer) { padding:12px 20px; }

/* ── the header ── */
.tv-hero { --tv-green:var(--p-forest-300); --tv-gold:var(--p-score-top-dark); --tv-on:#fff; --tv-on-2:rgba(255,255,255,.78);
  position:relative; isolation:isolate; display:flex; flex-direction:column; justify-content:flex-end; gap:14px;
  min-height:300px; padding:16px 20px 20px; background:#121613; color:var(--tv-on); overflow:hidden; color-scheme:dark; }
.tv-hero-bg, .tv-hero-shade { position:absolute; inset:0; z-index:-1; }
.tv-hero-bg { background:center 25% / cover no-repeat; opacity:0; transition:opacity .3s ease-out; }
.tv-hero.has-bd .tv-hero-bg { opacity:1; }
.tv-hero-shade { background:linear-gradient(180deg, rgba(0,0,0,.42) 0%, rgba(0,0,0,.30) 34%, rgba(0,0,0,.66) 72%, rgba(0,0,0,.80) 100%); }   /* white text ≥ 4.5:1 on any picture */
.tv-top { position:absolute; inset:16px 20px auto; display:flex; align-items:center; gap:8px; }
.tv-top .tv-round:last-child, .tv-top .is-wide { margin-inline-start:auto; }
.tv-top .is-wide + .tv-round { margin-inline-start:0; }
.tv-top-gap { flex:1; }
.tv-round { display:inline-grid; place-items:center; min-width:36px; height:36px; padding:0; border-radius:var(--radius-sm); border:1px solid rgba(255,255,255,.22);
  background:rgba(0,0,0,.45); color:#fff; font:700 12.5px 'Manrope',var(--sans); text-decoration:none; cursor:pointer; }
.tv-round.is-wide { display:inline-flex; align-items:center; gap:6px; padding:0 12px; flex:none; white-space:nowrap; }   /* "Open full page ↗" on one line (owner, 19 Nov 2026) */
.tv-round:hover:not(:disabled) { background:rgba(0,0,0,.66); }
.tv-round:disabled { opacity:.38; cursor:default; }
.tv-round:focus-visible { outline:2px solid var(--tv-green); outline-offset:2px; }
.tv-count { font:700 12.5px 'Manrope',var(--sans); color:var(--tv-on-2); white-space:nowrap; }
/* the side panel: "14 of 20 · Because you love …" on its own line under ‹ ›, so a long list name never pushes
   Open full page and × out of the bar (owner, 19 Nov 2026) */
.tv-top:has(> .tv-count) { flex-wrap:wrap; row-gap:6px; }
.tv-top > .tv-count { order:1; flex:0 0 100%; min-width:0; overflow:hidden; text-overflow:ellipsis; text-shadow:0 1px 3px rgba(0,0,0,.6); }
.lyr:not(.is-page) .tv-hero:has(> .tv-top > .tv-count) > .tv-hero-main { margin-top:72px; }   /* room for that line above the poster */
.tv-hero-main { display:flex; align-items:flex-end; gap:20px; margin-top:44px; }
.tv-poster { flex:none; width:136px; aspect-ratio:2/3; border-radius:var(--radius-sm); overflow:hidden; border:1px solid rgba(255,255,255,.22); background:#232824; display:grid; place-items:center; }
.tv-poster img { width:100%; height:100%; object-fit:cover; display:block; }
.tv-poster span { font:600 40px var(--serif); color:rgba(255,255,255,.6); }
.tv-hero-txt { flex:1; min-width:0; display:flex; flex-direction:column; align-items:flex-start; gap:8px; }
.tv-status { display:inline-flex; align-items:center; min-height:24px; padding:0 10px; border-radius:6px; background:var(--tv-green); color:#10230c;
  font:800 10.5px/1 'Manrope',var(--sans); letter-spacing:.14em; text-transform:uppercase; }
/* Watchlist priority (MSSPriority, sql/144): a tag beside "On your watchlist" — an icon + the word, never colour alone; Must Watch adds the gold edge */
.tv-status-row { display:inline-flex; flex-wrap:wrap; align-items:center; gap:6px; }
.mss-prio { display:inline-flex; align-items:center; gap:5px; min-height:24px; padding:0 9px 0 7px; border-radius:6px; white-space:nowrap;
  border:1px solid color-mix(in srgb, var(--tv-on) 34%, transparent); background:color-mix(in srgb, var(--tv-on) 12%, transparent); color:var(--tv-on);
  font:800 10.5px/1 'Manrope',var(--sans); letter-spacing:.14em; text-transform:uppercase; }
.mss-prio-ic { display:inline-flex; }
.mss-prio.is-must { border-color:var(--tv-gold); }
.mss-prio.is-must .mss-prio-ic { color:var(--tv-gold); }
.tv-title { margin:0; font:600 40px/1.02 var(--serif); color:#fff; overflow-wrap:anywhere; text-wrap:balance; }
/* the side panel's title: a link to the title's Discover page (title-view.js titleLinkHTML) */
.tv-title-link { display:block; max-width:max-content; color:inherit; text-decoration:none; border-radius:8px; transition:opacity .15s; }
.tv-title-link:hover { opacity:.82; }
.tv-title-link:hover .tv-title:not(.mss-logo-title) { text-decoration:underline; text-decoration-thickness:2px; text-underline-offset:6px; }
.tv-title-link:focus-visible { outline:2px solid var(--olive-light); outline-offset:4px; }
@media (prefers-reduced-motion:reduce) { .tv-title-link { transition:none; } }
.tv-facts { display:flex; flex-wrap:wrap; align-items:center; gap:2px 0; margin:0; font:600 13.5px/1.4 'Manrope',var(--sans); color:var(--tv-on-2); }
.tv-sep { padding:0 .4em; opacity:.7; }
.tv-chip { display:inline-flex; align-items:center; gap:5px; min-height:24px; padding:0 8px; border-radius:6px; border:1px solid rgba(255,255,255,.2); background:rgba(255,255,255,.1);
  font:700 12px/1 'Manrope',var(--sans); color:#fff; white-space:nowrap; }
.tv-chip.is-soft { border-color:var(--border-2); background:var(--raised); color:var(--text-2); }
.tv-chip.is-soft svg { width:12px; height:12px; color:var(--olive-light); }
.tv-fav { display:inline-flex; align-items:center; gap:6px; max-width:100%; min-height:30px; padding:0 12px; border-radius:var(--radius-sm); background:var(--olive); color:var(--text-on-brand); font:600 12.5px 'Manrope',var(--sans); }
.tv-fav svg { width:13px; height:13px; flex:none; }
.tv-fav > span { flex:none; }
.tv-fav b { min-width:0; font-weight:800; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

/* the desktop full page's buttons, in its header */
.tv-acts { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin-top:10px; }
.tv-hero .tv-btn { min-height:44px; border-color:rgba(255,255,255,.22); background:rgba(0,0,0,.42); color:#fff; }
.tv-hero .tv-btn:hover { background:rgba(0,0,0,.62); }
.tv-hero .tv-btn:focus-visible { outline-color:var(--tv-green); }
.tv-hero .tv-btn.is-main { min-width:170px; background:var(--action-primary-bg); border-color:color-mix(in srgb, var(--tv-green) 45%, transparent); }
.tv-hero .tv-btn.is-main:hover { background:color-mix(in srgb, var(--action-primary-hover) 85%, #fff); }
.tv-hero .tv-btn.is-danger { color:#f2a3a3; }

/* how it compares (rank among the same kind, vs your average, vs TMDB, perfect 10s / most given) */
.tv-stats { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:10px; margin-top:18px; }   /* two by two everywhere */
.tv-stat { display:flex; flex-direction:column; gap:6px; min-width:0; padding:14px 16px; border-radius:var(--radius); border:1px solid var(--border); background:var(--raised); }
.tv-stat small { font:800 10px/1.2 'Manrope',var(--sans); letter-spacing:.14em; text-transform:uppercase; color:var(--olive-light); }
.tv-stat b { font:400 32px/1 var(--bebas); color:var(--text); }
.tv-stat span { font:500 12px/1.35 'Manrope',var(--sans); color:var(--text-3); }
.tv-stat.is-dark { background:var(--olive); border-color:var(--olive); }
.tv-stat.is-dark small, .tv-stat.is-dark span { color:rgba(255,255,255,.8); }
.tv-stat.is-dark b { color:#fff; }
.tv-page:not(.is-phone) .tv-main > .tv-stats { grid-template-columns:repeat(4, minmax(0, 1fr)); margin-top:0; }   /* under the bonus cards: one row */
.tv-page:not(.is-phone) .tv-main > .tv-stats .tv-stat:not(.is-dark) { background:var(--panel); }
.tv-coll-name { margin:-6px 0 12px; font-size:13px; }

/* the score ring: fills to score / 10 in its tier's colour (.st-<key>); the hero scopes keep the dark values */
.tv-ring { --ring:var(--st, var(--tv-green)); position:relative; flex:none; width:116px; aspect-ratio:1; display:grid; place-items:center; align-self:center; }
.tv-ring.is-gold { --ring:var(--st, var(--tv-gold)); }
.tv-ring:is(.st-garbage, .st-bad) b { color:color-mix(in srgb, var(--ring) 55%, #fff); }   /* the deep purple / red number, lifted so it reads on dark */
.tv-ring svg { position:absolute; inset:0; width:100%; height:100%; transform:rotate(-90deg); }
.tv-ring circle { fill:none; stroke-width:7; }
.tv-ring-track { stroke:rgba(255,255,255,.18); }
.tv-ring-fill { stroke:var(--ring); stroke-linecap:round; }
.tv-ring b { position:relative; font:400 40px/1 var(--bebas); color:var(--ring); letter-spacing:.01em; padding-top:.08em; }   /* Bebas sits a touch high: nudged to the optical centre */
.tv-ring.is-s { width:74px; } .tv-ring.is-s circle { stroke-width:8; } .tv-ring.is-s b { font-size:26px; }
.tv-ring.is-l { width:156px; } .tv-ring.is-l b { font-size:54px; }

/* ── buttons: one main (green), small ones beside it, thin borders, --radius-sm ── */
.tv-btn { display:inline-flex; align-items:center; justify-content:center; gap:7px; min-height:40px; padding:0 14px; border-radius:var(--radius-sm); border:1px solid var(--border-2);
  background:transparent; color:var(--text); font:700 13px 'Manrope',var(--sans); cursor:pointer; white-space:nowrap; }
.tv-btn svg { width:16px; height:16px; flex:none; }
.tv-btn:hover { background:var(--olive-faint); }
.tv-btn:focus-visible { outline:2px solid var(--olive-light); outline-offset:2px; }
.tv-btn:active { transform:scale(.98); }
.tv-btn.is-main { background:var(--action-primary-bg); border-color:var(--action-primary-bg); color:var(--text-on-primary); padding:0 18px; }
.tv-btn.is-main:hover { background:color-mix(in srgb, var(--action-primary-hover) 88%, #fff); }
.tv-btn.is-icon { width:40px; padding:0; flex:none; }
.tv-btn.is-on { border-color:var(--border-olive); background:var(--olive-faint); color:var(--olive-light); }
.tv-btn.is-grow { flex:1; }
.tv-btn.is-danger { color:var(--danger); }
.tv-btn.is-danger:hover { background:var(--danger-tint); border-color:var(--danger); }

/* ── tabs ── */
.tv-tabs { position:sticky; top:0; z-index:2; display:flex; align-items:center; gap:4px; padding:0 20px; border-bottom:1px solid var(--border); background:var(--panel); overflow-x:auto; scrollbar-width:none; }
.tv-tabs::-webkit-scrollbar { display:none; }
.tv-tab { position:relative; flex:none; display:inline-flex; align-items:center; gap:6px; min-height:52px; padding:0 12px; border:none; background:none; color:var(--text-3);
  font:700 14px 'Manrope',var(--sans); cursor:pointer; white-space:nowrap; }
.tv-tab:hover { color:var(--text); }
.tv-tab.is-on { color:var(--text); }
.tv-tab.is-on::after { content:''; position:absolute; inset:auto 8px -1px; height:2px; border-radius:2px; background:var(--olive-light); }
.tv-tab:focus-visible { outline:2px solid var(--olive-light); outline-offset:-4px; border-radius:var(--radius-xs); }
.tv-tab-n { min-width:20px; height:18px; padding:0 6px; border-radius:6px; background:var(--raised); border:1px solid var(--border); font:700 11px/16px 'Manrope',var(--sans); color:var(--text-3); text-align:center; }
.tv-tabs-vis { margin-inline-start:auto; display:inline-flex; align-items:center; gap:6px; font:600 12.5px 'Manrope',var(--sans); color:var(--text-2); white-space:nowrap; }
.tv-tabs-vis svg { color:var(--olive-light); }

/* ── the body ── */
.tv-body { padding:22px 20px 28px; outline:none; }
.tv-sec { margin-top:26px; }
.tv-sec:first-child, .tv-tabs + .tv-body > .tv-sec:first-child { margin-top:0; }
.tv-sec-h { display:flex; align-items:baseline; justify-content:space-between; gap:10px; margin-bottom:12px; }
.tv-sec-h h3 { margin:0; font:800 10.5px/1.3 'Manrope',var(--sans); letter-spacing:.16em; text-transform:uppercase; color:var(--olive-light); }
.tv-overview { margin:0; font:500 15px/1.65 'Manrope',var(--sans); color:var(--text-2); }
.tv-muted { margin:0; font:500 14px/1.5 'Manrope',var(--sans); color:var(--text-3); }
.tv-pad { padding:8px 0; }
.tv-link { display:inline-flex; align-items:center; gap:4px; min-height:32px; padding:0; border:none; background:none; font:700 12.5px 'Manrope',var(--sans); color:var(--olive-light); text-decoration:none; cursor:pointer; }
.tv-link:hover { text-decoration:underline; }
.tv-link:focus-visible { outline:2px solid var(--olive-light); outline-offset:2px; border-radius:4px; }
.tv-link.is-light { color:#cfe8c4; }
.tv-people { display:grid; grid-template-columns:repeat(var(--n, 6), minmax(0, 1fr)); gap:14px 10px; }   /* the people fill the row */
.tv-person { display:flex; flex-direction:column; align-items:center; gap:6px; min-width:0; text-align:center; color:inherit; text-decoration:none; }
.tv-face { width:min(66px, 100%); aspect-ratio:1; border-radius:50%; overflow:hidden; display:grid; place-items:center; background:var(--raised); border:1px solid var(--border); font:600 22px var(--serif); color:var(--text-3); }
.tv-face { position:relative; }
.tv-face img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:center 20%; display:block; }   /* TMDB photos are 2:3: keep the face in the circle */
.tv-face.is-char img { object-position:center 15%; }
.tv-person b { font:700 12px/1.25 'Manrope',var(--sans); color:var(--text); overflow-wrap:anywhere; }
.tv-person small { font:500 11px/1.25 'Manrope',var(--sans); color:var(--text-3); }
a.tv-person:hover b { text-decoration:underline; }
a.tv-person:focus-visible { outline:2px solid var(--olive-light); outline-offset:3px; border-radius:var(--radius-xs); }
.tv-people.is-loading b { width:56px; height:10px; border-radius:4px; background:var(--raised); }
.tv-glance, .tv-crew { display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:10px; }
.tv-crew { grid-template-columns:repeat(2, minmax(0, 1fr)); }
.tv-tile { display:flex; flex-direction:column; gap:6px; min-width:0; padding:14px; border-radius:var(--radius-sm); border:1px solid var(--border); background:var(--raised); }
.tv-tile small { font:800 10px/1.2 'Manrope',var(--sans); letter-spacing:.14em; text-transform:uppercase; color:var(--text-3); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.tv-tile b { font:500 18px/1.2 var(--serif); color:var(--text-heading); overflow-wrap:anywhere; }
.tv-tile em { display:block; margin-top:4px; font:400 22px/1 var(--bebas); font-style:normal; color:var(--score-mine); }
.tv-crew .tv-tile b { font:700 13.5px/1.3 'Manrope',var(--sans); }
.tv-name { color:inherit; text-decoration:underline; text-decoration-color:var(--border-olive); text-underline-offset:3px; }
.tv-name:hover { color:var(--olive-light); text-decoration-color:currentColor; }
.tv-name:focus-visible { outline:2px solid var(--olive-light); outline-offset:2px; border-radius:3px; }
.tv-dl { margin:0; display:flex; flex-direction:column; }
.tv-dl > div { display:flex; justify-content:space-between; gap:14px; padding:9px 0; border-bottom:1px solid var(--border); }
.tv-dl > div:last-child { border-bottom:none; }
.tv-dl dt { font:600 13px 'Manrope',var(--sans); color:var(--text-3); }
.tv-dl dd { margin:0; font:700 13px 'Manrope',var(--sans); color:var(--text); text-align:end; }
.tv-vis .mss-vis-box { margin-top:0; }

/* My Ratings: each group, its average, full-width bars */
.tv-groups { display:flex; flex-direction:column; gap:12px; }
.tv-groups.is-bonus { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); }
.tv-group { padding:16px 18px; border-radius:var(--radius); border:1px solid var(--border); background:var(--raised); }
.tv-group-h { display:flex; align-items:baseline; justify-content:space-between; gap:10px; margin-bottom:10px; }
.tv-group h4 { margin:0; font:800 10.5px/1.3 'Manrope',var(--sans); letter-spacing:.16em; text-transform:uppercase; color:var(--olive-light); }
.tv-group-h b { font:400 28px/1 var(--bebas); color:var(--st, var(--score-mine)); }   /* the numbers: the bars' green */
.tv-group ul { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:10px; }
.tv-group li { display:grid; grid-template-columns:minmax(0, 11rem) minmax(0, 1fr) 2.6rem; align-items:center; gap:12px; }
.tv-group li > span { font:600 13.5px/1.25 'Manrope',var(--sans); color:var(--text); }
.tv-group li > b { font:400 19px/1 var(--bebas); color:var(--st, var(--score-mine)); text-align:end; }
.tv-segs { min-width:0; }   /* the Edit page's rating line (.rf-segs, ten segments) — read-only here */
.tv-group li > .tv-segs i { height:8px; }
.tv-groups.is-bonus li { grid-template-columns:minmax(0, 1fr) minmax(40px, .8fr) 2.4rem; }
.tv-bonus-h { margin:24px 0 12px; font:800 10.5px/1.3 'Manrope',var(--sans); letter-spacing:.16em; text-transform:uppercase; color:var(--text-3); }
.tv-review-pre { display:flex; flex-direction:column; align-items:flex-start; gap:8px; width:100%; margin-top:18px; padding:18px 20px; border-radius:var(--radius); border:1px solid var(--olive); background:var(--olive); color:var(--text-on-brand); text-align:start; }
.tv-review-pre p { margin:0; font:italic 600 14.5px/1.55 'Manrope',var(--sans); }
.tv-review-pre .tv-muted-l { font-style:normal; display:flex; align-items:center; gap:8px; }
.tv-review-pre.is-empty { flex-direction:row; align-items:center; min-height:52px; background:transparent; color:var(--olive-light); border:1px dashed var(--border-olive); font:700 13.5px 'Manrope',var(--sans); cursor:pointer; }
.tv-review-pre.is-empty:hover { background:var(--olive-faint); }

/* Review: set like an article */
.tv-review { max-width:none; }
.tv-review-by { display:flex; align-items:center; gap:10px; margin-bottom:14px; }
.tv-review-by b { display:block; font:700 13.5px 'Manrope',var(--sans); color:var(--text); }
.tv-review-by small { font:500 12px 'Manrope',var(--sans); color:var(--text-3); }
.tv-av { flex:none; width:36px; height:36px; border-radius:50%; overflow:hidden; display:grid; place-items:center; background:var(--raised); border:1px solid var(--border); font:700 14px 'Manrope',var(--sans); color:var(--text-2); }
.tv-av img { width:100%; height:100%; object-fit:cover; }
.tv-chiprow { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin-bottom:16px; }
/* reading a note (Notes redesign): no box — an olive line beside it, the opening line as a headline, the first
   paragraph leading, 16px / 1.8 with space between paragraphs, quotes in italics, words + reading time at the end */
.tv-read { position:relative; margin-top:6px; padding-inline-start:20px; }   /* no box (owner): the note sits on the page, an olive line down its side */
.tv-read::before { content:''; position:absolute; inset-block:4px 40px; inset-inline-start:0; width:3px; border-radius:3px; background:linear-gradient(var(--olive-light), color-mix(in srgb, var(--olive-light) 15%, transparent)); }
.tv-headline { margin:0 0 16px; font:600 28px/1.2 var(--serif); color:var(--text-heading); text-wrap:balance; letter-spacing:.005em; }
.tv-article { font:500 16px/1.8 'Manrope',var(--sans); color:color-mix(in srgb, var(--text) 86%, var(--text-2)); overflow-wrap:anywhere; }
.tv-article p { margin:0 0 16px; }
.tv-article > p:first-child { color:var(--text); }   /* every paragraph the same size — only what the writer styled stands out */
.tv-article .mss-rq { margin:22px 0; padding:4px 0 4px 18px; border-inline-start:3px solid var(--olive-light); font-style:italic; font-size:17px; color:var(--text); }
.tv-article .mss-rq::before, .tv-article .mss-rq::after { content:none; }
.tv-read-end { display:flex; align-items:center; gap:8px; margin:8px 0 0; font:700 12px 'Manrope',var(--sans); letter-spacing:.02em; color:var(--text-3); }
.tv-read-end span { font-size:9px; color:var(--olive-light); }
@media(max-width:640px) { .tv-read { padding-inline-start:14px; } .tv-headline { font-size:24px; } .tv-article { font-size:15.5px; } }
/* Side panel / phone review: one card for the review, one quiet card for its settings */
.tv-review.is-sheet { display:flex; flex-direction:column; gap:14px; }
.tv-sheet { position:relative; overflow:hidden; padding:20px 22px 0; border-radius:var(--radius); border:1px solid var(--border); background:var(--raised);
  box-shadow:0 1px 2px rgba(0,0,0,.05), 0 14px 30px -22px rgba(0,0,0,.45); }
.tv-sheet::before { content:''; position:absolute; inset:0 0 auto; height:3px; background:linear-gradient(90deg, var(--olive-light), color-mix(in srgb, var(--olive-light) 0%, transparent)); }
.tv-sheet .tv-review-by { margin-bottom:16px; }
.tv-sheet .tv-by-txt { flex:1; min-width:0; }
.tv-sheet .tv-by-txt b { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.tv-by-vis { flex:none; }
.tv-sheet .tv-chiprow { margin:-4px 0 14px; }
.tv-review.is-sheet .tv-read { margin:0; padding:0; }
.tv-review.is-sheet .tv-read::before { content:none; }
.tv-qmark { display:block; height:26px; margin:0 0 2px -2px; font:700 56px/1 Georgia, serif; color:var(--olive-light); opacity:.55; }
.tv-review.is-sheet .tv-headline { margin:0 0 10px; font:700 17px/1.4 'Manrope',var(--sans); letter-spacing:0; }
.tv-review.is-sheet .tv-article, .tv-review.is-sheet .tv-article > p:first-child { font-size:15.5px; line-height:1.75; }
.tv-review.is-sheet .tv-article > :last-child { margin-bottom:0; }
.tv-sheet-foot { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:10px; margin:18px -22px 0; padding:12px 22px; border-top:1px solid var(--border);
  background:color-mix(in srgb, var(--olive-light) 5%, transparent); }
.tv-sheet-meta { font:700 12px 'Manrope',var(--sans); letter-spacing:.02em; color:var(--text-3); }
.tv-review.is-sheet .tv-react b:last-of-type { margin-inline-end:0; }
.tv-review.is-sheet > .tv-review-own { justify-content:flex-end; margin:0; }
.tv-note-set { padding:14px 16px 16px; border-radius:var(--radius); border:1px solid var(--border); background:transparent; }
.tv-set-spoiler { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:4px 12px; }
.tv-set-spoiler .spoiler-toggle { margin:0; padding:0; border:0; background:none; }
.tv-set-spoiler .spoiler-toggle:has(input:checked) { background:none; }
.tv-set-spoiler small { font:500 12px 'Manrope',var(--sans); color:var(--text-3); }
.tv-set-div { height:1px; margin:14px 0; background:var(--border); }
.tv-note-set .mss-vis-box { margin:0; padding:0; border:0; background:none; }
@media(max-width:640px) { .tv-sheet { padding:18px 16px 0; } .tv-sheet-foot { margin-inline:-16px; padding-inline:16px; } .tv-review.is-sheet .tv-headline { font-size:16.5px; } }
.tv-review-end { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:12px; margin-top:22px; padding-top:16px; border-top:1px solid var(--border); }
.tv-review-snip { margin:0 0 10px; font:500 14px/1.65 'Manrope',var(--sans); color:var(--text-2); }
.tv-react { display:inline-flex; align-items:center; gap:6px; font:700 13px 'Manrope',var(--sans); color:var(--text-2); }
.tv-react > svg { width:15px; height:15px; color:var(--olive-light); }
.tv-react b { margin-inline-end:8px; }
.tv-react.is-live { gap:8px; }

/* the review's own controls: the Notes page's spoiler mark and "Who can view" */
.tv-spoiler { display:inline-flex; margin-inline-start:auto; }
.tv-review-own { display:inline-flex; gap:8px; margin-inline-start:auto; }

/* Comments: threads, replies inside them, the box at the bottom */
.tv-thread { display:flex; flex-direction:column; gap:16px; }
.tv-cm-thread { padding-bottom:16px; border-bottom:1px solid var(--border); }
.tv-cm-thread:last-child { border-bottom:none; }
.tv-cm { display:flex; gap:10px; }
.tv-cm.is-reply { margin:12px 0 0 46px; }
.tv-cm.is-reply .tv-av { width:28px; height:28px; font-size:12px; }
.tv-cm-b { flex:1; min-width:0; }
.tv-cm-h { display:flex; align-items:baseline; gap:8px; font:700 13px 'Manrope',var(--sans); }
.tv-cm-h a { color:var(--text); text-decoration:none; }
.tv-cm-h a:hover { text-decoration:underline; }
.tv-cm-h small { font:500 11.5px 'Manrope',var(--sans); color:var(--text-3); }
.tv-cm-b p { margin:4px 0 0; font:500 14px/1.55 'Manrope',var(--sans); color:var(--text-2); overflow-wrap:anywhere; }
.tv-mention { color:var(--olive-light); font-weight:700; }
.tv-cm-a { display:flex; gap:14px; margin-top:4px; }
.tv-cm-a button { min-height:28px; padding:0; border:none; background:none; font:700 12px 'Manrope',var(--sans); color:var(--text-3); cursor:pointer; }
.tv-cm-a button:hover { color:var(--text); }
.tv-reply-slot:not(:empty) { margin:10px 0 0 46px; }
.tv-thread, .tv-replies { margin:0; padding:0; list-style:none; }
.tv-cm-h { flex-wrap:wrap; }
.tv-cm-src { display:inline-flex; align-items:center; min-height:22px; padding:0 8px; border-radius:6px; border:1px solid var(--border-2); background:var(--raised); font:700 11px 'Manrope',var(--sans); color:var(--olive-light); text-decoration:none; }
.tv-cm-h a.tv-cm-src:hover { text-decoration:none; border-color:var(--border-olive); color:var(--text); }
.tv-cm-src:focus-visible, .tv-cm-a button:focus-visible { outline:2px solid var(--olive-light); outline-offset:2px; }
.tv-cm-a .tv-cm-react { display:inline-flex; align-items:center; gap:4px; }
.tv-cm-a .tv-cm-react.is-on { color:var(--olive-light); }
/* the Comments tab on the full page: the thread in one centred box */
.tv-cm-box .mss-empty { padding-block:56px; }
/* desktop full page: the comments scroll inside the box, so the box to write one (part of it, at its bottom) stays in view */
.tv-box.tv-cm-box { width:100%; max-width:1040px; margin-inline:auto; display:flex; flex-direction:column; max-height:calc(100dvh - 96px); padding:0; overflow:hidden; }
.tv-cm-scroll:focus-visible { outline:2px solid var(--olive-light); outline-offset:-2px; }
.tv-cm-scroll { flex:1; min-height:0; overflow-y:auto; overscroll-behavior:contain; padding:28px 32px; }
.tv-cm-dock { flex:none; padding:16px 32px; border-top:1px solid var(--border); background:var(--panel); }
/* Will you like it? (a title you haven't rated): beside the title on a wide full page, otherwise under At a glance */
.tv-like { flex:none; width:300px; align-self:center; padding:16px 18px; border-radius:var(--radius); border:1px solid var(--border); background:var(--panel); color:var(--text); }
.tv-like h3 { margin:0 0 6px; font:800 10px/1.2 'Manrope',var(--sans); letter-spacing:.14em; text-transform:uppercase; color:var(--olive-light); }
.tv-like ul { margin:0; padding:0; list-style:none; }
.tv-like li { display:flex; align-items:center; gap:14px; padding:10px 0; border-top:1px solid var(--border); }
.tv-like li:first-child { border-top:none; }
.tv-like b { flex:none; min-width:52px; font:400 28px/1 var(--bebas); color:var(--text); }
.tv-like span { display:flex; flex-direction:column; gap:2px; min-width:0; font:600 12.5px/1.35 'Manrope',var(--sans); }
.tv-like small { font:500 11.5px/1.35 'Manrope',var(--sans); color:var(--text-3); }
.tv-like a { color:inherit; }
.tv-body > .tv-like, .tv-main > .tv-like { width:auto; }
@media(max-width:1100px) { .tv-hero .tv-like { display:none; } }
@media(min-width:1101px) { .tv-main > .tv-like { display:none; } }
.tv-composer { display:flex; align-items:center; gap:10px; }
.tv-input { flex:1; min-width:0; min-height:44px; padding:0 14px; border-radius:var(--radius-sm); border:1px solid var(--border-input); background:var(--raised); color:var(--text); font:500 14px 'Manrope',var(--sans); }
.tv-input:focus { outline:2px solid var(--olive-light); outline-offset:0; border-color:transparent; }
.tv-send { flex:none; width:44px; height:44px; display:grid; place-items:center; border-radius:var(--radius-sm); border:1px solid var(--action-primary-bg); background:var(--action-primary-bg); color:var(--text-on-primary); cursor:pointer; }
.tv-send.is-ghost { background:none; border-color:var(--border-2); color:var(--text-2); }
.tv-send:focus-visible { outline:2px solid var(--olive-light); outline-offset:2px; }
.tv-composer.is-reply .tv-input, .tv-composer.is-reply .tv-send { min-height:38px; height:38px; }
.tv-composer.is-reply .tv-send { width:38px; }
.tv-composer.is-guest { justify-content:center; }
/* they limit who can reply (Settings › Privacy, 153): said where the box to write in would be */
.mss-reply-off { display:flex; align-items:center; justify-content:center; gap:8px; width:100%; margin:0; min-height:40px; font:500 13.5px/1.45 'Manrope',var(--sans); color:var(--text-muted); text-align:center; }
.mss-reply-off svg { flex:none; }

/* writing your review / note in place */
/* (Notes redesign) one grey bar with the word count, a tall writing area in the reading size, then two option boxes */
.tv-editor { display:flex; flex-direction:column; gap:10px; }
.tv-editor .mss-rt-row { margin:0; padding:6px; border-radius:12px; background:var(--card-2); flex-wrap:nowrap; }
.tv-editor .mss-rt-btn { border-color:transparent; background:transparent; font-weight:800; font-size:14px; }
.tv-editor .mss-rt-btn:hover { background:var(--raised); }
.tv-textarea { width:100%; min-height:330px; padding:14px 16px; border-radius:14px; border:1.5px solid var(--olive-light); background:var(--raised); color:var(--text);
  font:500 15px/1.75 'Manrope',var(--sans); resize:vertical; }
.tv-textarea:focus, .tv-textarea:focus-visible { outline:4px solid color-mix(in srgb, var(--olive-light) 16%, transparent); outline-offset:0; }
.tv-editor .tv-count { margin:0; margin-inline-start:auto; padding-inline-end:6px; font:800 12px 'Manrope',var(--sans); color:var(--text-3); text-align:end; white-space:nowrap; }
.tv-editor .tv-count.over { color:var(--danger); }
.tv-restored { display:flex; flex-wrap:wrap; align-items:center; gap:6px; margin:0; font:600 12.5px 'Manrope',var(--sans); color:var(--text-2); }
.tv-restored svg { width:13px; height:13px; color:var(--olive-light); }
.tv-opts { display:grid; grid-template-columns:minmax(0, 1fr) minmax(0, 1.4fr); gap:10px; }
.tv-opt { min-width:0; padding:12px 14px; border-radius:12px; border:1px solid var(--border); background:var(--raised); }
.tv-opt .spoiler-toggle { margin:0; }
.tv-opt small { display:block; margin-top:6px; font:600 11.5px 'Manrope',var(--sans); color:var(--text-3); }
.tv-opt .mss-vis-box { margin:0; padding:0; border:0; background:none; }
.tv-draft { font:600 12px 'Manrope',var(--sans); color:var(--text-3); white-space:nowrap; }
.tv-foot-gap:has(.tv-draft) { display:flex; align-items:center; min-width:0; }
[data-theme="light"] .tv-textarea { background:var(--surface-elevated); }   /* the PDF: a white writing area in light */
@media(max-width:640px) { .tv-textarea { min-height:300px; } .tv-opts { grid-template-columns:1fr; } }

/* the panel's footer */
.tv-foot-row { display:flex; align-items:center; gap:8px; min-width:0; }
/* too many actions for the room (title-view.js fitRow): small buttons, from the right, show just their icon; the label stays for screen readers */
.tv-foot-row .tv-btn.is-ic { flex:none; width:40px; padding:0; }
.tv-foot-row .tv-btn.is-off { display:none; }
.tv-foot-row .tv-btn.is-ic > span { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
.tv-foot-gap { flex:1; }

/* ── the full page (item.html) ── */
.tv-page { width:100%; }
.tv-page:not(.is-phone) .tv-hero { min-height:var(--hero-h); padding:84px 44px 70px; border-radius:var(--radius-lg); border:1px solid var(--border); }
/* every title hero on a computer is laid out like the title page's: poster and text sitting on the bottom, the same poster size */
.tv-page:not(.is-phone) .tv-hero-main { gap:36px; margin-top:0; align-items:flex-end; }
.tv-page:not(.is-phone) .tv-poster { width:var(--hero-poster); border-radius:var(--radius); }
.tv-page:not(.is-phone) .tv-title { font-size:64px; }
.tv-page:not(.is-phone) .tv-hero-txt { gap:12px; }
.tv-tagline { margin:-4px 0 0; font:italic 500 16px/1.45 'Manrope',var(--sans); color:var(--tv-on-2); }
.tv-chips { display:flex; flex-wrap:wrap; gap:6px; }
.tv-crumb { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin:0 0 14px; font:600 13px 'Manrope',var(--sans); color:var(--text-3); }
.tv-crumb a { display:inline-flex; align-items:center; gap:4px; min-height:32px; color:var(--text-2); text-decoration:none; }
.tv-crumb a:hover { text-decoration:underline; }
.tv-crumb a:focus-visible { outline:2px solid var(--olive-light); outline-offset:2px; border-radius:4px; }
.tv-crumb span[aria-current] { color:var(--text); }
/* the shared trail (nav.js mssCrumbHTML): ‹ Back / where you came from / this page — above the title and person pages' backdrops */
.mss-crumb + .tv-hero { margin-top:0; }
.mss-crumb [aria-current] { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.tv-page.is-phone .mss-crumb { flex-wrap:nowrap; margin-bottom:8px; overflow:hidden; }
.tv-page.is-phone .mss-crumb a { flex:none; }
.tv-page:not(.is-phone) .tv-tabs { position:relative; z-index:3; margin:-26px 20px 0; padding:6px; gap:4px; border:1px solid var(--border); border-radius:var(--radius); background:var(--panel); }
.tv-page:not(.is-phone) .tv-tab { min-height:40px; padding:0 16px; border-radius:var(--radius-sm); }
.tv-page:not(.is-phone) .tv-tab.is-on { background:var(--olive); color:var(--text-on-brand); }
.tv-page:not(.is-phone) .tv-tab.is-on::after { display:none; }
.tv-page:not(.is-phone) .tv-tab.is-on .tv-tab-n { background:rgba(255,255,255,.18); border-color:transparent; color:#fff; }
.tv-page:not(.is-phone) .tv-tabs-vis { padding-inline-end:10px; }
.tv-pagebody { margin-top:24px; }
.tv-cols { display:grid; grid-template-columns:minmax(0, 1fr) 340px; gap:20px; align-items:start; }
.tv-main, .tv-side { display:flex; flex-direction:column; gap:20px; min-width:0; }
.tv-page:not(.is-phone) .tv-sec { margin:0; padding:20px 22px; border-radius:var(--radius); border:1px solid var(--border); background:var(--panel); }
.tv-page:not(.is-phone) .tv-vis { padding:0; border:none; background:none; }
.tv-page:not(.is-phone) .tv-main > .tv-groups > .tv-group, .tv-page:not(.is-phone) .tv-groups.is-bonus .tv-group { background:var(--panel); }
.tv-page:not(.is-phone) .tv-groups.is-bonus { grid-template-columns:repeat(2, minmax(0, 1fr)); }   /* two to a row, laid out like the core cards */
.tv-page:not(.is-phone) .tv-groups.is-bonus li { grid-template-columns:minmax(0, 11rem) minmax(0, 1fr) 2.6rem; gap:12px; }
.tv-page:not(.is-phone) .tv-bonus-h { margin:4px 0 -8px; }
.tv-page:not(.is-phone) .tv-review { max-width:none; padding:32px 40px; border-radius:var(--radius); border:1px solid var(--border); background:var(--panel); }
.tv-page:not(.is-phone) .tv-review .tv-headline { font-size:28px; }
.tv-box { padding:20px 22px; border-radius:var(--radius); border:1px solid var(--border); background:var(--panel); }
.tv-dash { display:flex; align-items:center; justify-content:center; gap:8px; width:100%; min-height:48px; padding:0 14px; border-radius:var(--radius-sm); border:1px dashed var(--border-2); background:none;
  font:600 13px 'Manrope',var(--sans); color:var(--text-2); cursor:pointer; text-align:center; }
.tv-dash:hover { border-color:var(--border-olive); color:var(--text); background:var(--olive-faint); }
/* favourites and least favourites (My Ratings, Review) */
.tv-favs { display:flex; flex-direction:column; gap:8px; }
.tv-favs-h { display:flex; align-items:center; gap:6px; margin:16px 0 8px; font:800 10px/1.3 'Manrope',var(--sans); letter-spacing:.14em; text-transform:uppercase; color:var(--text-3); }
.tv-favs-h svg { width:13px; height:13px; }
.tv-favc { display:flex; align-items:center; gap:12px; min-width:0; padding:8px 10px 8px 8px; border-radius:var(--radius-sm); border:1px solid var(--border); background:var(--raised); color:inherit; text-decoration:none; }
a.tv-favc:hover { border-color:var(--border-olive); }
a.tv-favc:hover b { text-decoration:underline; text-underline-offset:3px; }
a.tv-favc:focus-visible { outline:2px solid var(--olive-light); outline-offset:2px; }
.tv-favc-img { flex:none; width:40px; aspect-ratio:2/3; border-radius:6px; overflow:hidden; display:grid; place-items:center; background:var(--olive); color:var(--text-on-brand); }
.tv-favc-img img { width:100%; height:100%; object-fit:cover; display:block; }
.tv-favc-img.is-face { width:44px; aspect-ratio:1; border-radius:50%; }
.tv-favc-img.is-face img { object-position:center 20%; }
.tv-favc-img.is-ep { width:48px; aspect-ratio:1; }
.tv-favc-img.is-still { width:78px; aspect-ratio:16/9; }
.tv-favc-img i { font:400 15px/1 var(--bebas); font-style:normal; letter-spacing:.04em; text-align:center; }
.tv-favc-t { flex:1; min-width:0; display:flex; flex-direction:column; gap:2px; }
.tv-favc-t small { font:800 9.5px/1.2 'Manrope',var(--sans); letter-spacing:.14em; text-transform:uppercase; color:var(--olive-light); }
.tv-favc-t b { font:700 14px/1.3 'Manrope',var(--sans); color:var(--text); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.tv-favc-t em { font:500 12px/1.3 'Manrope',var(--sans); font-style:normal; color:var(--text-3); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.tv-favc.is-low .tv-favc-img { background:var(--bg-3); color:var(--text-3); }
.tv-favc.is-low .tv-favc-img img { filter:grayscale(.6); opacity:.85; }
.tv-favc.is-low .tv-favc-t small { color:var(--text-3); }
.tv-body .tv-favs-sec { margin-top:22px; }
.tv-fav-card { display:flex; align-items:center; gap:10px; padding:14px; border-radius:var(--radius-sm); background:var(--olive); color:var(--text-on-brand); font:700 14px 'Manrope',var(--sans); }
.tv-page:not(.is-phone) .tv-face { width:min(84px, 100%); }
.tv-page.is-info:not(.is-phone) .tv-side .tv-people { grid-template-columns:repeat(3, minmax(0, 1fr)); }   /* the narrow side column: three to a row */
.tv-page.is-info:not(.is-phone) .tv-side .tv-face { width:min(72px, 100%); }
/* the Overview's key facts, a movie's runtime and one row of cast — the title page's Overview and a title's Title Info */
.tp-keys { display:grid; grid-template-columns:repeat(4, minmax(0, 1fr)); gap:10px; margin-top:16px; }
.tp-keys .tv-tile b { font:700 14px/1.3 'Manrope',var(--sans); }
.tv-page.is-phone .tp-keys { grid-template-columns:repeat(2, minmax(0, 1fr)); }
.tp-runtime { display:flex; align-items:center; gap:18px; margin-top:16px; padding:16px 18px; border-radius:var(--radius-sm); background:var(--olive); color:var(--text-on-brand); }
.tp-runtime-ic { flex:none; width:46px; height:46px; display:grid; place-items:center; border-radius:50%; background:rgba(255,255,255,.14); }
.tp-runtime b { display:block; font:400 40px/1 var(--bebas); letter-spacing:.02em; }
.tp-runtime small { display:block; margin-top:4px; font:800 10px/1.2 'Manrope',var(--sans); letter-spacing:.14em; text-transform:uppercase; color:rgba(255,255,255,.8); }
.tp-runtime > span:last-child { margin-inline-start:auto; font:600 12.5px/1.45 'Manrope',var(--sans); color:rgba(255,255,255,.85); text-align:end; }
.tp-cast { display:grid; grid-template-columns:repeat(8, minmax(0, 1fr)); gap:16px 10px; }
.tv-page:not(.is-phone) .tp-cast .tv-face { width:min(80px, 100%); }
.tv-page.is-phone .tp-cast { display:flex; gap:12px; overflow-x:auto; padding-bottom:6px; scrollbar-width:thin; }
.tv-page.is-phone .tp-cast .tv-person { flex:0 0 74px; }
/* a title's own page (item.html, not the title page): a wider side column with bigger favourites and cast (owner, 14 Nov 2026) */
.tv-page:not(.is-phone) .tv-cols { grid-template-columns:minmax(0, 1fr) clamp(340px, 28vw, 460px); }   /* the title page too (owner) */
.tv-page:not(.tp-page):not(.is-phone) .tv-side .tv-favs { gap:10px; }
.tv-page:not(.tp-page):not(.is-phone) .tv-side .tv-favc { gap:14px; padding:10px 14px 10px 10px; }
.tv-page:not(.tp-page):not(.is-phone) .tv-side .tv-favc-img { width:56px; }
.tv-page:not(.tp-page):not(.is-phone) .tv-side .tv-favc-img.is-face { width:60px; }
.tv-page:not(.tp-page):not(.is-phone) .tv-side .tv-favc-img.is-ep { width:64px; }
.tv-page:not(.tp-page):not(.is-phone) .tv-side .tv-favc-img.is-still { width:116px; }
.tv-page:not(.tp-page):not(.is-phone) .tv-side .tv-favc-img i { font-size:18px; }
.tv-page:not(.tp-page):not(.is-phone) .tv-side .tv-favc-t small { font-size:10px; }
.tv-page:not(.tp-page):not(.is-phone) .tv-side .tv-favc-t b { font-size:16px; white-space:normal; display:-webkit-box; -webkit-line-clamp:2; line-clamp:2; -webkit-box-orient:vertical; }
.tv-page:not(.tp-page):not(.is-phone) .tv-side .tv-favc-t em { font-size:13px; }
.tv-page:not(.tp-page):not(.is-phone) .tv-side .tv-person b { font-size:13px; }
.tv-page:not(.tp-page):not(.is-phone) .tv-side .tv-person small { font-size:12px; }
.tv-page:not(.tp-page):not(.is-phone) .tv-side .tv-review-pre p, .tv-page:not(.tp-page):not(.is-phone) .tv-side .tv-review-snip { font-size:15px; }
/* A title's two columns with nothing blank beside them (mssFitCols, config.js): its sections are placed one by one — the first --k
   beside the right column, the rest (.is-full) across. is-level: the shorter side's last box grows so both end together. */
@media (min-width:1101px) {
  .tv-cols.is-laid > .tv-main { display:contents; }
  .tv-cols.is-laid > .tv-main > * { grid-column:1; }
  .tv-cols.is-laid > .tv-main > .is-full { grid-column:1 / -1; }
  .tv-cols.is-laid > .tv-side { grid-column:2; grid-row:1 / span var(--k); }
  .tv-cols.is-fit > :is(.tv-main, .tv-side) > :empty { display:none; }
  .tv-cols.is-level { align-items:stretch; }
  .tv-cols.is-level > .tv-side > .tv-sec:last-child { flex:1 0 auto; }
  .tv-cols.is-level > .tv-side > .tv-sec:last-child:has(> .tv-dl) { display:flex; flex-direction:column; }
  .tv-cols.is-level > .tv-side > .tv-sec:last-child > .tv-dl { flex:1; justify-content:space-between; }
  .tv-cols.is-fit .tp-cast { grid-template-columns:repeat(auto-fit, minmax(64px, 1fr)); }   /* fewer than 8 people: spread over the row */
  .tv-cols.is-fit .tv-glance { grid-template-columns:repeat(auto-fit, minmax(140px, 1fr)); }
  .tv-cols.is-fit .tv-crew > :last-child:nth-child(odd) { grid-column:1 / -1; }
  .msf-rows.is-fill > .lp-card { cursor:pointer; }
  .msf-rows.is-fill { display:grid; grid-template-columns:repeat(var(--n, 2), minmax(0, 1fr)); }
}
@media (max-width:1100px) { .tv-cols, .tv-page:not(.is-phone) .tv-cols { grid-template-columns:minmax(0, 1fr); } .tv-page .tv-title { font-size:52px; } }
/* the title's logo (TMDB artwork) instead of the written name, like the title page */
.tv-title.mss-logo-title:not(.mss-logo-failed) { line-height:0; }
.tv-title .mss-logo { max-width:min(100%, 360px); max-height:84px; }
.tv-title.mss-logo-tall .mss-logo { max-height:120px; }
.tv-page:not(.is-phone) .tv-title .mss-logo { max-width:min(100%, 540px); max-height:140px; }
@media (min-width:701px) { .egs-hero .tv-title .mss-logo { max-width:min(100%, 540px); max-height:140px; } }   /* the Episodes page: the title page's logo size */
.tv-page.is-phone .tv-title .mss-logo { max-width:min(100%, 220px); max-height:64px; }

/* ── phones: the boxed header, a sticky tab bar, one column, the bar at the bottom ── */
.page-wrap.tv-wrap:has(.tv-page.is-phone) { padding:calc(8px + env(safe-area-inset-top)) 10px 0; }
.tv-page.is-phone .tv-hero { min-height:0; margin:0; padding:12px 14px 16px; border-radius:var(--radius-lg); gap:10px; }
.tv-page.is-phone .tv-top { inset:12px 12px auto; }
.tv-page.is-phone .tv-hero-main { gap:14px; margin-top:132px; align-items:flex-end; }
.tv-page.is-phone .tv-poster { width:96px; }
/* phones, every big header — title, season, episode, person, Edit, a title's page, the profile, Episodes (owner, 19 Nov 2026,
   as the profile header 18 Nov and Home's Continue watching): the backdrop is a clear band across the top, fading into the
   dark under the poster and title — not one picture stretched over the whole card and darkened everywhere */
:is(.tv-page.is-phone, .lyr.is-page) .tv-hero .tv-hero-bg { bottom:auto; height:300px; -webkit-mask-image:linear-gradient(180deg, black 55%, transparent 100%); mask-image:linear-gradient(180deg, black 55%, transparent 100%); }
:is(.tv-page.is-phone, .lyr.is-page) .tv-hero .tv-hero-shade { background:linear-gradient(180deg, rgba(0,0,0,.22) 0%, rgba(0,0,0,.04) 16%, rgba(0,0,0,.42) 32%, rgba(0,0,0,.66) 46%, rgba(0,0,0,.74) 100%); }   /* the title and facts ≥ 4.5:1 */
.tv-page.is-phone .tv-title { font-size:28px; }
.tv-page.is-phone .tv-facts { font-size:12.5px; }
.tv-page.is-phone .tv-ring { align-self:flex-end; }
.tv-page.is-phone .tv-tabs { top:0; margin:6px -10px 0; padding:0 10px; gap:0; background:var(--bg); border-bottom-color:var(--border); transition:top .2s var(--layer-in); }
/* the slim bar once the header has scrolled away; the tab bar sits under it */
.tv-mini { --tv-green:var(--p-forest-300); --tv-gold:var(--p-score-top-dark); position:fixed; inset:calc(8px + env(safe-area-inset-top)) 10px auto; z-index:60; isolation:isolate; overflow:hidden;
  display:flex; align-items:center; gap:10px; height:64px; padding:0 10px; border-radius:var(--radius-lg); border:1px solid rgba(255,255,255,.12);
  background:#121613; color:#fff; transform:translateY(calc(-100% - 12px)); transition:transform .2s var(--layer-in); }
.tv-mini .tv-hero-shade { background:rgba(0,0,0,.58); }
.tv-mini.has-bd .tv-hero-bg { opacity:1; }
.tv-page.is-scrolled .tv-mini { transform:none; }
.tv-page.is-scrolled .tv-tabs { top:calc(80px + env(safe-area-inset-top)); }
.tv-page.is-phone .tv-tabs { overflow:visible; }   /* the tabs fill the width on phones: nothing to scroll sideways */
.tv-page.is-scrolled .tv-tabs::before { content:''; position:absolute; inset:auto 0 100%; height:calc(80px + env(safe-area-inset-top)); background:var(--bg); }   /* nothing peeks out around the small header */
.tv-mini-poster { width:30px; height:45px; border-radius:6px; border:1px solid rgba(255,255,255,.22); object-fit:cover; flex:none; }
.tv-mini-txt { flex:1; min-width:0; display:flex; flex-direction:column; gap:2px; }
.tv-mini-txt b { font:600 18px/1.15 var(--serif); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.tv-mini-txt small { font:800 9.5px/1.2 'Manrope',var(--sans); letter-spacing:.12em; text-transform:uppercase; color:var(--tv-green); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.tv-ring.is-xs { width:46px; align-self:center; } .tv-ring.is-xs circle { stroke-width:9; } .tv-ring.is-xs b { font-size:17px; }
@media (prefers-reduced-motion:reduce) { .tv-mini, .tv-page.is-phone .tv-tabs { transition:none; } }
.tv-page.is-phone .tv-tab { flex:1 1 auto; justify-content:center; min-width:0; min-height:48px; padding:0 4px; gap:4px; font-size:13px; }
.tv-page.is-phone .tv-tab-n { min-width:16px; padding:0 4px; font-size:10px; }
.tv-page.is-phone .tv-fav { min-height:26px; padding:0 9px; gap:5px; font-size:11.5px; }
.tv-page.is-phone .tv-fav svg { width:12px; height:12px; }
.tv-page.is-phone .tv-body { padding:20px 6px 28px; }
.tv-page.is-phone .tv-sec { margin-top:28px; }
.tv-page.is-phone .tv-body > .tv-sec:first-child { margin-top:0; }
.tv-page.is-phone .tv-group { padding:16px; }
.tv-page.is-phone .tv-stat { padding:12px 14px; gap:4px; }
.tv-page.is-phone .tv-stat b { font-size:26px; }
.tv-page.is-phone .tv-stat span { font-size:11.5px; }
.tv-page.is-phone .tv-mini .tv-ring { align-self:center; width:40px; }
.tv-page.is-phone .tv-mini .tv-ring b { font-size:15px; }
.tv-page.is-phone.has-bar { padding-bottom:calc(84px + env(safe-area-inset-bottom)); }
.tv-page:not(.is-phone) .tv-dock { position:sticky; bottom:16px; z-index:5; margin-top:24px; padding:12px 16px; border:1px solid var(--border); border-radius:var(--radius); background:var(--panel); }
.tv-page.is-phone .tv-dock { position:fixed; inset:auto 0 0; z-index:50; padding:10px 16px calc(10px + env(safe-area-inset-bottom)); border-top:1px solid var(--border); background:var(--panel); }
.tv-page.is-phone .tv-dock .tv-btn { min-height:48px; }
.tv-page.is-phone .tv-dock .tv-btn.is-icon { width:48px; }
.tv-page.is-phone .tv-dock .tv-input, .tv-page.is-phone .tv-dock .tv-send { min-height:48px; height:48px; }
.tv-page.is-phone .tv-dock .tv-send { width:48px; }
.tv-page.is-phone .tv-glance { grid-template-columns:repeat(2, minmax(0, 1fr)); }
.tv-page.is-phone .tv-groups.is-bonus { grid-template-columns:minmax(0, 1fr); }
.tv-page.is-phone .tv-group li { grid-template-columns:minmax(0, 1fr) 2.6rem; row-gap:6px; }
.tv-page.is-phone .tv-group li > .tv-segs { grid-column:1 / -1; grid-row:2; }
.tv-page.is-phone .tv-people { grid-template-columns:repeat(3, minmax(0, 1fr)); }

body:has(.tv-page.is-phone:not(.de-page, .tp-rt-page)) :is(#mainNav, .bnav) { display:none; }   /* a real page of its own: no site header or bottom bar around it */
@media (prefers-reduced-motion:reduce) { .tv-hero-bg { transition:none; } }

/* ══════════════════════════════════════════
   §14d  The Edit page (detail.html; edit page redesign) — the title's full page in edit mode: the title
         view's hero, ring, chips, tab bar and slim bar (.tv-*), with Info · Ratings · Review · Progress.
   No gold except the score at 9.80+; everything else is MSF green. The phone keeps the site's header and
   bottom bar; a dark Save bar sits above the bottom bar.
══════════════════════════════════════════ */
.de-page { --de-top:0px; position:relative; }
.de-crumb { margin-bottom:14px; }
.de-crumb [hidden] { display:none; }
.tv-page.is-phone.de-page .de-crumb { display:none; }
/* the hero: the poster and the backdrop are both buttons */
.de-page:not(.is-phone) .de-hero { min-height:var(--hero-h); padding:84px 44px 70px; }   /* as tall as the title page's (owner) */
.de-page:not(.is-phone) .de-poster { width:var(--hero-poster); }
.de-hero .tv-hero-main { margin-top:0; }
.de-page:not(.is-phone) .de-top { inset:16px 20px auto; justify-content:flex-end; }
.de-phone { display:none; }
.de-page.is-phone .de-phone { display:inline-grid; }
.de-bd-btn { gap:7px; opacity:.86; transition:opacity .15s, background .15s; }
.de-hero:hover .de-bd-btn, .de-bd-btn:focus-visible { opacity:1; background:rgba(0,0,0,.66); }
.de-bd-btn[hidden] { display:none; }
.de-top .de-bd-btn + .de-bd-btn { margin-inline-start:-2px; }   /* with the row's 8px gap: 6px between the two */
.de-poster { position:relative; padding:0; cursor:pointer; color:#fff; }
.tv-poster.de-poster #dPosterLetter { font:600 40px var(--serif); color:rgba(255,255,255,.6); }
.tv-poster.de-poster .de-edit-hint { position:absolute; inset:auto 0 0; display:flex; align-items:center; justify-content:center; gap:6px; min-height:34px; padding:6px;
  background:rgba(0,0,0,.66); font:700 12px 'Manrope',var(--sans); opacity:0; transition:opacity .15s; }
.tv-poster.de-poster:hover .de-edit-hint, .tv-poster.de-poster:focus-visible .de-edit-hint { opacity:1; }
.de-poster:focus-visible { outline:2px solid var(--tv-green); outline-offset:3px; }
@media (hover:none) { .tv-poster.de-poster .de-edit-hint { opacity:1; inset:auto 6px 6px auto; width:30px; min-height:30px; padding:0; gap:0; line-height:0; border-radius:var(--radius-sm); font-size:0; } }   /* touch: a small picture badge — no gap, so the icon sits centred */
/* "Editing entry": green, with a pulsing dot */
.de-badge { display:inline-flex; align-items:center; gap:7px; min-height:24px; padding:0 10px; border-radius:6px; background:var(--tv-green, var(--olive-light)); color:#10230c;
  font:800 10.5px/1 'Manrope',var(--sans); letter-spacing:.14em; text-transform:uppercase; white-space:nowrap; }
.de-badge i { width:7px; height:7px; border-radius:50%; background:#10230c; animation:dePulse 1.6s ease-in-out infinite; }
.de-badge.is-s { min-height:18px; padding:0 7px; font-size:9px; gap:5px; }
.de-badge.is-s i { width:5px; height:5px; }
@keyframes dePulse { 50% { opacity:.3; } }
.tv-chip.is-status { gap:6px; border-color:color-mix(in srgb, var(--tv-green) 55%, transparent); background:color-mix(in srgb, var(--tv-green) 22%, transparent); }
.tv-chip.is-status i { width:6px; height:6px; border-radius:50%; background:var(--tv-green); }
.de-acts { margin-top:8px; }
.de-acts .de-save { min-width:0; }
.de-acts .tv-btn:disabled { opacity:.5; cursor:default; }
.de-dirty { display:inline-flex; align-items:center; gap:7px; font:600 12.5px 'Manrope',var(--sans); color:var(--tv-on-2); }
.de-dirty i { width:7px; height:7px; border-radius:50%; background:var(--tv-green); }
.de-acts .de-more { margin-inline-start:auto; }
@media (max-width:1100px) { .de-dirty { order:9; flex-basis:100%; } }
.de-page .list-desc-count { margin:0; font:600 12px 'Manrope',var(--sans); color:var(--text-3); text-align:end; }
.de-page .list-desc-count.over { color:var(--danger); }
.de-score { display:flex; flex-direction:column; align-items:center; gap:10px; flex:none; align-self:center; }
.de-delta { display:inline-flex; align-items:center; min-height:24px; padding:0 9px; border-radius:6px; background:color-mix(in srgb, var(--tv-green) 22%, transparent); border:1px solid color-mix(in srgb, var(--tv-green) 45%, transparent);
  font:700 11.5px 'Manrope',var(--sans); color:#dff0d6; white-space:nowrap; }
.de-delta.is-down { background:rgba(255,255,255,.1); border-color:rgba(255,255,255,.22); color:#fff; }
.de-delta.is-s { min-height:20px; padding:0 6px; font-size:10.5px; }
.de-delta[hidden] { display:none; }
.tv-ring.is-empty b { color:rgba(255,255,255,.6); }
/* the slim bar: the phone's (title view) on every width, under the site's header */
.de-page .de-mini { top:calc(var(--de-top) + 8px); }
.de-page:not(.is-phone) .de-mini { inset-inline:var(--page-px, 48px); max-width:none; height:68px; padding:0 14px; gap:14px; }
.de-mini .tv-mini-txt { gap:4px; align-items:flex-start; }
.de-mini .de-save { min-height:40px; }
.de-mini .de-save.de-desk { display:none; }
.de-page:not(.is-phone) .de-mini .de-save.de-desk { display:inline-flex; }
.de-page .de-mini .tv-ring { align-self:center; }
.de-page.is-scrolled .tv-mini { transform:none; }
/* the tab bar sticks at the top: right under the site's header, then under the slim bar once it's in */
.de-page .de-tabs, .tv-page.de-page:not(.is-phone) .de-tabs { position:sticky; top:calc(var(--de-top) + 8px); z-index:4; transition:top .2s var(--layer-in); }
.tv-page.de-page.is-scrolled:not(.is-phone) .de-tabs { top:calc(var(--de-top) + 84px); }
.de-page.is-phone .de-tabs { top:var(--de-top); margin:6px 0 0; padding:0; }
.de-page.is-phone.is-scrolled .de-tabs { top:calc(var(--de-top) + 80px); }
.de-page.is-phone .tv-tab { min-height:48px; }
.de-page.is-phone.is-scrolled .de-tabs::before { display:none; }
.de-cap { display:none; }
.de-page.is-scrolled .de-cap { display:block; position:fixed; z-index:3; inset:0 0 auto; height:calc(var(--de-top) + 84px + 52px + 10px); background:var(--bg); }
.de-page.is-phone.is-scrolled .de-cap { height:calc(var(--de-top) + 80px + 49px); }
@media (prefers-reduced-motion:reduce) { .de-page .de-tabs { transition:none; } }
.de-tab-sum { margin-inline-start:auto; display:inline-flex; align-items:baseline; gap:6px; padding-inline-end:12px; font:600 12px 'Manrope',var(--sans); color:var(--text-3); white-space:nowrap; }
.de-tab-sum b, .de-sum-row b { font:400 18px/1 var(--bebas); color:var(--st, var(--score-mine)); margin-inline-end:8px; }
.de-sum-row { display:none; }
@media (max-width:1100px) { .de-tab-sum { display:none; } .de-sum-row { display:flex; } }
.de-page.is-phone .de-tab-sum { display:none; }
.de-page.is-phone .de-sum-row, .de-sum-row { flex-wrap:wrap; align-items:baseline; gap:4px 6px; margin:0 0 14px; font:600 12px 'Manrope',var(--sans); color:var(--text-3); }
.de-page.is-phone .de-sum-row { display:flex; flex-wrap:wrap; align-items:baseline; gap:4px 6px; margin:0 0 14px; font:600 12px 'Manrope',var(--sans); color:var(--text-3); }
/* the tabs' content */
.de-panel { margin-top:24px; outline:none; }
.de-page.is-phone .de-panel { margin-top:16px; }
.de-cols { display:grid; grid-template-columns:minmax(0, 1.25fr) minmax(0, 1fr); gap:20px; align-items:start; }
.de-col { display:flex; flex-direction:column; gap:20px; min-width:0; }
@media (max-width:900px) { .de-cols { grid-template-columns:minmax(0, 1fr); } }
.de-page.is-phone .de-cols, .de-page.is-phone .de-col { gap:14px; }
.de-box { display:flex; flex-direction:column; gap:16px; }
.de-page.is-phone .de-box { padding:16px; }
.de-box-h { display:flex; align-items:baseline; justify-content:space-between; gap:10px; flex-wrap:wrap; }
.de-box-h small { font:500 12px 'Manrope',var(--sans); color:var(--text-3); }
.de-eyebrow { margin:0; display:inline-flex; align-items:center; gap:6px; font:800 10.5px/1.3 'Manrope',var(--sans); letter-spacing:.16em; text-transform:uppercase; color:var(--olive-light); }
.de-field { display:flex; flex-direction:column; gap:8px; min-width:0; }
.de-label { display:flex; align-items:center; gap:6px; margin:0; font:800 10px/1.3 'Manrope',var(--sans); letter-spacing:.14em; text-transform:uppercase; color:var(--text-3); }
.de-input { width:100%; min-height:44px; padding:0 14px; border-radius:var(--radius-sm); border:1px solid var(--border-input); background:var(--raised); color:var(--text);
  font:600 14px 'Manrope',var(--sans); box-sizing:border-box; }
.de-input:focus { outline:2px solid var(--olive-light); outline-offset:0; border-color:transparent; }
.de-input::placeholder { color:var(--text-3); font-weight:500; }
.de-num { font:400 22px/1 var(--bebas); letter-spacing:.3px; }
.de-num::placeholder { font:500 14px 'Manrope',var(--sans); }
.de-textarea { min-height:120px; padding:12px 14px; font:500 14px/1.6 'Manrope',var(--sans); resize:vertical; }
.de-textarea.is-note { min-height:200px; }
/* B · I · U · S stay in reach while you scroll down a long note: under the tab bar (the .de-cap's height) */
.de-page #dNotesTools { position:sticky; top:calc(var(--de-top) + 146px); z-index:2; margin:-6px 0 2px; padding:6px 0 0; background:var(--panel); }
.de-page.is-phone #dNotesTools { top:calc(var(--de-top) + 129px); }
.de-years { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:10px; }
.de-year { display:flex; flex-direction:column; gap:6px; padding:10px 12px; border-radius:var(--radius-sm); border:1px solid var(--border); background:var(--raised); min-width:0; }
.de-year .de-input { min-height:32px; padding:0; border:none; background:none; }
.de-year .de-input:focus { outline:none; }
.de-year:focus-within { border-color:var(--olive-light); }
.de-years [style*="display: none"], .de-years [style*="display:none"] { display:none; }
.de-page .lyr-seg-opt { white-space:nowrap; }
.de-sub-seg { margin-top:2px; }
.de-stepper { display:flex; align-items:center; gap:10px; }
.de-stepper .de-input { width:72px; text-align:center; }
.de-page .genre-picker { justify-content:flex-start; gap:6px; }
.de-page .genre-opt { min-height:32px; padding:0 12px; border-radius:var(--radius-sm); font-size:12.5px; }
.de-page .genre-opt:focus-visible { outline:2px solid var(--olive-light); outline-offset:2px; }
.de-anime-genres { display:flex; flex-direction:column; gap:8px; padding-top:12px; border-top:1px solid var(--border); }
.det-field-hint { margin-top:-6px; font-size:11.5px; color:var(--danger); }
.det-field-hint:empty { display:none; }
/* settings rows: a label + small text, a switch or a button */
.de-set { display:flex; align-items:center; justify-content:space-between; gap:14px; padding-top:14px; border-top:1px solid var(--border); }
.de-set[hidden] { display:none; }
.de-set-t { display:flex; flex-direction:column; gap:2px; min-width:0; }
.de-set-t b { font:700 14px 'Manrope',var(--sans); color:var(--text); }
.de-set-t small { font:500 12px/1.4 'Manrope',var(--sans); color:var(--text-3); }
.de-switch { position:relative; flex:none; width:46px; height:28px; padding:0; border-radius:14px; border:1px solid var(--border-2); background:var(--bg-3); cursor:pointer; transition:background .15s, border-color .15s; }
.de-switch::after { content:''; position:absolute; top:3px; inset-inline-start:3px; width:20px; height:20px; border-radius:50%; background:var(--text-3); transition:transform .15s, background .15s; }
.de-switch[aria-checked="true"] { background:var(--toggle-track-on); border-color:var(--toggle-track-on); }
.de-switch[aria-checked="true"]::after { background:#fff; transform:translateX(18px); }
[dir="rtl"] .de-switch[aria-checked="true"]::after { transform:translateX(-18px); }
.de-switch:focus-visible { outline:2px solid var(--olive-light); outline-offset:2px; }
@media (pointer:coarse) { .de-switch::before { content:''; position:absolute; inset:-8px; } }
/* Delete: its own box, away from Save */
.de-danger { display:flex; align-items:center; justify-content:space-between; gap:14px; border-color:color-mix(in srgb, var(--danger) 45%, transparent); background:var(--danger-tint); }
.de-page.is-phone .de-danger { flex-direction:column; align-items:stretch; }
.de-page.is-phone .de-del { min-height:44px; }
.de-danger[hidden] { display:none; }
.de-danger .de-set-t b { color:var(--danger); }
.de-del { flex:none; border-color:var(--danger-fill); background:var(--danger-fill); color:#fff; }
.de-del:hover { background:color-mix(in srgb, var(--danger-fill) 85%, #000); border-color:color-mix(in srgb, var(--danger-fill) 85%, #000); }
.de-del:focus-visible { outline-color:var(--danger); }
.de-upd { flex:none; min-height:36px; }
/* Info's settings box: "who can see" as a compact switch, like the PDF */
.de-page .mss-vis-box { margin:0; padding:0; border:none; background:none; }
.de-page .mss-vis-head { margin-bottom:10px; }
.de-page .mss-vis-l { font:800 10.5px/1.3 'Manrope',var(--sans); letter-spacing:.16em; color:var(--olive-light); }
.de-page .mss-vis-seg { display:inline-grid; grid-template-columns:repeat(3, auto); max-width:100%; background:var(--bg-3); border:1px solid var(--border); }
.de-page .mss-vis-opt { min-height:34px; padding:0 14px; font-size:13px; }
.de-page .mss-vis-hint { margin:8px 0 0; color:var(--text-3); }
.de-page.is-phone .mss-vis-seg { display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); }
/* Type and Status: compact switches that wrap (the PDF's pills) */
.de-page .lyr-seg { display:inline-flex; flex-wrap:wrap; width:fit-content; max-width:100%; }
.de-page .lyr-seg.is-strong .lyr-seg-opt { flex:0 0 auto; min-height:34px; padding:0 14px; font-size:13px; }
.de-page.is-phone .lyr-seg.is-strong .lyr-seg-opt { flex:1 1 auto; }

/* Ratings: Core and Bonus side by side on wide screens, Keep it calibrated under both */
@media (prefers-reduced-motion:reduce) { .de-badge i { animation:none; } }
/* Keep it calibrated (redesigned 14 Nov 2026): a quiet panel like the rest of the Ratings tab — green edge, the rating
   you're on and its value, then your similar titles as an even row of posters with their score chip and how far they are from yours */
.de-calib { margin-top:28px; padding:18px 20px 16px; border-radius:var(--radius); background:var(--panel); border:1px solid var(--border); border-inline-start:4px solid var(--olive); }
.de-calib[hidden] { display:none; }
.de-calib .de-eyebrow { color:var(--olive-light); }
.de-calib-t { margin:6px 0 2px; font:600 22px/1.2 var(--serif); color:var(--text-heading); }
.de-calib-sub { margin:0 0 14px; font:500 13px 'Manrope',var(--sans); color:var(--text-3); }
.de-calib-row { display:grid; grid-auto-flow:column; grid-auto-columns:clamp(96px, calc((100% - 8 * 14px) / 9), 132px); gap:14px; overflow-x:auto; padding:2px 2px 6px; scrollbar-width:thin; }
.de-calib-row:focus-visible { outline:2px solid var(--olive-light); outline-offset:4px; border-radius:6px; }
.de-calib .de-cal-card { background:none; border-color:transparent; box-shadow:none; padding:0; }
.de-cal-card .msf-card__info { display:flex; flex-direction:column; gap:2px; background:none; padding:6px 0 0; }
.de-cal-card .msf-card__sub { order:-1; display:flex; align-items:center; gap:6px; }
.de-cal-card .msf-card__title, .de-cal-card .msf-card__year { color:var(--text-2); font-size:12px; }
.de-cal-v { display:inline-grid; place-items:center; min-width:40px; padding:3px 6px; border-radius:6px; font:400 18px/1 var(--bebas); background:var(--bg-3); color:var(--text); }
.de-cal-d { font:700 11px 'Manrope',var(--sans); color:var(--text-3); white-space:nowrap; }
.de-cal-card.is-this .msf-card__poster { outline:2px solid var(--olive-light); outline-offset:2px; }
.de-cal-card.is-this .msf-card__title { color:var(--olive-light); font-weight:700; }
.de-calib-none { align-self:center; margin:0; padding:0 10px; font:600 13px/1.5 'Manrope',var(--sans); color:var(--text-3); white-space:normal; width:260px; }

/* Review: favourites as photo cards, lowlights as "+ pick" slots */
.de-gate { display:flex; flex-direction:column; align-items:flex-start; gap:12px; padding:18px; border-radius:var(--radius-sm); border:1px dashed var(--border-2); }
.de-gate[hidden], #deNoteEditor[hidden] { display:none; }
.de-gate p { margin:0; font:600 14px/1.5 'Manrope',var(--sans); color:var(--text-2); }
#deNoteEditor { display:flex; flex-direction:column; gap:10px; }
.de-favs { display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:10px; }
.de-fav { position:relative; min-width:0; }
.de-fav-pick { display:flex; flex-direction:column; width:100%; height:100%; padding:0; border-radius:var(--radius-sm); border:1px solid var(--border); background:var(--raised); overflow:hidden; color:var(--text); text-align:start; cursor:pointer; }
.de-fav-pick:hover { border-color:var(--border-olive); }
.de-fav-pick:focus-visible, .de-fav-add:focus-visible, .de-fav-x:focus-visible { outline:2px solid var(--olive-light); outline-offset:2px; }
/* every picture fills the same frame (a portrait photo or poster would otherwise keep its own height) */
.de-fav-img { position:relative; display:grid; place-items:center; width:100%; flex:none; aspect-ratio:1; background:var(--bg-3); font:600 28px var(--serif); color:var(--text-3); overflow:hidden; }
.de-fav-img img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:center 20%; display:block; }
.de-fav.is-episode .de-fav-img img { object-position:center; }
.de-fav-t { display:flex; flex-direction:column; gap:2px; padding:10px 12px 12px; min-width:0; }
.de-fav-t small { font:800 9.5px/1.2 'Manrope',var(--sans); letter-spacing:.14em; text-transform:uppercase; color:var(--olive-light); }
.de-fav-t b { font:600 15px/1.2 var(--serif); overflow-wrap:anywhere; }
.de-fav-t span { font:500 11.5px/1.3 'Manrope',var(--sans); color:var(--text-3); }
.de-fav-x { position:absolute; top:6px; inset-inline-end:6px; display:grid; place-items:center; width:30px; height:30px; padding:0; border-radius:50%; border:1px solid rgba(255,255,255,.3); background:rgba(0,0,0,.6); color:#fff; cursor:pointer; }
.de-fav-x:hover { background:var(--danger-fill); }
@media (pointer:coarse) { .de-fav-x { width:36px; height:36px; } }
.de-fav-add { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:10px; min-height:150px; padding:14px 10px; border-radius:var(--radius-sm); border:1px dashed var(--border-2); background:none;
  font:600 12.5px/1.3 'Manrope',var(--sans); color:var(--text-2); text-align:center; cursor:pointer; }
.de-fav-add:hover { border-color:var(--border-olive); color:var(--text); background:var(--olive-faint); }
.de-fav-faces { display:flex; color:var(--text-3); }
.de-fav-faces img { width:30px; height:30px; border-radius:50%; object-fit:cover; border:2px solid var(--panel); }
.de-fav-faces img + img { margin-inline-start:-9px; }
.de-page.is-phone .de-favs { grid-template-columns:repeat(2, minmax(0, 1fr)); }
.de-page.is-phone .de-fav.is-season, .de-page.is-phone .de-fav-add.is-wide { grid-column:1 / -1; }
.de-page.is-phone .de-fav.is-season .de-fav-pick { flex-direction:row; }
.de-page.is-phone .de-fav.is-season .de-fav-img { width:84px; aspect-ratio:2/3; flex:none; }
.de-page.is-phone .de-fav.is-season .de-fav-t { justify-content:center; }
.de-page.is-phone .de-fav-add { min-height:96px; }

/* Progress: season posters, Up next, overall */
.de-seasons { display:flex; gap:14px; overflow-x:auto; padding:4px 2px 8px; scroll-snap-type:x proximity; scrollbar-width:thin; }
.de-season { position:relative; flex:0 0 clamp(108px, 9.5vw, 136px); display:flex; flex-direction:column; gap:7px; min-width:0; padding:0; border:none; background:none; color:var(--text);
  text-align:start; cursor:pointer; scroll-snap-align:start; -webkit-touch-callout:none; user-select:none; }
.de-season:disabled { cursor:default; }
.de-season-p { position:relative; display:grid; place-items:center; aspect-ratio:2/3; border-radius:var(--radius-sm); overflow:hidden; border:1px solid var(--border); background:var(--raised);
  font:400 26px var(--bebas); color:var(--text-3); transition:border-color .15s, opacity .15s; }
.de-season-p img { width:100%; height:100%; object-fit:cover; display:block; }
.de-season-p::after { content:''; position:absolute; inset:0; border-radius:inherit; pointer-events:none; }
.de-season.is-cur .de-season-p { border-color:transparent; }
.de-season.is-cur .de-season-p::after { box-shadow:inset 0 0 0 3px var(--olive-light); }
.de-season.is-off .de-season-p img { filter:grayscale(1); opacity:.45; }
.de-season-tag { position:absolute; top:6px; inset-inline-start:6px; display:inline-flex; align-items:center; gap:3px; min-height:20px; padding:0 6px; border-radius:5px;
  background:var(--olive); color:var(--text-on-brand); font:800 9.5px/1 'Manrope',var(--sans); letter-spacing:.06em; text-transform:uppercase; }
.de-season-tag svg { width:11px; height:11px; }
.de-season-bar { display:block; height:4px; border-radius:2px; background:var(--border); overflow:hidden; }
.de-season-bar i { display:block; height:100%; border-radius:2px; background:var(--st, var(--score-mine)); }
.de-season b { font:700 12.5px/1.2 'Manrope',var(--sans); }
.de-season small { margin-top:-4px; font:500 11.5px 'Manrope',var(--sans); color:var(--text-3); }
.de-season.is-cur small { color:var(--olive-light); font-weight:700; }
.de-season.is-off b { color:var(--text-2); }
.de-season:not(:disabled):hover .de-season-p { border-color:var(--border-olive); }
.de-season:not(:disabled):hover.is-off .de-season-p img { opacity:.7; }
.de-season:focus-visible { outline:2px solid var(--olive-light); outline-offset:3px; border-radius:var(--radius-sm); }
.de-page.is-phone .de-season { flex-basis:96px; }
.de-next { display:grid; grid-template-columns:200px minmax(0, 1fr) auto; align-items:center; gap:18px; margin-top:20px; }
.de-next[hidden] { display:none; }
.de-next-still { display:grid; place-items:center; aspect-ratio:16/9; border-radius:var(--radius-sm); overflow:hidden; background:var(--raised); color:var(--text-3); }
.de-next-still img { width:100%; height:100%; object-fit:cover; display:block; }
.de-next-b { display:flex; flex-direction:column; gap:6px; min-width:0; }
.de-next-t { margin:0; font:600 22px/1.2 var(--serif); color:var(--text-heading); }
.de-next-m { margin:0; font:500 13px 'Manrope',var(--sans); color:var(--text-3); }
.de-next-ctl { display:flex; flex-wrap:wrap; align-items:center; gap:10px; margin-top:6px; }
.de-step { display:inline-flex; align-items:center; gap:4px; }
.de-step-v, .de-step-in { min-width:52px; height:36px; padding:0 8px; border-radius:var(--radius-sm); border:1px solid var(--border-2); background:var(--raised); color:var(--text); font:400 20px/1 var(--bebas); text-align:center; cursor:text; }
.de-step-v:hover { border-color:var(--border-olive); }
.de-step-v:focus-visible, .de-step-in:focus { outline:2px solid var(--olive-light); outline-offset:1px; }
.de-step-in { width:60px; }
.de-next-go { align-self:center; }
.de-page.is-phone .de-next { grid-template-columns:minmax(0, 1fr); gap:12px; }
.de-page.is-phone .de-next-go { width:100%; min-height:48px; }
@media (max-width:1100px) { .de-page:not(.is-phone) .de-next { grid-template-columns:160px minmax(0, 1fr); } .de-page:not(.is-phone) .de-next-go { grid-column:1 / -1; justify-self:end; } }
.de-overall { margin-top:20px; gap:10px; }
.de-ov-h { display:flex; flex-wrap:wrap; align-items:baseline; justify-content:space-between; gap:6px 14px; }
.de-ov-h b { font:700 14px 'Manrope',var(--sans); color:var(--text); }
.de-ov-h span { font:600 12.5px 'Manrope',var(--sans); color:var(--text-3); }
.de-ov-bar { display:block; height:8px; border-radius:4px; background:var(--mc-tr, var(--border)); overflow:hidden; }
.de-ov-bar i { display:block; height:100%; border-radius:4px; background:var(--st, var(--score-mine)); transition:width .3s ease; }
.de-ov-f { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:8px; font:500 12.5px/1.45 'Manrope',var(--sans); color:var(--text-3); }
.de-eps { margin-top:20px; gap:12px; }
.de-eps > summary { display:flex; align-items:center; gap:8px; min-height:32px; cursor:pointer; list-style:none; }
.de-eps > summary::-webkit-details-marker { display:none; }
.de-eps > summary > svg { margin-inline-start:auto; color:var(--text-3); transition:transform .15s; }
.de-eps[open] > summary > svg { transform:rotate(180deg); }
.de-eps > summary:focus-visible { outline:2px solid var(--olive-light); outline-offset:2px; border-radius:4px; }
.de-eps[open] > summary { margin-bottom:4px; }
.de-add-season { width:auto; align-self:flex-start; min-height:40px; padding:0 16px; margin-top:18px; }
.de-season-list + .de-add-season { margin-top:18px; }
.de-season-list { display:grid; grid-template-columns:repeat(auto-fill, minmax(130px, 1fr)); gap:14px 16px; margin-top:8px; }
.de-season-edit { display:grid; grid-template-columns:minmax(0, 1fr) auto; align-items:center; gap:6px 8px; }
.de-season-edit .de-label { grid-column:1 / -1; }
.de-season-edit .de-input { min-height:40px; }
.de-watched-t { display:flex; align-items:center; gap:8px; margin:0; font:600 20px/1.2 var(--serif); color:var(--olive-light); }
.de-watched-t.is-off { color:var(--text-2); }
.de-watched .tv-btn { align-self:flex-start; }
.de-sr { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; margin:-1px; }
[hidden].de-panel, #dProgressSection[hidden] { display:none; }

/* phones: the Save bar above the bottom bar */
.de-bar { display:none; }
.de-page.is-phone .de-bar { position:fixed; z-index:390; inset-inline:10px; bottom:calc(var(--bnav-top) + 42px); display:flex; align-items:center; gap:10px; padding:10px 10px 10px 16px;
  border-radius:var(--radius-lg); border:1px solid rgba(255,255,255,.12); background:#121613; color:#fff; color-scheme:dark; }
.de-bar-score { flex:1; min-width:0; display:flex; flex-direction:column; gap:2px; }
.de-bar-score small { font:800 9.5px/1.2 'Manrope',var(--sans); letter-spacing:.14em; text-transform:uppercase; color:rgba(255,255,255,.7); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.de-bar-score > span { display:flex; align-items:center; gap:8px; }
.de-bar-score b { font:400 26px/1 var(--bebas); color:var(--st, var(--p-forest-300)); }
.de-bar .tv-btn { min-height:44px; border-color:rgba(255,255,255,.22); color:#fff; }
.de-bar .tv-btn.is-icon { width:44px; background:rgba(255,255,255,.08); }
.de-bar .de-save { padding:0 16px; }
.de-save { position:relative; }
.de-save.is-dirty::after { content:''; position:absolute; top:-4px; inset-inline-end:-4px; width:10px; height:10px; border-radius:50%; background:var(--tv-green, var(--olive-light)); border:2px solid #121613; }
.de-page.is-phone { padding-bottom:110px; }
.de-page.is-phone .de-acts { display:none; }
.de-page.is-phone .de-score { align-self:flex-end; }   /* where the view page has its ring: beside the title, at the bottom — not up in the corner (owner, 19 Nov 2026) */
.de-page.is-phone .de-score .de-delta { display:none; }
.de-page.is-phone .de-bd-btn span:last-child { display:none; }
.de-page.is-phone .de-bd-btn { padding:0; width:36px; justify-content:center; }

/* ═════════════════════════════════════════════════════════════
   Library v2 — library.html and the Movies / TV Shows / Anime / Cartoons pages (library-view.js)
   Header (search · Pick for me · + Add) · At a glance · status tabs · toolbar · the open status.
   Progress cards (.lp-card) for Watching (main + two per row) and the compact Watchlist / Dropped lists.
   Existing tokens only; dark values per the Library V2 PDF (D12).
   ═════════════════════════════════════════════════════════════ */
:root { --lib-card:var(--mc-bg); --lib-line:var(--mc-bd); --lib-track:var(--card-2); --lib-sel:var(--olive); --lib-green:var(--score-mine); --lib-gold:var(--score-gold); }

/* header: kicker, title, count line · search + Pick for me (green) + Add */
.lib-head { align-items:flex-end; flex-wrap:wrap; row-gap:12px; position:relative; top:auto; z-index:auto; }   /* scrolls away (V2): the tabs and cards get the screen */
/* a guest: the example library's banner (library-view.js) */
.lib-guest { display:flex; align-items:center; gap:14px; flex-wrap:wrap; margin:0 0 18px; padding:14px 16px; border:1px solid var(--border); border-radius:var(--radius); background:var(--surface-card); }
.lib-guest-ic { flex-shrink:0; display:grid; place-items:center; width:40px; height:40px; border-radius:var(--radius-sm); background:var(--selected-bg); color:var(--selected-fg); }
.lib-guest-t { flex:1 1 280px; min-width:0; display:flex; flex-direction:column; gap:3px; }
.lib-guest-t b { font:600 18px/1.2 var(--serif); color:var(--text-heading); }
.lib-guest-t span { font-size:13.5px; line-height:1.5; color:var(--text-2); }
.lib-guest-acts { display:flex; flex-wrap:wrap; gap:8px; }
@media (max-width:560px) { .lib-guest-acts { width:100%; } .lib-guest-acts .lc-btn { flex:1; justify-content:center; } }
.lib-head::before { content:none; }
@media (max-width:1199px) { .lib-head { margin-top:0; } }
.lib-head-l { min-width:0; }
.lib-kicker { font:800 11px/1 var(--sans); letter-spacing:.2em; text-transform:uppercase; color:var(--lib-green); }
.lib-head .cat-page-title { padding-top:8px; }
.lib-head-r { display:flex; align-items:center; gap:10px; flex:0 1 auto; min-width:0; }
.lib-search { flex:1 1 340px; min-width:0; width:clamp(240px, 28vw, 380px); }
.lib-pick { display:flex; }
.lib-add-l { margin-inline-start:-2px; }
.lib-head .qp-trigger { min-height:40px; padding:0 14px; border-radius:10px; background:var(--olive); border-color:var(--olive); color:var(--text-on-brand); font-size:13px; }
.lib-head .qp-trigger:hover { background:var(--olive-2); border-color:var(--olive-2); }
.lib-head .qp-trigger:disabled { opacity:.45; }
.lib-head .btn-add-entry { min-height:40px; white-space:nowrap; }

/* The top of the Library (desktop / tablet): At a glance and the Rating fingerprint side by side; on phones one line
   that opens both as a full page */
.lib-top { display:grid; grid-template-columns:minmax(0, 1.9fr) minmax(320px, 1fr); gap:16px; margin:0 0 18px; align-items:stretch; }
.lib-glance, .lib-finger { min-width:0; background:var(--lib-card); border:1px solid var(--lib-line); border-radius:18px; padding:18px 20px 20px; }
.lf-head { display:flex; align-items:baseline; justify-content:space-between; gap:12px; margin:0 0 14px; }
.lg-kicker { font:800 11px/1 var(--sans); letter-spacing:.2em; text-transform:uppercase; color:var(--text-2); margin:0; }
.lf-sub { font:600 12px var(--sans); color:var(--text-3); white-space:nowrap; }
/* the key numbers: four tiles */
.lg-kpis { display:grid; grid-template-columns:minmax(0, 1.35fr) repeat(3, minmax(0, 1fr)); gap:10px; margin:0 0 18px; }
.lg-kpi, .lf-tile { min-width:0; border-radius:14px; padding:12px 14px; background:color-mix(in srgb, var(--lib-track) 45%, var(--lib-card)); border:1px solid color-mix(in srgb, var(--lib-line) 70%, transparent); }
.lg-kpi { display:flex; flex-direction:column; justify-content:center; gap:6px; }
.lg-kpi dt { font:800 10px/1.1 var(--sans); letter-spacing:.14em; text-transform:uppercase; color:var(--text-3); }
.lg-kpi dd { margin:0; display:flex; flex-direction:column; gap:3px; min-width:0; }
.lg-kpi dd b { font:400 28px/1 var(--bebas); letter-spacing:.3px; color:var(--text); white-space:nowrap; }
.lg-kpi dd small { font:600 11.5px/1.2 var(--sans); color:var(--text-3); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.lg-kpi.is-avg { flex-direction:row; align-items:center; justify-content:flex-start; gap:14px; }
.lg-kpi.is-avg dd b { font-size:34px; color:var(--st, var(--lib-green)); }
.lg-kpi-t { display:flex; flex-direction:column; gap:6px; min-width:0; }
.lg-ring { position:relative; width:60px; height:60px; flex:none; }
.lg-ring-bg { fill:none; stroke:var(--lib-track); stroke-width:7; }
.lg-ring-fg { fill:none; stroke:var(--st, var(--lib-green)); stroke-width:7; stroke-linecap:round; }
/* below the tiles: your scores + by type · recently finished */
.lg-cols { display:grid; grid-template-columns:minmax(0, 1fr) minmax(0, 1fr); gap:14px 32px; align-items:start; }
.lg-col { min-width:0; }
.lg-recent { margin-top:18px; padding-top:16px; border-top:1px solid var(--lib-line); }   /* Recently finished | Recently added, five each */
.lg-recent-part + .lg-recent-part { padding-inline-start:32px; border-inline-start:1px solid var(--lib-line); margin-inline-start:-16px; }
.lg-h { display:flex; align-items:center; justify-content:space-between; gap:8px; font:800 10.5px/1 var(--sans); letter-spacing:.14em; text-transform:uppercase; color:var(--text-3); margin:2px 0 10px; }
.lg-h > span { font:600 11.5px var(--sans); letter-spacing:0; text-transform:none; color:var(--text-3); }
.lg-col > .lg-h:not(:first-child) { margin-top:18px; }
.lg-link { font:700 12px var(--sans); letter-spacing:0; text-transform:none; color:var(--lib-green); text-decoration:none; padding:4px 2px; border-radius:6px; }
.lg-link:hover { text-decoration:underline; text-underline-offset:3px; }
.lg-link:focus-visible { outline:2px solid var(--mc-focus); outline-offset:2px; }
.lg-bands { list-style:none; margin:0; padding:0; display:grid; gap:8px; }
.lg-bands li { display:grid; grid-template-columns:52px minmax(0,1fr) 26px 34px; align-items:center; gap:10px; font:600 12px var(--sans); color:var(--text-2); }
.lg-bands b { font:400 16px/1 var(--bebas); color:var(--text); text-align:end; }
.lg-bands small { font:600 11px var(--sans); color:var(--text-3); text-align:end; }
.lg-band-bar { height:8px; border-radius:4px; background:var(--lib-track); overflow:hidden; }
.lg-band-bar i { display:block; height:100%; border-radius:4px; background:var(--st, var(--lib-green)); }
.lg-type-bar { display:flex; gap:2px; height:8px; border-radius:4px; overflow:hidden; background:var(--lib-track); }
.lg-type-bar i, .lg-type-legend i { display:block; }
.lg-type-legend { list-style:none; margin:10px 0 0; padding:0; display:grid; grid-template-columns:1fr 1fr; gap:6px 18px; }
.lg-type-legend li { display:flex; align-items:center; gap:7px; font:600 12px var(--sans); color:var(--text-2); min-width:0; }
.lg-type-legend li i { width:9px; height:9px; border-radius:3px; flex:none; }
.lg-type-legend b { margin-inline-start:auto; font:400 16px/1 var(--bebas); color:var(--text); }
:is(.lg-type-bar, .lg-type-legend) .is-movies { background:var(--movie-solid); }
:is(.lg-type-bar, .lg-type-legend) .is-tv { background:var(--tv-solid); }
:is(.lg-type-bar, .lg-type-legend) .is-anime { background:#7d5aa6; }
:is(.lg-type-bar, .lg-type-legend) .is-cartoons { background:var(--olive-light); }
.lg-rec { list-style:none; margin:0; padding:0; display:grid; gap:2px; }
.lg-rec-row { width:calc(100% + 12px); display:flex; align-items:center; gap:12px; padding:5px 6px; margin:0 -6px; border:0; border-radius:10px; background:none; color:inherit; text-align:start; cursor:pointer; font:inherit; }
.lg-rec-row:hover { background:var(--olive-faint); }
.lg-rec-row:focus-visible { outline:2px solid var(--mc-focus); outline-offset:1px; }
.lg-rec-poster { width:28px; height:42px; flex:none; border-radius:5px; overflow:hidden; background:var(--mc-po); position:relative; box-shadow:0 2px 6px rgba(0,0,0,.14); }
.lg-rec-poster img { width:100%; height:100%; object-fit:cover; display:block; }
.lg-rec-poster .img-fallback { font-size:12px; }
.lg-rec-t { flex:1; min-width:0; display:flex; flex-direction:column; gap:1px; }
.lg-rec-t b { font:600 14px/1.2 var(--serif); color:var(--text-heading); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.lg-rec-t small { font:600 11px var(--sans); color:var(--text-3); }
.lg-rec-s { font:400 20px/1 var(--bebas); color:var(--st, var(--lib-green)); letter-spacing:.3px; }
.lg-none { margin:0; font-size:13px; color:var(--text-3); }
/* Rating fingerprint: the radar, then the group you reward most and the one you're toughest on */
.lib-finger { display:flex; flex-direction:column; }
.lf-body { flex:1; display:flex; flex-direction:column; justify-content:space-between; gap:12px; min-height:0; }
.lf-chart { display:flex; justify-content:center; min-width:0; }
.lf-radar { width:100%; max-width:340px; height:auto; overflow:visible; }
.lf-ring { fill:none; stroke:var(--lib-line); stroke-width:1; }
.lf-ring.is-outer { fill:color-mix(in srgb, var(--lib-track) 30%, transparent); stroke:color-mix(in srgb, var(--text-3) 45%, transparent); }
.lf-spoke { stroke:var(--lib-line); stroke-width:1; }
.lf-shape { fill:color-mix(in srgb, var(--lib-green) 24%, transparent); stroke:var(--lib-green); stroke-width:2; stroke-linejoin:round; }
.lf-dot { fill:var(--lib-green); stroke:var(--lib-card); stroke-width:1.5; }
.lf-lab { font:800 9.5px var(--sans); letter-spacing:.12em; fill:var(--text-3); }
.lf-val { font:400 20px var(--bebas); letter-spacing:.3px; fill:var(--text); }
/* side by side while each gets 170px; stacked only on small screens; names always in full (owner, 27 Nov 2026) */
.lf-tiles { display:grid; grid-template-columns:1fr; gap:10px; }   /* You appreciate, then Toughest on — one per line (owner, 28 Nov 2026) */
.lf-tile { display:flex; flex-direction:column; gap:4px; }
.lf-tile small { font:800 9.5px/1.1 var(--sans); letter-spacing:.14em; text-transform:uppercase; color:var(--text-3); }
.lf-tile b { font:600 21px/1.15 var(--serif); color:var(--text-heading); overflow-wrap:anywhere; text-wrap:balance; }
.lf-tile span { font:600 11.5px var(--sans); color:var(--text-3); }
.lf-tile:first-child b { color:var(--lib-green); }
.lf-empty { flex:1; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:14px; padding:12px 8px; text-align:center; }
.lf-empty svg { width:110px; height:auto; }
.lf-empty p { margin:0; max-width:280px; font:500 13px/1.45 var(--sans); color:var(--text-3); }
.lib-glance-mini { display:none; }
/* the full page (phones): one column */
.lg-page { display:grid; gap:22px; padding:4px 0 24px; }
.lg-page .lg-kpis { grid-template-columns:repeat(3, minmax(0, 1fr)); gap:8px; margin:0; }
.lg-page .lg-kpi.is-avg { grid-column:1 / -1; }
.lg-page .lg-kpi:not(.is-avg) { padding:10px 11px; }
.lg-page .lg-kpi:not(.is-avg) dd b { font-size:23px; }
.lg-page .lg-kpi dt { letter-spacing:.1em; }
.lg-page .lg-rec { grid-template-columns:1fr; }
.lg-page .lg-cols { grid-template-columns:1fr; gap:22px; }
.lg-page .lg-recent { margin:0; padding:0; border:0; grid-template-columns:1fr; gap:22px; }   /* five, then five */
.lg-page .lg-recent-part + .lg-recent-part { padding:0; border:0; margin:0; }
.lg-page .lib-finger { padding:16px; }
.lg-page .lib-finger .lf-body { flex-direction:column; align-items:stretch; gap:12px; }   /* stacked, whatever the screen width */
.lg-page .lib-finger .lf-chart { flex:none; }
.lg-page .lib-finger .lf-tiles { grid-template-columns:repeat(auto-fit, minmax(min(100%, 170px), 1fr)); }   /* stacked only on small phones */
@media (max-width:1180px) {
  .lib-top { grid-template-columns:1fr; }
  .lib-finger .lf-body { flex-direction:row; align-items:center; gap:24px; }
  .lib-finger .lf-chart { flex:1.2; }
  .lib-finger .lf-tiles { flex:1; grid-template-columns:1fr; }
}
@media (max-width:860px) {
  .lg-kpis { grid-template-columns:1fr 1fr; }
  .lg-cols { grid-template-columns:1fr; }
  .lg-recent { grid-template-columns:minmax(0, 1fr) minmax(0, 1fr); gap:14px 24px; }   /* finished | added, still side by side */
  .lg-recent-part + .lg-recent-part { padding-inline-start:20px; margin-inline-start:-12px; }
}
@media (max-width:560px) {
  .lg-recent { grid-template-columns:1fr; gap:18px; }
  .lg-recent-part + .lg-recent-part { padding:0; border:0; margin:0; }
}

/* status tabs: four equal cells — icon, name + count, a one-line summary */
.lib-tabrow { display:flex; align-items:stretch; gap:8px; margin:0 0 16px; min-width:0; }
.lib-tabs { flex:1; min-width:0; display:grid; grid-template-columns:repeat(4, minmax(0,1fr)); gap:4px; padding:4px; margin:0; background:var(--lib-track); border-radius:14px; }
.lib-tab { display:flex; align-items:center; gap:9px; min-width:0; padding:10px 9px; border:0; border-radius:11px; background:transparent; color:var(--text); text-align:start; cursor:pointer; font:inherit;
  transition:background 200ms var(--ease), color 200ms var(--ease); }
.lib-tab-ic { width:34px; height:34px; flex:none; display:grid; place-items:center; border-radius:9px; background:var(--lib-card); color:var(--lib-green); }
.lib-tab-ic svg { width:16px; height:16px; }
.lib-tab-txt { min-width:0; display:flex; flex-direction:column; gap:2px; }
.lib-tab-l { font:600 14px/1.15 var(--serif); padding-bottom:.1em; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }   /* room for g / y under the line */
.lib-tab-l b { font:400 21px/1 var(--bebas); color:var(--lib-green); letter-spacing:.3px; margin-inline-start:2px; }
.lib-tab small { font:500 11px/1.25 var(--sans); color:var(--text-3); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.lib-tab:hover { background:var(--olive-faint); }
.lib-tab.is-on { background:var(--lib-sel); color:#fff; }
.lib-tab.is-on .lib-tab-l b, .lib-tab.is-on small { color:rgba(255,255,255,.86); }
.lib-tab.is-on .lib-tab-ic { background:rgba(255,255,255,.14); color:#fff; }
.lib-tab.is-empty:not(.is-on) { opacity:.42; }
/* Type (Library page): beside the tabs on desktop / tablet; an icon in the toolbar on phones */
.lib-type-btn { position:relative; display:inline-flex; align-items:center; gap:8px; flex:none; padding:0 16px; border:1px solid transparent; border-radius:14px;
  background:var(--lib-track); color:var(--text); font:700 13px var(--sans); cursor:pointer; white-space:nowrap; max-width:220px; }
.lib-type-btn svg { width:15px; height:15px; flex:none; color:var(--lib-green); }
.lib-type-l { overflow:hidden; text-overflow:ellipsis; }
.lib-type-btn:hover { background:var(--olive-faint); border-color:var(--mc-bdh); }
.lib-type-btn.is-on { background:var(--lib-sel); color:#fff; }
.lib-type-btn.is-on svg { color:#fff; }
.lib-type-btn.is-on .lib-tool-n { display:none; }
.lib-type-btn:focus-visible { outline:2px solid var(--mc-focus); outline-offset:2px; }
.lib-type-btn.is-mini { display:none; }
/* the Type panel's groups that open (Anime → TV Shows · Movies) — sort-filter.js treeHTML */
.sf-tree .sf-check-row.is-parent { padding-inline-end:6px; }
.sf-tree-x { margin-inline-start:auto; width:34px; height:30px; display:grid; place-items:center; border:0; border-radius:8px; background:transparent; color:var(--text-2); cursor:pointer; }
.sf-tree-x:hover { background:var(--olive-faint); color:var(--text); }
.sf-tree-x:focus-visible { outline:2px solid var(--mc-focus); outline-offset:1px; }
.sf-tree-kids .sf-check-row { padding-inline-start:44px; }
.sf-check-mark.is-mixed { background:var(--olive-light); border-color:var(--olive-light); display:grid; place-items:center; }
.sf-check-mark.is-mixed i { display:block; width:9px; height:2px; border-radius:1px; background:#fff; }
.lib-tab:focus-visible { outline:2px solid var(--mc-focus); outline-offset:2px; }

/* toolbar */
.lib-bar { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:0 0 14px; flex-wrap:wrap; }
.lib-bar-l { display:flex; align-items:baseline; gap:10px; min-width:0; }
.lib-bar-t { font:600 18px/1.1 var(--serif); margin:0; color:var(--text-heading); }
.lib-bar-sub { font:500 12.5px var(--sans); color:var(--text-3); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.lib-bar-r { display:flex; align-items:center; gap:8px; margin-inline-start:auto; }
/* a profile's Library: the search in the toolbar, before Sort — the Library header's search, at the toolbar's height */
.lib-bar-search { flex:0 1 300px; width:auto; min-width:150px; }
.lib-tool.lib-search-tog { display:none; }   /* phones only (below) */
.lib-tool { position:relative; display:inline-flex; align-items:center; gap:7px; height:36px; padding:0 12px; border-radius:10px; border:1px solid var(--lib-line); background:var(--lib-card);
  color:var(--text); font:700 13px var(--sans); cursor:pointer; white-space:nowrap; }
.lib-tool svg { width:15px; height:15px; color:var(--text-2); }
.lib-tool:hover { border-color:var(--mc-bdh); background:var(--olive-faint); }
.lib-tool.is-on { border-color:var(--border-olive); color:var(--lib-green); }
.lib-tool.is-on svg { color:var(--lib-green); }
.lib-tool-n { display:none; }
.lib-tool:focus-visible, .lib-vt-b:focus-visible { outline:2px solid var(--mc-focus); outline-offset:2px; }
.lib-vt { display:inline-flex; gap:2px; padding:3px; border-radius:10px; background:var(--lib-track); }
.lib-vt-b { width:32px; height:30px; display:grid; place-items:center; border:0; border-radius:8px; background:transparent; color:var(--text-3); cursor:pointer; }
.lib-vt-b.is-on { background:var(--lib-card); color:var(--text); box-shadow:0 1px 3px rgba(0,0,0,.12); }
.lib-panel.is-in { animation:libIn 160ms var(--ease); }
@keyframes libIn { from { opacity:0; } to { opacity:1; } }

/* grids: the standard card, 5 a row on desktop, 3 on phones */
.lib-page .lib-grid { --msf-min:clamp(98px, 11.5vw + 50px, 215px); }

/* tags: Up next · New episode · Taking a break · To be continued · Dropped */
.lib-tag { display:inline-flex; align-items:center; gap:4px; height:19px; padding:0 7px; border-radius:6px; font:700 10.5px/1 var(--sans); letter-spacing:.2px; white-space:nowrap; color:var(--text-on-brand); background:var(--olive); }
.lib-tag svg { width:10px; height:10px; flex:none; }
.lib-tag.is-new { background:#6d3d8f; }
.lib-tag.is-brk { background:var(--lib-track); color:var(--text); }
.lib-tag.is-tbc { background:var(--gold-accent); color:#fff; }
[data-theme="dark"] .lib-tag.is-tbc { color:#151c17; }
.lib-tag.is-drop { background:var(--lib-track); color:var(--text-2); }
/* Library grids: the title on one line (… when it's long, never under the year); TBC / New episodes beside the type tag on the poster */
.lib-grid .msf-card__title { display:block; white-space:nowrap; text-overflow:ellipsis; -webkit-line-clamp:unset; line-clamp:none; overflow-wrap:normal; }
.lib-pbr .lib-tag { height:auto; padding:clamp(2px, .9cqi + 1px, 3px) clamp(5px, 3.3cqi + 1.2px, 8px); border-radius:999px; font:700 clamp(8.5px, 1.6cqi + 6.7px, 10.5px)/1.2 var(--sans); letter-spacing:.3px; }
.lib-pbr .lib-tag svg { width:clamp(8px, 1.6cqi + 6px, 10px); height:clamp(8px, 1.6cqi + 6px, 10px); }
@container msfcard (max-width:140px) { .lib-pbr .lib-tag { padding:clamp(2px, 1.6cqi, 4px); } .lib-pbr .lib-tag-t { display:none; } }

/* the progress card: poster · backdrop · kicker + tag · title · what's next · progress · buttons */
.lp-grid { display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:14px 16px; }
.lp-grid.lp-top { margin-bottom:var(--msf-rgap, 16px); }   /* grid view: the main Watching card above the grid */
.lp-card { position:relative; isolation:isolate; overflow:hidden; display:flex; align-items:center; gap:16px; min-width:0; padding:16px; border-radius:18px;
  background:var(--lib-card); border:1px solid var(--lib-line); color:var(--text); cursor:pointer; transition:border-color var(--trans) var(--ease), transform var(--trans) var(--ease); }
.lp-card.is-main { grid-column:1 / -1; padding:24px 28px; gap:28px; min-height:260px; border-radius:22px; }   /* the one you're on: bigger than the rest */
.lp-card.is-main .lp-body { gap:6px; }
.lp-card.is-main .lp-kicker { font-size:11.5px; }
.lp-card.is-main .lp-next { font-size:14px; }
.lp-card.is-main .lp-count { font-size:12.5px; }
.lp-card.is-main .lp-bar { height:6px; max-width:420px; }
.lp-card.is-main .lp-ctrls { margin-top:12px; }
@media (hover:hover) { .lp-card:hover { border-color:var(--mc-bdh); transform:translateY(-2px); } }
.lp-card .lp-art { position:absolute; inset:0 0 0 38%; width:auto; margin:0; grid-area:auto; z-index:-2; opacity:0; min-height:0;
  background:center 25% / cover no-repeat;
  /* its left edge fades in, so no line shows where the picture starts (owner) */
  -webkit-mask-image:linear-gradient(to right, transparent 0, rgba(0,0,0,.35) 12%, #000 34%); mask-image:linear-gradient(to right, transparent 0, rgba(0,0,0,.35) 12%, #000 34%); }
.lp-card .lp-art.in, .lp-card .lp-art:not(.is-bd) { opacity:.96; }   /* owner: bright, a light wash so it sits with the page */
.lp-shade { position:absolute; inset:0; z-index:-1; pointer-events:none;
  background:linear-gradient(90deg, var(--lib-card) 36%, color-mix(in srgb, var(--lib-card) 70%, transparent) 50%, color-mix(in srgb, var(--lib-card) 20%, transparent) 68%, color-mix(in srgb, var(--lib-card) 7%, transparent) 100%); }
[dir="rtl"] .lp-card .lp-art { inset:0 38% 0 0; -webkit-mask-image:linear-gradient(to left, transparent 0, rgba(0,0,0,.35) 12%, #000 34%); mask-image:linear-gradient(to left, transparent 0, rgba(0,0,0,.35) 12%, #000 34%); }
[dir="rtl"] .lp-shade { background:linear-gradient(270deg, var(--lib-card) 36%, color-mix(in srgb, var(--lib-card) 70%, transparent) 50%, color-mix(in srgb, var(--lib-card) 20%, transparent) 68%, color-mix(in srgb, var(--lib-card) 7%, transparent) 100%); }
[data-theme="dark"] .lp-card .lp-art.in, [data-theme="dark"] .lp-card .lp-art:not(.is-bd) { opacity:.66; }
.lp-card.is-dropped .lp-art { filter:grayscale(.8); }
.lp-poster { position:relative; flex:none; width:88px; aspect-ratio:2/3; padding:0; border:0; border-radius:10px; overflow:hidden; background:var(--mc-po); cursor:pointer; box-shadow:0 4px 14px rgba(0,0,0,.18); }
.lp-card.is-main .lp-poster { width:140px; border-radius:12px; }
.lp-poster img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; display:block; }
.lp-card.is-dropped .lp-poster img { filter:grayscale(.75) brightness(.85); }
.lp-body { flex:1; min-width:0; display:flex; flex-direction:column; gap:4px; }
.lp-kicker { display:flex; align-items:center; gap:8px; min-width:0; font:800 10.5px/1.2 var(--sans); letter-spacing:.12em; text-transform:uppercase; color:var(--text-3); }
.lp-kicker > span:first-child { white-space:nowrap; }
.lp-kicker .lib-tag { letter-spacing:.2px; text-transform:none; }
.lp-title { margin:0; font:600 19px/1.15 var(--serif); }
.lp-card.is-main .lp-title { font-size:34px; }
.lp-title button { all:unset; cursor:pointer; display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; line-clamp:2; overflow:hidden; }
.lp-title button:focus-visible { outline:2px solid var(--mc-focus); outline-offset:2px; border-radius:4px; }
.lp-next { font:500 12.5px/1.35 var(--sans); color:var(--text-2); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.lp-next b { color:var(--text); font-weight:800; }
.lp-bar { height:5px; max-width:340px; border-radius:3px; background:var(--lib-track); overflow:hidden; margin-top:4px; }
.lp-bar i { display:block; height:100%; border-radius:3px; background:var(--lib-green); }
.lp-bar.is-muted i { background:var(--text-3); }
.lp-count { font:500 11.5px var(--sans); color:var(--text-3); }
.lp-ctrls { margin-top:8px; }
/* Watched, on the same card: score · rank · details, your review, favourites, Comments */
.lp-kicker .rewatch-badge { letter-spacing:0; text-transform:none; }
.lp-scoreline { display:flex; align-items:baseline; gap:10px; min-width:0; }
.lp-score { font:400 22px/1 var(--bebas); letter-spacing:.3px; color:var(--st, var(--score-mine)); }
.lp-score.is-none { color:var(--text-3); }
/* Watched: the poster fills the card's height (2:3, however tall the review makes it) and carries the grid's rank badge */
/* every list card in the Library (all but the big main Watching card): one size, the poster fills its height */
.lp-card:not(.is-main) { align-items:stretch; min-height:190px; }
.lp-card:not(.is-main) .lp-poster { display:block; width:auto; min-width:105px; height:auto; max-width:180px; align-self:stretch; aspect-ratio:2/3; }
/* min-width: a <button> sized only by aspect-ratio + stretch comes out 0 wide in some browsers (Safari) — the poster vanished */
.lp-card:not(.is-main) .lp-body { align-self:center; }
.lp-poster .cg-rank-badge { z-index:3; }
.lp-meta { font:500 12px var(--sans); color:var(--text-3); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.lp-note { margin:2px 0 0; max-width:520px; font:italic 500 12.5px/1.4 var(--sans); color:var(--text-2); overflow:hidden; display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; line-clamp:2; }
/* favourites as text, like the top 3 (.lib-pod-fav): an icon each + the name in gold; least favourites muted */
.lp-favs { display:flex; flex-wrap:wrap; gap:3px 14px; margin-top:4px; min-width:0; }
.lp-fav { display:inline-flex; align-items:center; gap:4px; min-width:0; font:700 12px/1.3 var(--sans); color:var(--gold-accent); }
.lp-fav svg { width:11px; height:11px; flex:none; }
.lp-fav b { font-weight:700; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.lp-fav.is-low { color:var(--text-3); }
/* Watched cards: type, title, score, then your review, favourites and Comments close under it, as one block centred in the card;
   the favourites keep to two lines at most */
.lp-tail { padding-top:4px; display:flex; flex-direction:column; gap:2px; min-width:0; }   /* right under the score: one block, centred in the card */
.lp-card.is-done .lp-scoreline { line-height:1.1; }
.lp-card.is-done .lp-scoreline .msf-score { line-height:1; }
.lp-scoreline .lp-meta { margin-bottom:0; }
/* the type badge (Discover's list rows, .dx-type) and the year above the title */
.lp-type { flex:none; display:inline-flex; align-items:center; height:20px; padding:0 7px; border-radius:5px; font:800 10px/1 'Manrope',var(--sans); letter-spacing:.08em; text-transform:uppercase; color:#fff; }
.lp-type.is-movie { background:var(--movie-solid, #B0562E); }
.lp-type.is-tv { background:var(--tv-solid, #3D6D96); }
.lp-type.is-anime { background:#7A3E78; }
.lp-type.is-cartoon { background:#3F7A6E; }
/* the Library's cards: title + year, then the badge row (Discover's .dx-head / .dx-meta) */
.lp-head { display:flex; align-items:baseline; gap:10px; min-width:0; }
.lp-head .lp-title { min-width:0; font-size:20px; line-height:1.2; color:var(--text-heading, var(--text)); }
.lp-card:not(.is-main) .lp-head .lp-title button { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.lp-year { flex:none; font:600 13.5px/1 'Manrope',var(--sans); color:var(--text-3); font-variant-numeric:tabular-nums; }
.lp-card.is-main .lp-year { font-size:16px; }
.lp-tags { display:flex; align-items:center; gap:8px; min-width:0; overflow:hidden; white-space:nowrap; }
.lp-tags .lib-tag, .lp-tags .rewatch-badge { flex:none; }
.lp-tags-t { min-width:0; font:500 13px/1.3 'Manrope',var(--sans); color:var(--text-3); overflow:hidden; text-overflow:ellipsis; }
/* even spacing: 6px between the lines (as Discover), the review / favourites / Comments block 4px apart under a 6px gap */
.lp-card:not(.is-main) .lp-body { gap:6px; }
.lp-card.is-done .lp-tail { padding-top:2px; gap:4px; }
.lp-card.is-done .lp-note, .lp-card.is-done .lp-favs { margin:0; }
.lp-card.is-done .lp-tail .cc-strip { padding-block:0; }
.lp-card.is-done .lp-body { padding-block:4px; padding-inline-end:12px; }   /* a clear gap before the score ring */
/* Watched: your score as the site's ring, on the right of the card, centred — on a dark disc so it reads on any backdrop */
.lp-ringbox { flex:none; align-self:center; display:grid; place-items:center; margin-inline-start:auto; }
.lp-ring.tv-ring { --tv-green:var(--p-forest-300); --tv-gold:var(--p-score-top-dark); width:72px; border-radius:50%;
  background:rgba(12,20,14,.62); -webkit-backdrop-filter:blur(6px); backdrop-filter:blur(6px); box-shadow:0 4px 16px rgba(0,0,0,.28); }
.lp-ring.tv-ring circle { stroke-width:8; }
.lp-ring.tv-ring b { font-size:24px; }
.lp-ring.tv-ring.is-empty b { color:rgba(255,255,255,.6); }   /* the list popup's .lp-meta (1rem under it) isn't meant for the cards */
.lp-card.is-done .lp-favs { flex-wrap:wrap; overflow:hidden; gap:3px 12px; margin-top:0; max-width:440px; font-size:12px; max-height:calc(2 * 1.3em + 3px); line-height:1.3; }   /* two lines at most */
.lp-card.is-done .lp-fav { max-width:100%; }
.lp-foot { margin-top:4px; }
.lp-tail .lp-foot { margin-top:0; }
.lp-foot .cc-strip { margin:0; padding-inline-start:0; }

/* buttons on the cards: − · S5 · E4 · + · pause · ⋯ (36px; Start / Resume / Mark watched as text) */
.lc-row { display:flex; align-items:center; gap:6px; flex-wrap:nowrap; min-width:0; }
.lc-btn { display:inline-flex; align-items:center; justify-content:center; gap:6px; height:36px; min-width:36px; padding:0 12px; border-radius:10px; border:1px solid var(--lib-line);
  background:var(--lib-card); color:var(--text); font:700 13px var(--sans); cursor:pointer; white-space:nowrap; flex:none;
  transition:background var(--trans) var(--ease), border-color var(--trans) var(--ease), transform .12s var(--ease); }
.lc-btn svg { width:15px; height:15px; flex:none; }
.lc-btn.lc-ic, .lc-btn.lc-more { padding:0; width:36px; }
.lc-btn:hover { border-color:var(--mc-bdh); background:var(--olive-faint); }
.lc-btn.is-primary { background:var(--action-primary-bg); border-color:var(--action-primary-bg); color:var(--text-on-primary); }
.lc-btn.is-primary:hover { background:var(--action-primary-hover); border-color:var(--action-primary-hover); }
.lc-btn:active, .lc-ep:active { transform:scale(.95); }
.lc-ep { height:36px; padding:0 10px; border-radius:10px; border:1px solid var(--lib-line); background:var(--lib-card); color:var(--text); cursor:pointer; flex:none;
  font:400 17px/1 var(--bebas); letter-spacing:.4px; text-decoration:underline dotted; text-underline-offset:4px; text-decoration-color:var(--text-3); }
.lc-ep:hover { border-color:var(--mc-bdh); }
:is(.lc-btn, .lc-ep):focus-visible { outline:2px solid var(--mc-focus); outline-offset:2px; }
/* on the standard card: one compact row under the details — never stretched across the card */
.msf-card .lc-row { justify-content:center; gap:4px; width:100%; }
.msf-card .lc-btn, .msf-card .lc-ep { height:30px; border-radius:8px; font-size:12px; }
.msf-card .lc-btn.lc-ic, .msf-card .lc-btn.lc-more { width:30px; min-width:30px; }
.msf-card .lc-btn:not(.lc-ic):not(.lc-more) { flex:1 1 auto; min-width:0; padding:0 8px; }
.msf-card .lc-btn:not(.lc-ic):not(.lc-more) span { overflow:hidden; text-overflow:ellipsis; }
.msf-card .lc-ep { font-size:15px; padding:0 6px; }
@container msfcard (max-width:160px) { .lc-fit { display:none; } }
@container msfcard (max-width:120px) { .msf-card .lc-btn:not(.lc-ic):not(.lc-more) svg { display:none; } }

/* the Library's empty status: compact, with popular picks */
.lib-empty { max-width:560px; }

/* Sort panel: "Make this my default" + your defaults (sort-filter.js) */
.sf-def { margin-top:6px; }
.sf-def-row { align-items:flex-start; padding:12px; border:1px solid var(--border-olive); border-radius:12px; background:var(--olive-faint); }
.sf-def-row + .lyr-sec-h { margin-top:22px; }   /* room between "Make this my default" and "Your defaults" (owner) */
.sf-def-txt { display:flex; flex-direction:column; gap:2px; }
.sf-def-txt b { font:700 13.5px var(--sans); color:var(--text); }
.sf-def-txt small { font:500 12px/1.35 var(--sans); color:var(--text-3); }
.sf-def-list { list-style:none; margin:0; padding:0; border:1px solid var(--border); border-radius:12px; overflow:hidden; }
.sf-def-list li { display:flex; justify-content:space-between; gap:12px; padding:9px 12px; font:600 13px var(--sans); color:var(--text-2); border-top:1px solid var(--border); }
.sf-def-list li:first-child { border-top:0; }
.sf-def-list li span:last-child { color:var(--text-3); text-align:end; }
.sf-def-list li.is-cur span { color:var(--score-mine); font-weight:800; }

/* tablet */
@media (max-width:1023px) {
  .lib-head-r { flex:1 1 100%; }
  .lib-search { flex:1 1 auto; width:auto; }
  .lib-tab { padding:9px 7px; gap:7px; }
  .lib-tab-ic { width:30px; height:30px; }
}
/* phones */
@media (max-width:700px) {
  .lp-grid { grid-template-columns:1fr; }
  .lp-card, .lp-card.is-main { padding:12px; gap:12px; border-radius:16px; }
  .lp-ring.tv-ring { width:54px; } .lp-ring.tv-ring circle { stroke-width:9; } .lp-ring.tv-ring b { font-size:19px; }
  .lp-poster { width:70px; border-radius:8px; }
  .lp-card:not(.is-main) { min-height:160px; }
  .lp-card:not(.is-main) .lp-poster { min-width:89px; }
  .lp-card.is-done .lp-tail { padding-top:0; gap:3px; }
  .lp-card:not(.is-main) .lp-body { gap:5px; }
  .lp-head { flex-direction:column; align-items:flex-start; gap:3px; }
  .lp-head .lp-title { max-width:100%; font-size:17px; }
  .lp-year { font-size:12px; }
  .lp-tags { gap:6px; }
  .lp-tags-t { font-size:12px; }
  .lp-ctrls .lc-row { gap:4px; }
  .lp-card.is-main { padding:14px; gap:14px; min-height:0; border-radius:18px; }
  .lp-card.is-main .lp-poster { width:94px; }
  .lp-title { font-size:17px; }
  .lp-card.is-main .lp-title, .lp-card.is-main .lp-head .lp-title { font-size:17px; }   /* the big card's title and year: the same size as the other cards (owner, 19 Nov 2026) */
  .lp-card.is-main .lp-year { font-size:12px; }
  /* a show you're watching (progress bar + buttons make the card tall): the poster keeps its own size, centred like the big
     card's, instead of stretching to the card's height (owner, 19 Nov 2026) */
  .lp-card:not(.is-main):has(.lp-bar) .lp-poster { align-self:center; width:94px; min-width:94px; max-width:94px; }
  .lp-card .lp-art { inset-inline-start:45%; }
  .lc-btn, .lc-ep { height:38px; }
  .lc-btn.lc-ic, .lc-btn.lc-more { width:38px; }
  .lib-top { display:none; }
  .lib-glance-mini { display:flex; align-items:center; gap:10px; width:100%; min-height:48px; padding:8px 12px; margin:0 0 12px; border:1px solid var(--lib-line); border-radius:14px;
    background:var(--lib-card); color:var(--text); font:600 12.5px var(--sans); text-align:start; cursor:pointer; }
  .lib-glance-mini > svg { margin-inline-start:auto; color:var(--text-3); flex:none; }
  .lgm-ring { width:30px; height:30px; flex:none; }
  .lgm-ring circle { stroke-width:4; }
  .lgm-txt { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:var(--text-2); }
  .lgm-txt b { font:400 17px/1 var(--bebas); color:var(--text); }
  .lib-glance-mini:focus-visible { outline:2px solid var(--mc-focus); outline-offset:2px; }
  .lib-tabrow { margin-bottom:12px; }
  .lib-tabs { gap:2px; padding:3px; border-radius:12px; }
  .lib-type-btn.is-wide { display:none; }
  .lib-type-btn.is-mini { display:inline-flex; width:38px; height:38px; padding:0; justify-content:center; border-radius:10px; border:1px solid var(--lib-line); background:var(--lib-card); }
  .lib-type-btn.is-mini .lib-type-l { display:none; }
  .lib-type-btn.is-mini.is-on { background:var(--lib-sel); border-color:var(--lib-sel); }
  .lib-type-btn.is-mini.is-on .lib-tool-n { display:grid; background:var(--lib-card); color:var(--lib-green); }
  .lib-tab { flex-direction:column; align-items:center; justify-content:center; gap:0; padding:7px 2px; border-radius:10px; text-align:center; min-height:48px; }
  .lib-tab-ic, .lib-tab small { display:none; }
  .lib-tab-txt { align-items:center; }
  .lib-tab-l { display:flex; flex-direction:column; align-items:center; font-size:12.5px; }
  .lib-tab-l b { font-size:19px; margin:1px 0 0; }
  .lib-bar-t { font-size:16px; }
  .lib-tool { height:38px; width:38px; padding:0; justify-content:center; }
  .lib-tool-l { display:none; }
  /* profile tabs: the search is an icon among the tools; it opens as a full-width row under them (owner, 18 Nov 2026) */
  .lib-tool.lib-search-tog { display:inline-flex; }
  /* the open search sits under the bar on its own row, out of the tools' row, so the tools stay exactly where they were
     (on the same line as "Watching · 19 titles" when it fits) */
  .lib-bar { position:relative; }
  .lib-bar.is-search { padding-bottom:50px; }
  .lib-bar-r > .lib-bar-search { display:none; position:absolute; inset-inline:0; bottom:0; width:auto; min-width:0; }
  .lib-bar.is-search .lib-bar-r > .lib-bar-search { display:block; }
  .lib-tool-n { display:grid; place-items:center; position:absolute; top:-5px; inset-inline-end:-5px; min-width:17px; height:17px; padding:0 4px; border-radius:9px; background:var(--olive); color:var(--text-on-brand); font:800 10px/1 var(--sans); }
  .lib-vt-b { height:32px; }
  .lib-head .cat-page-title { font-size:30px; }
  .lib-head-r { gap:8px; }
  .lib-head .qp-label { display:none; }
  .lib-head .qp-trigger { width:40px; padding:0; }
  .lib-head .btn-add-entry { width:40px; padding:0; font-size:20px; }
  .lib-head .lib-add-l { display:none; }
  /* phones: exactly 3 a row (Watched, Watchlist, Dropped); Watching 2 a row so its buttons fit */
  .lib-grid { grid-template-columns:repeat(3, minmax(0,1fr)); --msf-gap:8px; --msf-rgap:12px; }
  .lib-grid.is-watch { grid-template-columns:repeat(2, minmax(0,1fr)); }
}
@media (max-width:360px) { .lib-tab-l { font-size:11.5px; } }
@media (prefers-reduced-motion:reduce) {
  .lib-tab, .lp-card, .lc-btn, .lc-ep { transition:none; }
  .lp-card:hover { transform:none; }
  .lib-panel.is-in { animation-duration:120ms; }
}

/* ═════════════════════════════════════════════════════════════
   Adjust framing (Edit page → the backdrop): detail.html _deFrameOpen — a panel L / full page
   The frame has the header's own shape; drag to move, wheel / pinch / slider to zoom. Previews: title header, Library card.
   ═════════════════════════════════════════════════════════════ */
.fr-stage { position:relative; overflow:hidden; width:100%; min-height:150px; max-height:46vh; border-radius:14px; background:#121613; cursor:grab; touch-action:none;
  user-select:none; -webkit-user-select:none; box-shadow:inset 0 0 0 1px rgba(255,255,255,.08); }
.fr-stage.is-dragging { cursor:grabbing; }
.fr-stage:focus-visible { outline:2px solid var(--mc-focus); outline-offset:3px; }
.fr-img { position:absolute; inset:0; background:center 25% / cover no-repeat; will-change:transform; pointer-events:none; }
/* rule-of-thirds guides, shown while you drag or the frame has the keyboard */
.fr-thirds { position:absolute; inset:0; pointer-events:none; opacity:0; transition:opacity .2s;
  background:linear-gradient(90deg, transparent calc(33.33% - .5px), rgba(255,255,255,.55) calc(33.33% - .5px), rgba(255,255,255,.55) calc(33.33% + .5px), transparent calc(33.33% + .5px), transparent calc(66.66% - .5px), rgba(255,255,255,.55) calc(66.66% - .5px), rgba(255,255,255,.55) calc(66.66% + .5px), transparent calc(66.66% + .5px)),
    linear-gradient(180deg, transparent calc(33.33% - .5px), rgba(255,255,255,.55) calc(33.33% - .5px), rgba(255,255,255,.55) calc(33.33% + .5px), transparent calc(33.33% + .5px), transparent calc(66.66% - .5px), rgba(255,255,255,.55) calc(66.66% - .5px), rgba(255,255,255,.55) calc(66.66% + .5px), transparent calc(66.66% + .5px)); }
.fr-stage.is-dragging .fr-thirds, .fr-stage:focus-visible .fr-thirds { opacity:1; }
.fr-help { margin:10px 0 0; font:500 12.5px var(--sans); color:var(--text-3); text-align:center; }
.fr-zoom { display:flex; align-items:center; gap:10px; margin:14px 0 22px; }
.fr-zoom input[type=range] { flex:1; min-width:0; accent-color:var(--toggle-track-on); cursor:pointer; }
.fr-zoom input[type=range]:focus-visible { outline:2px solid var(--mc-focus); outline-offset:3px; border-radius:4px; }
.fr-zbtn { width:36px; height:36px; flex:none; display:grid; place-items:center; border-radius:10px; border:1px solid var(--border-2); background:var(--card); color:var(--text); cursor:pointer; }
.fr-zbtn:hover:not(:disabled) { border-color:var(--border-olive); background:var(--olive-faint); }
.fr-zbtn:disabled { opacity:.4; cursor:default; }
.fr-zbtn:focus-visible { outline:2px solid var(--mc-focus); outline-offset:2px; }
.fr-zoom-v { min-width:44px; text-align:end; font:400 18px/1 var(--bebas); letter-spacing:.3px; color:var(--text); }
.fr-bar { display:grid; gap:12px; margin:0 0 14px; }
.fr-opt { display:grid; gap:6px; }
.fr-opt-l { font:800 10.5px/1 var(--sans); letter-spacing:.14em; text-transform:uppercase; color:var(--text-3); }
/* Adjust framing: where you're framing — every place as a live thumbnail in its own shape, by device, ‹ › to step (backdrop-tools.js) */
.fr-nav { margin:0 0 16px; padding:12px 12px 10px; border-radius:14px; border:1px solid var(--border-2); background:var(--raised); }
.fr-nav-h { display:flex; align-items:center; gap:8px; margin:0 0 8px; }
.fr-nav-h .lyr-sec-h { margin:0; }
.fr-nav-step { display:inline-flex; align-items:center; gap:4px; margin-inline-start:auto; font:700 12px var(--sans); color:var(--text-2); white-space:nowrap; }
.fr-nav-arw { width:32px; height:32px; display:grid; place-items:center; border-radius:9px; border:1px solid var(--border-2); background:var(--card); color:var(--text); cursor:pointer; }
.fr-nav-arw:hover { border-color:var(--border-olive); background:var(--olive-faint); }
.fr-nav-arw:focus-visible { outline:2px solid var(--mc-focus); outline-offset:2px; }
[dir="rtl"] .fr-nav-arw svg { transform:scaleX(-1); }
.fr-nav-list { position:relative; display:flex; gap:14px; overflow-x:auto; scrollbar-width:thin; padding:2px 2px 4px; margin:0 -2px; scroll-behavior:smooth; }
.fr-nav-grp { display:flex; flex-direction:column; gap:6px; flex:none; }
.fr-nav-grp + .fr-nav-grp { padding-inline-start:14px; border-inline-start:1px solid var(--border); }
.fr-nav-dev { font:800 10px/1 var(--sans); letter-spacing:.12em; text-transform:uppercase; color:var(--text-3); }
.fr-nav-row { display:flex; gap:6px; }
.fr-nav-it { display:flex; flex-direction:column; align-items:center; gap:4px; width:104px; flex:none; padding:6px 6px 7px; border-radius:11px; border:1.5px solid transparent; background:none; color:var(--text-2); cursor:pointer; text-align:center; }
.fr-nav-it:hover { background:var(--olive-faint); }
.fr-nav-it.is-on { border-color:var(--olive-light); background:var(--olive-faint); color:var(--text); }
.fr-nav-it:focus-visible { outline:2px solid var(--mc-focus); outline-offset:2px; }
.fr-nav-th { width:84px; height:48px; display:grid; place-items:center; }
.fr-nav-box { position:relative; display:block; overflow:hidden; border-radius:5px; background:#121613; box-shadow:0 0 0 1px var(--border-2); }
.fr-nav-it.is-on .fr-nav-box { box-shadow:0 0 0 2px var(--olive-light); }
.fr-nav-img { position:absolute; inset:0; background:center 25% / cover no-repeat; }
.fr-nav-l { font:700 11.5px/1.2 var(--sans); max-width:100%; min-height:2.4em; overflow:hidden; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; }   /* where it is, up to 2 lines */
.fr-nav-s { display:inline-flex; align-items:center; gap:4px; font:600 10.5px/1 var(--sans); color:var(--text-3); }
.fr-nav-s::before { content:''; width:6px; height:6px; border-radius:50%; background:var(--border-2); }
.fr-nav-s.is-set { color:var(--olive-light); }
.fr-nav-s.is-set::before { background:var(--olive-light); }
/* Now framing <place>, right above the picture you drag; Drag / Crop box beside it */
.fr-now { display:flex; align-items:center; gap:12px; flex-wrap:wrap; margin:0 0 10px; }
.fr-now-t { display:flex; flex-direction:column; gap:2px; min-width:0; flex:1; }
.fr-now-k { font:800 10px/1 var(--sans); letter-spacing:.14em; text-transform:uppercase; color:var(--olive-light); }
.fr-now-t b { font:600 20px/1.15 'Oswald',var(--sans); color:var(--text); }
.fr-now-t small { font:500 12.5px/1.4 var(--sans); color:var(--text-2); }
.fr-now-mode { flex:none; min-width:190px; }
@media (max-width:480px) { .fr-now-mode { flex:1 1 100%; } }
.fr-stage-wrap.is-narrow { display:flex; justify-content:center; }
.fr-stage-wrap.is-narrow .fr-stage { width:auto; height:min(46vh, 340px); max-width:100%; }
/* crop box: the whole picture, dimmed outside the part that shows; drag the box, or a corner handle to zoom */
.fr-stage.is-crop { cursor:default; max-height:none; }
.fr-full { position:absolute; inset:0; background:center / 100% 100% no-repeat; pointer-events:none; }
.fr-box { position:absolute; box-shadow:0 0 0 9999px rgba(4,19,10,.58); outline:2px solid #fff; outline-offset:-1px; cursor:move; touch-action:none; }
.fr-stage.is-crop .fr-thirds { opacity:.55; }
.fr-h { position:absolute; width:18px; height:18px; border:3px solid #fff; background:transparent; touch-action:none; }
.fr-h::after { content:''; position:absolute; inset:-12px; }                     /* a bigger target than it looks */
.fr-h.is-nw { left:-5px; top:-5px; border-right:0; border-bottom:0; cursor:nwse-resize; }
.fr-h.is-ne { right:-5px; top:-5px; border-left:0; border-bottom:0; cursor:nesw-resize; }
.fr-h.is-sw { left:-5px; bottom:-5px; border-right:0; border-top:0; cursor:nesw-resize; }
.fr-h.is-se { right:-5px; bottom:-5px; border-left:0; border-top:0; cursor:nwse-resize; }
.fr-stage.is-crop:focus-visible .fr-box { outline-color:var(--olive-light); }
/* the previews: the real header / card / list row at their real size, scaled to fit (detail.html _frScale); tap one to edit it */
.fr-previews { display:grid; grid-template-columns:1.6fr 1fr; gap:14px 12px; align-items:start; }
.fr-fig.is-big { grid-column:1 / -1; }   /* the big Watching card: a whole row */
.fr-fig { margin:0; display:flex; flex-direction:column; gap:6px; min-width:0; }
.fr-fig[hidden] { display:none; }   /* the other device's places (Computer / Phone) */
.fr-previews > .fr-fig:not([hidden]) { grid-column:1 / -1; }   /* one place at a time: the whole row */
.fr-previews > .fr-fig.is-phone:not([hidden]) { max-width:340px; justify-self:center; width:100%; }
.fr-fig figcaption { font:600 12px var(--sans); color:var(--text-3); }
.lyr-sec-h small { font-weight:600; letter-spacing:0; text-transform:none; color:var(--text-3); }
.fr-pv { position:relative; display:block; width:100%; padding:0; overflow:hidden; border-radius:10px; background:transparent; border:2px solid transparent; cursor:pointer; }
.fr-pv:hover { border-color:var(--border-olive); }
.fr-pv.is-on { border-color:var(--olive-light); }
.fr-pv:focus-visible { outline:2px solid var(--mc-focus); outline-offset:2px; }
.fr-pv-in { position:absolute; top:0; left:0; transform-origin:0 0; pointer-events:none; }
.fr-pv-hero { min-height:0 !important; padding:0 !important; border-radius:18px; border:0; justify-content:flex-end; }
.fr-pv-hero-t { padding:0 6% 7%; font:600 64px/1 var(--serif); color:#fff; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.fr-fig.is-phone .fr-pv-hero-t { font-size:36px; }
.fr-pv .lp-card { cursor:default; font:400 15px/normal var(--sans); text-align:start; color:var(--text); }   /* inside a button: the page's text, not the button's */
.fr-pv .lp-card .lp-poster { display:block; }   /* a span here (the Library's is a button): it still fills the card's height */
.fr-pv .lp-title span { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; line-clamp:2; overflow:hidden; }
.fr-pv .lp-card .lc-btn, .fr-pv .lp-card .lc-ep, .fr-pv .lp-card .cc-strip { pointer-events:none; }
.fr-pv .msf-row { margin:0; }
/* Adjust framing, polished (owner, 14 Nov 2026): the two choices on one quiet card, the picture with its zoom and tips
   underneath as one control strip, and the previews as matching tiles with an "Editing" tag on the one you're framing */
.fr-bar { gap:14px; padding:14px; margin:0 0 16px; border-radius:14px; background:var(--card); border:1px solid var(--border); }
.fr-bar .lyr-seg-opt { white-space:nowrap; }
.fr-stage { border-radius:14px 14px 0 0; box-shadow:none; }
.fr-stage-wrap { border-radius:14px 14px 0 0; overflow:hidden; background:#121613; border:1px solid var(--border); border-bottom:0; }
.fr-stage-wrap.is-narrow { padding:12px 0; }
.fr-stage-wrap.is-narrow .fr-stage { border-radius:10px; }
.fr-ctl { margin:0 0 24px; padding:12px 14px 10px; border-radius:0 0 14px 14px; background:var(--card); border:1px solid var(--border); }
.fr-ctl .fr-zoom { margin:0; }
.fr-ctl .fr-help { margin:8px 0 0; font-size:12px; line-height:1.5; text-align:start; }
.fr-pv-h { display:flex; flex-wrap:wrap; align-items:baseline; gap:4px 10px; margin:0 0 12px; }
.fr-pv-h .lyr-sec-h { margin:0; }
.fr-pv-h small { font:500 12px var(--sans); color:var(--text-3); }
.fr-previews { grid-template-columns:repeat(2, minmax(0, 1fr)); gap:12px; align-items:stretch; }
.fr-fig { gap:8px; padding:10px; border-radius:14px; background:var(--card); border:1px solid var(--border); transition:border-color .15s, box-shadow .15s; }
.fr-fig:has(.fr-pv.is-on) { border-color:var(--olive-light); box-shadow:0 0 0 3px var(--olive-faint); }
.fr-fig .fr-pv { border:0; border-radius:8px; margin-block:auto; }
.fr-fig .fr-pv:hover { border:0; }
.fr-fig.is-phone .fr-pv { width:min(100%, 220px); margin-inline:auto; }
.fr-fig figcaption { margin-top:auto; display:flex; align-items:center; justify-content:space-between; gap:8px; font:700 12.5px var(--sans); color:var(--text-2); }
.fr-on { display:none; padding:2px 8px; border-radius:999px; background:var(--olive); color:var(--text-on-brand); font:800 9.5px/1.4 var(--sans); font-style:normal; letter-spacing:.1em; text-transform:uppercase; }
.fr-fig:has(.fr-pv.is-on) .fr-on { display:inline-block; }
@media (max-width:560px) { .fr-previews { grid-template-columns:minmax(0, 1fr); } .fr-fig.is-big { grid-column:auto; } }
@media (prefers-reduced-motion:reduce) { .fr-fig { transition:none; } }
@media (prefers-reduced-motion:reduce) { .fr-thirds { transition:none; } }

/* ═══════════════════════════════════════════════════════════════
   Hero pages (.tp-*): the title page and the person page (moved from title.html, 14 Nov 2026).
   The big hero with darker glass, its tiles, the phone's boxed hero, the slim bar, the sticky tabs and
   panels, the score chips and the phone's action bar above the bottom bar.
═══════════════════════════════════════════════════════════════ */
/* ── the hero: larger than the panel's, darker glass ── */
.tp-hero .tv-hero-shade { background:linear-gradient(90deg, rgba(0,0,0,.66) 0%, rgba(0,0,0,.34) 52%, rgba(0,0,0,.42) 100%), linear-gradient(180deg, rgba(0,0,0,.38) 0%, rgba(0,0,0,.08) 38%, rgba(0,0,0,.78) 100%); }
.tp-page:not(.is-phone) .tp-hero { min-height:var(--hero-h); padding:84px 44px 70px; }
.tp-page:not(.is-phone) .tp-hero .tv-hero-main { align-items:flex-end; gap:36px; margin-top:0; }
.tp-page:not(.is-phone) .tp-hero .tv-poster { width:var(--hero-poster); }
.tp-page:not(.is-phone) .tp-hero .tv-top { inset:22px 26px auto; }
.tp-hero .tv-round { background:rgba(0,0,0,.6); border-color:rgba(255,255,255,.28); -webkit-backdrop-filter:blur(8px); backdrop-filter:blur(8px); }
.tp-hero .tv-round:hover:not(:disabled) { background:rgba(0,0,0,.78); border-color:rgba(255,255,255,.45); }
.tp-hero .tv-chip { background:rgba(0,0,0,.52); border-color:rgba(255,255,255,.2); -webkit-backdrop-filter:blur(8px); backdrop-filter:blur(8px); min-height:26px; padding:0 9px; }
.tp-hero .tv-btn { background:rgba(0,0,0,.6); border-color:rgba(255,255,255,.26); -webkit-backdrop-filter:blur(8px); backdrop-filter:blur(8px); }
.tp-hero .tv-btn:hover { background:rgba(0,0,0,.78); }
/* a switched-on icon button (the profile's bell) over a picture: the hero's bright green, not the page's olive */
.tv-hero .tv-btn.is-on { background:rgba(0,0,0,.6); border-color:var(--tv-green); color:var(--tv-green); }
.tv-hero .tv-btn.is-on:hover { background:rgba(0,0,0,.78); }
.tp-acts .tv-btn { padding:0 13px; }
.tp-acts .tv-btn.is-icon { padding:0; }
.tp-hero .tv-btn.is-main { min-width:0; padding:0 18px; }
.tp-hero .tv-btn.is-main { background:var(--action-primary-bg); -webkit-backdrop-filter:none; backdrop-filter:none; }
.tp-hero .tv-btn.is-main:hover { background:color-mix(in srgb, var(--action-primary-hover) 85%, #fff); }
.tp-tiles { display:grid; grid-template-columns:repeat(3, 80px); gap:8px; }
.tp-tile { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:5px; min-height:66px; padding:8px 4px; border-radius:var(--radius-sm);
  border:1px solid rgba(255,255,255,.2); background:rgba(0,0,0,.55); -webkit-backdrop-filter:blur(8px); backdrop-filter:blur(8px); color:#fff; font:inherit; text-align:center; }
.tp-tile b { font:400 26px/1 var(--bebas); letter-spacing:.02em; color:#fff; }
.tp-tile small { font:800 9px/1.2 'Manrope',var(--sans); letter-spacing:.12em; text-transform:uppercase; color:rgba(255,255,255,.72); white-space:nowrap; }
.tp-tile.is-none b { color:rgba(255,255,255,.5); }
button.tp-tile { cursor:pointer; }
button.tp-tile:hover { border-color:rgba(255,255,255,.45); background:rgba(0,0,0,.72); }
button.tp-tile:focus-visible { outline:2px solid var(--tv-green); outline-offset:2px; }
/* phones: the boxed hero — back / refresh, poster + title, the ring top right, scores and quick buttons below */
.tp-tiles-ph, .tp-quick { display:none; }
.tp-page.is-phone .tp-hero { min-height:var(--hero-h-phone); padding:14px 14px 16px; }
.tp-page.is-phone .tp-hero .tv-hero-main { margin-top:118px; gap:14px; align-items:flex-end; }
.tp-page.is-phone .tp-hero .tv-poster { width:96px; }
.tp-page.is-phone .tp-hero .tv-title { font-size:28px; }
.tp-page.is-phone .tp-hero .tv-title .mss-logo { max-width:min(100%, 210px); max-height:70px; }
.tp-page.is-phone .tp-hero .tv-tagline, .tp-page.is-phone .tp-acts, .tp-page.is-phone .tp-scores .tp-tiles { display:none; }
.tp-page.is-phone .tp-hero .tv-chip { min-height:22px; padding:0 7px; font-size:11px; }
.tp-page.is-phone .tp-hero .tv-top { inset:14px 14px auto; }
.tp-page.is-phone .tp-tiles-ph { display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:8px; margin-top:4px; }
.tp-page.is-phone .tp-tiles-ph .tp-tile { min-height:58px; }
.tp-page.is-phone .tp-quick { display:flex; gap:6px; }
.tp-page.is-phone .tp-quick .tv-btn { flex:1 1 auto; min-width:0; min-height:40px; padding:0 8px; gap:5px; font-size:12px; }
.tp-page.is-phone .tp-quick .tv-btn span { overflow:hidden; text-overflow:ellipsis; }
/* the slim bar (Edit page behaviour) */
.tp-mini .tp-mini-act { margin-inline-start:4px; }
.tp-mini .tv-btn { min-height:40px; border-color:rgba(255,255,255,.22); color:#fff; }
.tp-mini .tv-btn.is-main { background:var(--action-primary-bg); border-color:var(--action-primary-bg); }
.tp-page.is-phone .tp-mini .tp-mini-act { display:none; }
.tp-mini .tv-mini-txt small { color:var(--tv-green); }
.tp-mini .tv-mini-txt small.is-off { color:rgba(255,255,255,.7); }
/* tabs: the Edit page's sticky bar; the right side says where it is in your library */
.tp-tabs .tv-tabs-vis { font-weight:600; }
.tp-page.is-phone .tp-tabs .tv-tabs-vis { display:none; }
.tp-l-short { display:none; }
.tp-page.is-phone .tp-l-long { display:none; } .tp-page.is-phone .tp-l-short { display:inline; }
.tp-page.is-phone .tp-tabs { overflow-x:auto; }
.tp-page.is-phone .tp-tabs .tv-tab { padding:0 6px; }
.tp-panel { margin-top:24px; outline:none; }
.tp-panel[hidden] { display:none; }
.tp-page.is-phone .tp-panel { margin-top:16px; }
.tp-page.is-phone .tv-cols { gap:14px; }
.tp-page.is-phone .tv-main, .tp-page.is-phone .tv-side { gap:14px; }
.tp-page.is-phone .tv-sec { margin:0; padding:16px; border-radius:var(--radius); border:1px solid var(--border); background:var(--panel); }
.tp-full { display:flex; flex-direction:column; gap:20px; margin-top:20px; }
.tp-page.is-phone .tp-full { gap:14px; margin-top:14px; }
.eg-chip { min-width:50px; padding:6px 8px; border-radius:6px; text-align:center; font-family:var(--bebas); font-size:18px; line-height:1; }
.eg-chip small { display:block; font-family:'Manrope',var(--sans); font-size:8.5px; letter-spacing:1px; text-transform:uppercase; opacity:.85; margin-top:2px; }
.tp-chip-none { background:transparent; color:var(--text-3); box-shadow:inset 0 0 0 1px var(--border-2); }
button.eg-chip { cursor:pointer; font:inherit; font-family:var(--bebas); font-size:18px; line-height:1; transition:transform .12s; }
button.eg-chip:hover { transform:translateY(-1px); }
button.eg-chip:focus-visible { outline:2px solid var(--text); outline-offset:2px; }
.tp-chip-tmdb { background:var(--raised); color:var(--text); box-shadow:inset 0 0 0 1px var(--border-2); }
/* phones: the bar above the bottom bar — View in Library / Add to watchlist, Edit, ⋯ */
.tp-bar { display:none; }
.tp-page.is-phone .tp-bar { position:fixed; z-index:390; inset-inline:10px; bottom:calc(var(--bnav-top) + 42px); display:flex; align-items:center; gap:8px; padding:8px;
  border-radius:var(--radius-lg); border:1px solid rgba(255,255,255,.12); background:#121613; color:#fff; color-scheme:dark; box-shadow:0 8px 24px rgba(0,0,0,.25); }
.tp-bar .tv-btn { min-height:46px; border-color:rgba(255,255,255,.22); color:#fff; }
.tp-bar .tv-btn.is-main { flex:1; background:var(--action-primary-bg); border-color:var(--action-primary-bg); }
.tp-bar .tv-btn.is-icon { width:46px; background:rgba(255,255,255,.08); }
.tp-page.is-phone { padding-bottom:120px; }

/* ═════════════════════════════════════════════════════════════
   §70  Home — the signed-in home page (js/home.js · Home page redesign)
   A greeting, then widgets in a grid you arrange: 3 columns on a computer, 2 on a tablet, 1 on a
   phone; S / M / L = 1 / 2 / 3 columns (the last widget of a row widens to fill it — home.js pack).
   Widgets are the Library's boxes (--lib-card, --lib-line): borders, no shadows. Inside: the
   standard cards, MSF scores, the Library's buttons (lc-btn) and At a glance pieces (lg-*).
   ═════════════════════════════════════════════════════════════ */
/* Guests (owner, 19 Nov 2026): the same page as a preview with example titles — no Customize, a way in at the end */
html.mh-guest .mh-custom { display:none; }
.mh-join { display:none; }
html.mh-guest .mh-join { display:block; margin:clamp(28px, 3vw + 12px, 56px) auto 0; max-width:640px; padding:clamp(20px, 2vw + 10px, 32px); text-align:center;
  border:1px solid var(--border); border-radius:var(--mh-r); background:var(--surface-card); }
.mh-join-t { font:600 clamp(24px, 1vw + 18px, 32px)/1.1 var(--serif); color:var(--text-heading); }
.mh-join-p { margin:8px auto 0; max-width:480px; font-size:14px; line-height:1.6; color:var(--text-2); }
.mh-join .guest-cta { margin-top:18px; }
.mh-sum a { color:var(--text-link); font-weight:700; text-decoration:underline; text-underline-offset:2px; }
.mh { --mh-r:18px; --mh-gap:clamp(12px, 1.1vw + 6px, 20px); --mh-pad:clamp(14px, .8vw + 9px, 20px); }

/* ── Greeting · search · Customize ── */
.mh-top { display:flex; align-items:flex-end; justify-content:space-between; gap:14px 24px; flex-wrap:wrap; margin:0 0 clamp(14px, 1vw + 8px, 22px); }
.mh-hi { min-width:0; flex:1 1 420px; }
.mh-date { font:800 11px/1.2 var(--sans); letter-spacing:.2em; text-transform:uppercase; color:var(--olive-light); margin-bottom:6px; min-height:13px; }
[data-theme="light"] .mh-date { color:var(--olive); }
.mh-hello { font-family:var(--serif); font-weight:600; font-size:clamp(28px, 1.8vw + 16px, 46px); line-height:1.08; color:var(--text-heading); text-wrap:balance; }
.mh-hello em { font-style:normal; color:var(--olive-light); }
[data-theme="light"] .mh-hello em { color:var(--olive); }
/* Your name in a handwritten signature — Damion (owner, 16 Nov 2026); Customize › Simple keeps it Oswald (js/home.js setName) */
.mh-hello em { font-family:'Damion', var(--serif); font-weight:400; font-size:1.08em; letter-spacing:0; padding-inline:.06em .08em; }
.mh-hello.is-simple em { font-family:var(--serif); font-weight:600; font-size:1em; letter-spacing:normal; padding:0; }

.mh-sum { margin-top:6px; font-size:14px; line-height:1.5; color:var(--text-2); min-height:21px; }
.mh-sum b { font-weight:700; color:var(--text); }
.mh-tools { display:flex; align-items:center; gap:10px; flex:0 1 auto; }
.mh-search-host { position:relative; z-index:60; display:flex; flex:0 1 auto; min-width:0; }   /* holds the header-style results dropdown (shell-search.js); under the side panels (Notifications 390–395) */
.mh-search-host:focus-within { z-index:396; }   /* while it's being used: its results over the + button and phone bars (390–395) */
.sf-search.mh-search { width:clamp(220px, 18vw + 80px, 380px); }   /* Home: the compact search box (sizes: the search box block) */
.lib-tool.mh-custom { height:44px; padding:0 14px; flex:none; cursor:pointer; color:var(--text); font:700 13px var(--sans); }
.lib-tool.mh-custom[aria-expanded="true"] { border-color:var(--olive); background:var(--olive-faint); }
.mh-custom:focus-visible { outline:2px solid var(--mc-focus); outline-offset:2px; }
#mhSearchResults { margin-bottom:24px; }

/* ── The Customize bar: part of the page, in the page's own colours ── */
.mh-bar { position:sticky; top:calc(var(--nav-h) + 10px); z-index:40; display:flex; align-items:center; justify-content:space-between; gap:12px 18px; flex-wrap:wrap;
  margin:0 0 16px; padding:12px 14px 12px 18px; border-radius:16px; border:1px solid var(--border-olive); background:var(--mc-bg); }
.mh-bar[hidden] { display:none; }
.mh-bar-t { font:600 18px/1.2 var(--serif); color:var(--text-heading); outline:none; }
.mh-bar-hint { margin-top:3px; font-size:12.5px; color:var(--text-2); }
.mh-bar-grip { letter-spacing:-2px; font-weight:800; color:var(--olive-light); }
.mh-bar-r { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.pn-toggle.mh-presets { margin:0; }
.mh-presets .pn-toggle-btn { padding:0 14px; min-height:40px; font-size:13px; }
.mh-names .mh-name-sig { font:400 18px/1 'Damion', var(--serif); }   /* Your name: Signature is written in it (the choice shows itself) */
.mh-bar-btns { display:flex; gap:8px; flex-wrap:wrap; }
.mh-bar-btns .lc-btn { height:40px; font:700 13px var(--sans); }

/* ── The grid and the widget box ── */
.mh-grid { display:grid; grid-template-columns:repeat(var(--mh-cols, 3), minmax(0, 1fr)); gap:var(--mh-gap); align-items:stretch; container-type:inline-size; }
.mh-w { position:relative; min-width:0; display:flex; flex-direction:column; padding:var(--mh-pad); border-radius:var(--mh-r); border:1px solid var(--lib-line); background:var(--lib-card); }
.mh-w[hidden] { display:none; }
.mh-wb { flex:1; min-width:0; display:flex; flex-direction:column; }
.mh-wh { display:flex; align-items:center; gap:10px; min-height:28px; margin:0 0 12px; }
.mh-wt { flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.mh-n { flex:none; min-width:24px; padding:2px 8px; border-radius:999px; text-align:center; font:700 11.5px/1.5 var(--sans); color:var(--text-2); background:var(--lib-track); }
.mh-more { flex:none; display:inline-flex; align-items:center; gap:5px; min-height:32px; font:700 12.5px var(--sans); color:var(--olive-light); text-decoration:none; white-space:nowrap; }
[data-theme="light"] .mh-more { color:var(--olive); }
a.mh-more:hover { text-decoration:underline; text-underline-offset:3px; }
a.mh-more:focus-visible { outline:2px solid var(--mc-focus); outline-offset:2px; border-radius:6px; }
.mh-tune { color:var(--text-2); }   /* Tune: quieter than See all */
[data-theme="light"] .mh-tune { color:var(--text-2); }
.mh-empty.mss-es { flex:1; justify-content:center; padding:1rem .5rem 1.2rem; }
.mh-empty .mss-es-art { width:120px; height:90px; margin-bottom:10px; }
.mh-empty .mss-es-title { font-size:18px; }
.mh-empty .mss-es-text { font-size:13px; }
.mh-skel { flex:1; min-height:120px; padding:0; }
/* One card size for the whole home page (owner): three across a narrow (S) widget — a column of the grid, less the
   widget's padding and border and the gaps between three cards. Every rail and card grid uses it, at every width. */
.mh-w { --mh-card-fit:calc(((100cqw - (var(--mh-cols, 3) - 1) * var(--mh-gap)) / var(--mh-cols, 3) - 2 * var(--mh-pad) - 2px - 2 * var(--msf-gap)) / 3 - 1px);
  --mh-card:var(--mh-card-fit); }
/* computers and tablets: real-size cards (160–220px), not a third of a column (owner, 27 Nov 2026); phones keep three across */
.mh-grid:not([data-cols="1"]) .mh-w { --mh-card:max(var(--mh-card-fit), clamp(160px, 6vw + 100px, 220px)); }
.mh-rail { --msf-rail-w:var(--mh-card); }
/* a box made taller by its row (home.js fitRails): the cards top to bottom in rows that fill it, the rest scroll down */
.mh-rail.is-stack { grid-auto-flow:row; grid-auto-columns:auto;   /* its columns: home.js (the count that leaves the least empty space) */
  overflow-x:hidden; overflow-y:auto; overscroll-behavior-y:contain; scroll-snap-type:y proximity; }
.msf-rail-wrap.is-stack .grid-nav-btn { display:none !important; }
/* home cards: the title on one line, cut with … (owner) — every card the same height */
.mh-w .msf-card__title { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; -webkit-line-clamp:unset; line-clamp:unset; display:block; }
.mh-w .msf-card__meta, .mh-w .msf-card__meta > span { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; min-width:0; }

/* ── Continue watching: the backdrop hero (always dark, like every backdrop header) ── */
.mh-w.is-hero, .mh-w-continue:has(> .mh-wb > .mh-skel) { padding:0; border:0; background:none; }
.mh-hero { position:relative; isolation:isolate; overflow:hidden; flex:1; display:flex; flex-direction:column; gap:18px; min-height:clamp(420px, 14vw + 250px, 520px);
  padding:clamp(18px, 1.2vw + 10px, 28px); border-radius:var(--mh-r); border:1px solid rgba(255,255,255,.1); background:#0F1210; color:#fff; color-scheme:dark; }
.mh-hero-bd { position:absolute; inset:0; z-index:-2; background-size:cover; background-position:center 25%; opacity:0; transition:opacity .6s ease; }
.mh-hero-bd.in { opacity:1; }
.mh-hero-bd.is-poster { filter:blur(22px) saturate(1.2); transform:scale(1.15); opacity:.7; }
.mh-hero-shade { position:absolute; inset:0; z-index:-1; background:linear-gradient(90deg, rgba(4,19,10,.94) 0%, rgba(4,19,10,.78) 42%, rgba(4,19,10,.28) 100%), linear-gradient(0deg, rgba(4,19,10,.88) 0%, rgba(4,19,10,0) 60%); }
[dir="rtl"] .mh-hero-shade { transform:scaleX(-1); }
.mh-hero-top { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
.mh-hero-tl { display:flex; flex-direction:column; align-items:flex-start; gap:10px; min-width:0; }   /* the heading, then where you are (Watching · S3 E8) right under it */
.mh-hero-tl .mh-hero-k { min-height:24px; display:flex; align-items:center; }
.mh-hero-k { font:800 11px/1.2 var(--sans); letter-spacing:.2em; text-transform:uppercase; color:var(--olive-light); }
.mh-hero-open { display:inline-flex; align-items:center; gap:6px; min-height:44px; padding:0 4px; border:0; background:none; color:#fff; font:700 13px var(--sans); cursor:pointer; }
.mh-hero-open:hover { text-decoration:underline; text-underline-offset:3px; }
.mh-hero-in { margin-top:auto; display:flex; align-items:flex-end; gap:clamp(16px, 1.6vw + 6px, 28px); min-width:0; }
.mh-hero-poster { flex:none; width:clamp(112px, 5vw + 64px, 168px); aspect-ratio:2/3; padding:0; border-radius:12px; overflow:hidden; border:1px solid rgba(255,255,255,.2); background:#232824; cursor:pointer; }
.mh-hero-poster img { width:100%; height:100%; object-fit:cover; display:block; }
.mh-hero-body { flex:1; min-width:0; display:flex; flex-direction:column; align-items:flex-start; gap:12px; }
.mh-badge { display:inline-flex; align-items:center; gap:7px; padding:5px 11px; border-radius:999px; background:var(--olive); color:var(--text-on-brand); font:800 11px/1.3 var(--sans); letter-spacing:.1em; text-transform:uppercase; }
.mh-badge i { width:7px; height:7px; border-radius:50%; background:#CFE8C3; }
.mh-hero-t { font-family:var(--serif); font-weight:600; font-size:clamp(30px, 2.2vw + 14px, 58px); line-height:1.02; text-wrap:balance; text-shadow:0 2px 18px rgba(0,0,0,.45); overflow-wrap:anywhere; }
.mh-up { display:flex; align-items:center; gap:12px; width:100%; max-width:460px; padding:10px; border-radius:14px; background:rgba(0,0,0,.42); border:1px solid rgba(255,255,255,.14); }
.mh-up.is-movie { width:auto; max-width:100%; justify-self:start; padding:10px 14px; }   /* a movie's type + runtime: as wide as its text */
.mh-up-still { flex:none; width:clamp(96px, 3vw + 70px, 132px); aspect-ratio:16/9; border-radius:9px; background:rgba(255,255,255,.09) center/cover no-repeat; }
.mh-up-t { min-width:0; display:flex; flex-direction:column; gap:3px; }
.mh-up-t small { font:800 10.5px/1.2 var(--sans); letter-spacing:.12em; text-transform:uppercase; color:var(--olive-light); }
.mh-up-t b { font:600 17px/1.2 var(--serif); color:#fff; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.mh-up-t span { font-size:12px; color:rgba(255,255,255,.72); }
.mh-prog { width:100%; max-width:520px; }
.mh-hero .lp-bar { height:6px; max-width:none; background:rgba(255,255,255,.2); }
.mh-hero .lp-bar i { background:var(--olive-light); }
.mh-hero .lp-count { margin-top:6px; font-size:12.5px; color:rgba(255,255,255,.8); }
.mh-hero-acts { flex-wrap:wrap; gap:8px; }
.mh-hero .lc-btn { height:44px; min-width:44px; font:700 13.5px var(--sans); }
.mh-hero .lc-btn.lc-ic { width:44px; }
.mh-hero .lc-btn:not(.is-primary) { background:rgba(255,255,255,.1); border-color:rgba(255,255,255,.26); color:#fff; }
.mh-hero .lc-btn:not(.is-primary):hover { background:rgba(255,255,255,.18); }
.mh-hero :is(.lc-btn, .mh-hero-open, .mh-hero-poster):focus-visible { outline:2px solid #fff; outline-offset:2px; }

/* ── Also in progress: four list rows, the hero's height; the rows' poster smaller ── */
.mh-plist { display:flex; flex-direction:column; gap:8px; }
/* Also in progress (owner, 27 Nov 2026): the poster on the left, centred top to bottom; title, progress and the buttons
   stacked beside it, so the text has the row's full width. The buttons share the row's cell, under the text (not inside
   the poster + text button) */
.mh-prow { --prow-p:clamp(64px, 1.2vw + 52px, 76px); --prow-gap:clamp(10px, .6vw + 6px, 14px); }
.mh-prow.msf-row, .mh-prow.msf-row.has-controls { padding:8px; grid-template-columns:minmax(0, 1fr); grid-template-areas:"row"; align-items:stretch; }
.mh-prow .msf-row__main { grid-area:row; align-items:center; gap:var(--prow-gap); }
.mh-prow .msf-row__poster { width:var(--prow-p); align-self:center; }
.mh-prow { --prow-btn:36px; }                                      /* desktop: the site's standard button; phones 44px (tap size) */
.mh-prow .msf-row__body { align-self:center; padding-bottom:calc(var(--prow-btn) + 8px); }
.mh-prow .msf-row__score { display:none; }
.mh-prow .msf-row__controls { grid-area:row; align-self:end; justify-self:start; flex-direction:row; margin-inline-start:calc(var(--prow-p) + var(--prow-gap)); }
.mh-w .msf-row__art { display:none; }                            /* the home page's list rows: no backdrop strip (owner) */
.mh-prow .msf-row__title { max-width:100%; font-size:clamp(14.5px, .3vw + 13px, 16.5px); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.mh-prow .msf-row__year { flex:none; }

.mh-prow .msf-row__badges { flex:none; }
.mh-prow .msf-row__pl { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.mh-prow .lc-btn, .mh-prow .lc-ep { height:var(--prow-btn); }
.mh-prow .lc-btn { font:700 13px var(--sans); }
.mh-prow .lc-btn.lc-ic { width:var(--prow-btn); }

/* ── At a glance (→ profile): the ring with your average, four tiles; wider: your score bands too ── */
.mh-glance { flex:1; display:grid; grid-template-columns:auto minmax(0, 1fr); align-items:center; gap:14px 18px; color:inherit; text-decoration:none; border-radius:14px; }
.mh-glance:hover .lg-kpi { border-color:var(--mc-bdh); }
.mh-glance:focus-visible { outline:2px solid var(--mc-focus); outline-offset:4px; }
.mh-avg { display:flex; flex-direction:column; align-items:center; gap:6px; }
.mh-ring { position:relative; width:96px; height:96px; display:block; }
.mh-ring.is-sm { width:84px; height:84px; flex:none; }
.mh-ring .lg-ring-svg { width:100%; height:100%; }
.mh-ring-v { position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:1px; }
.mh-ring-v b { font:400 clamp(22px, .6vw + 18px, 27px)/1 var(--bebas); letter-spacing:.3px; color:var(--text); }
.mh-ring-v b.msf-score { color:var(--st, var(--score-mine)); }
.mh-ring-v small { font:800 8.5px/1 var(--sans); letter-spacing:.12em; text-transform:uppercase; color:var(--text-3); }
.mh-avg-n { font:600 11.5px var(--sans); color:var(--text-3); }
.lg-kpis.mh-kpis { grid-template-columns:repeat(2, minmax(0, 1fr)); gap:8px; margin:0; }
.mh-kpis .lg-kpi { padding:10px 12px; gap:4px; }
.mh-kpis .lg-kpi dd b { font-size:clamp(20px, .5vw + 17px, 26px); }
.mh-bands { display:none; min-width:0; }
.mh-w-glance:is([data-span="2"], [data-span="3"]) .mh-glance { grid-template-columns:auto minmax(0, 1.2fr) minmax(0, 1fr); }
.mh-w-glance:is([data-span="2"], [data-span="3"]) .mh-bands { display:block; }

/* ── Friends activity: the standard card, their picture on the corner, when under it ── */
.mh-fcard .msf-card__controls { padding-top:clamp(3px, 1.6cqi, 6px); }
/* the time ago: the card's meta line (size grows with the card), lined up with the text above it */
.mh-ago { flex:1; min-width:0; font:600 clamp(9.5px, 1.3cqi + 8px, 12px)/1.2 var(--sans); color:var(--mc-m); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

/* ── Pick for me: the green card ── */
.mh-w-pick { --mh-pick:var(--brand); background:var(--mh-pick); border-color:color-mix(in srgb, var(--mh-pick) 70%, #fff); color:#fff; color-scheme:dark; }
.mh-w-pick .lg-kicker { color:rgba(255,255,255,.78); }
.mh-pick-more { flex:none; width:44px; height:44px; margin:-8px -8px -8px 0; display:grid; place-items:center; border:0; border-radius:10px; background:none; color:rgba(255,255,255,.85); cursor:pointer; }
.mh-pick-more:hover { background:rgba(255,255,255,.1); }
.mh-pick-in { flex:1; display:flex; gap:16px; align-items:flex-start; min-width:0; }
.mh-pick-poster { flex:none; width:calc(var(--mh-card) - 16px);   /* poster + buttons = one home card's height, so its row has no empty space (owner) */ aspect-ratio:2/3; padding:0; border-radius:10px; overflow:hidden; border:1px solid rgba(255,255,255,.22); background:rgba(255,255,255,.1); cursor:pointer; }
.mh-pick-poster img { width:100%; height:100%; object-fit:cover; display:block; }
.mh-pick-body { min-width:0; display:flex; flex-direction:column; gap:5px; }
.mh-pick-k { font:800 10.5px/1.2 var(--sans); letter-spacing:.14em; text-transform:uppercase; color:#BFE0B0; }
.mh-pick-t { font:600 clamp(20px, .6vw + 16px, 26px)/1.1 var(--serif); color:#fff; overflow-wrap:anywhere; }
.mh-pick-sub { font-size:12.5px; color:rgba(255,255,255,.78); }
.mh-pick-why { list-style:none; margin:6px 0 0; padding:0; display:grid; gap:6px; }
.mh-pick-why li { display:flex; gap:7px; align-items:flex-start; font-size:12.5px; line-height:1.4; color:rgba(255,255,255,.88); }
.mh-pick-why svg { flex:none; margin-top:2px; color:#BFE0B0; }
.mh-pick-acts { display:flex; gap:8px; margin-top:14px; }
.mh-pick-acts .lc-btn { flex:1; height:44px; font:700 13.5px var(--sans); background:rgba(255,255,255,.08); border-color:rgba(255,255,255,.3); color:#fff; }
.mh-pick-acts .lc-btn:hover { background:rgba(255,255,255,.16); }
.mh-pick-acts .lc-btn.is-primary { background:#fff; border-color:#fff; color:var(--mh-pick); }
.mh-pick-acts .lc-btn.is-primary:hover { background:#EAF3E5; }
.mh-w-pick :is(.lc-btn, .mh-pick-poster, .mh-pick-more):focus-visible { outline:2px solid #fff; outline-offset:2px; }
.mh-pick-none { flex:1; display:flex; flex-direction:column; align-items:flex-start; gap:12px; font-size:13.5px; color:rgba(255,255,255,.88); }
.mh-pick-none .lc-btn { height:44px; background:#fff; color:var(--mh-pick); border-color:#fff; }

/* ── Waiting on new episodes: the next date under the title ── */
.mh-next { font:700 11.5px var(--sans); color:var(--olive-light); }
[data-theme="light"] .mh-next { color:var(--olive); }
.mh-next.is-wait { color:var(--text-3); font-weight:600; }

/* ── Score spread (→ profile): a bar per score, green; the 9.80+ part gold ── */
.mh-spread { flex:1; display:flex; flex-direction:column; color:inherit; text-decoration:none; border-radius:12px; }
.mh-spread:focus-visible { outline:2px solid var(--mc-focus); outline-offset:4px; }
.mh-bars { flex:1; display:flex; align-items:stretch; gap:clamp(4px, .5vw, 8px); min-height:150px; }
.mh-sb { flex:1; min-width:0; display:flex; flex-direction:column; align-items:center; justify-content:flex-end; gap:4px; }
.mh-sb small { font:700 11px var(--sans); color:var(--text-2); min-height:13px; }
.mh-sb i { position:relative; display:block; width:100%; max-width:36px; min-height:0; border-radius:6px 6px 2px 2px; background:var(--st, var(--score-mine)); overflow:hidden; }
.mh-sb i em { position:absolute; inset:0 0 auto; background:var(--st-gold-fill); }
.mh-sb b { font:400 15px/1 var(--bebas); color:var(--text-2); }
.mh-spread:hover .mh-sb i { filter:brightness(1.08); }
.mh-spread-key { display:flex; align-items:center; gap:6px; margin-top:10px; font:600 11.5px var(--sans); color:var(--text-3); }
.mh-spread-key i { width:10px; height:10px; border-radius:3px; background:var(--score-mine); }
.mh-spread-key i.is-gold { margin-inline-start:8px; background:var(--st-gold-fill); }
.mh-spread-key i:not(.is-gold) { background:linear-gradient(90deg, var(--st-bad), var(--st-mixed), var(--st-great), var(--st-outstanding)); }

/* ── Discover: the Discover page's tiles, a little shorter ── */
/* the four Top 250s two by two (owner, 27 Nov 2026), compact tiles; four in a row when full width on a computer */
.dk-grid.mh-dk { grid-template-columns:repeat(2, minmax(0, 1fr)); grid-auto-flow:row; gap:10px; overflow:visible; margin:0; padding:0; scroll-snap-type:none; }
.mh-w-discover[data-span="3"] .mh-dk { grid-template-columns:repeat(4, minmax(0, 1fr)); }
.mh-dk .dk-tile { height:128px; border-radius:var(--radius); }
.mh-dk .dk-text { padding:10px 12px; }
.mh-dk .dk-badge { max-width:100%; margin-bottom:6px; padding:2px 7px; font-size:8.5px; letter-spacing:1px; }
.mh-dk .dk-title { max-width:100%; margin-bottom:0; font-size:17px; display:-webkit-box; -webkit-line-clamp:2; line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.mh-dk .dk-sub { display:none; }
.mh-dk .dk-cta { gap:5px; padding:4px 10px; font-size:11px; }
.mh-dk .dk-cta svg { width:11px; height:11px; }
.mh-dk .dk-tile:hover .dk-cta { gap:5px; padding-inline-end:10px; }
.mh-dk .dk-fan { width:64px; }
.mh-dk .dk-p { width:38px; bottom:-12px; border-radius:6px; }
.mh-dk .dk-p:nth-child(1) { inset-inline-end:30px; } .mh-dk .dk-p:nth-child(2) { inset-inline-end:17px; } .mh-dk .dk-p:nth-child(3) { inset-inline-end:4px; }
.mh-dk .dk-num { font-size:84px; bottom:-14px; }

/* ── This week ── */
.mh-week { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; }
.mh-week li + li { border-top:1px solid var(--lib-line); }
.mh-wk { width:100%; display:flex; align-items:center; gap:12px; min-height:56px; padding:6px 4px; border:0; background:none; color:inherit; text-align:start; cursor:pointer; border-radius:10px; }
.mh-wk:hover { background:var(--olive-faint); }
.mh-wk:focus-visible { outline:2px solid var(--mc-focus); outline-offset:-2px; }
.mh-wk-day { flex:none; width:72px; font:800 11.5px var(--sans); letter-spacing:.06em; text-transform:uppercase; color:var(--olive-light); }
[data-theme="light"] .mh-wk-day { color:var(--olive); }
.mh-wk-p { flex:none; width:32px; aspect-ratio:2/3; border-radius:6px; overflow:hidden; background:var(--mc-po); }
.mh-wk-p img { width:100%; height:100%; object-fit:cover; display:block; }
.mh-wk-t { min-width:0; display:flex; flex-direction:column; gap:2px; }
.mh-wk-t b { font:700 13.5px var(--sans); color:var(--text); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.mh-wk-t small { font:600 12px var(--sans); color:var(--text-3); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

/* ── Medal progress ── */
.mh-medals { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:8px; }
.mh-medal { display:flex; flex-direction:column; gap:8px; min-height:44px; padding:10px 12px; border-radius:12px; border:1px solid var(--lib-line); color:inherit; text-decoration:none; background:color-mix(in srgb, var(--lib-track) 35%, var(--lib-card)); }
a.mh-medal:hover { border-color:var(--mc-bdh); }
a.mh-medal:focus-visible { outline:2px solid var(--mc-focus); outline-offset:2px; }
.mh-medal-t { display:flex; flex-direction:column; gap:2px; min-width:0; }
.mh-medal-t b { font:700 13.5px var(--sans); color:var(--text); }
.mh-medal-t small { font:600 12px var(--sans); color:var(--text-3); }
.mh-medal .lp-bar { max-width:none; margin:0; }

/* ── Year goal ── */
.mh-goal { flex:1; display:flex; align-items:center; gap:16px; }
.mh-goal.is-unset { flex-direction:column; align-items:flex-start; justify-content:center; font-size:14px; color:var(--text-2); }
.mh-goal.is-unset b { color:var(--text); }
.mh-goal { --goal-h:36px; }                                        /* desktop: standard size; phones 44px (tap size) */
.mh-goal .lc-btn { height:var(--goal-h); font:700 13px var(--sans); }
.mh-goal-t { min-width:0; display:flex; flex-direction:column; align-items:flex-start; gap:4px; }
.mh-goal-t > b { font:400 30px/1 var(--bebas); color:var(--score-mine); }
.mh-goal-t > span { font-size:13px; color:var(--text-2); }
.mh-goal-t .lc-btn { margin-top:4px; }
.mh-goal-form { display:flex; flex-direction:column; gap:10px; font-size:13.5px; color:var(--text-2); }
.mh-goal-row { display:flex; gap:8px; flex-wrap:wrap; }
.mh-goal-row input { width:110px; height:var(--goal-h); padding:0 12px; border-radius:10px; border:1px solid var(--border-input); background:var(--bg-3); color:var(--text); font:700 15px var(--sans); }
.mh-goal-row input:focus { outline:2px solid var(--mc-focus); outline-offset:1px; }

/* ── Top Favorites: the profile's tiles and layout (css/profile.css .pf-fav; owner, 27 Nov 2026) — the backdrop full bleed, a fade
   from the bottom, the rank in the corner, details, title and score ring along the bottom; #1 the hero. How many (1 · 3 · 5) is
   the widget's own choice; its width (container mhfav) picks the profile's layout:
   narrow  the profile on a phone: #1 the full width, the rest two by two (a lone last one takes the row)
   wide    the profile on a computer: #1 4/6 and #2 2/6 tall, #3–#5 sharing the row under (--span, home.js favTile) ── */
.mh-fv { flex:1; display:flex; flex-direction:column; container:mhfav / inline-size; }
.mh-favs { flex:1; display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:10px; }
.mh-fav { position:relative; display:flex; flex-direction:column; justify-content:flex-end; align-items:flex-start; min-width:0; height:200px; padding:12px 14px;
  border:0; border-radius:16px; overflow:hidden; isolation:isolate; cursor:pointer; text-align:start; background:#121714; color:#fff; font:inherit;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.06); --tv-green:var(--p-forest-300); --tv-gold:var(--p-score-top-dark);
  transition:translate .25s var(--ease), box-shadow .25s var(--ease); }
.mh-fav.is-r1 { grid-column:1 / -1; height:clamp(200px, 100cqw * 9 / 16, 72vh); padding:16px 18px; }   /* the backdrop's own shape (16:9) */
.mh-fav:not(.is-r1) { height:max(200px, (100cqw - 10px) / 2 * 9 / 16); }
.mh-fav:not(.is-r1):nth-child(even):last-child { grid-column:1 / -1; }      /* a lone tile after the pairs takes the row */
.mh-fav-bg { position:absolute; inset:0; z-index:-2; background-size:cover; background-position:50% 25%; opacity:0; transform-origin:50% 25%; transition:opacity .3s var(--ease), scale .4s var(--ease); }
.mh-fav-bg.in { opacity:1; }
.mh-fav-bg.is-poster { filter:blur(18px) saturate(1.1); scale:1.2; }
.mh-fav-shade { position:absolute; inset:0; z-index:-1; background:linear-gradient(0deg, rgba(4,19,10,.95) 0%, rgba(4,19,10,.5) 45%, rgba(4,19,10,.05) 78%, rgba(4,19,10,0) 100%); }
.mh-fav.is-r1 .mh-fav-shade { background:linear-gradient(0deg, rgba(4,19,10,.9) 0%, rgba(4,19,10,.45) 38%, rgba(4,19,10,0) 68%), linear-gradient(90deg, rgba(4,19,10,.45) 0%, rgba(4,19,10,0) 55%); }
.mh-fav-rank.cg-rank-badge { position:absolute; top:0; inset-inline-start:0; z-index:2; }
.mh-fav-tx { display:flex; flex-direction:column; gap:4px; min-width:0; max-width:100%; }
.mh-fav-meta { font:600 11.5px 'Manrope',var(--sans); letter-spacing:.3px; color:rgba(255,255,255,.72); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:100%; }
.mh-fav-title { font:600 17px/1.12 var(--serif); padding-bottom:.14em; color:#fff; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; overflow-wrap:anywhere; }
.mh-fav.is-r1 .mh-fav-title { font-size:26px; }
.mh-fav:not(.is-r1) :is(.mh-fav-meta, .mh-fav-favs) { display:none; }
.mh-fav-ring { position:absolute; inset-inline-end:12px; bottom:12px; z-index:1; display:flex; }
.mh-fav-ring .tv-ring.is-s { width:46px; } .mh-fav-ring .tv-ring.is-s circle { stroke-width:9; } .mh-fav-ring .tv-ring.is-s b { font-size:17px; }
.mh-fav.is-r1 .mh-fav-ring { inset-inline-end:16px; bottom:16px; }
.mh-fav.is-r1 .mh-fav-ring .tv-ring { width:70px; } .mh-fav.is-r1 .mh-fav-ring .tv-ring circle { stroke-width:8; } .mh-fav.is-r1 .mh-fav-ring .tv-ring b { font-size:25px; }
.mh-fav:has(.mh-fav-ring) .mh-fav-tx { padding-inline-end:52px; }
.mh-fav.is-r1:has(.mh-fav-ring) .mh-fav-tx { padding-inline-end:84px; }
.mh-fav:hover { translate:0 -2px; box-shadow:inset 0 0 0 1px rgba(255,255,255,.12), 0 14px 30px -14px rgba(0,0,0,.55); }
.mh-fav:hover .mh-fav-bg { scale:1.04; }
.mh-fav:hover .mh-fav-bg.is-poster { scale:1.24; }
.mh-fav:focus-visible { outline:2px solid var(--olive-light); outline-offset:3px; }
[data-theme="light"] .mh-fav:focus-visible { outline-color:var(--olive); }

/* wide: the profile on a computer */
@container mhfav (min-width:700px) {
  .mh-favs { grid-template-columns:repeat(6, minmax(0, 1fr)); gap:14px; }
  /* every tile as tall as its width at the backdrop's shape (16:9), so the picture shows whole, never a thin slice; sized from
     the widget's width (cqw), not aspect-ratio (Safari) — #1 and #2 share #1's height, the small ones never under 190px */
  .mh-favs { --col:calc((100cqw - 70px) / 6); --h1:min(calc((4 * var(--col) + 42px) * .48), 72vh, 540px); }   /* #1 / #2 a little wider than 16:9 (owner: slightly shorter) */
  .mh-fav, .mh-fav.is-r1, .mh-fav:not(.is-r1), .mh-fav:not(.is-r1):nth-child(even):last-child { grid-column:span var(--span, 2); padding:20px 22px;
    height:max(190px, (var(--span, 2) * var(--col) + (var(--span, 2) - 1) * 14px) * 9 / 16); }
  .mh-fav:is(.is-r1, .is-r2) { height:var(--h1); }
  .mh-favs.is-n1 .mh-fav.is-r1 { height:min(100cqw * 9 / 16, 72vh, 720px); }   /* your #1 alone: the full backdrop */
  .mh-fav.is-r1 { padding:30px 34px; }
  .mh-fav:not(.is-r1) .mh-fav-meta { display:flex; font-size:11px; }   /* flex, so the chips keep their gap */
  .mh-fav.is-r2 .mh-fav-favs { display:flex; }   /* #2's favourite character / episode, as the profile */
  .mh-fav-title { font-size:22px; }
  .mh-fav.is-r1 .mh-fav-title { font-size:46px; }
  .mh-fav.is-r2 .mh-fav-title { font-size:28px; }
  .mh-fav-ring { inset-inline-end:22px; bottom:20px; }
  .mh-fav-ring .tv-ring.is-s { width:74px; } .mh-fav-ring .tv-ring.is-s circle { stroke-width:8; } .mh-fav-ring .tv-ring.is-s b { font-size:26px; }
  .mh-fav.is-r1 .mh-fav-ring { inset-inline-end:34px; bottom:30px; }
  .mh-fav.is-r1 .mh-fav-ring .tv-ring { width:116px; } .mh-fav.is-r1 .mh-fav-ring .tv-ring circle { stroke-width:7; } .mh-fav.is-r1 .mh-fav-ring .tv-ring b { font-size:40px; }
  .mh-fav:has(.mh-fav-ring) .mh-fav-tx { padding-inline-end:90px; }
  .mh-fav.is-r1:has(.mh-fav-ring) .mh-fav-tx { padding-inline-end:136px; }
  /* Top 3 (owner, 27 Nov 2026): #1 the full width and taller, #2 and #3 halves under it — a little shorter than the backdrop's own shape */
  /* …and all three fit in one screen (owner, 27 Nov 2026): the screen's height less the top bar and the widget's header (--fit),
     #1 about 58% of it, #2 / #3 the rest */
  .mh-favs.is-n3 { --fit:calc(100dvh - 230px); }
  .mh-favs.is-n3 .mh-fav.is-r1 { height:max(220px, min(100cqw * .43, var(--fit) * .58, 560px)); }
  .mh-favs.is-n3 .mh-fav:is(.is-r2, .is-r3) { height:max(170px, min((3 * var(--col) + 28px) * .48, var(--fit) * .42 - 14px)); }
  .mh-favs.is-n3 .mh-fav.is-r3 .mh-fav-title { font-size:28px; }
  /* 4 (only when your profile has four): #1 full width and taller, #2–#4 thirds under it — all on one screen */
  .mh-favs.is-n4 { --fit:calc(100dvh - 230px); }
  .mh-favs.is-n4 .mh-fav.is-r1 { height:max(220px, min(100cqw * .43, var(--fit) * .58, 560px)); }
  .mh-favs.is-n4 .mh-fav:not(.is-r1) { height:max(170px, min((100cqw - 28px) / 3 * .56, var(--fit) * .42 - 14px)); }
  .mh-favs.is-n4 .mh-fav.is-r2 .mh-fav-title { font-size:22px; }
  .mh-favs.is-n3 .mh-fav.is-r3 .mh-fav-meta { font-size:11.5px; }
}
@media (prefers-reduced-motion:reduce) {
  .mh-fav, .mh-fav-bg { transition:opacity .2s; }
  .mh-fav:hover { translate:none; } .mh-fav:hover .mh-fav-bg { scale:1; }
}

/* ── Recent notes: the Notes page's cards ── */
.mh-notes { display:grid; gap:10px; }
.mh-w-notes:is([data-span="2"], [data-span="3"]) .mh-notes { grid-template-columns:repeat(auto-fill, minmax(min(320px, 100%), 1fr)); }

/* ── On this day ── */
.mh-otd { flex:1; display:flex; align-items:center; gap:16px; width:100%; padding:10px; border-radius:12px; border:1px solid var(--lib-line); background:none; color:inherit; text-align:start; cursor:pointer; }
.mh-otd:hover { border-color:var(--mc-bdh); }
.mh-otd:focus-visible { outline:2px solid var(--mc-focus); outline-offset:2px; }
.mh-otd-p { flex:none; display:flex; }
.mh-otd-p span { width:48px; aspect-ratio:2/3; border-radius:8px; overflow:hidden; background:var(--mc-po); border:2px solid var(--lib-card); }
.mh-otd-p span + span { margin-inline-start:-18px; }
.mh-otd-p img { width:100%; height:100%; object-fit:cover; display:block; }
.mh-otd-t { min-width:0; display:flex; flex-direction:column; gap:3px; }
.mh-otd-t b { font:600 18px var(--serif); color:var(--text-heading); }
.mh-otd-t small { font-size:12.5px; color:var(--text-2); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

/* ── Customize mode: a dashed outline, a handle row on top of each widget ── */
.mh-ctl:empty { display:none; }
.mh-ctl { display:flex; align-items:center; gap:8px; margin:0 0 12px; padding:4px; border-radius:12px; background:var(--lib-track); }
html.mh-editing .mh-w { outline:2px dashed var(--border-olive); outline-offset:3px; }
html.mh-editing .mh-w.is-hero, html.mh-editing .mh-w-continue { padding:8px; border:1px solid var(--lib-line); background:var(--lib-card); }
html.mh-editing .mh-wb { user-select:none; -webkit-user-select:none; }
.mh-grip { flex:none; width:44px; height:36px; display:grid; place-items:center; border:1px solid var(--lib-line); border-radius:9px; background:var(--lib-card); color:var(--text); cursor:grab; touch-action:none; }
.mh-grip:hover { border-color:var(--mc-bdh); }
.mh-grip:focus-visible, .mh-size:focus-visible, .mh-hide:focus-visible { outline:2px solid var(--mc-focus); outline-offset:2px; }
.mh-ctl-t { visibility:hidden; flex:1; min-width:0; font:700 12.5px var(--sans); color:var(--text-2); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.mh-sizes { flex:none; display:flex; gap:2px; padding:2px; border-radius:9px; background:var(--lib-card); border:1px solid var(--lib-line); }
.mh-size { min-width:34px; height:30px; border:0; border-radius:7px; background:none; color:var(--text-2); font:800 12px var(--sans); cursor:pointer; }
.mh-size:hover { color:var(--text); }
.mh-size.on { background:var(--olive); color:var(--text-on-brand); }
.mh-hide { flex:none; width:36px; height:36px; display:grid; place-items:center; border:1px solid var(--lib-line); border-radius:9px; background:var(--lib-card); color:var(--text-2); cursor:pointer; }
.mh-hide:hover { color:var(--danger); border-color:var(--danger); }
.mh-grid[data-cols="1"] .mh-sizes:not(.mh-counts) { display:none; }   /* one column: every width is the full row (how many still counts) */
.mh-counts .mh-size { padding:0 8px; }                                  /* Top Favorites: #1 · Top 3 · Top 5 */
/* the widget you're moving follows the pointer; a dashed placeholder of its size shows where it lands */
.mh-w.is-drag { position:fixed; z-index:900; margin:0; pointer-events:none; opacity:.94; outline:2px solid var(--olive-light) !important; outline-offset:0 !important; }
.mh-ph { min-width:0; display:grid; place-items:center; border-radius:var(--mh-r); border:2px dashed var(--olive-light); background:var(--olive-faint); }
.mh-ph span { font:700 13px var(--sans); color:var(--olive-light); }
[data-theme="light"] .mh-ph { border-color:var(--olive); }
[data-theme="light"] .mh-ph span { color:var(--olive); }
html.mh-dragging, html.mh-dragging * { cursor:grabbing !important; user-select:none; -webkit-user-select:none; }

/* ── The Widgets panel ── */
.mh-pn-lede { margin:0 0 8px; font-size:13.5px; line-height:1.5; color:var(--text-2); }
.mh-pn { list-style:none; margin:0; padding:0; }
.mh-pn-row { display:flex; align-items:center; gap:14px; min-height:60px; padding:8px 0; }
.mh-pn-row + .mh-pn-row { border-top:1px solid var(--border); }
.mh-pn-t { flex:1; min-width:0; display:flex; flex-direction:column; gap:2px; }
.mh-pn-t b { font:700 14px var(--sans); color:var(--text); }
.mh-pn-t small { font-size:12.5px; color:var(--text-3); }

/* ── Tablets and phones ── */
@media (max-width:1199px) { .mh-bar { top:calc(var(--page-pt) - 14px); } }
@media (max-width:1000px) { .mh-tools { flex:1 1 100%; } .mh-search-host { flex:1; } .mh-search-host .shs-panel { inset-inline:0; width:auto; } .sf-search.mh-search { flex:1; width:auto; } }
@media (max-width:700px) {
  .mh-top { align-items:stretch; }
  .mh-hi { flex-basis:100%; }
  .mh-tools { flex:1 1 100%; }
  .mh-search-host { flex:1; }
  .mh-search-host .shs-keys { display:none; }
  .sf-search.mh-search { flex:1; width:auto; }
  .lib-tool.mh-custom { width:44px; padding:0; justify-content:center; }
  .mh-custom .lib-tool-l { display:block; position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; }
  .mh-bar { padding:12px; }
  .mh-bar-r, .mh-bar-btns { width:100%; }
  .pn-toggle.mh-presets { width:100%; display:grid; grid-template-columns:repeat(2, 1fr); }
  .mh-presets .pn-toggle-btn { min-height:44px; padding:0 8px; }
  .mh-presets .pn-toggle-btn:nth-child(3) { border-inline-start:0; }
  .mh-presets .pn-toggle-btn:nth-child(n+3) { border-top:0.5px solid var(--border-2); }
  .mh-bar-btns .lc-btn { flex:1 1 auto; height:44px; }
  .mh-hero { min-height:0; gap:14px; padding:16px; }
  /* phones: the backdrop is a clear band across the top, fading into the dark under the poster and title — not one picture
     stretched over the whole tall card and darkened everywhere (as the profile header — owner, 19 Nov 2026) */
  .mh-hero-bd { bottom:auto; height:260px; -webkit-mask-image:linear-gradient(180deg, black 55%, transparent 100%); mask-image:linear-gradient(180deg, black 55%, transparent 100%); }
  .mh-hero-shade { background:linear-gradient(180deg, rgba(4,19,10,.5) 0%, rgba(4,19,10,.12) 22%, rgba(4,19,10,.5) 40%, rgba(4,19,10,.84) 58%, rgba(4,19,10,.9) 100%); }
  .mh-hero-t .mss-logo { max-width:100%; max-height:64px; } .mh-hero-t.mss-logo-tall .mss-logo { max-height:88px; }
  .mh-hero-in { display:grid; grid-template-columns:96px minmax(0, 1fr); align-items:end; gap:12px 14px; margin-top:110px; }   /* under the band's clear part */
  .mh-hero-body { display:contents; }
  .mh-hero-poster { width:96px; }
  .mh-hero-t { grid-column:2; font-size:clamp(26px, 6vw + 6px, 34px); }
  .mh-up, .mh-prog, .mh-hero-acts { grid-column:1 / -1; max-width:none; }
  .mh-up.is-movie { max-width:100%; }
  .mh-hero-acts .lc-btn:not(.lc-ic) { flex:1 1 auto; }
  .mh-pick-poster { width:clamp(96px, 28vw, 120px); }
  .mh-prow, .mh-goal { --prow-btn:44px; --goal-h:44px; }
  .mh-prow .lc-row { gap:4px; }
  .mh-bars { min-height:130px; }
  .mh-more, .mh-hero-open { min-height:44px; }
  .mh-wh { margin-bottom:8px; }
  .mh-ctl { flex-wrap:wrap; }
}
@media (prefers-reduced-motion: reduce) {
  .mh-hero-bd { transition:none; }
}

/* ═════════════════════════════════════════════════════════════
   §71  Poster wall — the drifting posters behind the sign-in page and Set up your folio (js/poster-wall.js)
   Always on a dark stage. Tilted 8°, columns drift; posters you can open stop on hover and can be dragged.
   ═════════════════════════════════════════════════════════════ */
.pw-wall { position:absolute; inset:-12% -10%; z-index:-2; display:grid; grid-template-columns:repeat(5, 1fr); gap:12px;
  transform:rotate(-8deg) scale(1.05); opacity:.78; }
@media (min-width:960px) { .pw-wall { grid-template-columns:repeat(4, 1fr); gap:16px; opacity:.8; } }
.pw-col { display:flex; flex-direction:column; gap:12px; will-change:transform; }   /* moved by the script (drift + drag) */
@media (min-width:960px) { .pw-col { gap:16px; } }
.pw-tile { position:relative; display:block; aspect-ratio:2/3; border-radius:10px; overflow:hidden; border:0.5px solid color-mix(in srgb, var(--p-ivory-50) 12%, transparent);
  background:linear-gradient(160deg, var(--g, var(--p-forest-800)), var(--p-deep-forest)); transition:border-color .2s, opacity .2s; }
/* Posters you can open (the admins' picks or this week's trending): a column stops while you're on it,
   and you can grab it (mouse) or scroll it (wheel / trackpad) up and down, like Home's Explore row */
a.pw-tile { cursor:pointer; -webkit-tap-highlight-color:transparent; -webkit-user-drag:none; user-select:none; -webkit-user-select:none; }
.pw-wall.can-drag .pw-col { cursor:grab; }
.pw-wall.dragging, .pw-wall.dragging .pw-col, .pw-wall.dragging a.pw-tile { cursor:grabbing; }
.pw-wall.dragging a.pw-tile { pointer-events:none; }
a.pw-tile:hover { border-color:color-mix(in srgb, var(--p-ivory-50) 70%, transparent); }
a.pw-tile::after { content:attr(data-name); position:absolute; left:0; right:0; bottom:0; padding:22px 9px 8px;
  font:600 11.5px/1.3 'Manrope', var(--sans); color:var(--text-on-photo); background:linear-gradient(transparent, var(--overlay-photo));
  opacity:0; transition:opacity .2s; overflow:hidden; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; }
a.pw-tile:hover::after { opacity:1; }
@media (pointer:coarse) { a.pw-tile::after { display:none; } }
.pw-tile img { width:100%; height:100%; object-fit:cover; display:block; opacity:0; transition:opacity .6s ease; }
.pw-tile img.in { opacity:1; }

/* ═════════════════════════════════════════════════════════════
   §72  Adjust photo — a profile photo's two framings, Poster and Circle (js/avatar-upload.js: Settings, Edit profile, Set up your folio)
   ═════════════════════════════════════════════════════════════ */
.pe { display:flex; flex-direction:column; gap:14px; }
.pe-tabs { align-self:center; gap:2px; margin:0; padding:3px; border:0.5px solid var(--border-2); border-radius:var(--radius-sm); background:var(--bg-3); }   /* the site's segmented switch */
.pe-tabs .pn-toggle-btn { min-width:104px; min-height:36px; padding:0 18px; border:0; border-radius:calc(var(--radius-sm) - 3px); font:700 13px 'Manrope',var(--sans); }
.pe-hint { margin:0 auto; max-width:440px; min-height:2.9em; text-align:center; font-size:12.5px; line-height:1.45; color:var(--text-muted); }
/* the stage: always dark (a photo editor's canvas); the picture is dimmed outside the frame */
.pe-stage { position:relative; overflow:hidden; width:100%; height:clamp(300px, 52vh, 420px); border-radius:var(--radius-sm);
  background:var(--p-forest-950); border:1px solid var(--border-default); cursor:grab; touch-action:none; user-select:none; -webkit-user-select:none; color-scheme:dark; }
.pe-stage.is-drag { cursor:grabbing; }
.pe-stage:focus-visible { outline:2px solid var(--focus-ring); outline-offset:2px; }
.pe-img { position:absolute; top:0; left:0; max-width:none; transform-origin:0 0; pointer-events:none; -webkit-user-drag:none; }
.pe-frame { position:absolute; top:50%; left:50%; translate:-50% -50%; border-radius:12px; pointer-events:none;
  border:1.5px solid var(--text-on-photo); box-shadow:0 0 0 200vmax var(--overlay-photo); }   /* the spread is the dimming mask, not a shadow */
.pe-frame.is-circle { border-radius:50%; }
/* thirds: shown while you move the picture */
.pe-frame i { position:absolute; background:color-mix(in srgb, var(--text-on-photo) 45%, transparent); opacity:0; transition:opacity .15s ease; }
.pe-frame i:nth-child(1), .pe-frame i:nth-child(2) { top:0; bottom:0; width:1px; }
.pe-frame i:nth-child(1) { left:33.333%; } .pe-frame i:nth-child(2) { left:66.666%; }
.pe-frame i:nth-child(3), .pe-frame i:nth-child(4) { left:0; right:0; height:1px; }
.pe-frame i:nth-child(3) { top:33.333%; } .pe-frame i:nth-child(4) { top:66.666%; }
.pe-stage.is-drag .pe-frame i { opacity:1; }
.pe-tools { display:flex; align-items:center; gap:10px; }
.pe-zoom { flex:1; min-width:0; }
.pe-pct { flex:none; min-width:3.4em; text-align:end; font:400 18px/1 'Bebas Neue',var(--sans); letter-spacing:.02em; color:var(--text-2); font-variant-numeric:tabular-nums; }
.pe-reset { flex:none; min-height:38px; }
.pe-reset svg { width:14px; height:14px; }
.pe-warn { display:flex; align-items:flex-start; gap:8px; margin:0; padding:10px 12px; border-radius:var(--radius-sm); border:1px solid var(--border-default); background:var(--fill-subtle); font-size:12.5px; line-height:1.45; color:var(--text-2); }
.pe-warn[hidden] { display:none; }
.pe-warn svg { flex:none; margin-top:2px; }
.pe-warn b { color:var(--text); }
/* the previews: each shows its own framing; tapping one switches to it */
.pe-pvs { display:flex; align-items:flex-end; justify-content:center; gap:28px; padding:14px 12px; border-radius:var(--radius-sm); border:1px solid var(--border-default); background:var(--fill-subtle); }
.pe-pv-g { display:flex; flex-direction:column; align-items:center; gap:8px; }
.pe-pv-l { font:700 11px 'Manrope',var(--sans); letter-spacing:.08em; text-transform:uppercase; color:var(--text-muted); }
.pe-pv-row { display:flex; align-items:center; gap:12px; }
.pe-pv { display:grid; place-items:center; min-width:44px; min-height:44px; padding:3px; border:0; border-radius:12px; background:none; cursor:pointer; }
.pe-pv-pic { position:relative; display:block; overflow:hidden; width:var(--w); height:var(--h); border-radius:6px; background:var(--p-forest-950); outline:1px solid var(--border-default); }
.pe-pv-pic.is-circle { border-radius:50%; }
.pe-pv-pic img { position:absolute; top:0; left:0; max-width:none; transform-origin:0 0; pointer-events:none; }
.pe-pv.is-on .pe-pv-pic { outline:2px solid var(--selected-fg); outline-offset:2px; }
.pe-pv:focus-visible { outline:2px solid var(--focus-ring); outline-offset:2px; }
.avatar-crop-rule .mss-upload-rule { margin:0; }
@media (max-width:480px) {
  .pe-tools { flex-wrap:wrap; }
  .pe-zoom { flex-basis:100%; }
  .pe-pct { order:1; text-align:start; }
  .pe-reset { order:2; margin-inline-start:auto; }
  .pe-pvs { gap:18px; }
}
@media (prefers-reduced-motion:reduce) { .pe-frame i { transition:none; } }

/* ═════════════════════════════════════════════════════════════
   §73  Device frames — a real screenshot inside a laptop, phone or tablet (Welcome slides, Help & Guides)
   Drawn, not downloaded: MSF colours, borders not shadows. .dvf is placed by its page (position / --w).
   ═════════════════════════════════════════════════════════════ */
.dvf { position:absolute; }
.dvf img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:top center; display:block; }
.dvf-lap { width:var(--w, 760px); }
.dvf-lap .dvf-scr { position:relative; aspect-ratio:1440/900; border-radius:14px 14px 0 0; background:var(--p-pine-950); padding:14px 14px 0; border:1px solid var(--border-strong); border-bottom:0; }
.dvf-lap .dvf-scr > div { position:relative; width:100%; height:100%; overflow:hidden; border-radius:4px 4px 0 0; }
.dvf-lap .dvf-scr::before { content:''; position:absolute; top:5px; left:50%; width:5px; height:5px; margin-left:-2.5px; border-radius:50%; background:var(--p-pine-700); }
.dvf-lap .dvf-base { height:16px; margin:0 -7%; border-radius:0 0 14px 14px; background:linear-gradient(var(--p-ivory-400), var(--p-ivory-600)); border:1px solid var(--border-strong); position:relative; }
[data-theme="dark"] .dvf-lap .dvf-base { background:linear-gradient(var(--p-pine-600), var(--p-pine-800)); }
.dvf-lap .dvf-base::before { content:''; position:absolute; top:0; left:50%; width:16%; margin-left:-8%; height:6px; border-radius:0 0 8px 8px; background:color-mix(in srgb, var(--p-pine-950) 30%, transparent); }
.dvf-ph { width:var(--w, 250px); aspect-ratio:390/844; border-radius:calc(var(--w, 250px) * .15); background:var(--p-pine-950); padding:calc(var(--w, 250px) * .035); border:1px solid var(--border-strong); }
.dvf-ph > div { position:relative; width:100%; height:100%; overflow:hidden; border-radius:calc(var(--w, 250px) * .12); }
.dvf-ph > div::after { content:''; position:absolute; top:calc(var(--w, 250px) * .03); left:50%; width:30%; margin-left:-15%; height:calc(var(--w, 250px) * .085); border-radius:99px; background:var(--p-pine-950); z-index:2; }
.dvf-tab { width:var(--w, 520px); aspect-ratio:834/1194; border-radius:calc(var(--w, 520px) * .06); background:var(--p-pine-950); padding:calc(var(--w, 520px) * .035); border:1px solid var(--border-strong); }
.dvf-tab > div { position:relative; width:100%; height:100%; overflow:hidden; border-radius:calc(var(--w, 520px) * .03); }


/* ═════════════════════════════════════════════════════════════
   §74  Full-screen questions (the date of birth, nav.js) — the sign-up page's look: the poster stage
   with the logo on one side (always dark), the question on a card on the other; a poster band on top on phones
   ═════════════════════════════════════════════════════════════ */
.confirm-overlay.mss-gate { padding:0; background:var(--bg-app); }
.gate { position:absolute; inset:0; display:grid; grid-template-columns:minmax(0, .8fr) minmax(0, 1.2fr); animation:gate-in .45s var(--ease) both; }
.gate-stage { position:relative; overflow:hidden; isolation:isolate; display:flex; flex-direction:column; padding:40px 44px 40px; background:var(--p-deep-forest); color:var(--p-ivory-100); }
.gate-stage::before { content:''; position:absolute; inset:0; z-index:-1; pointer-events:none;
  background:linear-gradient(90deg, color-mix(in srgb, var(--p-deep-forest) 10%, transparent), color-mix(in srgb, var(--p-deep-forest) 72%, transparent)),
             linear-gradient(180deg, color-mix(in srgb, var(--p-deep-forest) 55%, transparent), transparent 26%, transparent 42%, var(--p-deep-forest) 90%); }
.gate-stage .pw-wall { pointer-events:none; }
.gate-logo { height:52px; width:auto; align-self:flex-start; }
.gate-copy { margin-top:auto; }
.gate-eb { display:block; font:600 11.5px/1.2 var(--serif); letter-spacing:2.5px; text-transform:uppercase; color:var(--p-forest-300); }
.gate-eb.is-card { color:var(--brand); } [data-theme="dark"] .gate-eb.is-card { color:var(--p-brass-300); }
.gate-copy h2 { font:600 44px/1.04 var(--serif); color:var(--p-ivory-50); margin:10px 0 0; } .gate-copy h2 em { font-style:normal; color:var(--p-forest-300); }
.gate-feats { list-style:none; margin:24px 0 0; padding:0; display:grid; gap:12px; }
.gate-feats li { display:flex; align-items:center; gap:12px; font:500 14.5px var(--sans); color:color-mix(in srgb, var(--p-ivory-100) 85%, transparent); }
.gate-feats li > span { width:36px; height:36px; border-radius:11px; display:grid; place-items:center; flex:none; color:var(--p-forest-300);
  background:color-mix(in srgb, var(--p-forest-300) 12%, transparent); border:0.5px solid color-mix(in srgb, var(--p-forest-300) 32%, transparent); }
.gate-main { display:grid; place-items:center; padding:40px; overflow:auto; }
.gate-card { width:min(100%, 520px); padding:32px; border-radius:var(--radius-xl); border:1px solid var(--border-default); background:var(--surface-card); animation:gate-rise .55s var(--ease) .1s both; }
.gate-t { font:600 32px/1.1 var(--serif); color:var(--text-heading); margin:8px 0 10px; }
.gate-msg { margin:0 0 22px; font-size:15px; line-height:1.55; color:var(--text-supporting); }
.gate-card .mss-birth-row { margin-bottom:6px; }
.gate-acts { display:flex; justify-content:space-between; align-items:center; gap:10px; margin-top:22px; padding-top:18px; border-top:1px solid var(--border-subtle); }
.gate-b { display:inline-flex; align-items:center; gap:8px; min-height:44px; padding:0 18px; border-radius:var(--radius-sm); font:600 14.5px var(--sans); cursor:pointer;
  border:1px solid var(--action-secondary-border); background:var(--action-secondary-bg); color:var(--text-heading); transition:background .15s, scale .15s var(--ease); }
.gate-b svg { width:16px; height:16px; }
.gate-b.is-p { background:var(--action-primary-bg); border-color:var(--action-primary-bg); color:var(--text-on-primary); }
.gate-b.is-p:hover:not(:disabled) { background:var(--action-primary-hover); }
.gate-b.is-t { background:none; border-color:transparent; color:var(--text-supporting); } .gate-b.is-t:hover { color:var(--text-heading); background:var(--action-tertiary-hover-bg); }
.gate-b:disabled { background:var(--disabled-bg); border-color:var(--disabled-bg); color:var(--disabled-fg); cursor:default; }
.gate-b:active:not(:disabled) { scale:.97; }
@keyframes gate-in { from { opacity:0; } }
@keyframes gate-rise { from { opacity:0; translate:0 14px; } }
@media (max-width:1023px) {
  .gate { grid-template-columns:minmax(0, 1fr); grid-template-rows:auto minmax(0, 1fr); }
  .gate-stage { padding:16px 18px 20px; min-height:210px; } .gate-logo { height:30px; }
  .gate-copy h2 { font-size:28px; } .gate-feats { display:none; }
  .gate-main { place-items:start center; padding:18px 16px 24px; } .gate-card { padding:22px 18px; border-radius:var(--radius-lg); } .gate-t { font-size:24px; }
}
@media (prefers-reduced-motion:reduce) { .gate, .gate-card { animation:none; } }
/* the phone's status bar: the screenshot starts under it, like a real phone (mssPhoneBar) */
.dvf-ph > div { --sb:calc(var(--w, 250px) * .115); background:var(--bg-app); }
.dvf-ph > div > img { top:var(--sb); height:calc(100% - var(--sb)); }
.dvf-sb { position:absolute; inset:0 0 auto; z-index:1; height:var(--sb); display:flex; align-items:center; justify-content:space-between;
  padding:0 calc(var(--w, 250px) * .085) 0 calc(var(--w, 250px) * .1); color:var(--text-heading); }
.dvf-sb b { font:700 calc(var(--w, 250px) * .052)/1 var(--sans); letter-spacing:-.2px; }
.dvf-sb i { display:flex; align-items:center; gap:calc(var(--w, 250px) * .016); }
.dvf-sb svg { height:calc(var(--w, 250px) * .042); width:auto; fill:currentColor; }

/* ═════════════════════════════════════════════════════════════
   §75  Cookies & storage — the banner and the choices popup (js/consent.js; Cookie Policy: cookies.html)
   The banner sits at the bottom until you choose; it never blocks the page. Phones / tablets: above the bottom bar.
   Reject optional and Accept all are the same size (rejecting is as easy as accepting); Accept all is the one brass button.
   ═════════════════════════════════════════════════════════════ */
.ck-banner { position:fixed; z-index:1900; inset-inline-start:24px; bottom:24px; width:min(480px, calc(100vw - 48px)); box-sizing:border-box;
  display:flex; flex-direction:column; gap:14px; padding:18px 18px 16px; border-radius:var(--radius); border:1px solid var(--border-strong);
  background:var(--surface-modal); color:var(--text-body); animation:cfIn .22s var(--ease); }
.ck-b-t { display:flex; align-items:center; gap:8px; margin:0 0 6px; font:600 17px/1.2 var(--serif); color:var(--text-heading); }
.ck-b-t svg { color:var(--olive-light); flex-shrink:0; }
.ck-b-txt p { margin:0; font-size:13.5px; line-height:1.55; color:var(--text-supporting); }
.ck-banner a, .ck-d a { color:var(--text-link); text-decoration:underline; text-underline-offset:2px; font-weight:700; }
.ck-b-acts, .ck-acts { display:flex; flex-wrap:wrap; gap:8px; }
.ck-btn { flex:1 1 auto; display:inline-flex; align-items:center; justify-content:center; min-height:40px; padding:0 14px; border-radius:var(--radius-sm);
  border:1px solid var(--action-secondary-border); background:var(--action-secondary-bg); color:var(--text-body); font:700 13.5px var(--sans); cursor:pointer;
  white-space:nowrap; transition:background-color .15s, border-color .15s; }
.ck-btn:hover { background:var(--action-secondary-hover); }
.ck-btn.is-primary { background:var(--action-primary-bg); border-color:var(--action-primary-bg); color:var(--text-on-primary); }
.ck-btn.is-primary:hover { background:var(--action-primary-hover); border-color:var(--action-primary-hover); }
.ck-btn:focus-visible, .ck-banner a:focus-visible, .ck-d a:focus-visible { outline:2px solid var(--focus-ring); outline-offset:2px; }
@media (max-width:1199px) { body:has(.bnav) .ck-banner { bottom:calc(var(--bnav-top) + 10px); } }
@media (max-width:559px) {
  .ck-banner { inset-inline:12px; width:auto; bottom:calc(12px + env(safe-area-inset-bottom)); padding:16px 14px 14px; }
  .ck-btn { min-height:44px; }
  .ck-b-acts .is-primary { order:-1; flex-basis:100%; }
}
/* the choices popup — the confirm card, left-aligned and wider */
.ck-card { max-width:540px; text-align:start; align-items:stretch; max-height:calc(100dvh - 40px); overflow-y:auto; }
.ck-d { margin:0; font-size:13.5px; line-height:1.55; color:var(--text-supporting); }
.ck-rows { display:flex; flex-direction:column; border:1px solid var(--border-default); border-radius:var(--radius-sm); }
.ck-row { display:flex; align-items:flex-start; gap:12px; padding:14px; }
.ck-row + .ck-row { border-top:1px solid var(--border-default); }
.ck-ic { display:flex; width:32px; height:32px; flex-shrink:0; align-items:center; justify-content:center; border-radius:var(--radius-xs);
  background:var(--fill-subtle); color:var(--olive-light); }
.ck-row-t { flex:1; min-width:0; }
.ck-name { font-weight:800; font-size:14px; color:var(--text-heading); }
.ck-desc { margin-top:3px; font-size:12.5px; line-height:1.5; color:var(--text-supporting); }
.ck-row .push-switch { margin-top:2px; }
.ck-always { display:inline-flex; align-items:center; gap:4px; flex-shrink:0; margin-top:4px; font-size:12px; font-weight:800; color:var(--success-fg); white-space:nowrap; }
@media (prefers-reduced-motion:reduce) { .ck-banner { animation:none; } }
