/* Top 100 — the mono look (2026-11-06): Persimmon / Stride's black-and-white
   reset on the web. Ink on paper, inverted in dark mode, one grey, thick
   rules, condensed display type. The covers are the only colour; persimmon
   marks NOW and an over-limit count. Mirrors the workspace's
   top100/mono.proto.html (Barlow Condensed + Barlow stand in for SF). */
:root {
  color-scheme: light dark;
  --paper: #fff; --ink: #000; --dim: #6b6b6b;
  --rule: 3px; --thin: 1px;
  --cond: 'Barlow Condensed', 'SF Compressed', 'Arial Narrow', sans-serif;
  --sans: 'Barlow', 'SF Pro Text', system-ui, sans-serif;
  --now: #E4782A;
  --alert: #C99700;
}
@media (prefers-color-scheme: dark) { :root { --paper: #000; --ink: #fff; --dim: #9a9a9a; --alert: #FFD60A; } }

* { box-sizing: border-box; }
html { background: var(--paper); }
body {
  margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.4 var(--sans);
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
}
#app {
  max-width: 560px; margin: 0 auto;
  padding: calc(env(safe-area-inset-top) + 14px) max(20px, env(safe-area-inset-right))
           calc(env(safe-area-inset-bottom) + 48px) max(20px, env(safe-area-inset-left));
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; }

/* ── chrome ── */
.top { display: flex; align-items: baseline; justify-content: space-between; padding-top: 44px; }
.wordmark { font-family: var(--cond); font-weight: 800; font-size: 34px; letter-spacing: -.01em; line-height: 1; }
.back { display: flex; align-items: baseline; justify-content: space-between; padding-top: 44px; font-size: 16px; font-weight: 600; }
.back a { display: inline-flex; align-items: center; gap: 4px; }
.back i { font-family: var(--cond); font-style: normal; font-size: 28px; font-weight: 600; line-height: .8; margin-top: -3px; }
.title { font-family: var(--cond); font-weight: 800; font-size: 34px; line-height: 1.02; margin: 14px 0 0; }
.h {
  font-family: var(--cond); font-weight: 700; font-size: 24px; margin-top: 30px; padding-bottom: 8px;
  border-bottom: var(--rule) solid var(--ink); display: flex; justify-content: space-between; align-items: baseline;
}
.h small { font-family: var(--sans); font-size: 13px; font-weight: 500; color: var(--dim); }
.edge { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); font-variant-numeric: tabular-nums; }
.edge .now { color: var(--now); }
.note { font-size: 13px; color: var(--dim); margin: 10px 0 0; line-height: 1.35; }
.warn { margin: 12px 0 0; font-size: 14px; color: var(--now); }

/* ── ruled rows ── */
.rows { list-style: none; margin: 0; padding: 0; }
.rows li { border-bottom: var(--thin) solid var(--ink); }
.row { display: flex; align-items: center; gap: 14px; padding: 12px 0; min-height: 64px; }
.row:active { opacity: .6; }
.num {
  font-family: var(--cond); font-size: 26px; font-weight: 700; line-height: 1; width: 36px; flex: 0 0 36px;
  text-align: right; color: var(--dim); font-variant-numeric: tabular-nums;
}
.n { flex: 1; min-width: 0; color: var(--ink); }
.n b { display: block; font-size: 19px; font-weight: 600; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.n span { display: block; font-size: 14px; color: var(--dim); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* status marks are shapes: ■ posted · □ listened · ▪ in progress · nothing yet */
.mark { display: block; width: 12px; height: 12px; flex: 0 0 12px; }
.mark.posted { background: var(--ink); }
.mark.listened { border: 2px solid var(--ink); }
.mark.started { width: 6px; height: 6px; flex-basis: 6px; margin: 0 3px; background: var(--dim); }
.kv { list-style: none; margin: 0; padding: 0; }
.kv li { border-bottom: var(--thin) solid var(--ink); }
.kv a, .kv button {
  display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 0; font-size: 17px; font-weight: 600; text-align: left;
}
.kv a:active, .kv button:active { opacity: .6; }
.kv .v { font-weight: 400; color: var(--dim); white-space: nowrap; }
.kv .n { font-weight: 600; }
.chev { font-family: var(--cond); font-size: 26px; font-weight: 600; line-height: .8; }

/* ── the NOW block (Persimmon's Play here) ── */
.block { display: flex; gap: 16px; margin-top: 22px; padding: 16px; background: var(--ink); color: var(--paper); border-radius: 4px; }
.block img, .block .noart { width: 104px; height: 104px; flex: 0 0 104px; display: block; background: #333; object-fit: cover; }
.block .t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.block .edge { color: var(--paper); opacity: .75; }
.block .edge .now { opacity: 1; }
.block b { display: block; font-family: var(--cond); font-weight: 800; font-size: 30px; line-height: 1; margin-top: 6px; }
.block small { display: block; font-size: 15px; font-weight: 500; margin-top: 4px; opacity: .85; }
.block .where { margin-top: auto; padding-top: 8px; display: flex; justify-content: space-between; align-items: center; font-size: 15px; font-weight: 600; }
.block .where i { font-style: normal; font-family: var(--cond); font-size: 30px; font-weight: 600; line-height: .8; }

/* ── the album hero: cover beside the condensed title stack ── */
.hero { display: flex; gap: 18px; margin-top: 16px; align-items: flex-end; }
.hero img, .hero .noart { width: 150px; height: 150px; flex: 0 0 150px; display: block; background: #333; object-fit: cover; }
.hero .t { min-width: 0; }
.hero .t .edge { display: block; margin-bottom: 6px; }
.hero b { display: block; font-family: var(--cond); font-weight: 800; font-size: 40px; line-height: .98; letter-spacing: -.01em; }
.hero b.long { font-size: 30px; }
.hero small { display: block; font-size: 17px; font-weight: 600; margin-top: 6px; }
.status { display: block; margin-top: 14px; }

/* ── the picks ── */
.pick { display: flex; align-items: center; gap: 14px; border-bottom: var(--thin) solid var(--ink); }
.pick .num { color: var(--ink); width: 28px; flex-basis: 28px; }
.pick input, .why textarea {
  flex: 1; min-width: 0; width: 100%; border: 0; background: transparent; color: var(--ink);
  font: 600 19px/1.3 var(--sans); padding: 14px 0; outline: none; border-radius: 0;
}
.pick input::placeholder, .why textarea::placeholder { color: var(--dim); font-weight: 400; }
.why { display: block; padding: 12px 0 6px; border-bottom: var(--thin) solid var(--ink); }
.why .edge { display: block; }
.why textarea { display: block; font-weight: 400; font-size: 17px; padding: 6px 0 8px; resize: none; }

/* ── pills ── */
.actions { display: flex; gap: 12px; margin-top: 26px; }
.btn { flex: 1; height: 54px; border-radius: 999px; font-size: 17px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.btn:active { opacity: .7; }
.btn[disabled], .btn.off { opacity: .35; }
.solid { background: var(--ink); color: var(--paper); }
.ghost { border: var(--rule) solid var(--ink); }

/* ── the post ── */
.count { display: flex; align-items: baseline; gap: 8px; margin-top: 18px; }
.count b { font-family: var(--cond); font-weight: 800; font-size: 64px; line-height: .9; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.count b.over { color: var(--now); }
.postcount b { color: var(--ink); font-variant-numeric: tabular-nums; }
.postcount b.over { color: var(--now); }
.postart { margin: 16px 0 0; display: flex; align-items: flex-end; gap: 12px; }
.postart img { width: 120px; height: 120px; display: block; background: #333; object-fit: cover; }
.count span { font-family: var(--cond); font-size: 24px; font-weight: 600; color: var(--dim); }
.draft {
  margin-top: 16px; padding: 14px 0; border-top: var(--rule) solid var(--ink); border-bottom: var(--thin) solid var(--ink);
  font-size: 17px; line-height: 1.4; white-space: pre-wrap; overflow-wrap: anywhere;
}

.kvrow { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; font-size: 17px; font-weight: 600; }
.top nav { display: flex; gap: 18px; font-size: 16px; font-weight: 600; }

/* ── the tracklist: star three ── */
.tracks li { border-bottom: var(--thin) solid var(--ink); }
.track { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 0; text-align: left; }
.track:active { opacity: .6; }
.track .num { width: 28px; flex-basis: 28px; font-size: 20px; }
.track .n b { font-size: 17px; font-weight: 500; white-space: normal; line-height: 1.2; }
.track.on .n b { font-weight: 700; }
.track .len { font-family: var(--cond); font-size: 16px; font-weight: 500; color: var(--dim); font-variant-numeric: tabular-nums; }
.track .star { width: 28px; flex: 0 0 28px; text-align: right; font-size: 22px; line-height: 1; color: var(--dim); }
.track.on .star { color: var(--ink); }

/* an update is waiting: the word goes yellow, nothing else (Coop, 11/8) */
.upd, .kv button.upd { font-weight: 700; color: var(--alert); }

/* ── Me: the date, the stepper ── */
.kvrow input[type=date] { font: 500 17px var(--sans); color: var(--ink); background: transparent; border: 0; padding: 0; text-align: right; color-scheme: light dark; }
.step { display: inline-flex; align-items: center; }
.step button { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 36px; padding: 0 0 2px; font-family: var(--cond); font-size: 26px; font-weight: 600; line-height: 1; border: var(--thin) solid var(--ink); }
.step b { min-width: 52px; height: 36px; line-height: 36px; text-align: center; font-family: var(--cond); font-size: 26px; font-weight: 700; border-top: var(--thin) solid var(--ink); border-bottom: var(--thin) solid var(--ink); }
.kv .n b { font-size: 17px; }

/* ── the 1–4 rating on a track ── */
.track .n { background: none; border: 0; padding: 0; text-align: left; }
.rate { width: 26px; height: 26px; flex: 0 0 26px; border: var(--thin) solid var(--dim); font-family: var(--cond); font-size: 18px; font-weight: 700; line-height: 1; color: var(--paper); }
.rate.r1, .rate.r2, .rate.r3 { background: var(--ink); border-color: var(--ink); }
.rate.r4 { background: var(--now); border-color: var(--now); color: #fff; }
.rate-row { display: flex; gap: 8px; padding: 0 0 12px 40px; }
.rate-opt { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 6px 0 5px; border: var(--thin) solid var(--ink); }
.rate-opt b { font-family: var(--cond); font-size: 22px; font-weight: 700; line-height: 1; }
.rate-opt span { font-size: 11px; color: var(--dim); margin-top: 3px; white-space: nowrap; }
.rate-opt.sel { background: var(--ink); color: var(--paper); }
.rate-opt.sel span { color: var(--paper); opacity: .8; }
/* My 100 */
.mine .score { display: flex; flex-direction: column; align-items: flex-end; }
.mine .score b { font-family: var(--cond); font-size: 24px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.mine .score span { font-size: 12px; color: var(--dim); margin-top: 2px; white-space: nowrap; }

.hero a { display: block; min-width: 0; }
.hero .t a { display: block; }
.track a.n:active { opacity: .6; }

/* ── sign in: one big field per step ── */
.field { display: block; border-bottom: var(--thin) solid var(--ink); }
.field input {
  display: block; width: 100%; border: 0; background: transparent; color: var(--ink);
  font: 600 22px/1.3 var(--sans); padding: 14px 0; outline: none; border-radius: 0;
}
.field input::placeholder { color: var(--dim); font-weight: 400; }
.field input[disabled] { color: var(--dim); -webkit-text-fill-color: var(--dim); opacity: 1; }
/* Me → Account: the optional link */
.kvrow input[type=url], .kvrow input[type=text] { flex: 1; min-width: 0; text-align: right; border: 0; background: transparent; color: var(--ink); font: 500 16px var(--sans); outline: none; border-radius: 0; }
.kvrow input[type=url]::placeholder, .kvrow input[type=text]::placeholder { color: var(--dim); }
/* the install steps on the sign-in screen */
.steps { margin: 0; padding: 0 0 0 26px; font-size: 16px; line-height: 1.35; }
.steps li { padding: 10px 0; border-bottom: var(--thin) solid var(--ink); }
.steps li::marker { font-family: var(--cond); font-weight: 700; color: var(--dim); }
/* the pitch on the sign-in screen: the icon, a line, four sells */
h2.h { margin: 30px 0 0; }
.pitch { display: flex; gap: 16px; align-items: center; margin-top: 22px; }
.pitch img { width: 144px; height: 144px; flex: 0 0 144px; border-radius: 22%; display: block; }
@media (min-width: 480px) { .pitch img { width: 192px; height: 192px; flex-basis: 192px; } }
.pitch + .title { margin-top: 22px; }
/* the story beside the icon: three beats fade in, one after another (Coop, 11/8: "it tells a story") */
.story { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 9px; }
.story b { font-family: var(--cond); font-weight: 800; font-size: 27px; line-height: .98; letter-spacing: -.01em; }
.story span { font-size: 15px; line-height: 1.3; }
.beat { opacity: 0; transform: translateY(6px); animation: beat .7s ease-out forwards; }
.beat.b1 { animation-delay: .3s; }
.beat.b2 { animation-delay: 1.5s; }
.beat.b3 { animation-delay: 3.2s; }
@keyframes beat { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .beat { animation: none; opacity: 1; transform: none; } }
.sell { list-style: none; margin: 20px 0 0; padding: 0; border-top: var(--rule) solid var(--ink); }
.sell li { display: flex; gap: 14px; align-items: center; padding: 13px 0; border-bottom: var(--thin) solid var(--ink); font-size: 17px; font-weight: 600; line-height: 1.3; }
/* friends */
.mini, .kv button.mini { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: auto; height: 34px; padding: 0 14px; border-radius: 999px; font-size: 14px; font-weight: 700; line-height: 1; }
.mini.solid { background: var(--ink); color: var(--paper); }
.mini.ghost { border: var(--thin) solid var(--ink); }
.mini:active { opacity: .7; }
.pair { display: flex; gap: 8px; }
.kv.friends .v { display: inline-flex; align-items: center; gap: 8px; font-variant-numeric: tabular-nums; }
.kv.friends .mark { display: inline-block; }
.block small.fr { opacity: .75; font-weight: 500; margin-top: 2px; }
.rows .row span.n { font-weight: 400; }
.rows .row .mark { flex: 0 0 12px; }
/* arriving on a friend's link */
.block.invite { margin-top: 18px; }
.block.invite small { opacity: .85; margin-top: 6px; line-height: 1.3; }

/* ── the playlist screen: the coming kinds, a text button ── */
.kvrow.soon { color: var(--dim); font-weight: 500; }
.linkish { font: inherit; color: var(--ink); text-decoration: underline; padding: 0; background: none; border: 0; }

/* ── the tab bar (2026-11-12, proto E1): five tabs, the Extras one wears the covers ── */
#tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; display: flex; justify-content: space-around;
  background: var(--paper); border-top: var(--rule) solid var(--ink);
  padding: 8px max(8px, env(safe-area-inset-right)) calc(env(safe-area-inset-bottom) + 8px) max(8px, env(safe-area-inset-left));
}
#tabs[hidden] { display: none; }
.has-tabs #app { padding-bottom: calc(env(safe-area-inset-bottom) + 110px); }
.tab { position: relative; flex: 1; max-width: 96px; display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; font-weight: 600; color: var(--dim); }
.tab.on { color: var(--ink); font-weight: 800; }
.tab.on::before { content: ''; position: absolute; top: -11px; left: 22%; right: 22%; height: 4px; background: var(--ink); }
.tab svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: square; }
.tab svg .f { fill: currentColor; }
.tab > em, .tab .fan em { position: absolute; top: -4px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--ink); color: var(--paper); font: 700 10.5px/17px var(--sans); font-style: normal; text-align: center; z-index: 6; }
.tab > em { left: 56%; background: var(--now); color: #fff; }
.tab .fan { position: relative; display: block; width: 50px; height: 30px; }
.tab .fan img { position: absolute; bottom: 0; object-fit: cover; box-shadow: 0 0 0 1.5px var(--paper); }
.tab .fan em { right: -8px; }
.tab .fan.empty { width: 30px; border: 2.2px solid currentColor; font: 600 24px/24px var(--cond); text-align: center; }
.actions.pair { margin-top: 18px; }

/* ── Extras: the shelf grid and the search ── */
.shelf { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 10px; padding-top: 16px; }
.shelf > * { min-width: 0; }
.shelf figure { margin: 0; }
.shelf img, .shelf .noart { width: 100%; aspect-ratio: 1; height: auto; object-fit: cover; display: block; background: #333; }
.shelf figcaption { font-size: 12.5px; line-height: 1.25; padding-top: 5px; }
.shelf figcaption b, .shelf figcaption span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shelf figcaption span { color: var(--dim); }
.shelf .add { aspect-ratio: 1; border: 2px solid var(--ink); display: flex; align-items: center; justify-content: center; font: 600 54px/1 var(--cond); padding-bottom: 8px; }
.search { display: block; width: 100%; margin-top: 10px; border: 0; border-bottom: var(--rule) solid var(--ink); border-radius: 0; background: none; color: var(--ink); font: 500 20px var(--sans); padding: 14px 0 10px; outline: none; -webkit-appearance: none; appearance: none; }
.hit { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: var(--thin) solid var(--ink); }
.hit img, .hit .noart { width: 56px; height: 56px; flex: 0 0 56px; object-fit: cover; background: #333; }
.hit .n { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.hit .n b, .hit .n span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hit .n span { font-size: 13px; color: var(--dim); }

/* ── the Holiday 100 (2026-11-12): the banner that announces it, the song rows, the Mine / Everyone switch ── */
.banner { position: relative; display: block; margin-top: 18px; padding: 14px 44px 14px 16px; border: var(--rule) solid var(--ink); border-radius: 4px; }
.banner b { display: block; font-family: var(--cond); font-weight: 800; font-size: 30px; line-height: 1; margin-top: 4px; }
.banner small { display: block; font-size: 14px; margin-top: 5px; color: var(--dim); }
.banner i { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-family: var(--cond); font-style: normal; font-size: 30px; font-weight: 600; }
.banner.fresh { background: var(--xmas); border-color: var(--xmas); color: #fff; }
/* the title as a string of lights: four bulb colours in turn; brighter on the green card and in the dark */
:root { --xmas: #0F6B3C; --l0: #D62828; --l1: #D99A00; --l2: #0F7A43; --l3: #1D6FD6; }
@media (prefers-color-scheme: dark) { :root { --l0: #FF5A4E; --l1: #FFD23F; --l2: #3DDC84; --l3: #6EC6FF; } }
.banner.fresh { --l0: #FF6B5E; --l1: #FFD23F; --l2: #FFFFFF; --l3: #8AD4FF; }
/* on the switch's filled half the ground is ink (paper in the dark), so the bulbs swap sets */
.seg button.on { --l0: #FF5A4E; --l1: #FFD23F; --l2: #3DDC84; --l3: #6EC6FF; }
@media (prefers-color-scheme: dark) { .seg button.on { --l0: #D62828; --l1: #D99A00; --l2: #0F7A43; --l3: #1D6FD6; } }
.lights .l0 { color: var(--l0); } .lights .l1 { color: var(--l1); } .lights .l2 { color: var(--l2); } .lights .l3 { color: var(--l3); }
.banner.fresh .edge, .banner.fresh small { color: #fff; opacity: .92; }
.seg { display: flex; margin-top: 16px; border: var(--thin) solid var(--ink); border-radius: 999px; overflow: hidden; }
.seg button { flex: 1; height: 40px; font-size: 15px; font-weight: 700; }
.seg button.on { background: var(--ink); color: var(--paper); }
.songs .song { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: var(--thin) solid var(--ink); }
.songs .song .num { flex: 0 0 20px; width: 20px; font-family: var(--cond); font-size: 18px; font-weight: 700; color: var(--dim); text-align: right; }
.songs .song img, .songs .song .noart { width: 40px; height: 40px; flex: 0 0 40px; object-fit: cover; background: #333; }
.songs .song .n { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.songs .song .n b { font-size: 15.5px; font-weight: 700; line-height: 1.2; white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.songs .song .n span { font-size: 12.5px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.songs .song .mean { font-family: var(--cond); font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.rate4 { display: flex; gap: 3px; flex: 0 0 auto; }
.rate4 .rate { width: 27px; height: 30px; flex: 0 0 27px; color: var(--dim); }
.rate4 .rate.r1, .rate4 .rate.r2, .rate4 .rate.r3, .rate4 .rate.r4 { color: var(--paper); }
.rate4 .rate.r4 { color: #fff; }

/* ── Friends list: the pencil that opens a nickname field under a friend ── */
.frow { position: relative; }
.frow .row { padding-right: 44px; }
.frow .row .chev { display: none; }
.frow .pencil { position: absolute; right: 0; top: 10px; width: 44px; height: 44px; font-size: 20px; color: var(--dim); }
.frow .nickrow { padding-top: 0; }

