/* Auteur — an editorial, reference-book look. Paper, ink, one link blue,
   and a timeline spine whose nodes light up when a title is streamable. */

:root {
  --paper: #faf8f3;
  --card: #fffdf9;
  --ink: #1c1b19;
  --ink-2: #4a463f;
  --muted: #8a8377;
  --rule: #e7e1d5;
  --rule-2: #d8d1c3;
  --link: #2b58a8;
  --go: #2e7d4f;          /* on a subscription you have */
  --free: #5f9d77;        /* on a free service you use */
  --consider: #b7791f;    /* on a service you're considering */
  --chart-1: #2b58a8;     /* admin chart: signed in */
  --chart-2: #b7791f;     /* admin chart: guests */
  --shade: rgba(28, 27, 25, .045);
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Instrument Sans", "Helvetica Neue", Helvetica, sans-serif;
  --col-year: 80px;
  --col-spine: 30px;
  --col-poster: 98px;
  --col-scores: 104px;
  color-scheme: light;
}
/* Dark: chosen with the switch in the top bar, or your system's setting (the
   little script at the top of index.html sets the class before the page draws). */
html.dark {
  --paper: #161513;
  --card: #1f1d1a;
  --ink: #ece7dc;
  --ink-2: #c6bfb1;
  --muted: #8f887b;
  --rule: #2c2925;
  --rule-2: #3a362f;
  --link: #93b3ee;
  --go: #5fbf86;
  --free: #7cb592;
  --consider: #e0a64a;
  --chart-1: #5f8be0;
  --chart-2: #c48726;
  --shade: rgba(255, 255, 255, .05);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 15px/1.5 var(--sans);
  font-feature-settings: "kern", "liga";
  -webkit-font-smoothing: antialiased;
}
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
button { font: inherit; color: inherit; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- top bar ---------- */
.bar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 28px;
  padding: 12px max(20px, calc((100vw - 940px) / 2));
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}
.mark {
  font: italic 500 23px/1 var(--serif);
  color: var(--ink); letter-spacing: -.01em;
}
.mark:hover { text-decoration: none; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.navlink { color: var(--ink-2); font-size: 13.5px; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.navlink.on { color: var(--ink); }
#nav-services { display: inline; }
.navlink .count {
  font: 600 11px/1 var(--sans); color: var(--paper); background: var(--ink-2);
  padding: 3px 6px; border-radius: 999px; font-variant-numeric: tabular-nums;
}
.navlink .count:empty { display: none; }
/* line icons take the text color */
.ic { width: 15px; height: 15px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round; vertical-align: -2px; }
.acct { display: flex; align-items: center; margin-left: -8px; }
.acct:empty { display: none; }
.acct .signin { margin-left: 0; }
.avatar {
  width: 28px; height: 28px; border-radius: 50%; overflow: hidden; display: grid; place-items: center;
  background: var(--ink-2); color: var(--paper); font: 600 13px var(--sans);
  box-shadow: 0 0 0 1px var(--rule-2);
}
.avatar:hover { text-decoration: none; box-shadow: 0 0 0 2px var(--ink-2); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.bar .search { flex: 1; max-width: 420px; }

/* ---------- search ---------- */
.search { position: relative; }
.search input {
  width: 100%;
  padding: 7px 12px;
  font: 14.5px var(--sans); color: var(--ink);
  background: var(--card);
  border: 1px solid var(--rule-2); border-radius: 6px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.search input:focus { border-color: var(--ink-2); box-shadow: 0 0 0 3px var(--shade); }
.search input::placeholder { color: var(--muted); }
.results {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px);
  margin: 0; padding: 4px; list-style: none;
  background: var(--card); border: 1px solid var(--rule-2); border-radius: 8px;
  box-shadow: 0 12px 32px rgba(0,0,0,.12);
  z-index: 30;
}
.results li a, .results li.msg {
  display: flex; gap: 10px; align-items: center;
  padding: 7px 8px; border-radius: 5px; color: var(--ink);
}
.results li.msg { color: var(--muted); font-size: 13.5px; }
.results li a:hover, .results li a.on { background: var(--shade); text-decoration: none; }
.results img, .results .noimg {
  width: 34px; height: 34px; border-radius: 50%; object-fit: cover; flex: none;
  background: var(--rule);
}
.results b { font: 500 16px/1.2 var(--serif); display: block; }
.results .who { flex: 1; min-width: 0; }
.results .film img, .results .film .noimg { width: 26px; height: 38px; border-radius: 3px; margin: 0 4px; }
.results .to { font-style: normal; font-size: 12.5px; color: var(--muted); white-space: nowrap; flex: none; }
.results a.on .to, .results a:hover .to { color: var(--ink-2); }
.results small { color: var(--muted); font-size: 12.5px; }

/* ---------- page frame ---------- */
main { max-width: 940px; margin: 0 auto; padding: 0 20px 120px; }

/* ---------- home ---------- */
.home {
  padding-top: 32px;
  display: grid; grid-template-columns: minmax(0, 1fr) 208px; column-gap: 64px; align-items: start;
  grid-template-areas: "hero picker" "library picker";
}
.home-main { grid-area: hero; }
.home .picker { grid-area: picker; }
.home .library { grid-area: library; }
.home h1 {
  font: 400 clamp(34px, 5vw, 48px)/1.08 var(--serif);
  letter-spacing: -.02em; margin: 0 0 14px;
}
.home h1 em { font-style: italic; }
.home .lede { color: var(--ink-2); max-width: 560px; margin: 0 0 28px; }
.home .search { max-width: 560px; }
.home .lede a { color: inherit; text-decoration: underline; text-decoration-color: var(--rule-2);
  text-underline-offset: 3px; }
.home .lede a:hover { color: var(--link); text-decoration-color: currentColor; }
.try { margin: 12px 0 0; font-size: 13px; color: var(--muted); min-height: 1.5em; }
.try a { color: var(--ink-2); }

/* quick service picker: click to cycle off -> considering -> have */
.picker { padding-top: 10px; }
.picker ul { list-style: none; margin: 0; padding: 0; }
.pick {
  width: 100%; display: grid; grid-template-columns: 14px 1fr auto; align-items: center; gap: 10px;
  padding: 6px 8px; margin: 0 -8px; border: 0; border-radius: 5px; background: none;
  cursor: pointer; text-align: left; font-size: 14px; color: var(--muted);
  transition: background .15s, color .15s;
}
.pick:hover { background: var(--shade); color: var(--ink-2); }
.pick .dot {
  width: 10px; height: 10px; border-radius: 50%; justify-self: center;
  box-shadow: inset 0 0 0 1.5px var(--rule-2); transition: background .2s, box-shadow .2s;
}
.pick .st { font-size: 11px; letter-spacing: .04em; color: var(--muted); }
.pick.mine { color: var(--ink); }
.pick.mine .dot { background: var(--go); box-shadow: none; }
.pick.mine .st { color: var(--go); }
.pick.considering { color: var(--ink-2); }
.pick.considering .dot { box-shadow: inset 0 0 0 2px var(--consider); }
.pick.considering .st { color: var(--consider); }
.picker-foot { font-size: 12px; line-height: 1.55; color: var(--muted); margin: 12px 0 0; }

/* visitor mode */
.visitor {
  background: var(--ink); color: var(--paper); font-size: 13px; text-align: center; padding: 7px 16px;
}
.visitor button {
  border: 0; background: none; color: inherit; text-decoration: underline; text-underline-offset: 2px;
  cursor: pointer; margin-left: 8px; font-size: 13px;
}
.visitor-link { margin: 40px 0 0; font-size: 14px; }

/* account box on the services page */
.account {
  margin: 0 0 28px; padding: 16px 18px; border: 1px solid var(--rule); border-radius: 8px;
  background: var(--card); font-size: 14.5px; color: var(--ink-2);
}
.account p { margin: 0 0 12px; }
.account p:last-child { margin-bottom: 0; }
.account .muted, .muted { color: var(--muted); }
.account-actions { display: flex; gap: 10px; }
.account-actions button {
  font-size: 13px; padding: 6px 12px; border-radius: 6px; cursor: pointer;
  border: 1px solid var(--rule-2); background: var(--paper); color: var(--ink);
}
.account-actions button:hover { border-color: var(--ink-2); }
.account-actions .danger { color: #a33a2a; }
#auth-msg:empty { display: none; }
.account .small { font-size: 12.5px; }
.visitor-link small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.home .search input { padding: 12px 16px; font-size: 17px; border-radius: 8px; }
.library { margin-top: 56px; }
.eyebrow {
  font: 600 11px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 12px;
}
.lib-row {
  display: grid; grid-template-columns: 44px 1fr auto 28px; gap: 16px; align-items: center;
  padding: 14px 4px; border-top: 1px solid var(--rule); color: var(--ink);
}
.lib-row:last-child { border-bottom: 1px solid var(--rule); }
.lib-row:hover { text-decoration: none; background: var(--shade); }
.lib-row img, .lib-row .noimg { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: var(--rule); }
.lib-row b { font: 500 19px/1.2 var(--serif); display: block; }
.lib-row small { color: var(--muted); font-size: 13px; }
.lib-stats { font-size: 13px; color: var(--ink-2); text-align: right; display: flex; gap: 8px;
  align-items: center; justify-content: flex-end; flex-wrap: wrap; }
.lib-stats .k {
  background: var(--go); color: #fff; font-weight: 600; padding: 2px 9px; border-radius: 999px;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
html.dark .lib-stats .k { color: #0f1a13; }
.lib-stats .c { color: var(--consider); font-weight: 600; }
/* after a service changes: rows whose counts moved light up */
.lib-row.gain { animation: gain 2.4s ease-out; }
.lib-row.gain-c { animation: gain-c 2.4s ease-out; }
.lib-row.loss { animation: loss 2s ease-out; }
@keyframes gain { 0%, 30% { background: color-mix(in srgb, var(--go) 22%, transparent); } }
@keyframes gain-c { 0%, 30% { background: color-mix(in srgb, var(--consider) 20%, transparent); } }
@keyframes loss { 0%, 30% { background: var(--shade); } }
.delta {
  font: 600 12px/1 var(--sans); font-style: normal; color: var(--go);
  animation: delta 6s ease-out forwards;
}
.loss .delta { color: var(--muted); }
.gain-c .delta { color: var(--consider); }
@keyframes delta { 0% { opacity: 0; transform: translateY(4px); } 8%, 75% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.pick-note {
  font-size: 13px; line-height: 1.45; color: var(--ink-2); margin: 10px 0 0; min-height: 0;
  opacity: 0; transition: opacity .3s;
}
.pick-note.show { opacity: 1; }
.pick-note:empty { display: none; }
.pick-note .k { color: var(--go); }
.pick-note .c { color: var(--consider); }
.pick.busy .dot { animation: pulse .8s ease-in-out infinite; }
/* the ways in to the ranked lists */
.teasers { margin-top: 36px; }
.teaser {
  display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start;
  padding: 16px 4px; border-top: 1px solid var(--rule); color: var(--ink);
}
.teaser:last-child { border-bottom: 1px solid var(--rule); }
.teaser .hist { justify-self: center; margin-top: 6px; }
.teaser:hover { text-decoration: none; background: var(--shade); }
.teaser .sc { justify-self: center; margin-top: 3px; }
.teaser b { font: 500 19px/1.2 var(--serif); display: block; }
.teaser small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; max-width: 520px; }
.forget {
  border: 0; background: none; color: var(--muted); cursor: pointer;
  font-size: 18px; line-height: 1; padding: 4px; border-radius: 4px; visibility: hidden;
}
.lib-row:hover .forget { visibility: visible; }
.forget:hover { color: var(--ink); background: var(--rule); }

/* ---------- person header ---------- */
.person-head {
  display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: start;
  padding: 24px 0 22px;
}
.person-head h1 {
  font: 400 clamp(34px, 5vw, 52px)/1.02 var(--serif); letter-spacing: -.022em;
  margin: 0 0 8px;
}
.person-head h1 a { color: inherit; }
.person-head .sub { color: var(--muted); font-size: 14px; margin: 0 0 14px; }
.person-head .bio {
  font: 17px/1.55 var(--serif); color: var(--ink-2); max-width: 620px; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.head-actions { margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ghost {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  font-size: 13px; padding: 5px 11px; border-radius: 999px;
  border: 1px solid var(--rule-2); background: none; color: var(--ink-2);
}
.ghost:hover { border-color: var(--ink-2); color: var(--ink); }
/* the person's average Chappelle score, beside Share; colored like a row's */
.chap-avg { font-variant-numeric: tabular-nums; }
.chap-avg[hidden] { display: none; }
.chap-avg .ic { width: 15px; height: 15px; }
.chap-avg b { font-weight: 600; color: var(--ink); }
.chap-avg.pos.big b { color: var(--go); }
.chap-avg.neg.big b { color: #a5523e; }
html.dark .chap-avg.neg.big b { color: #d98a72; }
.chap-avg small { font-size: 12px; color: var(--muted); margin-left: 2px; }
.chap-avg small::before { content: "·"; margin-right: 6px; opacity: .6; }
.portrait {
  width: 118px; height: 148px; object-fit: cover; border-radius: 3px;
  filter: grayscale(.25) contrast(1.02);
  box-shadow: 0 1px 0 var(--rule-2), 0 8px 24px rgba(0,0,0,.08);
}

/* role tabs */
.tabs { display: flex; gap: 26px; border-bottom: 1px solid var(--rule); margin-top: 8px; flex-wrap: wrap; }
.tabs a {
  padding: 10px 0 11px; color: var(--muted); font-size: 14.5px; font-weight: 500;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tabs a:hover { color: var(--ink); text-decoration: none; }
.tabs a.on { color: var(--ink); border-bottom-color: var(--ink); }
.tabs .n { color: var(--muted); font-weight: 400; margin-left: 5px; font-size: 13px; }
.tabs .box { margin-right: 7px; vertical-align: 1px; opacity: .55; }
.tabs a.on .box { opacity: 1; }

/* credit boxes: which kinds of credit a person had on a title */
.box {
  display: inline-grid; place-items: center; width: 13px; height: 13px; border-radius: 2px;
  font: 600 8.5px/1 var(--sans); font-style: normal; color: var(--rule-2);
  box-shadow: inset 0 0 0 1px var(--rule);
}
.box.on { background: var(--ink-2); color: var(--paper); box-shadow: none; }
.credits { display: flex; gap: 2px; justify-content: flex-end; margin-top: 7px; }

/* summary / filters */
.summary {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 4px;
  padding: 18px 0 6px; font-size: 13.5px;
}
.seg {
  border: 1px solid transparent; background: none; cursor: pointer;
  padding: 4px 10px; border-radius: 999px; color: var(--ink-2);
  display: inline-flex; align-items: center; gap: 7px;
}
.seg:hover { background: var(--shade); }
.seg.on { border-color: var(--ink); color: var(--ink); }
.seg b { font-weight: 600; font-variant-numeric: tabular-nums; }
.seg .dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.seg[disabled] { opacity: .4; cursor: default; }
.dot.subscribed { background: var(--go); }
.dot.free { box-shadow: inset 0 0 0 1.5px var(--free); }
.dot.considering { box-shadow: inset 0 0 0 1.5px var(--consider); }
.summary .spacer { flex: 1; }
.toggle { font-size: 13px; color: var(--muted); display: inline-flex; gap: 6px; align-items: center; cursor: pointer; }
.order { display: inline-flex; gap: 2px; margin-right: 14px; font-size: 13px; }
.order button {
  border: 0; background: none; cursor: pointer; color: var(--muted); padding: 3px 8px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 5px;
}
.order button:hover { color: var(--ink); }
.order button.on { color: var(--ink); background: var(--shade); }
.order .ic { width: 13px; height: 13px; }
.rules { font-size: 12.5px; color: var(--muted); max-width: 360px; text-align: right; line-height: 1.4; }
.toggle input { accent-color: var(--ink); margin: 0; }
.status-line {
  font-size: 12.5px; color: var(--muted); padding: 0 0 18px; display: flex; gap: 14px; flex-wrap: wrap;
}
.status-line button { border: 0; background: none; padding: 0; color: var(--link); cursor: pointer; font-size: 12.5px; }
.status-line button:hover { text-decoration: underline; }
.checking::before {
  content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--consider); margin-right: 7px; animation: pulse 1s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: .25; } }

/* ---------- the timeline ---------- */
.timeline { position: relative; }
.timeline::before {           /* the spine */
  content: ""; position: absolute; top: 0; bottom: 0;
  left: calc(var(--col-year) + var(--col-spine) / 2 - .5px);
  width: 1px; background: var(--rule-2);
}
.decade {
  position: relative; display: grid;
  grid-template-columns: var(--col-year) var(--col-spine) 1fr; align-items: center;
  margin: 34px 0 4px;
}
.decade h2 {
  grid-column: 3; margin: 0; display: flex; align-items: baseline; gap: 12px;
  font: italic 400 22px/1 var(--serif); color: var(--ink-2);
}
.decade h2 small { font: 12px var(--sans); color: var(--muted); font-style: normal; }
.decade::after {
  content: ""; grid-column: 2; grid-row: 1; justify-self: center;
  width: 9px; height: 1px; background: var(--ink-2);
}

.work {
  position: relative; display: grid;
  grid-template-columns: var(--col-year) var(--col-spine) var(--col-poster) minmax(0, 1fr) var(--col-scores);
  padding: 16px 0 17px;
  border-bottom: 1px solid var(--rule);
  animation: rise .35s ease both;
}
.work { transition: background 1.2s, box-shadow 1.2s; }
.work.focus { background: color-mix(in srgb, var(--link) 11%, transparent); box-shadow: inset 3px 0 0 var(--link); }
.work .yr .rank {
  display: block; font: 500 13px/1 var(--sans); color: var(--muted); letter-spacing: .02em; margin-bottom: 6px;
}
.work .yr .rank::before { content: "#"; opacity: .6; }
.decade + .work { border-top: 0; }
@keyframes rise { from { opacity: 0; transform: translateY(4px); } }
.work .yr {
  font: 400 19px/1.35 var(--serif); color: var(--muted); text-align: right;
  font-variant-numeric: tabular-nums lining-nums;
}
.work .yr .y { display: block; }

/* The poster stretches to the row's height (about 2:3 on a typical row).
   It's also the trailer button. */
.poster {
  width: 84px; align-self: stretch; min-height: 112px; max-height: 150px; margin-top: 4px;
  border-radius: 2px; overflow: hidden; display: block; position: relative;
  background: var(--shade); box-shadow: 0 1px 3px rgba(0,0,0,.14);
  border: 0; padding: 0; cursor: pointer; color: #fff;
}
.poster img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s, filter .25s; }
.poster:hover img { transform: scale(1.04); filter: brightness(.82); }
.poster .play {
  position: absolute; left: 50%; top: 50%; width: 34px; height: 34px; margin: -17px 0 0 -17px;
  border-radius: 50%; display: grid; place-items: center;
  background: rgba(16, 15, 13, .62); box-shadow: 0 0 0 1.5px rgba(255,255,255,.75);
  opacity: 0; transform: scale(.85); transition: opacity .18s, transform .18s;
}
.poster .play svg { width: 16px; height: 16px; margin-left: 2px; }
.poster:hover .play, .poster:focus-visible .play { opacity: 1; transform: none; }
.poster.blank .play, .poster.pending .play { background: var(--ink-2); box-shadow: none; }
.poster .ribbon {
  position: absolute; top: 0; right: 7px; width: 12px; height: 17px; background: var(--go);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 75%, 0 100%); box-shadow: 0 1px 2px rgba(0,0,0,.3);
}
.poster.blank { box-shadow: inset 0 0 0 1px var(--rule); background: none; }
.poster.pending {
  box-shadow: none;
  background: linear-gradient(90deg, var(--rule) 0%, var(--shade) 50%, var(--rule) 100%);
  background-size: 200% 100%; animation: shimmer 1.2s linear infinite;
}
.work.tv .poster { width: 56px; min-height: 80px; }
.node {
  justify-self: center; margin-top: 8px; width: 11px; height: 11px; border-radius: 50%;
  background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--rule-2); position: relative; z-index: 1;
  transition: background .3s, box-shadow .3s;
}
.work.subscribed .node { background: var(--go); box-shadow: 0 0 0 3px var(--paper); }
.work.free .node { box-shadow: inset 0 0 0 2px var(--free), 0 0 0 3px var(--paper); }
.work.considering .node { box-shadow: inset 0 0 0 2px var(--consider), 0 0 0 3px var(--paper); }
.work.subscribed .yr { color: var(--ink); }

.work .body { min-width: 0; padding-right: 18px; }
.work h3 { margin: 0; font: 500 21px/1.3 var(--serif); letter-spacing: -.005em; }
.work h3 a { color: var(--ink); }
.work h3 a:hover { color: var(--link); text-decoration: none; }
.syn {
  margin: 4px 0 0; color: var(--ink-2); font: 15.5px/1.5 var(--serif);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.meta { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.meta a { color: var(--ink-2); }
.meta a:hover { color: var(--link); }
.meta .sep { margin: 0 7px; opacity: .6; }
.aw { color: #9a7417; }
html.dark .aw { color: #d9b25a; }
.aw::before { content: "✦ "; font-size: 10px; vertical-align: 1px; }

.where { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px 6px; align-items: center; font-size: 12.5px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 9px; border-radius: 4px; line-height: 1.35; font-weight: 500;
  border: 1px solid transparent; color: var(--ink);
}
.chip:hover { text-decoration: none; filter: brightness(1.06); }
.chip.sub { background: var(--go); color: #fff; }
html.dark .chip.sub { color: #0f1a13; }
.chip.free { border-color: color-mix(in srgb, var(--free) 70%, transparent); color: var(--ink-2); }
.chip.consider { border: 1px dashed var(--consider); color: var(--consider); }
.chip i {
  font-style: normal; font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); font-weight: 600;
}
.where .rent, .where .else, .where .nope, .where .deals { color: var(--muted); margin-left: 4px; }
.where .deals .rent { margin-left: 0; }
.where .deals .sep { margin: 0 6px; opacity: .6; }
.where .rent:hover { color: var(--link); }
.where .rent.sale { color: var(--go); font-weight: 600; }
.where .deals .store { color: var(--ink-2); margin-right: 2px; }
.where .deals .store::after { content: ":"; }
.where .rent.yt { margin-left: 10px; }
.where .rent.sale s { color: var(--muted); font-weight: 400; margin-left: 3px; }
.where .else { font-style: normal; }

.side { display: flex; flex-direction: column; gap: 5px; align-items: flex-start; }
.scores {
  display: flex; flex-direction: column; gap: 5px; align-items: flex-start;
  padding-top: 4px; font-size: 14px; color: var(--ink); font-variant-numeric: tabular-nums;
}
/* the Chappelle score: audience minus critics */
.sc.chap { font-size: 13px; color: var(--muted); }
.sc.chap:hover { text-decoration: none; color: var(--link); }
.sc.chap .ic { width: 16px; height: 16px; }
.sc.chap b { font-weight: 500; }
.sc.chap.pos { color: var(--ink-2); }
.sc.chap.pos.big { color: var(--go); }
.sc.chap.pos.big b { font-weight: 700; }
.sc.chap.neg.big { color: #a5523e; }
html.dark .sc.chap.neg.big { color: #d98a72; }
/* Trakt's 1-10 votes as ten little bars */
.hist { display: inline-flex; align-items: flex-end; gap: 6px; color: var(--muted); font-size: 12px; margin-top: 2px; }
.hist:hover { text-decoration: none; color: var(--link); }
.hist .bars { display: inline-flex; align-items: flex-end; gap: 1px; height: 15px; }
.hist .bars i { display: block; width: 3px; background: color-mix(in srgb, var(--muted) 65%, transparent); border-radius: 1px 1px 0 0; }
.hist:hover .bars i { background: var(--ink-2); }
.hist.u .bars i { background: var(--consider); }
.hist.u b { color: var(--consider); }
.hist.flat .bars i { background: color-mix(in srgb, var(--consider) 45%, transparent); }
.hist.flat b { color: color-mix(in srgb, var(--consider) 70%, var(--muted)); }
.key { font-weight: 600; }
.key.u { color: var(--consider); }
.key.flat { color: color-mix(in srgb, var(--consider) 70%, var(--muted)); }
.hist b { font-weight: 600; font-variant-numeric: tabular-nums; }
/* save, seen, share: quiet until you point at the row */
.acts { display: flex; gap: 2px; margin: 6px 0 0 -5px; }
.act {
  width: 28px; height: 28px; display: grid; place-items: center; border: 0; border-radius: 6px;
  background: none; color: var(--muted); cursor: pointer; opacity: 0; transition: opacity .15s, background .15s, color .15s;
}
.work:hover .act, .act:focus-visible, .act.on { opacity: 1; }
.act:hover { background: var(--shade); color: var(--ink); }
.act.on { color: var(--go); }
.act.on[data-act="want"] .ic { fill: currentColor; }
.act.pop { animation: pop-act .35s ease-out; }
@keyframes pop-act { 40% { transform: scale(1.35); } }
@media (hover: none) { .act { opacity: .7; } }
.seen-tag {
  display: inline-flex; align-items: center; gap: 3px; margin-left: 10px; vertical-align: 3px;
  font: 600 10.5px/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--go);
}
.seen-tag .ic { width: 12px; height: 12px; stroke-width: 2; }
/* who directed and wrote it: "D Peter Bogdanovich" */
.crew { white-space: nowrap; }
.crew .box { margin-right: 5px; vertical-align: 1px; }
a.scores:hover { text-decoration: none; }
a.scores:hover .sc b { color: var(--link); }
.sc { display: inline-flex; align-items: center; gap: 7px; }
.sc svg { width: 16px; height: 16px; flex: none; }
.sc b { font-weight: 600; min-width: 34px; }
.sc em { font-style: normal; font-size: 11px; color: var(--muted); letter-spacing: .02em; }
.sc.na b { color: var(--muted); font-weight: 400; }
.sc.na svg { filter: grayscale(1); opacity: .45; }

/* TV series: one quiet line */
.work.tv h3 { font-size: 18px; }
.work.tv .yr { font-size: 15px; padding-top: 2px; }
.work.tv .syn { -webkit-line-clamp: 1; font-size: 14.5px; }

/* placeholders while a row is being checked */
.shimmer {
  display: inline-block; height: 10px; width: 180px; border-radius: 3px;
  background: linear-gradient(90deg, var(--rule) 0%, var(--shade) 50%, var(--rule) 100%);
  background-size: 200% 100%; animation: shimmer 1.2s linear infinite;
}
.shimmer.sm { width: 48px; margin-top: 6px; }
.shimmer.syn { width: 70%; display: block; margin-top: 10px; }
@keyframes shimmer { to { background-position: -200% 0; } }

.empty { color: var(--muted); padding: 40px 0; text-align: center; font: italic 17px var(--serif); }
.loading { padding: 12vh 0; text-align: center; }
.loading h2 { font: italic 400 26px var(--serif); margin: 0 0 8px; }
.loading p { color: var(--muted); margin: 0; }
.error { padding: 12vh 0; text-align: center; color: var(--ink-2); }

/* ---------- hover preview (like Wikipedia's page previews) ---------- */
.preview {
  position: absolute; z-index: 50; width: 340px;
  background: var(--card); color: var(--ink);
  border: 1px solid var(--rule-2); border-radius: 6px;
  box-shadow: 0 18px 44px rgba(0,0,0,.16), 0 2px 6px rgba(0,0,0,.06);
  overflow: hidden; font-size: 14px;
  animation: pop .14s ease-out;
}
@keyframes pop { from { opacity: 0; transform: translateY(-3px); } }
.preview .pv { display: flex; gap: 0; }
.preview .pv-text { padding: 14px 16px 10px; flex: 1; min-width: 0; }
.preview .pv-desc { font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.preview .pv-extract {
  margin: 0; font: 15px/1.5 var(--serif); color: var(--ink);
  max-height: 11.5em; overflow: hidden; position: relative;
  -webkit-mask-image: linear-gradient(#000 78%, transparent);
          mask-image: linear-gradient(#000 78%, transparent);
}
.preview img { width: 112px; object-fit: cover; flex: none; align-self: stretch; max-height: 200px; }
.preview .pv-foot {
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid var(--rule); padding: 8px 16px; font-size: 12.5px; color: var(--muted);
}
.preview .pv-foot a { font-weight: 500; }

/* ---------- the trailer player ---------- */
html.tl-open { overflow: hidden; }
.tl {
  position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 24px;
  background: rgba(12, 11, 10, .78); backdrop-filter: blur(6px); animation: fade .18s ease-out;
}
@keyframes fade { from { opacity: 0; } }
.tl-in { width: min(1000px, 100%); animation: pop .2s ease-out; }
.tl-top { display: flex; align-items: baseline; gap: 16px; color: #ece7dc; margin-bottom: 10px; }
.tl-title { flex: 1; min-width: 0; font: 400 22px/1.2 var(--serif); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl-title b { font-weight: 500; }
.tl-title span { color: #a39c8f; }
.tl-yt { color: #c6bfb1; font-size: 13px; }
.tl-x {
  border: 0; background: rgba(255,255,255,.1); color: #fff; width: 32px; height: 32px; border-radius: 50%;
  font-size: 20px; line-height: 1; cursor: pointer; align-self: center;
}
.tl-x:hover { background: rgba(255,255,255,.2); }
.tl-frame {
  position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: 6px; overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
}
.tl-frame iframe, .tcard-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tl-msg { position: absolute; inset: 0; display: grid; place-content: center; margin: 0; color: #c6bfb1; font-size: 14px; text-align: center; padding: 20px; }
.tl-msg a { color: #93b3ee; }
/* the muted preview that emerges from a poster */
.tcard {
  position: absolute; z-index: 60; background: #000; border-radius: 8px; overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,.35), 0 0 0 1px rgba(255,255,255,.06);
  animation: emerge .22s ease-out;
}
@keyframes emerge { from { opacity: 0; transform: scale(.92); } }
.tcard-frame { position: relative; aspect-ratio: 16 / 9; }
.tcard-hit { position: absolute; inset: 0; z-index: 1; border: 0; background: none; cursor: pointer; }
.tcard-go {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 7px;
  border: 0; padding: 10px; background: #1f1d1a; color: #ece7dc; font-size: 13px; cursor: pointer;
}
.tcard-go svg { width: 13px; height: 13px; }
.tcard-go:hover { background: #2c2925; }

/* ---------- share menu ---------- */
.menu {
  position: absolute; z-index: 70; min-width: 200px; padding: 6px;
  background: var(--card); border: 1px solid var(--rule-2); border-radius: 8px;
  box-shadow: 0 14px 36px rgba(0,0,0,.14); animation: pop .14s ease-out;
}
.menu-url {
  margin: 2px 6px 6px; padding-bottom: 8px; border-bottom: 1px solid var(--rule);
  font-size: 12px; color: var(--muted); max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  user-select: all;
}
.menu-item {
  display: block; width: 100%; text-align: left; border: 0; background: none; cursor: pointer;
  padding: 7px 10px; border-radius: 5px; font-size: 14px; color: var(--ink);
}
.menu-item:hover { background: var(--shade); text-decoration: none; }

/* ---------- the suggestion box ---------- */
.fb { position: fixed; right: 18px; bottom: 18px; z-index: 40; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.fb-open {
  display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
  padding: 7px 13px; border-radius: 999px; font-size: 13px;
  color: var(--muted); background: color-mix(in srgb, var(--card) 88%, transparent);
  border: 1px solid var(--rule-2); backdrop-filter: blur(6px);
  box-shadow: 0 2px 10px rgba(0,0,0,.05); transition: color .15s, border-color .15s;
}
.fb-open:hover, .fb.on .fb-open { color: var(--ink); border-color: var(--ink-2); }
/* Where the page has no margin to spare, just the icon (the word comes back on hover). */
@media (max-width: 1120px) {
  .fb-open { padding: 9px; gap: 0; }
  .fb-open span { max-width: 0; overflow: hidden; white-space: nowrap; transition: max-width .2s, margin .2s; }
  .fb-open:hover span, .fb.on .fb-open span { max-width: 80px; margin-left: 7px; }
}
.fb-panel {
  order: -1; width: min(360px, calc(100vw - 36px)); padding: 16px 16px 14px;
  background: var(--card); border: 1px solid var(--rule-2); border-radius: 10px;
  box-shadow: 0 18px 48px rgba(0,0,0,.16); animation: pop .16s ease-out;
}
.fb-label { display: block; font: italic 400 20px/1.2 var(--serif); margin: 0 0 10px; color: var(--ink); }
.fb-panel textarea {
  width: 100%; resize: vertical; min-height: 96px; padding: 10px 12px;
  font: 15px/1.45 var(--serif); color: var(--ink); background: var(--paper);
  border: 1px solid var(--rule-2); border-radius: 6px; outline: none;
}
.fb-panel textarea:focus { border-color: var(--ink-2); box-shadow: 0 0 0 3px var(--shade); }
.fb-panel textarea::placeholder { color: var(--muted); }
.fb-panel.drop { border-color: var(--ink-2); box-shadow: 0 0 0 3px var(--shade), 0 18px 48px rgba(0,0,0,.16); }
.fb-shot { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 8px; min-height: 26px; }
.fb-attach {
  display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; padding: 3px 0;
  font-size: 13px; color: var(--muted); cursor: pointer;
}
.fb-attach:hover { color: var(--ink); }
.fb-attach[hidden] { display: none; }
.fb-attach[disabled] { opacity: .5; cursor: default; }
.fb-attach .ic { stroke-width: 1.3; }
.fb-attach .ic circle { fill: currentColor; stroke: none; }
.fb-thumb { display: flex; align-items: center; gap: 8px; min-width: 0; max-width: 100%; font-size: 12.5px; color: var(--ink-2); }
.fb-thumb[hidden] { display: none; }
.fb-thumb img { width: 44px; height: 32px; object-fit: cover; border-radius: 4px; border: 1px solid var(--rule-2); background: var(--paper); }
.fb-thumb span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fb-remove {
  flex: none; width: 22px; height: 22px; border: 0; border-radius: 50%; padding: 0; cursor: pointer;
  background: none; color: var(--muted); font-size: 17px; line-height: 1;
}
.fb-remove:hover { background: var(--shade); color: var(--ink); }
.fb-shot-msg { font-size: 12.5px; color: var(--muted); }
.fb-shot-msg:empty { display: none; }
.fb-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; }
.fb-note { font-size: 12px; color: var(--muted); }
.fb-send {
  border: 0; border-radius: 6px; padding: 7px 16px; cursor: pointer;
  background: var(--ink); color: var(--paper); font-size: 13.5px; font-weight: 500;
}
.fb-send[disabled] { opacity: .35; cursor: default; }
.fb-done { margin: 10px 0 0; font-size: 13.5px; color: var(--go); }

/* ---------- list pages: the watchlist, the Chappelle list ---------- */
.listpage { padding-top: 28px; }
.listpage h1 { font: 400 clamp(34px, 5vw, 44px)/1.1 var(--serif); letter-spacing: -.02em; margin: 0 0 10px; }
.listpage .lede { color: var(--ink-2); margin: 0 0 8px; max-width: 640px; }
.listpage .lede .ic { width: 14px; height: 14px; color: var(--go); }
.listpage .lede a { color: inherit; text-decoration: underline; text-decoration-color: var(--rule-2); text-underline-offset: 3px; }
.listpage .tabs { margin-top: 18px; }
.listpage .tabs .ic { width: 14px; height: 14px; margin-right: 4px; }
.timeline.flat .decade:first-child { margin-top: 18px; }

/* ---------- settings ---------- */
.settings { padding-top: 28px; max-width: 720px; }
.settings h1 { font: 400 40px/1.1 var(--serif); letter-spacing: -.02em; margin: 0 0 10px; }
.settings .lede { color: var(--ink-2); margin: 0 0 28px; }
.settings h2 { margin: 36px 0 6px; }
.svc {
  display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center;
  padding: 11px 0; border-bottom: 1px solid var(--rule);
}
.svc b { font-weight: 500; }
.svc small { display: block; color: var(--muted); font-size: 12.5px; }
.segctl { display: inline-flex; border: 1px solid var(--rule-2); border-radius: 6px; overflow: hidden; }
.segctl label { font-size: 12.5px; padding: 5px 11px; cursor: pointer; color: var(--muted); }
.segctl label + label { border-left: 1px solid var(--rule-2); }
.segctl input { display: none; }
.segctl input:checked + span { color: var(--ink); }
.segctl label:has(input:checked) { background: var(--shade); }
.segctl label:has(input[value=mine]:checked) span { color: var(--go); font-weight: 600; }
.segctl label:has(input[value=considering]:checked) span { color: var(--consider); font-weight: 600; }
.country { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.country select {
  font: inherit; padding: 5px 8px; border-radius: 6px; border: 1px solid var(--rule-2);
  background: var(--card); color: var(--ink);
}
.saved { color: var(--go); font-size: 13px; opacity: 0; transition: opacity .3s; }
.settings .hint { color: var(--muted); font-size: 13px; margin: 0 0 4px; }
.store-row { cursor: pointer; }
/* an on/off switch */
.switch { position: relative; width: 38px; height: 22px; flex: none; }
.switch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.switch i {
  position: absolute; inset: 0; border-radius: 999px; background: var(--rule-2); transition: background .2s;
}
.switch i::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--card); box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: transform .2s;
}
.switch input:checked + i { background: var(--go); }
.switch input:checked + i::after { transform: translateX(16px); }
.switch input:focus-visible + i { box-shadow: 0 0 0 3px var(--shade); }
.saved.show { opacity: 1; }

/* ---------- small screens ---------- */
@media (max-width: 680px) {
  .bar { gap: 14px; }
  .nav { gap: 14px; }
  .navlink { font-size: 12.5px; }
  #nav-list .lbl, #nav-seen .lbl { display: none; }
  .navlink .your { display: none; }
  #nav-services { text-transform: capitalize; }
  .fb { right: 12px; bottom: 12px; }
  .rules { text-align: left; max-width: none; }
  .order { margin-right: 8px; }
  .person-head { grid-template-columns: 1fr; }
  .head-actions { margin: 14px 0 0; }
.ghost {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  font-size: 13px; padding: 5px 11px; border-radius: 999px;
  border: 1px solid var(--rule-2); background: none; color: var(--ink-2);
}
.ghost:hover { border-color: var(--ink-2); color: var(--ink); }
.portrait { display: none; }
  .timeline::before, .decade::after, .node { display: none; }
  .decade { grid-template-columns: 1fr; }
  .decade h2 { grid-column: 1; }
  .home { grid-template-columns: 1fr; grid-template-areas: "hero" "picker" "library"; padding-top: 20px; }
  .home .picker { margin-top: 28px; }
  .library { margin-top: 36px; }
  .picker ul { display: flex; flex-wrap: wrap; gap: 2px 14px; }
  .pick { width: auto; margin: 0; padding: 4px 0; grid-template-columns: 12px auto; }
  .pick .st { display: none; }
  .work { grid-template-columns: 58px minmax(0, 1fr) auto; gap: 4px 12px; }
  .work .yr { grid-column: 1 / -1; text-align: left; font-size: 14px; display: flex; align-items: center; gap: 10px; }
  .work .yr .y { display: inline; }
  .credits { margin: 0; }
  .poster { width: 58px; min-height: 86px; }
  .work.subscribed .yr { color: var(--go); }
  .lib-row { grid-template-columns: 40px 1fr 24px; }
  .lib-stats { grid-column: 2; text-align: left; justify-content: flex-start; }
  .teaser { grid-template-columns: 40px 1fr; }
  .side { align-items: flex-end; }
  .acts { margin: 4px -5px 0 0; }
  .tl { padding: 12px; }
  .preview { width: min(340px, calc(100vw - 24px)); }
}

/* ---------- admin (the owner only) ---------- */
.admin { padding-top: 28px; }
.admin h1 { font: 400 40px/1.1 var(--serif); letter-spacing: -.02em; margin: 0 0 10px; }
.admin .lede { color: var(--ink-2); margin: 0; max-width: 640px; }
.admin .summary a.seg { color: var(--ink-2); }
.admin .summary a.seg:hover { text-decoration: none; }
.admin .eyebrow { margin: 40px 0 12px; }
.admin .eyebrow small { font-size: inherit; letter-spacing: .06em; text-transform: none; font-weight: 400; }
.admin .hint { color: var(--muted); font-size: 13.5px; margin: 0 0 8px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; margin-top: 12px; }
.tile { padding: 14px 16px; border: 1px solid var(--rule); border-radius: 8px; background: var(--card); }
.tile .label { display: block; font-size: 12.5px; color: var(--ink-2); }
.tile b { display: block; font: 600 30px/1.15 var(--sans); margin: 4px 0 2px; }
.tile small { display: block; font-size: 12px; color: var(--muted); }

.vchart .legend { display: flex; gap: 16px; font-size: 12.5px; color: var(--ink-2); margin-bottom: 8px; }
.vchart .legend span { display: inline-flex; align-items: center; gap: 6px; }
.vchart .sw { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
.vchart .s1 { background: var(--chart-1); }
.vchart .s2 { background: var(--chart-2); }
.vchart .plot { position: relative; height: 160px; margin-left: 28px; }
.vchart .grid { position: absolute; left: 0; right: 0; border-top: 1px solid var(--rule); }
.vchart .grid span {
  position: absolute; right: calc(100% + 8px); top: -8px; font-size: 11px; color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.vchart .cols { position: absolute; inset: 0; display: flex; align-items: flex-end; }
.vchart .col { flex: 1; height: 100%; display: flex; align-items: flex-end; justify-content: center; padding: 0 1px; }
.vchart .col:hover { background: var(--shade); }
.vchart .stack { width: 100%; max-width: 24px; display: flex; flex-direction: column; gap: 2px; }
.vchart .stack i { display: block; min-height: 2px; }
.vchart .stack i:first-child { border-radius: 4px 4px 0 0; }
.vchart .ctip {
  position: absolute; top: -6px; transform: translateY(-100%); white-space: nowrap; pointer-events: none;
  background: var(--ink); color: var(--paper); font-size: 12px; padding: 5px 9px; border-radius: 6px; z-index: 2;
}
.vchart .xaxis { display: flex; justify-content: space-between; margin: 6px 0 0 28px; font-size: 11px; color: var(--muted); }
.vchart .ctable { margin-top: 8px; font-size: 12.5px; color: var(--muted); }
.vchart .ctable summary { cursor: pointer; }
.vchart .ctable table { margin-top: 8px; }

.adm-table { overflow-x: auto; border-top: 1px solid var(--rule); }
.admin table { border-collapse: collapse; width: 100%; font-size: 13px; }
.admin th { text-align: left; font-weight: 500; color: var(--muted); font-size: 12px; padding: 8px 6px; white-space: nowrap; }
.admin td { padding: 8px 6px; border-top: 1px solid var(--rule); white-space: nowrap; vertical-align: middle; }
.admin .n { text-align: right; font-variant-numeric: tabular-nums; }
.admin .who { display: flex; align-items: center; gap: 10px; }
.admin .who img, .admin .who > i { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; background: var(--rule); flex: none; }
.admin .who b { font-weight: 500; display: block; }
.admin .who em { font-style: normal; font-size: 11px; color: var(--muted); border: 1px solid var(--rule-2); border-radius: 999px; padding: 0 6px; margin-left: 4px; }
.admin .who small { display: block; color: var(--muted); font-size: 12px; }

.adm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.adm-card { padding: 14px 16px; border: 1px solid var(--rule); border-radius: 8px; background: var(--card); min-width: 0; }
.adm-card h3 { margin: 0 0 6px; font-size: 13.5px; font-weight: 500; display: flex; justify-content: space-between; gap: 8px; }
.adm-card h3 b { font-variant-numeric: tabular-nums; }
.adm-card .note { margin: 0 0 6px; font-size: 12.5px; color: var(--muted); }
.adm-card ol { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.adm-card li { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; border-top: 1px solid var(--rule); }
.adm-card li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); }
.adm-card li b { font-weight: 500; font-variant-numeric: tabular-nums; }

.adm-fb article { padding: 12px 0; border-top: 1px solid var(--rule); }
.adm-fb article:last-child { border-bottom: 1px solid var(--rule); }
.adm-fb .meta { margin: 0 0 4px; font-size: 12.5px; color: var(--muted); }
.adm-fb .text { margin: 0; white-space: pre-wrap; font: 16px/1.45 var(--serif); }
.adm-fb .badge { background: var(--go); color: #fff; font-size: 11px; font-weight: 600; padding: 1px 7px; border-radius: 999px; margin-right: 6px; }
html.dark .adm-fb .badge { color: #0f1a13; }
.adm-fb .shot { display: inline-flex; flex-direction: column; gap: 4px; margin-top: 8px; font-size: 12.5px; }
.adm-fb .shot img {
  display: block; max-width: min(360px, 100%); max-height: 240px; object-fit: contain; object-position: left top;
  border: 1px solid var(--rule-2); border-radius: 6px; background: var(--paper);
}
.adm-errors summary { cursor: pointer; font-size: 13.5px; color: var(--ink-2); }
.adm-errors pre { font-size: 11.5px; white-space: pre-wrap; word-break: break-all; color: var(--ink-2); }
.visitor-link + .visitor-link { margin-top: 16px; }
.admin .linkish {
  border: 0; background: none; padding: 0; color: var(--link); cursor: pointer; font: inherit;
  text-decoration: underline; text-decoration-color: var(--rule-2); text-underline-offset: 2px;
}
.admin .eyebrow .linkish { letter-spacing: .06em; text-transform: none; }
.admin .open-row { display: inline-flex; align-items: center; gap: 3px; }
.admin .open-row .chev { display: inline-block; transition: transform .15s; text-decoration: none; }
.admin .open-row[aria-expanded="true"] .chev { transform: rotate(90deg); }
.admin .adm-detail td { white-space: normal; background: var(--shade); border-top: 0; padding: 10px 12px 14px; }
.admin .adm-detail dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; margin: 0; font-size: 13px; }
.admin .adm-detail dt { color: var(--muted); }
.admin .adm-detail dd { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; }
.admin .adm-detail .it small { color: var(--muted); font-size: 11.5px; margin-left: 5px; }
.admin .adm-detail p { margin: 0; font-size: 13px; }
@media (max-width: 600px) { .admin .adm-detail dl { grid-template-columns: 1fr; gap: 2px; } .admin .adm-detail dd { margin-bottom: 8px; } }
.admin .badge.now { display: inline-block; background: var(--go); color: #fff; font-size: 10.5px; font-weight: 600; padding: 1px 6px; border-radius: 999px; margin-left: 6px; vertical-align: 1px; }
html.dark .admin .badge.now { color: #0f1a13; }
.admin .adm-detail dt small { font-size: 11px; }
.admin .adm-detail .it b { font-weight: 600; }
.admin .adm-detail .visit { white-space: nowrap; }
.adm-fb .ctx { margin: 6px 0 0; font-size: 13px; color: var(--ink-2); }
.adm-fb .ctx b { font-weight: 500; }
.adm-fb .ctx.bad { color: #a33a2a; }
html.dark .adm-fb .ctx.bad { color: #e08a75; }
.adm-fb .ctx small { color: var(--muted); }
.adm-fb .steps { margin-top: 6px; font-size: 13px; color: var(--ink-2); }
.adm-fb .steps summary { cursor: pointer; color: var(--muted); }
.adm-fb .steps ol { list-style: none; margin: 6px 0 0; padding: 0; }
.adm-fb .steps li { padding: 2px 0; }
.adm-fb .steps li .muted { display: inline-block; min-width: 82px; font-variant-numeric: tabular-nums; }
.theme-btn {
  border: 0; background: none; color: var(--ink-2); cursor: pointer; padding: 4px; border-radius: 6px;
  display: inline-grid; place-items: center;
}
.theme-btn:hover { color: var(--ink); background: var(--shade); }
.theme-btn .ic { width: 16px; height: 16px; }
.owner-tools { display: flex; align-items: center; gap: 12px; margin: 0 0 22px; font-size: 13.5px; color: var(--muted); }
.owner-tools a {
  font-size: 13.5px; font-weight: 500; padding: 6px 14px; border-radius: 6px; color: var(--ink);
  border: 1px solid var(--rule-2); background: var(--card);
}
.owner-tools a:hover { text-decoration: none; border-color: var(--ink-2); }

/* The server's plain-text version of a page (pages.py): for search engines,
   link previews and browsers without JavaScript. The app draws its own. */
html.js .ssr { display: none; }
.ssr { padding: 32px 0; line-height: 1.5; }
.ssr h1 { font: 500 34px/1.15 var(--serif); margin: 0 0 6px; }
.ssr h2 { font: 500 20px var(--serif); margin: 28px 0 8px; }
.ssr .sub { color: var(--muted); margin: 0 0 12px; }
.ssr .bio { max-width: 62ch; }
.ssr-list { padding-left: 0; list-style: none; }
.ssr-list li { padding: 5px 0; border-bottom: 1px solid var(--rule); }
.ssr-list b { display: inline-block; min-width: 64px; font-variant-numeric: tabular-nums; }
.ssr-list cite { font-style: italic; }
.ssr-people { columns: 3 180px; padding-left: 0; list-style: none; }
