:root { --bg:#000; --fg:#f2f2f2; --dim:#9a9a9a; --line:#2a2a2a; --card:#0d0d0d; --acc:#e8e8e8; --up:#7ddc8a; --down:#f08a8a; }
* { box-sizing:border-box; }
html { background:var(--bg); color:var(--fg); font:16px/1.45 ui-monospace, "SF Mono", Menlo, Consolas, monospace; -webkit-text-size-adjust:100%; }
body { margin:0 auto; max-width:760px; padding:max(14px, env(safe-area-inset-top)) 16px max(24px, env(safe-area-inset-bottom)); }
header h1 { margin:6px 0 2px; font-size:28px; letter-spacing:.02em; }
.sub { margin:0 0 14px; color:var(--dim); }
button { font:inherit; color:var(--fg); background:var(--card); border:1px solid var(--line); border-radius:8px; padding:10px 14px; min-height:44px; cursor:pointer; }
button:hover { border-color:var(--dim); }
button.primary { background:var(--acc); color:#000; border-color:var(--acc); font-weight:600; }
button.like.on { border-color:var(--up); color:var(--up); } button.pass.on { border-color:var(--down); color:var(--down); }
a { color:var(--fg); text-decoration-color:var(--dim); }
.video { aspect-ratio:16 / 9; background:#111; border:1px solid var(--line); border-radius:8px; overflow:hidden; } .video iframe { width:100%; height:100%; display:block; }
.now { padding:10px 0; } .meta { display:flex; flex-direction:column; margin-bottom:8px; } #nowA { color:var(--dim); }
.ctl { display:flex; gap:6px; flex-wrap:wrap; }
.bar { display:flex; align-items:flex-start; justify-content:space-between; gap:10px; margin:6px 0 10px; color:var(--dim); }
.tracks, .plain { list-style:none; margin:0; padding:0; counter-reset:n; }
.tracks > li { counter-increment:n; border-top:1px solid var(--line); }
.tracks > li.playing { background:#111; }
.tracks > li.passed { opacity:.4; }
.row1 { display:flex; align-items:center; gap:10px; padding:10px 4px; cursor:pointer; }
.row1::before { content:counter(n, decimal-leading-zero); color:var(--dim); min-width:2ch; }
.t { flex:1; min-width:0; } .t b { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; } .t span { color:var(--dim); font-size:14px; }
.mini { display:flex; gap:4px; } .mini button { min-height:36px; padding:4px 10px; }
.why { padding:0 4px 12px 4ch; font-size:14px; color:var(--dim); } .why[hidden] { display:none; }
.chips { display:flex; flex-wrap:wrap; gap:6px; margin:4px 0 6px; } .chip { border:1px solid var(--line); border-radius:999px; padding:2px 10px; font-size:13px; color:var(--fg); }
.card { border:1px solid var(--line); border-radius:8px; padding:10px 14px; margin-top:18px; background:var(--card); } .card summary { cursor:pointer; font-weight:600; }
.note { color:var(--dim); font-size:14px; }
table { width:100%; border-collapse:collapse; font-size:13px; } td { border-top:1px solid var(--line); padding:6px 4px; vertical-align:top; } td:first-child { white-space:nowrap; color:var(--fg); } td:nth-child(2) { color:var(--acc); } td.dt { white-space:nowrap; color:var(--dim); } td:last-child { color:var(--dim); } th { text-align:left; font-weight:600; padding:4px; color:var(--dim); font-size:12px; }
.plain li { padding:4px 0; } .row { display:flex; gap:8px; }
footer { margin-top:28px; color:var(--dim); font-size:13px; }
footer a { color:inherit; text-decoration:underline; }
@media (max-width:480px) { .ctl button { flex:1 1 30%; } }
@media (max-width:700px) { #next { display:none; } }
.hero { display:block; width:100vw; max-width:none; margin:calc(-1 * max(14px, env(safe-area-inset-top))) 0 8px calc(50% - 50vw); padding-top:env(safe-area-inset-top); aspect-ratio:768 / 204; border:0; background:#000; box-sizing:content-box; }
.new { border:1px solid var(--fg); border-radius:4px; padding:0 5px; font-size:11px; margin-left:6px; color:var(--fg); vertical-align:middle; }
html { overflow-x:hidden; }
/* audio only: the YouTube player stays loaded (it is the audio source) but is not shown */
.video { position:absolute; left:-9999px; width:200px; height:113px; aspect-ratio:auto; border:0; opacity:0; pointer-events:none; }
/* the now-playing bar and controls stay pinned to the top of the window while the list scrolls */
#stage { display:contents; }
.now { position:sticky; top:0; z-index:10; background:var(--bg); padding-top:max(10px, env(safe-area-inset-top)); border-bottom:1px solid var(--line); }
/* the figures that change as the engine runs: the numbers and the update date */
.hl { color:#5ab0ff; font-weight:600; }
/* "How it works": a panel in the Teenage Engineering manner (flat, ruled, small caps, numbered), in our black / white / blue */
#how { margin-top:10px; font-size:12px; letter-spacing:.06em; text-transform:uppercase; }
.te-sec { display:flex; align-items:center; gap:8px; margin:14px 0 8px; padding-bottom:6px; border-bottom:1px solid var(--line); color:var(--dim); }
.te-tag { display:inline-block; min-width:20px; padding:1px 5px; text-align:center; background:var(--fg); color:#000; border-radius:3px; font-weight:700; }
.te-fn { position:relative; padding-left:calc(var(--pxw) + 12px); } .te-tri { position:absolute; left:0; top:0; display:block; }
.te-labs { display:flex; flex-direction:column; } .te-lab { height:var(--rowh); overflow:hidden; display:grid; grid-template-columns:1fr; grid-template-rows:auto auto auto; column-gap:8px; align-content:center; border-bottom:1px solid var(--line); }
.te-lab:last-child { border-bottom:0; } .te-lab .hl { font-size:20px; letter-spacing:0; line-height:1.1; }
.te-name { color:var(--dim); font-size:10px; line-height:1.2; }
.te-wt { display:flex; flex-direction:column; } .te-wrow { display:grid; grid-template-columns:104px 1fr 58px; gap:8px; align-items:center; padding:5px 0; border-bottom:1px solid var(--line); }
.te-wname { display:flex; flex-direction:column; line-height:1.15; } .te-wname small { color:var(--dim); font-size:9px; text-transform:none; letter-spacing:.02em; }
.te-track { position:relative; height:10px; background:repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 10%); }
.te-track::after { content:""; position:absolute; left:40%; top:-3px; bottom:-3px; width:1px; background:var(--dim); }
.te-track i { position:absolute; top:1px; bottom:1px; } .te-track .pos { background:#5ab0ff; } .te-track .neg { background:var(--fg); }
.te-wrow b { text-align:right; letter-spacing:0; } .te-minus { color:var(--fg); }
.te-foot { display:flex; flex-wrap:wrap; gap:6px 16px; margin-top:12px; padding-top:8px; border-top:1px solid var(--line); color:var(--dim); font-size:11px; }
.pick { color:#5ab0ff; border-color:#5ab0ff; }
.ic { width:1em; height:1em; vertical-align:-.12em; } #play .ic { margin-right:2px; } #next .ic { width:1.1em; height:1.1em; }
.te-sub { display:block; color:var(--dim); font-size:10px; text-transform:none; letter-spacing:.02em; line-height:1.25; }
@media (min-width:700px) { .te-wrow { grid-template-columns:200px 1fr 70px; } .te-wname small { font-size:10px; } }
.te-wt { margin-top:14px; }
.how-up { float:right; font-size:11px; font-weight:400; letter-spacing:.06em; color:var(--dim); margin-top:4px; } .how-up b { color:#5ab0ff; font-weight:600; }
#mine { flex:1; min-width:0; } #mine summary { cursor:pointer; font-weight:600; color:var(--fg); min-height:44px; display:flex; align-items:center; } #mine .row { margin:8px 0 0; }
#seek { -webkit-appearance:none; appearance:none; display:block; width:100%; height:48px; margin:2px 0 0; padding:0; background:transparent; --p:0%; touch-action:none; }
#seek::-webkit-slider-runnable-track { height:2px; background:#555; }
#seek::-moz-range-track { height:2px; background:#555; }
#seek::-webkit-slider-thumb { -webkit-appearance:none; width:24px; height:24px; margin-top:-11px; border-radius:50%; background:#5ab0ff; border:0; }
#seek::-moz-range-thumb { width:24px; height:24px; border-radius:50%; background:#5ab0ff; border:0; }
#seek:disabled { opacity:.35; }
#mine summary { list-style:none; gap:8px; } #mine summary::-webkit-details-marker { display:none; }
#mine summary::before { content:""; width:7px; height:7px; border-right:2px solid var(--fg); border-bottom:2px solid var(--fg); transform:rotate(-45deg); transition:transform .15s; margin:0 4px 0 2px; flex:none; }
#mine[open] summary::before { transform:rotate(45deg); }
#nLikes { color:var(--dim); font-weight:400; }
#play { background:#5ab0ff; color:#000; border-color:#5ab0ff; font-weight:600; }
#rules > summary { font-size:11px; font-weight:400; letter-spacing:.06em; text-transform:uppercase; color:var(--dim); } #rules .how-up { margin-top:0; }
.meta:has(#nowT:empty) { display:none; }
