Skip to content

misterdownloadmanager: The ultimate open-source, clean-room download manager written from scratch in pure Rust for Windows, Mac, and Linux

Website: animated benchmark page, lightbox, download cards

Ahmed Nefzaouif2e199e2c986
diff --git a/website/bench.js b/website/bench.js
index c129665d..e4feb285 100644
--- a/website/bench.js
+++ b/website/bench.js
@@ -30,6 +30,25 @@
if (v >= 1000) return (v / 1000).toFixed(2) + " s";
return (v >= 100 ? v.toFixed(0) : v.toFixed(1)) + " ms";
}
+ var FONT = "Inter, ui-sans-serif, system-ui, sans-serif";
+ var SHORT = { "fast-1g": "1 GiB", "capped-100m": "2 MB/s per connection", "latency-100m": "150 ms latency",
+ "slowconn-32m": "A crawling connection", "maxconns-50m": "2 connections allowed",
+ "drops-50m": "Cut connections", "small-256k": "A small file" };
+ function onView(node, fn, threshold) {
+ if (!("IntersectionObserver" in window)) return fn();
+ var io = new IntersectionObserver(function (es) {
+ if (es[0].isIntersecting) { io.disconnect(); fn(); }
+ }, { threshold: threshold || 0.25 });
+ io.observe(node);
+ }
+ var still = window.matchMedia && window.matchMedia("(prefers-reduced-motion: reduce)").matches;
+ // Bars grow, dots fall in one after another.
+ function motion(extra) {
+ var o = { textStyle: { fontFamily: FONT }, animation: !still, animationDuration: 1100, animationEasing: "cubicOut",
+ animationDurationUpdate: 600, animationEasingUpdate: "cubicInOut" };
+ for (var k in extra) o[k] = extra[k];
+ return o;
+ }
function el(tag, cls, text) {
var e = document.createElement(tag);
if (cls) e.className = cls;
@@ -91,11 +110,12 @@
var clients = ["IDM", "MDM"];
var stats = clients.map(function (c) { return sc.clients[c].stats[metric]; });
+ var far = clients.map(function (c) { return Math.max.apply(null, values(sc, c, metric).concat([0])); });
+ onView(box, function () {
var chart = echarts.init(box, null, { renderer: "svg" });
charts.push(chart);
- chart.setOption({
- animation: false,
- grid: { left: 44, right: 64, top: 8, bottom: 26 },
+ chart.setOption(motion({
+ grid: { left: 44, right: 70, top: 8, bottom: 26 },
xAxis: {
type: "value",
min: 0,
@@ -138,8 +158,8 @@
style: { fill: color, opacity: 0.22 } },
{ type: "rect", shape: { x: xm - 1.5, y: y - h / 2 - 3, width: 3, height: h + 6 },
style: { fill: color } },
- { type: "text", x: Math.max(xm, x3) + 8, y: y,
- style: { text: fmtMs(s.median), fill: p.ink, font: "600 12px Cascadia Mono, Consolas, ui-monospace, monospace",
+ { type: "text", x: Math.max(xm, x3, api.coord([far[i], i])[0]) + 10, y: y,
+ style: { text: fmtMs(s.median), fill: p.ink, font: "600 12px " + FONT,
verticalAlign: "middle", backgroundColor: p.surface, padding: [1, 3], borderRadius: 3 },
z2: 10 },
],
@@ -147,6 +167,7 @@
},
data: [[0], [1]],
z: 1,
+ animationDelay: 500,
},
{
type: "scatter",
@@ -157,8 +178,10 @@
values(sc, "MDM", metric).map(function (v) { return { name: "MDM", value: [v, 1], itemStyle: { color: p.mdm } }; })
),
itemStyle: { opacity: 0.85 },
+ animationDelay: function (i) { return i * 45; },
},
],
+ }));
});
});
}
@@ -171,31 +194,34 @@
var parts = { startup_ms: [], transfer_ms: [], finish_ms: [] };
data.scenarios.forEach(function (sc) {
["IDM", "MDM"].forEach(function (c) {
- cats.push(c + " · " + sc.id);
+ cats.push((SHORT[sc.id] || sc.id) + " · " + c);
Object.keys(parts).forEach(function (m) {
var s = sc.clients[c].stats[m];
parts[m].push(s ? Math.max(0, s.median) : 0);
});
});
});
+ onView(box, function () {
var chart = echarts.init(box, null, { renderer: "svg" });
charts.push(chart);
var names = { startup_ms: "Startup (command → first request)", transfer_ms: "Transfer (first request → last byte)",
finish_ms: "Finish (last byte → file ready)" };
var colors = { startup_ms: p.startup, transfer_ms: p.transfer, finish_ms: p.finish };
- chart.setOption({
- animation: false,
+ chart.setOption(motion({
legend: { top: 0, textStyle: { color: p.ink2 }, itemWidth: 12, itemHeight: 12 },
- grid: { left: 150, right: 30, top: 40, bottom: 30 },
+ grid: { left: 190, right: 40, top: 44, bottom: 30 },
tooltip: { trigger: "axis", axisPointer: { type: "shadow" },
valueFormatter: function (v) { return fmtMs(v); } },
xAxis: { type: "log", logBase: 10, min: 1, axisLabel: { color: p.ink3, formatter: function (v) { return fmtMs(v); } },
- splitLine: { lineStyle: { color: p.line } }, name: "ms, log scale", nameTextStyle: { color: p.ink3 } },
+ splitLine: { lineStyle: { color: p.line } } },
yAxis: { type: "category", data: cats, inverse: true,
axisLabel: { color: p.ink2, fontSize: 11 }, axisLine: { lineStyle: { color: p.line } }, axisTick: { show: false } },
series: Object.keys(parts).map(function (m) {
- return { name: names[m], type: "bar", stack: "t", data: parts[m], itemStyle: { color: colors[m] }, barWidth: 12 };
+ return { name: names[m], type: "bar", stack: "t", data: parts[m], barWidth: 12,
+ itemStyle: { color: colors[m], borderRadius: m === "finish_ms" ? [0, 3, 3, 0] : 0 },
+ animationDelay: function (i) { return i * 60 + (m === "transfer_ms" ? 250 : m === "finish_ms" ? 500 : 0); } };
}),
+ }));
});
}
@@ -203,20 +229,21 @@
function drawResources() {
var box = root.querySelector("[data-bench-res]");
var p = palette();
- var ids = data.scenarios.map(function (s) { return s.id; });
+ var ids = data.scenarios.map(function (s) { return SHORT[s.id] || s.id; });
var med = function (c, m) {
return data.scenarios.map(function (s) { var st = s.clients[c].stats[m]; return st ? st.median : null; });
};
+ onView(box, function () {
var chart = echarts.init(box, null, { renderer: "svg" });
charts.push(chart);
- chart.setOption({
- animation: false,
+ var first = function (i) { return i * 80; }, second = function (i) { return 600 + i * 80; };
+ chart.setOption(motion({
legend: { top: 0, textStyle: { color: p.ink2 } },
tooltip: { trigger: "axis" },
grid: [{ left: 60, right: 20, top: 40, height: "32%" }, { left: 60, right: 20, top: "60%", height: "30%" }],
xAxis: [
{ type: "category", data: ids, gridIndex: 0, axisLabel: { show: false }, axisLine: { lineStyle: { color: p.line } } },
- { type: "category", data: ids, gridIndex: 1, axisLabel: { color: p.ink2, fontSize: 10, rotate: 20 },
+ { type: "category", data: ids, gridIndex: 1, axisLabel: { color: p.ink2, fontSize: 11, interval: 0, width: 120, overflow: "break" },
axisLine: { lineStyle: { color: p.line } } },
],
yAxis: [
@@ -226,11 +253,12 @@
axisLabel: { color: p.ink3 }, splitLine: { lineStyle: { color: p.line } } },
],
series: [
- { name: "IDM", type: "bar", data: med("IDM", "cpu_ms"), itemStyle: { color: p.idm }, xAxisIndex: 0, yAxisIndex: 0 },
- { name: "MDM", type: "bar", data: med("MDM", "cpu_ms"), itemStyle: { color: p.mdm }, xAxisIndex: 0, yAxisIndex: 0 },
- { name: "IDM", type: "bar", data: med("IDM", "peak_ws_mb"), itemStyle: { color: p.idm }, xAxisIndex: 1, yAxisIndex: 1 },
- { name: "MDM", type: "bar", data: med("MDM", "peak_ws_mb"), itemStyle: { color: p.mdm }, xAxisIndex: 1, yAxisIndex: 1 },
+ { name: "IDM", type: "bar", data: med("IDM", "cpu_ms"), itemStyle: { color: p.idm, borderRadius: [3, 3, 0, 0] }, xAxisIndex: 0, yAxisIndex: 0, animationDelay: first },
+ { name: "MDM", type: "bar", data: med("MDM", "cpu_ms"), itemStyle: { color: p.mdm, borderRadius: [3, 3, 0, 0] }, xAxisIndex: 0, yAxisIndex: 0, animationDelay: first },
+ { name: "IDM", type: "bar", data: med("IDM", "peak_ws_mb"), itemStyle: { color: p.idm, borderRadius: [3, 3, 0, 0] }, xAxisIndex: 1, yAxisIndex: 1, animationDelay: second },
+ { name: "MDM", type: "bar", data: med("MDM", "peak_ws_mb"), itemStyle: { color: p.mdm, borderRadius: [3, 3, 0, 0] }, xAxisIndex: 1, yAxisIndex: 1, animationDelay: second },
],
+ }));
});
}
@@ -282,9 +310,113 @@
}
}
+ function final(sc) { return sc.compare && !sc.provisional; }
+ var raceDone = false;
+ function drawRace() {
+ var box = document.querySelector("[data-race-src]");
+ if (!box || raceDone || !window.mdmRace) return;
+ raceDone = true;
+ var races = data.scenarios.filter(final).map(function (sc) {
+ var ph = function (c) {
+ var st = sc.clients[c].stats;
+ return ["startup_ms", "transfer_ms", "finish_ms"].map(function (m) { return Math.max(1, st[m] ? st[m].median : 0); });
+ };
+ var two = sc.id === "maxconns-50m";
+ return { tab: SHORT[sc.id] || sc.title, note: sc.title + ".", mdm: ph("MDM"), idm: ph("IDM"),
+ e2e: [sc.clients.MDM.stats.e2e_ms.median, sc.clients.IDM.stats.e2e_ms.median],
+ ratio: sc.compare.ratio_idm_over_mdm, conns: two ? [2, 2] : [8, 8] };
+ });
+ window.mdmRace(box, races);
+ }
+
+ // Speed-up per scenario: a bar from 1x on a log scale, its 95% interval, a counter.
+ function fmtRatio(v) { return (v >= 10 ? Math.round(v) : v.toFixed(v < 2 ? 2 : 1)) + "\u00d7"; }
+ function countUp(node, to, ms, delay) {
+ if (still) { node.textContent = fmtRatio(to); return; }
+ setTimeout(function () {
+ var t0 = performance.now();
+ (function step(now) {
+ var k = Math.min(1, (now - t0) / ms), e = 1 - Math.pow(1 - k, 3);
+ // Grows on the same log scale as the bar beside it.
+ node.textContent = fmtRatio(Math.exp(Math.log(to) * e));
+ if (k < 1) requestAnimationFrame(step);
+ })(t0);
+ }, delay);
+ }
+ function drawSpeedup() {
+ var box = document.querySelector("[data-speedup]");
+ if (!box || box.childNodes.length) return;
+ var top = 200, lg = function (v) { return Math.log(Math.max(1, v)) / Math.log(top); };
+ var rows = data.scenarios.filter(final)
+ .sort(function (a, b) { return b.compare.ratio_idm_over_mdm - a.compare.ratio_idm_over_mdm; });
+ var axis = el("div", "su-axis");
+ [1, 2, 5, 10, 20, 50, 100, 200].forEach(function (v) {
+ var t = el("span", null, v + "\u00d7"); t.style.left = (lg(v) * 100) + "%"; axis.appendChild(t);
+ });
+ box.appendChild(axis);
+ var nums = [];
+ rows.forEach(function (sc, i) {
+ var c = sc.compare, row = el("div", "su-row");
+ row.style.setProperty("--d", (i * 110) + "ms");
+ var name = el("div", "su-name");
+ name.appendChild(el("b", null, SHORT[sc.id] || sc.title));
+ name.appendChild(el("small", null, sc.title));
+ var track = el("div", "su-track");
+ var bar = el("i", "su-bar"); bar.style.setProperty("--w", (lg(c.ratio_idm_over_mdm) * 100) + "%");
+ var ci = el("i", "su-ci");
+ ci.style.left = (lg(c.ratio_ci95[0]) * 100) + "%";
+ ci.style.width = Math.max(0.4, (lg(c.ratio_ci95[1]) - lg(c.ratio_ci95[0])) * 100) + "%";
+ [2, 5, 10, 20, 50, 100].forEach(function (v) {
+ var t = el("i", "su-tick"); t.style.left = (lg(v) * 100) + "%"; track.appendChild(t);
+ });
+ track.appendChild(bar); track.appendChild(ci);
+ var val = el("div", "su-val"), num = el("b", null, "1.00\u00d7");
+ val.appendChild(num);
+ val.appendChild(el("small", null, "p " + (c.mann_whitney_p < 0.001 ? "< 0.001" : c.mann_whitney_p)));
+ row.appendChild(name); row.appendChild(track); row.appendChild(val);
+ box.appendChild(row);
+ nums.push([num, c.ratio_idm_over_mdm]);
+ });
+ onView(box, function () {
+ box.classList.add("in");
+ nums.forEach(function (n, i) { countUp(n[0], n[1], 1300, i * 110); });
+ }, 0.2);
+ }
+
+ // The server that allows two connections: one square per connection it saw (median run).
+ function drawConns() {
+ var box = document.querySelector("[data-conns]");
+ if (!box || box.getAttribute("data-done")) return;
+ var sc = data.scenarios.filter(function (s) { return s.id === "maxconns-50m"; })[0];
+ if (!sc) return;
+ box.setAttribute("data-done", "1");
+ var n = { mdm: Math.round(sc.clients.MDM.stats.connections.median), idm: Math.round(sc.clients.IDM.stats.connections.median) };
+ Object.keys(n).forEach(function (k) {
+ var grid = box.querySelector('[data-conn-grid="' + k + '"]');
+ for (var i = 0; i < n[k]; i++) { var q = el("i"); q.style.setProperty("--i", i); grid.appendChild(q); }
+ });
+ onView(box, function () {
+ box.classList.add("in");
+ Object.keys(n).forEach(function (k) {
+ var out = box.querySelector('[data-conn-count="' + k + '"]');
+ if (still) { out.textContent = n[k]; return; }
+ // Squares appear 6 ms apart (the CSS delay); the counter keeps pace with them.
+ var t0 = performance.now(), ms = Math.max(300, n[k] * 6);
+ (function step(now) {
+ var v = Math.min(n[k], Math.ceil((now - t0) / ms * n[k]));
+ out.textContent = v;
+ if (v < n[k]) requestAnimationFrame(step);
+ })(t0);
+ });
+ }, 0.3);
+ }
+
function drawAll() {
if (!data || !window.echarts) return;
dispose();
+ drawRace();
+ drawSpeedup();
+ drawConns();
drawStatus();
drawScenarios();
drawPhases();
diff --git a/website/benchmark.html b/website/benchmark.html
index 12d2387c..7ff5058d 100644
--- a/website/benchmark.html
+++ b/website/benchmark.html
@@ -39,21 +39,51 @@
</div>
</section>
- <section class="sec tight flush">
+ <section class="sec tight flush" aria-labelledby="race-title">
<div class="wrap">
- <div class="stats">
- <article class="stat">
- <p class="num"><span class="grad">5.4×</span><small>faster on 1 GiB</small></p>
- <p>1.0 s against IDM 6.42's 5.5 s over a fast link.</p>
- </article>
- <article class="stat">
- <p class="num"><span class="grad">106×</span><small>on a 256 KiB file</small></p>
- <p>30 ms against 3.1 s, nearly all of it before IDM's first request.</p>
- </article>
- <article class="stat">
- <p class="num"><span class="grad">2</span><small>connections, not 480</small></p>
- <p>On a server that allows two, MDM keeps to two and still finishes first.</p>
- </article>
+ <h2 id="race-title" class="sr-only">The race</h2>
+ <div class="race" data-race data-race-src>
+ <div class="race-head">
+ <div class="race-tabs" role="tablist" aria-label="Benchmark scenario"></div>
+ <button class="race-replay" type="button" data-race-replay aria-label="Replay" title="Replay"><svg aria-hidden="true" viewBox="0 0 24 24"><path fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" d="M4 12a8 8 0 1 0 2.4-5.7M4 4v4h4"/></svg></button>
+ </div>
+ <div class="lane" data-lane="mdm">
+ <div class="lane-name"><img src="/assets/logo-64.png" width="22" height="22" alt=""><b>Mister Download Manager</b></div>
+ <div class="lane-bar"><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i></div>
+ <div class="lane-time"><span data-time>0.00 s</span><small data-state>Ready</small></div>
+ </div>
+ <div class="lane idm" data-lane="idm">
+ <div class="lane-name"><span class="lane-dot"></span><b>Internet Download Manager 6.42</b></div>
+ <div class="lane-bar"><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i></div>
+ <div class="lane-time"><span data-time>0.00 s</span><small data-state>Ready</small></div>
+ </div>
+ <div class="race-foot">
+ <p class="race-big"><span data-ratio>1.0×</span><small data-ratio-label>faster</small></p>
+ <p class="race-note" data-note>Played in real time from the medians.</p>
+ </div>
+ </div>
+ </div>
+ </section>
+
+ <section class="sec" id="speedup" aria-labelledby="speedup-title">
+ <div class="wrap">
+ <div class="sec-center">
+ <h2 id="speedup-title">Faster in every scenario.</h2>
+ <p>How many times faster MDM finished, from command to finished file. The whisker is the 95% interval of the ratio; the scale is logarithmic.</p>
+ </div>
+ <div class="speedup" data-speedup></div>
+ </div>
+ </section>
+
+ <section class="sec" id="connections" aria-labelledby="conn-title">
+ <div class="wrap">
+ <div class="sec-center">
+ <h2 id="conn-title">480 connections against 2.</h2>
+ <p>A server that allows two connections at a time. Every square is one connection it saw in a typical run.</p>
+ </div>
+ <div class="conn-race" data-conns>
+ <div class="conn-col"><div class="conn-head"><img src="/assets/logo-64.png" width="22" height="22" alt=""><b>MDM</b><span data-conn-count="mdm">0</span></div><div class="conn-grid" data-conn-grid="mdm"></div><p>Learns the limit from the server's answer, keeps to it, and remembers it for next time. Finished in 12.6 s.</p></div>
+ <div class="conn-col idm"><div class="conn-head"><span class="lane-dot"></span><b>IDM 6.42</b><span data-conn-count="idm">0</span></div><div class="conn-grid" data-conn-grid="idm"></div><p>Retried about 250 times a second against the refusals. Finished in 15.9 s.</p></div>
</div>
</div>
</section>
@@ -62,7 +92,7 @@
<div class="wrap">
<div class="sec-head">
<h2 id="bench-title">Every run is a dot.</h2>
- <p>Seven downloads, each run at least seven times by both apps.</p>
+ <p>Seven downloads, each run at least seven times by both apps. The bar is the middle half of the runs, the line the median.</p>
</div>
<div class="bench-switch" role="group" aria-label="What to compare">
<button type="button" data-metric="transfer_ms" aria-pressed="true">Transfer: first request to last byte</button>
@@ -73,6 +103,7 @@
<div class="bench-grid" data-bench-grid></div>
<h3 class="bench-h">Where the time goes</h3>
+ <p class="fine">Median startup (command to first request), transfer and finish of each app, per scenario.</p>
<div class="bench-wide" data-bench-phases></div>
<h3 class="bench-h">What it costs the computer</h3>
diff --git a/website/download.html b/website/download.html
index 575a827c..1e532807 100644
--- a/website/download.html
+++ b/website/download.html
@@ -37,41 +37,40 @@
</div>
</section>
- <section class="download" style="padding-top:48px">
+ <section class="sec flush" style="padding-top:48px">
<div class="wrap">
- <div class="os-cards">
- <article class="os-card" id="windows" data-os="windows" data-href="{{FILE_SETUP}}" data-label="Download for Windows" data-sub="Free · 64-bit · Windows 10 and 11">
- <svg class="os-big" aria-hidden="true"><use href="#os-windows"/></svg>
- <h2 class="h3like">Windows</h2>
- <span class="tag stable">Windows 10 and 11 · 64-bit</span>
- <ul class="files">
- <li><a href="{{FILE_SETUP}}"><code>setup.exe</code></a> — recommended: installs MDM, connects your browser, asks your language</li>
- <li><a href="{{FILE_PORTABLE}}"><code>portable.zip</code></a> — unzip anywhere, a USB stick too; everything stays in its folder</li>
- <li><a href="{{FILE_ZIP}}"><code>x64.zip</code></a> — the programs without an installer</li>
- </ul>
- <a class="btn btn-primary" href="{{FILE_SETUP}}"><svg class="os-ico" aria-hidden="true"><use href="#os-windows"/></svg> Download the installer</a>
+ <div class="plans os-cards">
+ <article class="plan os-card" id="windows" data-os="windows" data-href="{{FILE_SETUP}}" data-label="Download for Windows">
+ <header><h2 class="h3like"><svg class="os-ico" aria-hidden="true"><use href="#os-windows"/></svg> Windows</h2><span class="plan-tag">10 and 11 · 64-bit</span></header>
+ <div class="plan-tags"><span class="tag stable">Stable</span><span class="tag">Recommended</span></div>
+ <span class="label">Files</span>
+ <dl>
+ <div><dt><a href="{{FILE_SETUP}}">setup.exe</a></dt><dd>Installs MDM, connects your browsers, asks your language</dd></div>
+ <div><dt><a href="{{FILE_PORTABLE}}">portable.zip</a></dt><dd>Unzip anywhere, a USB stick too; everything stays in its folder</dd></div>
+ <div><dt><a href="{{FILE_ZIP}}">x64.zip</a></dt><dd>The programs without an installer</dd></div>
+ </dl>
+ <a class="btn btn-primary btn-h11" href="{{FILE_SETUP}}"><svg class="os-ico" aria-hidden="true"><use href="#os-windows"/></svg> Download the installer</a>
</article>
- <article class="os-card" id="macos" data-os="macos" data-href="{{FILE_DMG}}" data-label="Download for macOS" data-sub="Free · Apple Silicon and Intel · experimental">
- <svg class="os-big" aria-hidden="true"><use href="#os-macos"/></svg>
- <h2 class="h3like">macOS</h2>
- <span class="tag try">Experimental · Apple Silicon and Intel</span>
- <ul class="files">
- <li><a href="{{FILE_DMG}}"><code>.dmg</code></a> — one universal download for every Mac</li>
- <li>Not notarized by Apple yet: the first time, right-click the app and choose Open (macOS 15 and later: System Settings → Privacy &amp; Security → Open Anyway)</li>
- </ul>
- <a class="btn btn-primary" href="{{FILE_DMG}}"><svg class="os-ico" aria-hidden="true"><use href="#os-macos"/></svg> Download for Mac</a>
+ <article class="plan os-card" id="macos" data-os="macos" data-href="{{FILE_DMG}}" data-label="Download for macOS">
+ <header><h2 class="h3like"><svg class="os-ico" aria-hidden="true"><use href="#os-macos"/></svg> macOS</h2><span class="plan-tag">11 and later</span></header>
+ <div class="plan-tags"><span class="tag try">Experimental</span></div>
+ <span class="label">Files</span>
+ <dl>
+ <div><dt><a href="{{FILE_DMG}}">.dmg</a></dt><dd>One universal download for Apple Silicon and Intel</dd></div>
+ <div><dt>First start</dt><dd>Not notarized by Apple yet: right-click the app and choose Open (macOS 15 and later: System Settings → Privacy &amp; Security → Open Anyway)</dd></div>
+ </dl>
+ <a class="btn btn-primary btn-h11" href="{{FILE_DMG}}"><svg class="os-ico" aria-hidden="true"><use href="#os-macos"/></svg> Download for Mac</a>
</article>
- <article class="os-card" id="linux" data-os="linux" data-href="{{FILE_APPIMAGE}}" data-label="Download for Linux" data-sub="Free · AppImage, .deb, .rpm · experimental">
- <svg class="os-big" aria-hidden="true"><use href="#os-linux"/></svg>
- <h2 class="h3like">Linux</h2>
- <span class="tag try">Experimental · x86-64</span>
- <ul class="files">
- <li><a href="{{FILE_APPIMAGE}}"><code>.AppImage</code></a> — any distribution: make it executable and run it</li>
- <li><a href="{{FILE_DEB}}"><code>.deb</code></a> — Debian, Ubuntu, Linux Mint, Pop!_OS</li>
- <li><a href="{{FILE_RPM}}"><code>.rpm</code></a> — Fedora, openSUSE, RHEL</li>
- <li><a href="{{FILE_TAR}}"><code>.tar.gz</code></a> — the programs, to unpack anywhere</li>
- </ul>
- <a class="btn btn-primary" href="{{FILE_APPIMAGE}}"><svg class="os-ico" aria-hidden="true"><use href="#os-linux"/></svg> Download the AppImage</a>
+ <article class="plan os-card" id="linux" data-os="linux" data-href="{{FILE_APPIMAGE}}" data-label="Download for Linux">
+ <header><h2 class="h3like"><svg class="os-ico" aria-hidden="true"><use href="#os-linux"/></svg> Linux</h2><span class="plan-tag">x86-64</span></header>
+ <div class="plan-tags"><span class="tag try">Experimental</span></div>
+ <span class="label">Files</span>
+ <dl>
+ <div><dt><a href="{{FILE_APPIMAGE}}">.AppImage</a></dt><dd>Any distribution: make it executable and run it</dd></div>
+ <div><dt><a href="{{FILE_DEB}}">.deb</a> · <a href="{{FILE_RPM}}">.rpm</a></dt><dd>Debian, Ubuntu, Mint · Fedora, openSUSE, RHEL</dd></div>
+ <div><dt><a href="{{FILE_TAR}}">.tar.gz</a></dt><dd>The programs, to unpack anywhere</dd></div>
+ </dl>
+ <a class="btn btn-primary btn-h11" href="{{FILE_APPIMAGE}}"><svg class="os-ico" aria-hidden="true"><use href="#os-linux"/></svg> Download the AppImage</a>
</article>
</div>
<p class="fine" data-mobile-note hidden>It's a desktop app: open this page on your computer to download it.</p>
@@ -83,7 +82,7 @@
</div>
</section>
- <div class="wrap narrow prose" style="padding:0 24px 96px">
+ <div class="wrap narrow prose" style="padding:24px 20px 96px">
<h2 id="extension">The browser extension</h2>
<p>It hands your browser's downloads to MDM with their cookies, adds <b>Download with Mister Download Manager</b> to the right-click menu and puts a <b>Download video</b> button over videos. It comes with the app, in its <code>extension</code> folder, and on its own:</p>
<ul>
diff --git a/website/idm-alternative.html b/website/idm-alternative.html
index e91f2ef3..9ef7a2cb 100644
--- a/website/idm-alternative.html
+++ b/website/idm-alternative.html
@@ -42,7 +42,7 @@
</section>
<div class="wrap narrow prose" style="padding:40px 24px 96px">
- <figure class="window" style="margin:0 0 8px"><img class="for-light" src="/assets/screens/main-light.webp" width="930" height="485" alt="Mister Download Manager's main window: the classic layout with toolbar, categories and download list."><img class="for-dark" src="/assets/screens/main-dark.webp" width="930" height="485" alt="Mister Download Manager's main window in night mode."></figure>
+ <figure class="window" style="margin:0 0 8px" data-lightbox><img class="for-light" src="/assets/screens/main-light.webp" width="930" height="485" alt="Mister Download Manager's main window: the classic layout with toolbar, categories and download list."><img class="for-dark" src="/assets/screens/main-dark.webp" width="930" height="485" alt="Mister Download Manager's main window in night mode."></figure>
<h2>Why people switch</h2>
<ul>
diff --git a/website/index.html b/website/index.html
index 548c9107..6fa54a2a 100644
--- a/website/index.html
+++ b/website/index.html
@@ -72,7 +72,7 @@
<p class="hero-sub">The free, open-source IDM alternative. Every connection at once, crash-safe resume, torrents and video in one list. Windows 10 and 11; <a href="/download.html#macos">macOS</a> and <a href="/download.html#linux">Linux</a> to try.</p>
</div>
- <figure class="hero-mock">
+ <figure class="hero-mock" data-lightbox>
<div class="device">
<span class="device-cam"></span>
<div class="device-screen">
@@ -92,7 +92,7 @@
<h2 id="features-title">Every window, rebuilt.</h2>
<p>The one you know, down to the pixel. With torrents, video and 86 languages it never had.</p>
</div>
- <div class="gallery">
+ <div class="gallery" data-lightbox>
<div class="g-row">
<figure class="g-item" style="--gw:548">
<div class="g-shot"><img class="for-light" src="/assets/screens/progress-light.webp" width="548" height="427" loading="lazy" alt="The download progress window: a file at 49 percent over eight connections."><img class="for-dark" src="/assets/screens/progress-dark.webp" width="548" height="427" loading="lazy" alt="The download progress window: a file at 49 percent over eight connections."></div>
@@ -150,7 +150,7 @@
<button type="button" role="tab" aria-selected="false" data-scenario="1">A small file</button>
<button type="button" role="tab" aria-selected="false" data-scenario="2">Server allows 2 connections</button>
</div>
- <button class="race-replay" type="button" data-race-replay><svg aria-hidden="true" viewBox="0 0 24 24"><path fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" d="M4 12a8 8 0 1 0 2.4-5.7M4 4v4h4"/></svg>Replay</button>
+ <button class="race-replay" type="button" data-race-replay aria-label="Replay" title="Replay"><svg aria-hidden="true" viewBox="0 0 24 24"><path fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" d="M4 12a8 8 0 1 0 2.4-5.7M4 4v4h4"/></svg></button>
</div>
<div class="lane" data-lane="mdm">
<div class="lane-name"><img src="/assets/logo-64.png" width="22" height="22" alt=""><b>Mister Download Manager</b></div>
diff --git a/website/main.js b/website/main.js
index 7aab0adb..eebc94c5 100644
--- a/website/main.js
+++ b/website/main.js
@@ -50,8 +50,20 @@
{ label: "faster", note: "A server that allows two connections. MDM learns it and keeps to two; IDM opened 480.",
mdm: [14, 12546, 9], idm: [3069, 12733, 48], e2e: [12568, 15864], ratio: 1.26, conns: [2, 2] }
];
- each("[data-race]", function (box) {
+ // mdmRace(box, races): sets up one race box; the benchmark page calls it with every scenario
+ // from bench/results.json and fills in the tabs itself (data-race-src).
+ window.mdmRace = function (box, RACES) {
var lanes = { mdm: box.querySelector('[data-lane="mdm"]'), idm: box.querySelector('[data-lane="idm"]') };
+ var tabList = box.querySelector(".race-tabs");
+ if (!tabList.children.length) {
+ RACES.forEach(function (r, k) {
+ var t = document.createElement("button");
+ t.type = "button"; t.setAttribute("role", "tab"); t.setAttribute("data-scenario", k);
+ t.setAttribute("aria-selected", k ? "false" : "true");
+ t.textContent = r.tab;
+ tabList.appendChild(t);
+ });
+ }
var tabs = box.querySelectorAll("[data-scenario]");
var ratioEl = box.querySelector("[data-ratio]"), noteEl = box.querySelector("[data-note]");
var frame = 0, current = 0;
@@ -114,7 +126,8 @@
}, { threshold: 0.4 });
seen.observe(box);
} else run(0);
- });
+ };
+ each("[data-race]:not([data-race-src])", function (box) { window.mdmRace(box, RACES); });
// ---- Hello in the app's languages: each word written in, its chip lit -----------------------
var stage = document.querySelector("[data-hello]");
@@ -144,6 +157,189 @@
}, 2600);
}
+ // ---- Lightbox: any screenshot, big ----------------------------------------------------------
+ // Images in [data-lightbox] groups (and every screenshot in a help article) open over the page
+ // at their full resolution, fitted to the screen. Click or double-click switches to real pixels
+ // (drag or scroll to look around, the wheel zooms), arrows and swipes go through the group,
+ // Escape or the backdrop closes. The day or night version shown on the page is the one opened.
+ (function () {
+ function visible(img) { return img.offsetParent !== null || img.getClientRects().length > 0; }
+ function groupOf(img) {
+ var g = img.closest("[data-lightbox]") || img.closest(".prose");
+ if (!g) return [img];
+ return Array.prototype.filter.call(g.querySelectorAll("img"), function (i) {
+ return !i.closest(".lb-skip") && (visible(i) || i === img) && i.naturalWidth > 120;
+ });
+ }
+ function caption(img) {
+ var fig = img.closest("figure");
+ var cap = fig && fig.querySelector("figcaption");
+ if (!cap) return img.alt || "";
+ // "Title · what it shows" when the caption leads with a bold title.
+ var b = cap.querySelector("b");
+ var all = cap.textContent.replace(/\s+/g, " ").trim();
+ if (!b) return all;
+ var t = b.textContent.trim();
+ return all.indexOf(t) === 0 && all.length > t.length ? t + " · " + all.slice(t.length).trim() : all;
+ }
+ var box, stage, pic, capEl, countEl, prevB, nextB, list = [], at = 0, zoomed = false, opener = null;
+ var scale = 1, fit = 1, tx = 0, ty = 0, drag = null, moved = false;
+
+ function build() {
+ box = document.createElement("div");
+ box.className = "lb";
+ box.setAttribute("role", "dialog");
+ box.setAttribute("aria-modal", "true");
+ box.setAttribute("aria-label", "Image viewer");
+ box.innerHTML =
+ '<div class="lb-stage"><img class="lb-pic" alt=""></div>' +
+ '<div class="lb-bar"><span class="lb-count"></span><p class="lb-cap"></p>' +
+ '<span class="lb-hint">Click to zoom · drag to move</span>' +
+ '<button type="button" class="lb-btn lb-close" aria-label="Close"><svg viewBox="0 0 24 24" aria-hidden="true"><path d="M6 6l12 12M18 6 6 18"/></svg></button></div>' +
+ '<button type="button" class="lb-btn lb-nav lb-prev" aria-label="Previous image"><svg viewBox="0 0 24 24" aria-hidden="true"><path d="M15 5l-7 7 7 7"/></svg></button>' +
+ '<button type="button" class="lb-btn lb-nav lb-next" aria-label="Next image"><svg viewBox="0 0 24 24" aria-hidden="true"><path d="M9 5l7 7-7 7"/></svg></button>';
+ document.body.appendChild(box);
+ stage = box.querySelector(".lb-stage");
+ pic = box.querySelector(".lb-pic");
+ capEl = box.querySelector(".lb-cap");
+ countEl = box.querySelector(".lb-count");
+ prevB = box.querySelector(".lb-prev");
+ nextB = box.querySelector(".lb-next");
+ box.querySelector(".lb-close").addEventListener("click", close);
+ prevB.addEventListener("click", function () { go(-1); });
+ nextB.addEventListener("click", function () { go(1); });
+ // The backdrop closes; the picture zooms.
+ stage.addEventListener("click", function (e) {
+ if (moved) { moved = false; return; }
+ if (e.target !== pic) return close();
+ zoomAt(zoomed ? null : e);
+ });
+ stage.addEventListener("wheel", function (e) {
+ e.preventDefault();
+ var r = pic.getBoundingClientRect();
+ var k = Math.exp(-e.deltaY * 0.0015);
+ var next = Math.max(fit, Math.min(4, scale * k));
+ // Keep the point under the pointer where it is.
+ var px = e.clientX - (r.left + r.width / 2), py = e.clientY - (r.top + r.height / 2);
+ tx -= px * (next / scale - 1); ty -= py * (next / scale - 1);
+ scale = next; zoomed = scale > fit * 1.01;
+ if (!zoomed) { tx = ty = 0; }
+ apply();
+ }, { passive: false });
+ stage.addEventListener("pointerdown", function (e) {
+ if (e.target !== pic) return;
+ drag = { x: e.clientX, y: e.clientY, tx: tx, ty: ty, id: e.pointerId };
+ moved = false;
+ });
+ window.addEventListener("pointermove", function (e) {
+ if (!drag || drag.id !== e.pointerId) return;
+ var dx = e.clientX - drag.x, dy = e.clientY - drag.y;
+ if (Math.abs(dx) + Math.abs(dy) > 6) moved = true;
+ if (zoomed) { tx = drag.tx + dx; ty = drag.ty + dy; apply(); }
+ else pic.style.transform = "translateX(" + dx + "px) scale(" + scale + ")";
+ });
+ window.addEventListener("pointerup", function (e) {
+ if (!drag || drag.id !== e.pointerId) return;
+ var dx = e.clientX - drag.x;
+ drag = null;
+ // A swipe at the fitted size goes to the next or previous image.
+ if (!zoomed && moved && Math.abs(dx) > 60 && list.length > 1) go(dx < 0 ? 1 : -1);
+ else apply();
+ });
+ // Keys work wherever the focus is while the viewer is open (a click on the picture moves it).
+ document.addEventListener("keydown", function (e) {
+ if (!box.classList.contains("open")) return;
+ if (e.key === "Escape") { e.preventDefault(); close(); }
+ else if (e.key === "ArrowRight") { e.preventDefault(); go(1); }
+ else if (e.key === "ArrowLeft") { e.preventDefault(); go(-1); }
+ else if (e.key === "+" || e.key === "=") zoomAt(null, true);
+ else if (e.key === "-" || e.key === "0") { zoomed = false; scale = fit; tx = ty = 0; apply(); }
+ else if (e.key === "Tab") {
+ // Focus stays in the viewer.
+ var f = box.querySelectorAll("button:not([hidden])");
+ var first = f[0], last = f[f.length - 1];
+ if (e.shiftKey && document.activeElement === first) { e.preventDefault(); last.focus(); }
+ else if (!e.shiftKey && document.activeElement === last) { e.preventDefault(); first.focus(); }
+ }
+ });
+ window.addEventListener("resize", function () { if (box.classList.contains("open")) measure(); });
+ }
+ // The fitted scale: the whole picture on screen, never larger than its real pixels.
+ function measure() {
+ var w = pic.naturalWidth, h = pic.naturalHeight;
+ if (!w) return;
+ var room = stage.getBoundingClientRect();
+ // The site's screenshots are 2x: real pixels are half the image's.
+ var real = pic.getAttribute("data-scale") || 0.5;
+ pic.style.width = w * real + "px";
+ pic.style.height = h * real + "px";
+ fit = Math.min(1, (room.width - 48) / (w * real), (room.height - 32) / (h * real));
+ if (!zoomed) { scale = fit; tx = ty = 0; }
+ apply();
+ }
+ function apply() {
+ pic.style.transform = "translate(" + tx + "px," + ty + "px) scale(" + scale + ")";
+ box.classList.toggle("zoomed", zoomed);
+ }
+ function zoomAt(e, keys) {
+ if (zoomed && !keys) { zoomed = false; scale = fit; tx = ty = 0; return apply(); }
+ var target = Math.max(1, fit * 2);
+ if (e) {
+ var r = pic.getBoundingClientRect();
+ var px = e.clientX - (r.left + r.width / 2), py = e.clientY - (r.top + r.height / 2);
+ tx = -px * (target / scale - 1); ty = -py * (target / scale - 1);
+ }
+ scale = target; zoomed = true;
+ apply();
+ }
+ function show() {
+ var img = list[at];
+ zoomed = false; tx = ty = 0;
+ box.classList.add("loading");
+ pic.onload = function () { box.classList.remove("loading"); measure(); };
+ pic.src = img.currentSrc || img.src;
+ pic.alt = img.alt || "";
+ // The site's own screenshots are 2x; the help pages' are 1x.
+ pic.setAttribute("data-scale", /\/assets\/(screens|win)\//.test(pic.src) ? 0.5 : 1);
+ capEl.textContent = caption(img);
+ countEl.textContent = list.length > 1 ? (at + 1) + " / " + list.length : "";
+ prevB.hidden = nextB.hidden = list.length < 2;
+ if (pic.complete && pic.naturalWidth) { box.classList.remove("loading"); measure(); }
+ }
+ function go(d) {
+ if (list.length < 2) return;
+ at = (at + d + list.length) % list.length;
+ show();
+ }
+ function open(img) {
+ if (!box) build();
+ opener = img;
+ list = groupOf(img);
+ at = Math.max(0, list.indexOf(img));
+ document.documentElement.classList.add("lb-on");
+ box.classList.add("open");
+ show();
+ box.querySelector(".lb-close").focus();
+ }
+ function close() {
+ box.classList.remove("open", "zoomed");
+ document.documentElement.classList.remove("lb-on");
+ if (opener) opener.focus({ preventScroll: true });
+ }
+ // Every image that opens: clickable, focusable, announced as a button.
+ each("[data-lightbox] img, .prose img", function (img) {
+ if (img.closest(".lb-skip") || img.closest("a")) return;
+ img.classList.add("lb-zoomable");
+ img.setAttribute("tabindex", "0");
+ img.setAttribute("role", "button");
+ img.setAttribute("aria-label", (img.alt || "Screenshot") + " (open larger)");
+ img.addEventListener("click", function () { open(img); });
+ img.addEventListener("keydown", function (e) {
+ if (e.key === "Enter" || e.key === " ") { e.preventDefault(); open(img); }
+ });
+ });
+ })();
+
// ---- Your system -------------------------------------------------------------------------
// Each system's card (.os-card[data-os]) carries its main file and label; the download
// buttons take the visitor's, and the cards mark it. Phones and tablets keep Windows and see
diff --git a/website/styles.css b/website/styles.css
index 626d2923..ccf89642 100644
--- a/website/styles.css
+++ b/website/styles.css
@@ -271,6 +271,11 @@ figure.window { width: fit-content; max-width: 100%; border: 1px solid var(--lin
.sec { padding: 80px 0; border-top: 1px solid var(--line); }
.sec-center { max-width: 42rem; margin: 0 auto 56px; text-align: center; }
+.sec.tight { padding: 56px 0; }
+.sec.flush { border-top: 0; }
+.sec-head { max-width: 760px; margin-bottom: 40px; }
+.sec-head h2 { font-size: clamp(1.875rem, 3.5vw, 2.25rem); font-weight: 600; line-height: 1.15; letter-spacing: -.025em; }
+.sec-head p { margin: 14px 0 0; font-size: 1.0625rem; line-height: 1.6; color: var(--fg-muted); }
.sec-center h2 { font-size: clamp(1.875rem, 3.5vw, 2.25rem); font-weight: 600; line-height: 1.15; letter-spacing: -.025em; }
.sec-center p { margin: 16px 0 0; font-size: 1.125rem; line-height: 1.6; color: var(--fg-muted); text-wrap: balance; }
.sec-h { font-size: clamp(1.5rem, 3vw, 1.875rem); font-weight: 600; letter-spacing: -.025em; }
@@ -462,11 +467,12 @@ figure.window { width: fit-content; max-width: 100%; border: 1px solid var(--lin
/* ---- Speed: the benchmark replayed ------------------------------------------------------------ */
.race { padding: 28px; border: 1px solid var(--line); border-radius: 24px; background: var(--bg-raised); }
-.race-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 26px; }
+.race-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 26px; }
+.race-tabs { min-width: 0; overflow-x: auto; scrollbar-width: none; flex-wrap: nowrap !important; }
.race-tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); }
-.race-tabs button { padding: 9px 16px; border: 0; border-radius: 999px; background: none; color: var(--fg-muted); font: 500 14px/1 var(--font); cursor: pointer; }
+.race-tabs button { padding: 9px 14px; white-space: nowrap; border: 0; border-radius: 999px; background: none; color: var(--fg-muted); font: 500 14px/1 var(--font); cursor: pointer; }
.race-tabs button[aria-selected="true"] { background: var(--fg); color: var(--bg); }
-.race-replay { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); color: var(--fg); font: 500 14px/1 var(--font); cursor: pointer; }
+.race-replay { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; flex: none; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); color: var(--fg); font: 500 14px/1 var(--font); cursor: pointer; }
.race-replay svg { width: 16px; height: 16px; }
.lane { display: grid; grid-template-columns: 290px minmax(0, 1fr) 140px; align-items: center; gap: 20px; padding: 18px 0; border-top: 1px solid var(--line); }
.lane-name { display: flex; align-items: center; gap: 10px; font-size: 15px; }
@@ -552,7 +558,8 @@ figure.window { width: fit-content; max-width: 100%; border: 1px solid var(--lin
.plan { display: flex; flex-direction: column; padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg-raised); }
.plan.current { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.plan header { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
-.plan h3 { display: flex; align-items: center; gap: 8px; font-size: 1.125rem; font-weight: 600; }
+.plan h3, .plan .h3like { display: flex; align-items: center; gap: 8px; font-size: 1.125rem; font-weight: 600; }
+.plan dt a { color: var(--fg); font-weight: 500; }
.plan h3 .os-ico { width: 18px; height: 18px; }
.plan-tag { font-size: 14px; color: var(--fg-muted); }
.plan-tags { display: flex; gap: 6px; margin: 14px 0 22px; }
@@ -705,6 +712,37 @@ sup a { text-decoration: none; font-size: .78em; margin-left: 2px; color: var(--
.repo-links b { display: block; font-weight: 600; }
.repo-links span { display: block; margin-top: 3px; font-size: .88rem; color: var(--fg-muted); }
+/* Benchmark page: speed-up per scenario (log scale), grown in when seen. */
+.speedup { position: relative; padding: 28px; border: 1px solid var(--line); border-radius: 24px; background: var(--bg-raised); }
+.su-axis { position: relative; height: 18px; margin: 0 120px 6px 260px; font-size: 11px; color: var(--fg-muted); }
+.su-axis span { position: absolute; top: 0; transform: translateX(-50%); }
+.su-row { display: grid; grid-template-columns: 240px minmax(0, 1fr) 100px; align-items: center; gap: 20px; padding: 14px 0; border-top: 1px solid var(--line); }
+.su-name b { display: block; font-size: 15px; font-weight: 600; }
+.su-name small { display: block; margin-top: 2px; font-size: 12px; color: var(--fg-muted); }
+.su-track { position: relative; height: 28px; }
+.su-tick { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--line); }
+.su-bar { position: absolute; left: 0; top: 4px; bottom: 4px; width: 0; border-radius: 0 6px 6px 0; background: linear-gradient(90deg, var(--accent), var(--accent-b)); box-shadow: 0 6px 18px -8px var(--accent); transition: width 1.3s cubic-bezier(.2, .7, .2, 1) var(--d, 0s); }
+.speedup.in .su-bar { width: var(--w); }
+.su-ci { position: absolute; top: 50%; height: 12px; margin-top: -6px; border: 2px solid var(--fg); border-top: 0; border-bottom: 0; opacity: 0; transition: opacity .4s ease calc(var(--d, 0s) + 1.2s); }
+.su-ci::after { content: ""; position: absolute; left: 0; right: 0; top: 5px; height: 2px; background: var(--fg); }
+.speedup.in .su-ci { opacity: .7; }
+.su-val { text-align: right; font-variant-numeric: tabular-nums; }
+.su-val b { display: block; font-size: 1.5rem; font-weight: 650; letter-spacing: -.02em; }
+.su-val small { font-size: 11px; color: var(--fg-muted); }
+
+/* 480 connections against 2: one square each, appearing in order. */
+.conn-race { display: grid; grid-template-columns: 1fr 3fr; gap: 16px; }
+.conn-col { padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: var(--bg-raised); }
+.conn-head { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; font-size: 15px; }
+.conn-head b { font-weight: 600; }
+.conn-head span:last-child { margin-left: auto; font-size: 2rem; font-weight: 650; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
+.conn-grid { display: grid; grid-template-columns: repeat(auto-fill, 14px); gap: 4px; min-height: 120px; align-content: start; }
+.conn-grid i { width: 14px; height: 14px; border-radius: 3px; background: var(--accent); opacity: 0; transform: scale(.3); }
+.conn-col.idm .conn-grid i { background: var(--bench-idm); }
+.conn-race.in .conn-grid i { animation: sq .35s cubic-bezier(.2, 1.4, .4, 1) calc(var(--i) * 6ms) forwards; }
+@keyframes sq { to { opacity: 1; transform: none; } }
+.conn-col p { margin: 18px 0 0; font-size: 14px; line-height: 1.6; color: var(--fg-muted); }
+
/* Benchmark page. */
.bench-switch { display: inline-flex; gap: 4px; margin-top: 8px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg-raised); }
.bench-switch button { padding: 10px 16px; border: 0; border-radius: 999px; background: none; color: var(--fg-muted); font: 500 14px/1 var(--font); cursor: pointer; }
@@ -714,10 +752,10 @@ sup a { text-decoration: none; font-size: .78em; margin-left: 2px; color: var(--
.bench-card { min-width: 0; padding: 16px 18px 12px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg-raised); }
.bench-card header { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.bench-card h3 { font-size: .98rem; font-weight: 600; }
-.bench-ratio { margin: 0; flex: none; text-align: right; font: 500 .84rem/1.3 var(--mono); color: var(--fg-muted); }
+.bench-ratio { margin: 0; flex: none; text-align: right; font: 500 .84rem/1.3 var(--font); color: var(--fg-muted); }
.bench-ratio b { color: var(--accent); font-size: 1rem; }
.bench-chart { height: 112px; margin-top: 6px; }
-.bench-meta { margin: 2px 0 0; font: .76rem/1.3 var(--mono); color: var(--fg-muted); overflow-wrap: anywhere; }
+.bench-meta { margin: 2px 0 0; font: .76rem/1.4 var(--font); color: var(--fg-muted); overflow-wrap: anywhere; }
.bench-status { max-width: 78ch; margin: 22px 0 0; padding: 10px 14px; border: 1px dashed var(--fg-muted); border-radius: 12px; color: var(--fg-muted); font-size: .92rem; }
.bench-card.is-provisional { border-style: dashed; }
.bench-card.is-provisional .bench-chart { opacity: .45; }
@@ -742,6 +780,32 @@ tr.is-provisional td, tr.is-provisional th { color: var(--fg-muted); }
.doc-nav a:hover { background: var(--bg-raised); color: var(--fg); }
.doc-nav a[aria-current="page"] { background: var(--bg-raised); color: var(--fg); font-weight: 500; box-shadow: inset 2px 0 0 var(--accent); }
+/* ---- Lightbox ------------------------------------------------------------------------------ */
+
+.lb-zoomable { cursor: zoom-in; transition: transform .2s ease, box-shadow .2s ease; }
+.g-shot .lb-zoomable:hover { transform: translateY(-2px); }
+.lb-zoomable:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
+html.lb-on { overflow: hidden; }
+.lb { position: fixed; inset: 0; z-index: 100; display: none; flex-direction: column; background: rgba(8, 9, 11, .97); color: #f4f4f5; }
+.lb.open { display: flex; animation: lb-in .2s ease; }
+@keyframes lb-in { from { opacity: 0; } }
+.lb-stage { position: relative; flex: 1; display: flex; align-items: center; justify-content: center; overflow: hidden; touch-action: none; cursor: zoom-out; }
+.lb-pic { max-width: none; flex: none; border-radius: 6px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .8); cursor: zoom-in; transform-origin: center; transition: transform .25s cubic-bezier(.2, .7, .2, 1); user-select: none; -webkit-user-drag: none; }
+.lb.zoomed .lb-pic { cursor: grab; }
+.lb.zoomed .lb-pic:active { cursor: grabbing; transition: none; }
+.lb.loading .lb-pic { opacity: 0; }
+.lb-bar { display: flex; align-items: center; gap: 16px; min-height: 64px; padding: 10px 16px 10px 24px; border-top: 1px solid rgba(255, 255, 255, .08); }
+.lb-count { flex: none; min-width: 3.5em; font-size: 13px; color: #a1a1aa; font-variant-numeric: tabular-nums; }
+.lb-cap { flex: 1; margin: 0; font-size: 14px; line-height: 1.5; color: #e4e4e7; }
+.lb-hint { flex: none; font-size: 12px; color: #71717a; }
+.lb-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid rgba(255, 255, 255, .14); border-radius: 50%; background: rgba(24, 24, 27, .7); color: #f4f4f5; cursor: pointer; }
+.lb-btn:hover { background: rgba(63, 63, 70, .9); }
+.lb-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
+.lb-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
+.lb-nav { position: absolute; top: calc(50% - 54px); }
+.lb-prev { left: 16px; } .lb-next { right: 16px; }
+.lb-btn[hidden] { display: none; }
+
/* ---- Narrower screens ------------------------------------------------------------------------ */
@media (max-width: 1040px) {
@@ -756,6 +820,10 @@ tr.is-provisional td, tr.is-provisional th { color: var(--fg-muted); }
.community { flex-direction: column; align-items: stretch; gap: 32px; }
.tldr-box { grid-template-columns: 1fr; }
.plans, .os-cards, .repo-links { grid-template-columns: 1fr; }
+ .conn-race { grid-template-columns: 1fr; }
+ .su-axis { margin-left: 0; margin-right: 0; }
+ .su-row { grid-template-columns: 1fr auto; }
+ .su-track { grid-column: 1 / -1; grid-row: 2; }
.g-row { flex-direction: column; }
.lane { grid-template-columns: 1fr auto; }
.lane-bar { grid-column: 1 / -1; grid-row: 2; }
@@ -778,6 +846,9 @@ tr.is-provisional td, tr.is-provisional th { color: var(--fg-muted); }
.split-main { flex: 1; }
.split-menu { width: min(320px, calc(100vw - 32px)); }
.with-row { grid-template-columns: 1fr; gap: 10px; }
+ .lb-hint { display: none; }
+ .lb-bar { padding: 10px 12px; }
+ .lb-nav { top: auto; bottom: 74px; }
.g-item { padding: 16px 16px 14px; border-radius: 16px; }
.race { padding: 18px; }
.race-tabs { width: 100%; border-radius: 16px; }
@@ -804,5 +875,7 @@ tr.is-provisional td, tr.is-provisional th { color: var(--fg-muted); }
}
@media (prefers-reduced-motion: reduce) {
.hero-echo-track, .marquee-track, .hero-letter, .hero-flyer, .hero-flyer img, .ping::after, .hello-word, .cam img { animation: none !important; }
+ .su-bar, .su-ci { transition: none; }
+ .conn-grid i { opacity: 1; transform: none; }
.hello-word[data-pos="current"] { -webkit-mask-image: none; mask-image: none; }
}