/* Top posts tab (2026-11-09). Its own file, every rule scoped under .an so no other tab changes.
   The Cinema look from Joe's picked mock (https://claude.ai/artifact/HZpNBfiFoGxXr96NABivcS): charcoal ground, hairlines do the structure,
   posters first with a plain label under them, oversized plain words as navigation (active white, rest grey), one italic serif word in
   the title, red only for "needs you" (the Repost this dot). Colours come from the app's own variables with fallbacks, so it follows
   cinema.css. No glow, no glass except the drawer (the frosted floating panel Joe chose on 9/23). */
.an { --an-line: var(--line, rgba(255,255,255,.09)); --an-hair: var(--hair, rgba(255,255,255,.18)); --an-ink: var(--ink, #fff); --an-muted: var(--muted, #a8a8a8); --an-dim: var(--dim, #8e8e8e); --an-signal: var(--signal, #ff3b30); --an-warn: var(--warn, #e6b64d); --an-display: var(--display, "Inter Tight", "Inter", sans-serif); --an-sig: var(--sig, "Instrument Serif", Georgia, serif); max-width: 1240px; color: var(--an-ink); }
.an *, .an *::before, .an *::after { box-sizing: border-box; }
.an button, .an a.an-btn { font: inherit; }
.an button:focus-visible, .an a:focus-visible, .an summary:focus-visible, .an tr:focus-visible { outline: 1.5px solid var(--an-ink); outline-offset: 3px; }
.an-s { font-family: var(--an-sig); font-style: italic; font-weight: 400; letter-spacing: 0; font-size: 1.08em; }
.an-h1 { font: 600 clamp(40px, 6vw, 72px)/.98 var(--an-display); letter-spacing: -.04em; margin: 0 0 6px; text-wrap: balance; }
.an-lede { color: var(--an-muted); max-width: 66ch; margin: 4px 0 0; }
.an-small { font-size: 12.5px; color: var(--an-muted); }
.an code { font: 500 12px/1.4 ui-monospace, "SF Mono", Menlo, monospace; background: var(--panel2, #1a1a1a); border: 1px solid var(--an-line); padding: 1px 5px; border-radius: 2px; color: var(--an-ink); }

/* the status line, says what this screen can and cannot do */
.an-status { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; margin: 20px 0 8px; padding: 14px 0; border-block: 1px solid var(--an-line); align-items: start; }
.an-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.an-tag { font: 600 10.5px/1 var(--body, "Inter", sans-serif); letter-spacing: .09em; text-transform: uppercase; border: 1px solid var(--an-hair); border-radius: 999px; padding: 6px 9px 5px; color: var(--an-ink); white-space: nowrap; }
.an-status p { margin: 0; color: var(--an-muted); max-width: 90ch; }
.an-status p b { color: var(--an-ink); font-weight: 600; }

/* controls: plain word rails */
.an-ctl { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px 28px; margin: 20px 0 0; }
.an-ctl2 { margin-top: 6px; }
.an-rail { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 20px; }
.an-lbl { font: 500 11px/1 var(--body, "Inter", sans-serif); letter-spacing: .08em; text-transform: uppercase; color: var(--an-dim); margin-right: 4px; }
.an-rail button { background: none; border: 0; border-bottom: 1px solid transparent; border-radius: 0; padding: 6px 0 7px; font: 500 13.5px/1.2 var(--body, "Inter", sans-serif); color: var(--an-dim); cursor: pointer; text-transform: none; letter-spacing: 0; }
.an-rail button:hover { color: var(--an-muted); }
.an-rail button[aria-pressed="true"] { color: var(--an-ink); border-bottom-color: var(--an-ink); }
.an-rail button.an-strong { color: var(--an-ink); border-bottom-color: var(--an-hair); }
.an-c { color: var(--an-dim); font-variant-numeric: tabular-nums; margin-left: 5px; }
.an-rail.an-big button { font: 600 clamp(20px, 2.8vw, 28px)/1.1 var(--an-display); letter-spacing: -.03em; padding: 4px 0 8px; }
.an-rail.an-big { gap: 4px 28px; }
.an-sp { flex: 1; }
.an-sep { width: 1px; align-self: stretch; background: var(--an-line); }
.an-actions { align-items: center; margin-top: 14px; }
.an-btn { background: var(--an-ink); color: var(--bg, #111); border: 1px solid var(--an-ink); border-radius: 999px; font: 500 13px/1 var(--body, "Inter", sans-serif); padding: 10px 16px; cursor: pointer; text-decoration: none; display: inline-block; }
.an-btn:hover { background: #e6e6e6; }
.an-btn.ghost { background: none; color: var(--an-ink); border-color: var(--an-hair); }
.an-btn.ghost:hover { border-color: var(--an-ink); background: none; }
.an-btn:disabled { opacity: .55; cursor: default; }
.an-hint { font-size: 12.5px; color: var(--an-dim); }
.an-note { margin: 12px 0 0; padding: 12px 0; border-block: 1px solid var(--an-line); color: var(--an-muted); max-width: 90ch; }
.an-note b { color: var(--an-ink); font-weight: 600; }
.an-note ul { margin: 6px 0 0; padding-left: 18px; }
.an-note[hidden] { display: none; }

/* summary strip */
.an-sum { display: flex; flex-wrap: wrap; gap: 8px 34px; margin: 22px 0 0; padding: 16px 0; border-top: 1px solid var(--an-line); }
.an-sum[hidden], .an-rule[hidden] { display: none; }
.an-sum div { min-width: 0; }
.an-sum b { display: block; font: 600 32px/1 var(--an-display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.an-sum span { font-size: 12px; color: var(--an-muted); }
.an-dotr::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--an-signal); margin-right: 6px; vertical-align: 1px; }
.an-typ { flex: 1 1 280px; border-left: 1px solid var(--an-line); padding-left: 22px; }
.an-typ b { font-size: 15px; letter-spacing: 0; font-weight: 500; color: var(--an-ink); }
.an-rule { margin-top: 2px; }
.an-rule summary { cursor: pointer; font-size: 12.5px; color: var(--an-muted); padding: 8px 0; list-style: none; }
.an-rule summary::-webkit-details-marker { display: none; }
.an-rule summary::after { content: " +"; color: var(--an-dim); }
.an-rule[open] summary::after { content: " less"; }
.an-rulebody { color: var(--an-muted); max-width: 80ch; font-size: 13px; padding-bottom: 12px; }
.an-rulebody p { margin: 0 0 8px; }
.an-rulebody b { color: var(--an-ink); font-weight: 500; }

/* posters */
.an-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 30px 18px; margin-top: 10px; }
.an-poster { display: flex; flex-direction: column; justify-content: flex-start; align-items: stretch; align-self: start; width: 100%; position: relative; background: none; border: 0; padding: 0; text-align: left; color: var(--an-ink); cursor: pointer; }
.an-img { display: block; position: relative; aspect-ratio: 9/16; background: #222; border-radius: 2px; transition: transform .25s ease; }
.an-poster:hover .an-img { transform: scale(1.015); }
.an-pic { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 2px; display: block; }
.an-pic.an-nopic { opacity: .45; }
.an-nopic-tag { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2; font: 600 10.5px/1 var(--body, "Inter", sans-serif); font-style: normal; letter-spacing: .08em; text-transform: uppercase; color: #fff; background: var(--an-signal); padding: 5px 7px 4px; border-radius: 1px; white-space: nowrap; }
.an-img::after { content: ""; position: absolute; inset: 0; border-radius: 2px; pointer-events: none; background: linear-gradient(180deg, rgba(0,0,0,.38) 0, rgba(0,0,0,0) 26%, rgba(0,0,0,0) 62%, rgba(0,0,0,.74) 100%); }
.an-rk { position: absolute; left: 9px; top: 8px; z-index: 2; font: 600 13px/1 var(--an-display); font-style: normal; font-variant-numeric: tabular-nums; letter-spacing: .02em; color: #fff; }
.an-poster .an-sig { position: absolute; left: 9px; bottom: 9px; z-index: 2; }
.an-sig { display: inline-flex; align-items: center; gap: 6px; font: 600 11.5px/1 var(--body, "Inter", sans-serif); background: rgba(17,17,17,.88); border: 1px solid var(--an-hair); border-radius: 999px; padding: 6px 10px 6px 9px; color: var(--an-ink); }
.an-sig::before { content: ""; width: 7px; height: 7px; border-radius: 50%; border: 1px solid var(--an-muted); }
.an-sig.repost::before { background: var(--an-signal); border-color: var(--an-signal); }
.an-sig.remake::before { border-color: var(--an-ink); }
.an-sig.new, .an-sig.wait { color: var(--an-muted); }
.an-t { display: block; margin-top: 10px; font: 600 15px/1.25 var(--an-display); letter-spacing: -.01em; }
.an-m { display: block; margin-top: 3px; font-size: 12px; color: var(--an-muted); }
.an-nums { display: grid; grid-template-columns: repeat(2, 1fr); gap: 5px 12px; margin-top: 10px; padding-top: 9px; border-top: 1px solid var(--an-line); }
.an-nums span { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
.an-nums b { font: 600 14px/1.1 var(--an-display); font-variant-numeric: tabular-nums; color: var(--an-muted); letter-spacing: -.01em; }
.an-nums em { font-style: normal; font-size: 11.5px; color: var(--an-dim); }
.an-nums .on b, .an-nums .on em { color: var(--an-ink); }
/* selection is corner brackets, not a coloured border */
.an-poster.sel .an-img::before { content: ""; position: absolute; z-index: 3; pointer-events: none; inset: -8px;
  background:
    linear-gradient(var(--an-ink), var(--an-ink)) top left / 16px 1.5px no-repeat, linear-gradient(var(--an-ink), var(--an-ink)) top left / 1.5px 16px no-repeat,
    linear-gradient(var(--an-ink), var(--an-ink)) top right / 16px 1.5px no-repeat, linear-gradient(var(--an-ink), var(--an-ink)) top right / 1.5px 16px no-repeat,
    linear-gradient(var(--an-ink), var(--an-ink)) bottom left / 16px 1.5px no-repeat, linear-gradient(var(--an-ink), var(--an-ink)) bottom left / 1.5px 16px no-repeat,
    linear-gradient(var(--an-ink), var(--an-ink)) bottom right / 16px 1.5px no-repeat, linear-gradient(var(--an-ink), var(--an-ink)) bottom right / 1.5px 16px no-repeat; }

/* list view */
.an-tablewrap { overflow-x: auto; margin-top: 10px; }
.an table { border-collapse: collapse; width: 100%; min-width: 820px; background: none; }
.an th { text-align: left; font: 500 11px/1.2 var(--body, "Inter", sans-serif); letter-spacing: .08em; text-transform: uppercase; color: var(--an-dim); padding: 8px 12px 10px 0; border-bottom: 1px solid var(--an-hair); white-space: nowrap; background: none; }
.an th.num, .an td.num { text-align: right; padding-right: 20px; font-variant-numeric: tabular-nums; }
.an td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--an-line); vertical-align: middle; background: none; color: var(--an-ink); }
.an tr.an-row { cursor: pointer; }
.an tr.an-row:hover td, .an tr.an-row.sel td { background: var(--panel2, #1a1a1a); }
.an td.an-rkc { color: var(--an-dim); font: 600 13px/1 var(--an-display); width: 40px; }
.an-th { display: block; width: 38px; aspect-ratio: 9/16; position: relative; background: #222; border-radius: 1px; }
.an-th .an-nopic-tag { display: none; }
.an-tt { font: 600 14.5px/1.25 var(--an-display); }
.an-mm { font-size: 12px; color: var(--an-muted); }
.an td.num { color: var(--an-muted); }
.an td.num.on, .an th.on { color: var(--an-ink); }
.an td.num.on { font-weight: 600; }

.an-empty { padding: 48px 0; color: var(--an-muted); border-bottom: 1px solid var(--an-line); max-width: 70ch; }
.an-empty h3 { font: 600 22px/1.2 var(--an-display); letter-spacing: -.02em; margin: 0 0 8px; color: var(--an-ink); }
.an-empty p { margin: 0 0 8px; }

/* the drawer (frosted, as Joe chose on 9/23 for anything that floats) */
.an-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100vw); z-index: 30; background: rgba(21,21,21,.92); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-left: 1px solid var(--an-hair); padding: 22px max(20px, env(safe-area-inset-right, 0px)) 40px 22px; overflow-y: auto; color: var(--an-ink); }
.an-drawer[hidden] { display: none; }
.an-x { float: right; background: none; border: 0; font-size: 13px; color: var(--an-muted); padding: 4px 0 4px 12px; cursor: pointer; }
.an-x:hover { color: var(--an-ink); }
.an-d-top { display: grid; grid-template-columns: 132px 1fr; gap: 18px; align-items: start; clear: both; margin-top: 8px; }
.an-d-top .an-img { transition: none; }
.an-d-top h3 { font: 600 20px/1.2 var(--an-display); letter-spacing: -.02em; margin: 0 0 4px; }
.an-d-meta { font-size: 12.5px; color: var(--an-muted); margin-top: 6px; }
.an-verdict { margin: 22px 0 0; padding: 16px 0; border-block: 1px solid var(--an-line); }
.an-verdict .an-sig { margin-bottom: 10px; }
.an-verdict p { color: var(--an-muted); margin: 0 0 8px; }
.an-verdict p b { color: var(--an-ink); font-weight: 500; }
.an-mtab { margin: 18px 0 0; }
.an-mrow { display: grid; grid-template-columns: 92px 74px 1fr; gap: 10px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--an-line); }
.an-mrow .k { color: var(--an-muted); font-size: 13px; }
.an-mrow .v { font: 600 15px/1 var(--an-display); font-variant-numeric: tabular-nums; text-align: right; }
.an-nonum { font-size: 12px; color: var(--an-dim); }
.an-bar { position: relative; height: 5px; background: rgba(255,255,255,.09); }
.an-bar i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--an-ink); }
.an-bar u { position: absolute; top: -4px; bottom: -4px; width: 1px; background: var(--an-muted); text-decoration: none; }
.an-x1 { grid-column: 3; font-size: 11px; color: var(--an-dim); margin-top: -3px; }
.an-src { margin-top: 18px; font-size: 12.5px; color: var(--an-muted); }
.an-src div { padding: 6px 0; border-bottom: 1px solid var(--an-line); display: flex; gap: 12px; justify-content: space-between; }
.an-src div span:first-child { color: var(--an-dim); flex: none; }
.an-src div span:last-child { text-align: right; }
.an-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }

/* the tour uses tour.css (ring and card); only the dim layer for the last card needs the same look */
.an-tour.dim .tour-shade { background: rgba(0, 0, 0, 0.72); }

@media (max-width: 760px) {
  .an-status { grid-template-columns: 1fr; }
  .an-typ { border-left: 0; padding-left: 0; border-top: 1px solid var(--an-line); padding-top: 14px; }
  .an-d-top { grid-template-columns: 104px 1fr; }
  .an-grid { grid-template-columns: repeat(2, 1fr); gap: 26px 14px; }
  .an-sep { display: none; }
}
@media (prefers-reduced-motion: reduce) { .an * { transition: none !important; } }

/* ---- hand tags, the likely regular hint, the Ideas view (2026-11-11) */
.an-rail button#anTag[aria-pressed="true"] { color: var(--an-ink); border-bottom-color: var(--an-ink); }
.an-sig.reposted, .an-sig.notshown { color: var(--an-muted); }
.an-sig.reposted::before { background: var(--an-muted); border-color: var(--an-muted); }
.an-hintk { position: absolute; right: 8px; top: 8px; z-index: 2; font: 600 9.5px/1 var(--body, "Inter", sans-serif); font-style: normal; letter-spacing: .06em; text-transform: uppercase; padding: 4px 5px 3px; border: 1px solid rgba(255,255,255,.6); background: rgba(0,0,0,.55); color: #fff; border-radius: 1px; }
.an-pick { position: absolute; right: 8px; bottom: 8px; z-index: 4; min-width: 22px; height: 22px; padding: 0 5px; border: 1.5px solid #fff; background: rgba(0,0,0,.45); color: #111; font: 700 13px/19px var(--an-display); font-style: normal; text-align: center; border-radius: 50%; }
.an-poster.picking .an-pick { background: rgba(0,0,0,.45); color: #fff; }
.an-poster.picked .an-pick { background: #fff; color: #111; }
.an-poster.picked .an-img { outline: 2px solid #fff; outline-offset: 3px; }
.an-poster.locked .an-pick { border-radius: 2px; border-color: rgba(255,255,255,.35); color: rgba(255,255,255,.7); font: 600 9px/19px var(--body, "Inter", sans-serif); letter-spacing: .06em; text-transform: uppercase; }
.an-poster.locked .an-img { opacity: .55; }
tr.an-row.picked td { background: var(--panel2, #1a1a1a); }
.an-link { background: none; border: 0; padding: 0; color: var(--an-ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font: inherit; }
.an-hintline { margin: 14px 0 4px; padding: 10px 0; border-block: 1px solid var(--an-line); color: var(--an-muted); max-width: 90ch; }
.an-hintline b { color: var(--an-ink); font-weight: 600; }
.an-tagbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 12px max(18px, env(safe-area-inset-right, 0px)) calc(12px + env(safe-area-inset-bottom, 0px)) max(18px, env(safe-area-inset-left, 0px)); background: rgba(21,21,21,.94); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--an-hair); color: var(--an-ink); }
.an-tagbar[hidden] { display: none; }
.an-tagbar b { font: 600 15px var(--an-display); }
.an-tagbar .an-btn:disabled { opacity: .4; }
.an-tagnote { flex: 1 1 100%; font-size: 12px; color: var(--an-dim); }
.an-ideahead { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 22px; margin: 18px 0 6px; color: var(--an-muted); }
.an-ideahead button { background: none; border: 0; border-bottom: 1px solid transparent; padding: 4px 0 5px; color: var(--an-dim); cursor: pointer; font: 500 13px var(--body, "Inter", sans-serif); }
.an-ideahead button[aria-pressed="true"] { color: var(--an-ink); border-bottom-color: var(--an-ink); }
.an-ideas { border-top: 1px solid var(--an-hair); }
.an-idea { display: grid; grid-template-columns: 52px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--an-line); cursor: pointer; align-items: start; }
.an-idea:hover { background: var(--panel2, #1a1a1a); }
.an-idea .an-th { width: 52px; }
.an-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 6px; }
.an-chips i { font-style: normal; color: var(--an-dim); }
.an-chip { display: inline-flex; flex-direction: column; gap: 1px; padding: 6px 10px; border: 1px solid var(--an-hair); border-radius: 2px; font-size: 12px; color: var(--an-muted); }
.an-chip b { color: var(--an-ink); font-weight: 600; font-size: 12.5px; }
.an-chip.trial { border-color: rgba(255,255,255,.5); }
@media (max-width: 760px) { .an-tagbar { padding-inline: 16px; } .an-idea { grid-template-columns: 44px 1fr; gap: 12px; } .an-idea .an-th { width: 44px; } }
.an-ideafilter { margin-bottom: 4px; }
.an-verdictline { margin-top: 4px; font-size: 13px; color: var(--an-muted); }
.an-verdictline.gap, .an-verdictline.untried { color: var(--an-ink); font-weight: 600; }
