/* mortiflix.com: the hub for the open-source Mortiflix. One stylesheet for every page.
   Design standard (docs/DESIGN-STANDARD.md): shared edges, hairline sections instead of boxes, chips as landmarks,
   quiet defaults, links blue and underlined, and the accent (the gradient) only on the one action that matters. */
@font-face { font-family: "Unbounded"; src: url("../fonts/unbounded/unbounded-latin-wght.woff2") format("woff2"); font-weight: 200 900; font-display: swap; }
@font-face { font-family: "Sora"; src: url("../fonts/sora/sora-latin-wght.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }

:root {
  --ink: #0b0913; --ink-2: #14111f; --ink-3: #1c1830;
  --text: #f5f2ff; --muted: rgba(245, 242, 255, 0.64); --faint: rgba(245, 242, 255, 0.42);
  --line: rgba(255, 255, 255, 0.1); --line-2: rgba(255, 255, 255, 0.18);
  --link: #8fb8ff; --good: #7ef0b6; --bad: #ff7a8a; --warn: #ffd98a;
  --grad: linear-gradient(100deg, #b18cff 0%, #ff8fd1 50%, #7ce8f3 100%);
  --display: "Unbounded", "Sora", sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --r: 12px;
  --gutter: 20px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body { min-height: 100vh; background: var(--ink); color: var(--text); font: 15.5px/1.6 "Sora", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--link); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
a:hover { color: #c3d8ff; }
h1, h2, h3 { margin: 0; font-weight: 600; line-height: 1.2; }
p { margin: 0; }
code, pre, kbd { font-family: var(--mono); font-size: 0.9em; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 13.5px; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 var(--gutter); }
.narrow > * { max-width: 760px; }
@media (max-width: 640px) { :root { --gutter: 16px; } body { font-size: 15px; } }

/* ---------------------------------------------------------------- header */
.top { border-bottom: 1px solid var(--line); background: rgba(11, 9, 19, 0.92); position: sticky; top: 0; z-index: 20; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.top .wrap { display: flex; align-items: center; gap: 22px; height: 60px; }
.logo { font-family: var(--display); font-size: 17px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text); text-decoration: none; white-space: nowrap; }
.logo:hover { color: var(--text); }
.top nav { display: flex; gap: 18px; }
.top nav a { color: var(--muted); text-decoration: none; font-size: 14.5px; }
.top nav a:hover, .top nav a[aria-current="page"] { color: var(--text); }
.top .me { margin-left: auto; display: flex; align-items: center; gap: 14px; font-size: 14.5px; }
.top .me a { color: var(--muted); text-decoration: none; }
.top .me a:hover { color: var(--text); }
.menu { position: relative; }
.menu > button { display: flex; align-items: center; gap: 8px; background: none; border: 0; color: var(--text); font: inherit; cursor: pointer; padding: 6px 0; }
.avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--ink-3); border: 1px solid var(--line-2); font-size: 12px; font-weight: 600; letter-spacing: 0.04em; }
.menu-list { position: absolute; right: 0; top: calc(100% + 8px); min-width: 200px; padding: 6px; background: var(--ink-2); border: 1px solid var(--line-2); border-radius: var(--r); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5); display: none; }
.menu.open .menu-list { display: block; }
.menu-list a, .menu-list button { display: block; width: 100%; text-align: left; padding: 8px 10px; border-radius: 8px; color: var(--text) !important; text-decoration: none; background: none; border: 0; font: inherit; cursor: pointer; }
.menu-list a:hover, .menu-list button:hover { background: var(--ink-3); }
.menu-list .who { padding: 8px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; color: var(--muted); font-size: 13px; }
@media (max-width: 640px) { .top nav { display: none; } .top .me .hide-sm { display: none; } }

/* ---------------------------------------------------------------- buttons, inputs, chips */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--line-2); background: transparent; color: var(--text); font: 600 14.5px/1 "Sora", sans-serif; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { border-color: rgba(255, 255, 255, 0.35); color: var(--text); }
.btn.primary { border: 0; background: var(--grad); color: #150f22; }
.btn.primary:hover { filter: brightness(1.06); color: #150f22; }
.btn.danger { color: var(--bad); border-color: rgba(255, 122, 138, 0.4); }
.btn.small { height: 32px; padding: 0 12px; font-size: 13px; }
.btn:disabled { opacity: 0.5; cursor: default; }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: var(--link); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.linkish.quiet { color: var(--faint); }
.linkish.danger { color: var(--bad); }
.input, select.input, textarea.input { width: 100%; height: 42px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--ink-2); color: var(--text); font: inherit; }
textarea.input { height: auto; min-height: 140px; padding: 10px 12px; line-height: 1.55; resize: vertical; }
.input:focus { outline: 2px solid rgba(143, 184, 255, 0.55); outline-offset: 1px; border-color: transparent; }
.field { display: grid; gap: 6px; }
.field > span { font-size: 13.5px; color: var(--muted); }
.field .hint { font-size: 12.5px; color: var(--faint); }
.field .hint.bad { color: var(--bad); }
.field .hint.good { color: var(--good); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.check input { margin-top: 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); font-size: 13px; background: transparent; text-decoration: none; cursor: pointer; font-family: inherit; white-space: nowrap; }
.chip svg { width: 15px; height: 15px; flex: none; }
.chip:hover { color: var(--text); }
.chip[aria-pressed="true"], .chip.on { color: var(--ink); background: var(--text); border-color: var(--text); }
.chip .n { color: inherit; opacity: 0.6; font-size: 12px; }
.tag { display: inline-flex; height: 24px; align-items: center; padding: 0 9px; border-radius: 999px; background: var(--ink-3); color: var(--muted); font-size: 12px; text-decoration: none; }
.tag:hover { color: var(--text); }
.state { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 12px; font-weight: 600; letter-spacing: 0.02em; }
.state.live { color: var(--good); background: rgba(126, 240, 182, 0.1); }
.state.removed { color: var(--bad); background: rgba(255, 122, 138, 0.12); }
.state.warn { color: var(--warn); background: rgba(255, 217, 138, 0.1); }
.alert { display: none; padding: 10px 12px; border-radius: 10px; font-size: 14px; }
.alert.show { display: block; }
.alert.error { color: var(--bad); background: rgba(255, 122, 138, 0.1); }
.alert.ok { color: var(--good); background: rgba(126, 240, 182, 0.08); }

/* ---------------------------------------------------------------- home: hero + filters + grid */
.hero { padding-top: 56px; padding-bottom: 28px; }
.hero h1 { font-family: var(--display); font-weight: 500; font-size: clamp(30px, 5vw, 52px); letter-spacing: -0.01em; line-height: 1.08; max-width: 15ch; }
.hero p { margin-top: 14px; max-width: 62ch; color: var(--muted); font-size: 16.5px; }
.hero .row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; align-items: center; }
.filters { position: sticky; top: 60px; z-index: 10; background: var(--ink); padding: 14px 0; border-bottom: 1px solid var(--line); }
.filters .wrap { display: grid; gap: 12px; }
.filters .line1 { display: flex; gap: 12px; align-items: center; }
.search { position: relative; flex: 1; max-width: 520px; }
.search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--faint); }
.search .input { padding-left: 36px; }
.sort { margin-left: auto; display: flex; gap: 4px; font-size: 13.5px; }
.sort button { background: none; border: 0; color: var(--faint); font: inherit; cursor: pointer; padding: 6px 8px; border-radius: 8px; }
.sort button[aria-pressed="true"] { color: var(--text); background: var(--ink-3); }
.filters .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.filters .chips::-webkit-scrollbar { display: none; }
.results { padding-top: 22px; padding-bottom: 60px; }
.results .count { color: var(--faint); font-size: 13.5px; margin-bottom: 14px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 30px 22px; }
.card { display: grid; gap: 10px; align-content: start; color: var(--text); text-decoration: none; min-width: 0; }
.card:hover { color: var(--text); }
.card:hover .thumb { border-color: var(--line-2); }
.card h3 { font-size: 16px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card .sum { color: var(--muted); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.9em; }
.card .meta { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--faint); }
.card .meta span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thumb { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; background: var(--ink-2); border: 1px solid var(--line); display: grid; place-items: center; }
.thumb img, .thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb .glyph { width: 46px; height: 46px; color: var(--faint); }
.thumb .glyph svg { width: 100%; height: 100%; }
.thumb .kind { position: absolute; left: 10px; top: 10px; display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 999px; background: rgba(11, 9, 19, 0.82); color: var(--text); font-size: 12px; }
.thumb .kind svg { width: 13px; height: 13px; }
.thumb .ver { position: absolute; right: 10px; top: 10px; height: 24px; display: inline-flex; align-items: center; padding: 0 8px; border-radius: 999px; background: rgba(11, 9, 19, 0.82); color: var(--muted); font-size: 12px; font-family: var(--mono); }
.empty { padding: 60px 0; color: var(--muted); max-width: 52ch; }
.empty h2 { font-size: 18px; color: var(--text); margin-bottom: 8px; }
.more { margin-top: 30px; }

/* ---------------------------------------------------------------- item page */
.item { padding-top: 34px; padding-bottom: 70px; }
.crumbs { display: flex; gap: 10px; align-items: center; color: var(--faint); font-size: 13.5px; margin-bottom: 16px; }
.crumbs a { color: var(--muted); }
.item-head { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; }
.item-head h1 { font-family: var(--display); font-weight: 500; font-size: clamp(26px, 4vw, 40px); letter-spacing: -0.01em; }
.item-head .sum { margin-top: 10px; color: var(--muted); font-size: 17px; max-width: 60ch; }
.byline { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; color: var(--muted); }
.byline b { color: var(--text); font-weight: 600; }
.get { display: grid; gap: 12px; position: sticky; top: 84px; }
.get .btn.primary { height: 46px; font-size: 15px; }
.get .size { display: flex; justify-content: space-between; font-size: 13px; color: var(--faint); }
.cmd { display: flex; align-items: stretch; border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; background: var(--ink-2); }
.cmd code { flex: 1; padding: 10px 12px; font-size: 12.5px; color: var(--text); white-space: pre-wrap; overflow-wrap: anywhere; }
.cmd button { border: 0; border-left: 1px solid var(--line-2); background: transparent; color: var(--muted); padding: 0 12px; font: 600 12.5px "Sora", sans-serif; cursor: pointer; }
.cmd button:hover { color: var(--text); }
.owner { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.preview { margin-top: 28px; border-radius: var(--r); overflow: hidden; background: var(--ink-2); border: 1px solid var(--line); }
.preview img, .preview video { display: block; width: 100%; max-height: 640px; object-fit: contain; background: #000; }
.preview audio { display: block; width: 100%; }
.preview.audio { padding: 18px; }
.section { margin-top: 38px; padding-top: 22px; border-top: 1px solid var(--line); }
.section > h2 { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); margin-bottom: 14px; }
.prose { max-width: 70ch; color: var(--text); }
.prose p + p { margin-top: 12px; }
.prose p { white-space: pre-wrap; overflow-wrap: anywhere; }
.facts { display: grid; gap: 0; max-width: 70ch; }
.facts .row { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.facts .row span:first-child { color: var(--muted); }
.facts .row span:last-child { text-align: right; }
.runs { margin-top: 14px; max-width: 70ch; }
.runs summary { cursor: pointer; color: var(--warn); font-size: 14px; }
.files { margin: 10px 0 0; padding: 0; list-style: none; font-family: var(--mono); font-size: 12.5px; color: var(--muted); max-height: 280px; overflow: auto; }
.files li { padding: 3px 0; overflow-wrap: anywhere; }
.versions { max-width: 70ch; }
.versions .v { display: grid; grid-template-columns: 90px minmax(0, 1fr) auto; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; align-items: baseline; }
.versions .v code { color: var(--text); }
.versions .v .notes { color: var(--muted); white-space: pre-wrap; overflow-wrap: anywhere; }
.versions .v .right { text-align: right; color: var(--faint); font-size: 13px; white-space: nowrap; }
.report { margin-top: 38px; font-size: 13.5px; }
.report form { display: grid; gap: 10px; max-width: 460px; margin-top: 12px; }
.notice { padding: 12px 14px; border-radius: 10px; background: rgba(255, 122, 138, 0.1); color: var(--bad); font-size: 14px; margin-bottom: 20px; }
@media (max-width: 860px) { .item-head { grid-template-columns: 1fr; gap: 24px; } .get { position: static; } }
@media (max-width: 520px) { .versions .v { grid-template-columns: 70px minmax(0, 1fr); } .versions .v .right { grid-column: 2; text-align: left; } }

/* ---------------------------------------------------------------- forms pages (publish, account, auth) */
.page { padding-top: 36px; padding-bottom: 70px; }
.page-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.page-head h1 { font-family: var(--display); font-weight: 500; font-size: clamp(24px, 3.4vw, 32px); }
.page-head p { color: var(--muted); margin-top: 6px; }
.form { display: grid; gap: 20px; max-width: 640px; }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form .two { grid-template-columns: 1fr; } }
.step { display: grid; gap: 16px; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.step > h2 { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); display: flex; gap: 10px; align-items: center; }
.step > h2 b { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line-2); font-size: 11px; color: var(--muted); letter-spacing: 0; }
.drop { display: grid; place-items: center; gap: 6px; text-align: center; padding: 34px 16px; border: 1px dashed var(--line-2); border-radius: var(--r); color: var(--muted); cursor: pointer; }
.drop:hover, .drop.over { border-color: var(--link); color: var(--text); }
.drop svg { width: 26px; height: 26px; color: var(--faint); }
.drop input { display: none; }
.bar { height: 4px; border-radius: 4px; background: var(--ink-3); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: var(--link); transition: width 0.15s; }
.found { display: grid; gap: 4px; font-size: 14px; }
.found .file { display: flex; justify-content: space-between; gap: 12px; }
.found .file b { font-weight: 600; overflow-wrap: anywhere; }
.found .file span { color: var(--faint); white-space: nowrap; }
.slug { display: flex; align-items: center; border: 1px solid var(--line-2); border-radius: 10px; background: var(--ink-2); overflow: hidden; }
.slug span { padding: 0 0 0 12px; color: var(--faint); font-size: 14px; white-space: nowrap; }
.slug .input { border: 0; background: transparent; padding-left: 2px; }
.slug:focus-within { outline: 2px solid rgba(143, 184, 255, 0.55); outline-offset: 1px; }
.actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

/* auth pages: one narrow column, no card */
.auth { min-height: calc(100vh - 61px); display: grid; place-items: start center; padding: max(40px, 10vh) var(--gutter) 40px; }
.auth .col { width: 100%; max-width: 400px; display: grid; gap: 18px; }
.auth h1 { font-family: var(--display); font-weight: 500; font-size: 28px; }
.auth .foot { font-size: 14px; color: var(--muted); }

/* lists (your uploads, account sessions, admin) */
.rows { display: grid; }
.rows .r { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 16px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: center; }
.rows .r:first-child { border-top: 1px solid var(--line); }
.rows .r .t { display: flex; gap: 10px; align-items: center; min-width: 0; flex-wrap: wrap; }
.rows .r .t a, .rows .r .t b { font-weight: 600; }
.rows .r .s { grid-column: 1; color: var(--muted); font-size: 13.5px; overflow-wrap: anywhere; }
.rows .r .v { grid-column: 2; grid-row: 1 / span 2; text-align: right; display: flex; gap: 12px; align-items: center; justify-content: flex-end; flex-wrap: wrap; font-size: 13.5px; color: var(--faint); }
@media (max-width: 560px) { .rows .r { grid-template-columns: 1fr; } .rows .r .v { grid-column: 1; grid-row: auto; justify-content: flex-start; } }

/* footer */
.foot-site { border-top: 1px solid var(--line); padding: 22px 0 30px; color: var(--faint); font-size: 13px; }
.foot-site .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot-site a { color: var(--muted); }

/* the 404 page */
.lost { padding-top: 14vh; padding-bottom: 14vh; }
.lost h1 { font-family: var(--display); font-weight: 500; font-size: clamp(30px, 5vw, 48px); }
.lost p { color: var(--muted); margin: 12px 0 22px; }

/* ---------------------------------------------------------------- under construction (server/views/construction.html) */
.uc-body { overflow: hidden; }
.uc-video { position: fixed; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.uc-shade { position: fixed; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11, 9, 19, 0.55), rgba(11, 9, 19, 0.92)); }
.uc { min-height: 100vh; display: grid; grid-template-rows: auto 1fr auto; padding: 28px var(--gutter); max-width: 1140px; margin: 0 auto; }
.uc-main { align-self: center; display: grid; gap: 14px; max-width: 520px; }
.uc-kicker { color: var(--muted); text-transform: uppercase; letter-spacing: 0.14em; font-size: 12.5px; }
.uc-title { font-family: var(--display); font-weight: 500; font-size: clamp(40px, 8vw, 84px); line-height: 1; }
.uc-sub { color: var(--muted); font-size: 17px; }
.uc-login { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line-2); display: grid; gap: 12px; max-width: 360px; }
.uc-login h2 { font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }
.uc-login form { display: grid; gap: 12px; }
.uc-foot { font-size: 13.5px; }
.tags-row { margin-top: 14px; }
.btn svg { width: 18px; height: 18px; flex: none; }
.crumbs a { display: inline-flex; align-items: center; gap: 6px; }
.crumbs svg { width: 16px; height: 16px; }
.cmd code { scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.runs summary.muted { color: var(--muted); }
select.input { margin: 0; appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 32px; }
.form .two { align-items: start; }
.admin .step, #account .step { border-bottom: 0; padding-bottom: 8px; }
.admin .step + .step, #account .step + .step { margin-top: 18px; }

/* ================================================================ the home page (what Mortiflix is, install, library)
   The studio site's look carried over: the flowing hero video, wide uppercase Unbounded headings, kickers, pills,
   tall sections alternating ink and ink-2. The one solid gradient pill is "Install". */
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 70px; }
::selection { background: rgba(177, 140, 255, 0.35); }
.kicker { display: inline-block; font-size: 13px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(245, 242, 255, 0.6); margin-bottom: 18px; }
.hero .kicker { margin-bottom: 12px; }
.hero code, .mf-lead code, .note code, .mf-needs code, .mf-card code { background: var(--ink-3); padding: 1px 6px; border-radius: 6px; }
@media (max-width: 1000px) { .top nav .wide { display: none; } }
.foot-site .links { display: flex; flex-wrap: wrap; gap: 18px; }

body.landing .top { position: fixed; left: 0; right: 0; background: transparent; border-bottom-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; transition: background 0.25s ease, border-color 0.25s ease; }
body.landing .top.scrolled { background: rgba(11, 9, 19, 0.72); border-bottom-color: var(--line); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
body.landing .top .logo { font-size: 20px; }

.pill { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 28px; border-radius: 999px; font-weight: 500; font-size: 15px; letter-spacing: 0.02em; line-height: 1.2; text-decoration: none; color: var(--text); border: 1px solid rgba(255, 255, 255, 0.22); background: rgba(255, 255, 255, 0.03); transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease; }
.pill:hover { color: var(--text); border-color: rgba(177, 140, 255, 0.8); background: rgba(177, 140, 255, 0.12); }
.pill.solid { border: 0; background: var(--grad); color: #150f22; }
.pill.solid:hover { color: #150f22; transform: translateY(-2px); box-shadow: 0 10px 30px rgba(177, 140, 255, 0.35); }
.mf-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.mf-actions.center { justify-content: center; }

.mf-hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; overflow: hidden; isolation: isolate; padding: 140px 0 90px; }
.mf-hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: 0.9; filter: saturate(1.15); }
.mf-hero-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(11, 9, 19, 0.85) 0%, rgba(11, 9, 19, 0.58) 45%, rgba(11, 9, 19, 0.15) 100%), linear-gradient(180deg, rgba(11, 9, 19, 0.3) 0%, rgba(11, 9, 19, 0) 40%, var(--ink) 100%); }
.mf-hero-title { font-family: var(--display); font-weight: 400; font-size: clamp(36px, 5.8vw, 84px); line-height: 1.04; letter-spacing: 0.01em; text-transform: uppercase; color: #f7f4ff; margin: 0 0 26px; }
.mf-hero-sub { max-width: 600px; font-size: 19px; line-height: 1.65; color: rgba(245, 242, 255, 0.8); margin-bottom: 38px; }
.mf-facts { list-style: none; margin: 34px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 26px; font-size: 14px; color: rgba(245, 242, 255, 0.66); }
.mf-facts li { display: flex; align-items: center; gap: 10px; }
.mf-facts li + li::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: rgba(245, 242, 255, 0.35); margin-left: -16px; }
@media (prefers-reduced-motion: reduce) { .mf-hero-video { display: none; } .mf-hero { background: url(../images/mf/hero-flow-poster.jpg) center / cover; } html { scroll-behavior: auto; } }
@media (max-width: 767px) { .mf-hero-shade { background: linear-gradient(180deg, rgba(11, 9, 19, 0.6) 0%, rgba(11, 9, 19, 0.55) 50%, var(--ink) 100%); } .mf-hero-sub { font-size: 17px; } }

.mf-section { padding: 130px 0; }
.mf-section.alt { background: var(--ink-2); }
@media (max-width: 767px) { .mf-section { padding: 88px 0; } }
.mf-head { max-width: 760px; margin-bottom: 56px; }
.mf-h2 { font-family: var(--display); font-weight: 400; font-size: clamp(28px, 3.4vw, 46px); line-height: 1.12; letter-spacing: 0.01em; text-transform: uppercase; color: var(--text); }
.mf-lead { margin-top: 22px; font-size: 18px; line-height: 1.65; color: rgba(245, 242, 255, 0.78); max-width: 60ch; }

/* the film */
.mf-watch { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; }
.mf-watch .mf-lead { margin-bottom: 26px; }
.mf-meta { margin: 0 0 22px; border-top: 1px solid var(--line); max-width: 46ch; }
.mf-meta div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.mf-meta dt { color: var(--muted); }
.mf-meta dd { margin: 0; text-align: right; }
.mf-film { margin: 0; }
.mf-film video { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 18px; background: #000; border: 1px solid var(--line); }
@media (max-width: 960px) { .mf-watch { grid-template-columns: 1fr; gap: 36px; } }

/* how it works: the stages, then why it's built this way */
.mf-stages { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 22px; }
.mf-stages li { position: relative; display: grid; gap: 6px; align-content: start; padding-top: 62px; }
.mf-stages li::before { content: ""; position: absolute; top: 20px; left: 50px; right: -22px; height: 1px; background: linear-gradient(90deg, rgba(177, 140, 255, 0.5), rgba(177, 140, 255, 0)); }
.mf-stages li:last-child::before { display: none; }
.mf-stages .dot { position: absolute; top: 0; left: 0; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(177, 140, 255, 0.55); color: var(--text); font-weight: 600; font-size: 15px; }
.mf-stages li:last-child .dot { border: 0; background: var(--grad); color: #150f22; }
.mf-stages b { font-size: 16.5px; font-weight: 600; }
.mf-stages span:not(.dot) { font-size: 14px; color: var(--muted); line-height: 1.5; }
@media (max-width: 1060px) { .mf-stages { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 36px; } .mf-stages li:nth-child(4)::before { display: none; } }
@media (max-width: 620px) { .mf-stages { grid-template-columns: repeat(2, minmax(0, 1fr)); } .mf-stages li::before { display: none; } }
.mf-points { margin-top: 80px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; }
.mf-points > div { padding: 26px 0; border-top: 1px solid var(--line); }
.mf-points h3 { font-size: 19px; font-weight: 600; margin-bottom: 8px; }
.mf-points p { color: rgba(245, 242, 255, 0.72); max-width: 52ch; }
@media (max-width: 760px) { .mf-points { grid-template-columns: 1fr; margin-top: 56px; } }

/* install */
.mf-needs { margin: 34px 0 0; max-width: 860px; border-top: 1px solid var(--line); }
.mf-needs div { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.mf-needs dt { color: var(--muted); }
.mf-needs dd { margin: 0; }
@media (max-width: 600px) { .mf-needs div { grid-template-columns: 1fr; gap: 2px; } }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.tabs button { height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--muted); font: 500 14px "Sora", sans-serif; cursor: pointer; }
.tabs button:hover { color: var(--text); }
.tabs button[aria-selected="true"] { color: var(--ink); background: var(--text); border-color: var(--text); }
.tabs button:focus-visible { outline: 2px solid rgba(143, 184, 255, 0.7); outline-offset: 2px; }
.tabpanel { max-width: 860px; }
.code { position: relative; margin: 0; padding: 18px 20px; border-radius: 14px; background: #07060d; border: 1px solid var(--line); overflow-x: auto; font-size: 14px; line-height: 1.7; color: #e9e4fb; }
.code code { font-size: inherit; white-space: pre; }
.code .copy { position: absolute; top: 10px; right: 10px; height: 30px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--ink-2); color: var(--muted); font: 600 12.5px "Sora", sans-serif; cursor: pointer; }
.code .copy:hover { color: var(--text); }
.code:has(.copy) code { display: block; padding-right: 76px; }
.code.small { padding: 12px 14px; font-size: 13px; }
.note { margin-top: 14px; color: var(--muted); font-size: 14.5px; max-width: 75ch; }
.note b { color: var(--text); font-weight: 600; }
.mf-then { margin-top: 64px; max-width: 1000px; }
.mf-then h3 { font-size: 19px; font-weight: 600; margin-bottom: 18px; }
.mf-ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.mf-ways > div { display: grid; gap: 10px; align-content: start; min-width: 0; }
.mf-ways b { font-weight: 500; color: var(--muted); font-size: 14px; }
@media (max-width: 860px) { .mf-ways { grid-template-columns: 1fr; } }
.mf-docs { margin-top: 30px; color: var(--muted); font-size: 14.5px; }

/* library preview */
.mf-add { margin-top: 18px; display: inline-block; max-width: 100%; }
#lib-kinds { margin-bottom: 30px; }
.mf-latest { margin-bottom: 40px; }

/* closing */
.mf-contact { position: relative; overflow: hidden; isolation: isolate; text-align: center; padding: 90px 30px; border-radius: 32px; border: 1px solid rgba(255, 255, 255, 0.08); background: var(--ink-2); }
.mf-contact-glow { position: absolute; inset: -40%; z-index: -1; background: radial-gradient(closest-side at 30% 40%, rgba(177, 140, 255, 0.28), transparent), radial-gradient(closest-side at 70% 60%, rgba(255, 143, 209, 0.2), transparent), radial-gradient(closest-side at 50% 90%, rgba(124, 232, 243, 0.14), transparent); }
.mf-contact p { max-width: 580px; margin: 24px auto 34px; color: rgba(245, 242, 255, 0.78); }
@media (max-width: 600px) { .mf-contact { padding: 64px 20px; border-radius: 24px; } }
html, body { overflow-x: clip; }
@media (max-width: 640px) { .mf-facts { flex-direction: column; gap: 6px; } .mf-facts li + li::before { display: none; } }
.mf-hero-title, .mf-h2 { text-wrap: balance; }
/* the studio look on every page: pill buttons, wide uppercase page titles */
.btn { border-radius: 999px; padding: 0 20px; }
.hero h1, .lost h1 { font-weight: 400; text-transform: uppercase; letter-spacing: 0.01em; line-height: 1.08; max-width: 18ch; text-wrap: balance; }
.nw { white-space: nowrap; }
/* the hero's stage strip: Brief › Script › … › Final */
.mf-flow { list-style: none; margin: 0 0 26px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 0; font-size: 13px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(245, 242, 255, 0.72); }
.mf-flow li { display: flex; align-items: center; }
.mf-flow li:not(:last-child)::after { content: "›"; margin: 0 14px; color: rgba(245, 242, 255, 0.38); letter-spacing: 0; }
@media (max-width: 640px) { .mf-flow { font-size: 12px; letter-spacing: 0.1em; } .mf-flow li:not(:last-child)::after { margin: 0 9px; } }

/* hero pills carry an icon */
.pill svg { width: 19px; height: 19px; flex: none; }

/* ---------------------------------------------------------------- what it makes: pipelines as rows */
.mf-legend { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 13.5px; color: var(--muted); }
.mf-legend li { display: inline-flex; align-items: center; gap: 8px; }
.mf-legend svg { width: 18px; height: 18px; color: var(--text); }
.pipes { border-top: 1px solid var(--line); }
.pipe:not(:has(.pipe-media)) { grid-template-columns: minmax(0, 1fr); }
.pipe { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 44px; padding: 40px 0; border-bottom: 1px solid var(--line); align-items: start; }
.pipe-media { margin: 0; height: 191px; display: flex; align-items: flex-start; }
.pipe-media video { height: 100%; aspect-ratio: 16 / 9; border-radius: 14px; background: #000; border: 1px solid var(--line); object-fit: cover; display: block; }
.pipe-media .phone { position: relative; height: 100%; aspect-ratio: 9 / 16; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: url(../images/mf/hero-flow-poster.jpg) 30% center / cover; display: flex; flex-direction: column; justify-content: flex-end; gap: 5px; padding: 12px 10px; }
.pipe-media .phone::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 9, 19, 0.1), rgba(11, 9, 19, 0.75)); }
.phone > span { position: relative; }
.ph-hook { font-family: var(--display); text-transform: uppercase; font-size: 15px; line-height: 1.05; color: #fff; margin-bottom: auto; margin-top: 18px; }
.ph-cap { height: 5px; border-radius: 3px; background: rgba(255, 255, 255, 0.85); width: 88%; }
.ph-cap.short { width: 56%; }
.pipe-body { display: grid; gap: 14px; align-content: start; min-width: 0; }
.pipe-top { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.pipe-top h3 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 24px; letter-spacing: 0.01em; }
.pipe-spec { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.pipe-body > p { color: rgba(245, 242, 255, 0.75); max-width: 62ch; }
.chain { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chain li { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px 0 9px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 13.5px; white-space: nowrap; }
.chain .ico { display: inline-grid; place-items: center; }
.chain svg { width: 16px; height: 16px; }
.chain li.auto { border-style: dashed; color: var(--muted); }
.chain li:last-child { border-color: transparent; background: var(--grad); color: #150f22; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pipe-cmd { justify-self: start; font-size: 13px; color: var(--muted); background: var(--ink-3); padding: 4px 10px; border-radius: 8px; }
@media (max-width: 900px) { .pipe { grid-template-columns: 1fr; gap: 22px; padding: 32px 0; } .pipe-media { height: auto; } .pipe-media video { width: 100%; height: auto; } .pipe-media .phone { height: 220px; } }

/* write your own */
.own { margin-top: 64px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.own h3 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 24px; margin-bottom: 12px; }
.own-text p { color: rgba(245, 242, 255, 0.75); max-width: 56ch; }
.tree { margin: 22px 0 0; padding: 16px 18px; border-radius: 14px; background: #07060d; border: 1px solid var(--line); font-size: 13.5px; line-height: 1.8; overflow-x: auto; }
.tree code { white-space: pre; color: #e9e4fb; }
.tree b { font-weight: 600; color: var(--text); }
.tree i { font-style: normal; color: var(--faint); }
.own-steps { list-style: none; margin: 0; padding: 0; counter-reset: s; border-top: 1px solid var(--line); }
.own-steps li { counter-increment: s; display: grid; grid-template-columns: 32px minmax(0, 1fr); column-gap: 14px; row-gap: 6px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.own-steps li::before { content: counter(s); grid-row: span 3; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(177, 140, 255, 0.55); font-size: 13px; font-weight: 600; }
.own-steps b { font-weight: 600; }
.own-steps code { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.own-steps a { font-size: 14px; }
@media (max-width: 900px) { .own { grid-template-columns: 1fr; gap: 30px; } }

/* the extras, with icons */
.mf-extras { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; }
.mf-extras li { display: grid; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.mf-extras b { font-weight: 600; }
.mf-extras span { color: rgba(245, 242, 255, 0.72); }
@media (max-width: 760px) { .mf-extras { grid-template-columns: 1fr; } }
.mf-extras li { grid-template-columns: 40px 100px minmax(0, 1fr); align-items: start; }
.x-ico { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(135deg, rgba(177, 140, 255, 0.25), rgba(124, 232, 243, 0.18)); }
.x-ico svg { width: 18px; height: 18px; }
.mf-extras b { padding-top: 5px; }
.mf-extras span:not(.x-ico) { padding-top: 5px; }
@media (max-width: 760px) { .mf-extras li { grid-template-columns: 40px minmax(0, 1fr); } .mf-extras li span:not(.x-ico) { grid-column: 2; padding-top: 0; } }

/* ---------------------------------------------------------------- library rows (home + /browse) */
.list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; border-top: 1px solid var(--line); }
.lrow { position: relative; display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: start; }
.lrow:hover .lt { color: #c3d8ff; }
.lrow .lead { display: flex; }
.lrow .shot { width: 84px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; background: var(--ink-3); display: block; }
.lrow .glyph { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--ink-3); color: var(--text); }
.lrow .glyph svg { width: 22px; height: 22px; }
.lbody { display: grid; gap: 4px; min-width: 0; }
.lhead { display: flex; align-items: center; gap: 10px; min-width: 0; }
.lt { font-weight: 600; font-size: 16px; color: var(--text); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lt::after { content: ""; position: absolute; inset: 0; }
.lsum { color: var(--muted); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lmeta { display: flex; gap: 14px; font-size: 12.5px; color: var(--faint); margin-top: 2px; min-width: 0; }
.lmeta span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lkind { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); flex: none; }
.lkind svg { width: 13px; height: 13px; }
.lright { display: grid; gap: 4px; justify-items: end; font-size: 12.5px; color: var(--faint); white-space: nowrap; }
.lright code { color: var(--muted); font-size: 12px; }
.lplay { position: relative; z-index: 1; flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; color: var(--text); display: grid; place-items: center; cursor: pointer; padding: 0; }
.lplay svg { width: 13px; height: 13px; }
.lplay:hover, .lplay.on { border-color: var(--link); color: var(--link); }
@media (max-width: 860px) { .list { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .lrow { grid-template-columns: 48px minmax(0, 1fr); } .lrow .shot { width: 48px; aspect-ratio: 1; } .lright { grid-column: 2; grid-auto-flow: column; justify-content: start; gap: 12px; } }
/* Settings: API keys. The new key sits between rules, shown once. */
#settings .step { border-bottom: 0; padding-bottom: 8px; }
.reveal { display: grid; gap: 10px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.reveal[hidden] { display: none; }
.reveal .cmd code { font-size: 13px; }

/* ---------------------------------------------------------------- Mortiflix 2: the app picture, six stages, downloads */
.mf-stages.six { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 1060px) { .mf-stages.six { grid-template-columns: repeat(3, minmax(0, 1fr)); } .mf-stages.six li:nth-child(4)::before { display: block; } .mf-stages.six li:nth-child(3)::before { display: none; } }
@media (max-width: 620px) { .mf-stages.six { grid-template-columns: repeat(2, minmax(0, 1fr)); } .mf-stages.six li::before { display: none; } }
.mf-app { margin: 0 0 72px; border: 1px solid var(--line-2); border-radius: var(--r); background: #0e0c17; overflow: hidden; font-size: 13px; }
.app-bar { display: flex; align-items: center; gap: 4px; padding: 10px 14px; border-bottom: 1px solid var(--line); overflow: hidden; }
.app-step { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px 5px 6px; color: var(--faint); white-space: nowrap; }
.app-step i { font-style: normal; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); font-size: 11px; }
.app-step.done { color: var(--muted); }
.app-step.done i { border-color: rgba(126, 240, 182, 0.6); color: var(--good); }
.app-step.on { color: var(--text); box-shadow: inset 0 -2px 0 #b18cff; }
.app-step.on i { border: 0; background: var(--grad); color: #150f22; }
.app-next { margin-left: auto; padding: 5px 14px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text); white-space: nowrap; }
.app-main { display: grid; grid-template-columns: 300px minmax(0, 1fr); }
.app-chat { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-right: 1px solid var(--line); }
.app-label { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }
.app-msg { color: var(--muted); line-height: 1.45; }
.app-msg.you { color: var(--text); padding-left: 10px; border-left: 2px solid #b18cff; }
.app-input { margin-top: auto; padding: 9px 12px; border: 1px solid var(--line-2); border-radius: 8px; color: var(--faint); }
.app-preview { display: grid; gap: 10px; padding: 14px; }
.app-preview video { width: 100%; aspect-ratio: 16 / 9; max-height: 340px; object-fit: cover; border-radius: 6px; background: #000; display: block; }
.app-lanes { display: flex; gap: 3px; }
.app-lanes span { flex: 0 0 calc(var(--w) - 3px); padding: 5px 8px; border-radius: 4px; background: rgba(var(--c), 0.3); border-top: 2px solid rgb(var(--c)); color: var(--text); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-lanes .l1 { --w: 24%; --c: 123, 92, 255; } .app-lanes .l2 { --w: 31%; --c: 255, 143, 209; } .app-lanes .l3 { --w: 25%; --c: 63, 201, 214; } .app-lanes .l4 { --w: 20%; --c: 255, 184, 107; }
.app-nodes { display: flex; align-items: center; padding: 22px 18px; border-top: 1px solid var(--line); overflow: hidden; background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px); background-size: 18px 18px; }
.app-nodes .node { flex: 0 0 auto; display: grid; gap: 2px; min-width: 92px; padding: 8px 12px; border: 1px solid var(--line-2); border-radius: 8px; background: #14111f; color: var(--text); font-weight: 600; }
.app-nodes .node b { font-weight: 400; font-size: 12px; color: var(--faint); }
.app-nodes .node.ok b { color: var(--good); }
.app-nodes .node.busy { border-color: #b18cff; }
.app-nodes .node.busy b { color: #c9b4ff; }
.app-nodes .noodle { flex: 1 1 24px; min-width: 14px; height: 2px; background: rgba(255, 255, 255, 0.25); }
.app-nodes .noodle.cut { background: repeating-linear-gradient(90deg, #ff8fd1 0 6px, transparent 6px 10px); }
@media (max-width: 760px) { .app-main { grid-template-columns: 1fr; } .app-chat { border-right: 0; border-bottom: 1px solid var(--line); } .app-chat .app-msg:first-of-type { display: none; } }
.dl-os { list-style: none; margin: 0 0 28px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 40px; }
.dl-os li { display: grid; gap: 6px; align-content: start; justify-items: start; padding: 24px 0; border-top: 1px solid var(--line); }
.dl-os b { font-size: 19px; font-weight: 600; }
.dl-os span { color: var(--muted); font-size: 14px; }
.dl-os .pill { margin-top: 12px; }
@media (max-width: 760px) { .dl-os { grid-template-columns: 1fr; } }
.pill.soon, .pill.soon:hover { cursor: default; color: var(--muted); border-color: var(--line-2); background: transparent; transform: none; box-shadow: none; }

/* ---------------------------------------------------------------- long text pages: download, privacy */
.doc { padding: 120px 0 96px; }
.doc .wrap > * { max-width: 760px; }
.doc .wrap > .wide-table { max-width: none; }
.doc h1 { font-family: var(--display); font-size: clamp(30px, 4.4vw, 46px); text-transform: uppercase; letter-spacing: 0.01em; margin: 10px 0 18px; }
.doc h2 { font-size: 21px; margin: 52px 0 12px; padding-top: 22px; border-top: 1px solid var(--line); }
.doc h3 { font-size: 16.5px; margin: 30px 0 8px; }
.doc p, .doc ul { margin: 0 0 12px; color: var(--muted); }
.doc p b, .doc li b { color: var(--text); font-weight: 600; }
.doc ul { padding-left: 20px; }
.doc li + li { margin-top: 6px; }
.doc .lead { font-size: 17px; color: var(--text); }
.doc table { width: 100%; border-collapse: collapse; margin: 8px 0 16px; font-size: 14px; }
.doc th { text-align: left; font-weight: 600; color: var(--faint); font-size: 12.5px; letter-spacing: 0.04em; padding: 8px 14px 8px 0; border-bottom: 1px solid var(--line-2); }
.doc td { vertical-align: top; padding: 9px 14px 9px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.doc td:first-child { color: var(--text); white-space: nowrap; }
.doc .table-scroll { overflow-x: auto; }
.doc .dl-os { margin-top: 24px; }

/* ---------------------------------------------------------------- /admin: the stats dashboard */
.dash { padding-top: 96px; padding-bottom: 96px; }
.dash-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.dash-head h1 { font-family: var(--display); text-transform: uppercase; font-size: 30px; }
.dash-totals { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin: 0 0 48px; border-top: 1px solid var(--line); }
.dash-totals div { padding: 16px 16px 16px 0; }
.dash-totals dt { color: var(--muted); font-size: 13.5px; }
.dash-totals dd { margin: 4px 0 0; font-size: 30px; font-weight: 600; font-variant-numeric: tabular-nums; }
.dash-totals div:first-child dd { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
@media (max-width: 900px) { .dash-totals { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 520px) { .dash-totals { grid-template-columns: repeat(2, minmax(0, 1fr)); } .dash-totals dd { font-size: 24px; } }
.dash-block { margin-bottom: 48px; }
.dash-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line-2); margin-bottom: 4px; }
.dash-title h2 { font-size: 17px; font-weight: 600; }
.dash-chart svg { display: block; width: 100%; height: auto; }
.dash-chart .col { fill: rgba(177, 140, 255, 0.45); }
.dash-chart .col.dl { fill: #b18cff; }
.dash-chart .col:hover { fill: #ff8fd1; }
.dash-chart .base { stroke: var(--line-2); stroke-width: 1; }
.dash-chart text { fill: var(--faint); font-size: 13px; font-family: "Sora", system-ui, sans-serif; }
.dash-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; }
.dash-grid .dash-block { min-width: 0; }
@media (max-width: 860px) { .dash-grid { grid-template-columns: 1fr; } }
.dt-row { display: grid; grid-template-columns: minmax(0, 1fr) repeat(3, 76px); gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.dt-row:has(> :nth-child(2):last-child) { grid-template-columns: minmax(0, 1fr) 96px; }
.dt-head { color: var(--faint); font-size: 12px; padding: 6px 0; }
.dt-name { display: grid; gap: 4px; min-width: 0; }
.dt-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dt-bar { display: block; height: 3px; border-radius: 2px; background: rgba(177, 140, 255, 0.55); width: 0; }
.dt-num, .dt-head span:not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; }
.dt-num { color: var(--muted); }
.dt-row .dt-num:nth-child(2) { color: var(--text); }
.dash-empty { padding: 12px 0; }
.live-count { padding: 12px 0 4px; color: var(--muted); }
.live-count b { color: var(--text); font-size: 20px; }
.visit-row { border-bottom: 1px solid var(--line); }
.visit { all: unset; box-sizing: border-box; cursor: pointer; width: 100%; display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 10px 0; font-size: 14px; }
.visit:hover .visit-what b { text-decoration: underline; }
.visit:focus-visible { outline: 2px solid #b18cff; outline-offset: 2px; }
.visit-when { color: var(--muted); font-variant-numeric: tabular-nums; }
.visit-what { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.visit-path { list-style: decimal; margin: 0 0 12px 166px; padding-left: 18px; font-size: 13.5px; }
.visit-path li { padding: 3px 0; }
.visit-path li span + span { margin-left: 12px; }
@media (max-width: 620px) { .visit { grid-template-columns: 1fr auto; } .visit-when { grid-column: 1 / -1; } .visit-path { margin-left: 0; } }
.inst { display: grid; grid-template-columns: 220px minmax(0, 1fr) 110px auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.inst-name { font-size: 14px; color: var(--muted); }
.inst-name b { color: var(--text); font-weight: 600; }
@media (max-width: 760px) { .inst { grid-template-columns: 1fr 100px auto; } .inst-name { grid-column: 1 / -1; } }
.dash-foot { max-width: 760px; }
.inst .btn.small { height: 42px; padding: 0 16px; }

/* Mortiflix UI: real screens, and the download counter */
.ui-hero { margin: 0 0 48px; }
.ui-hero img { display: block; width: 100%; height: auto; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.1); }
.ui-hero figcaption { margin-top: 12px; color: var(--muted); font-size: 14px; }
.ui-grid { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }
.ui-grid img { display: block; width: 100%; height: auto; border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.1); }
.ui-grid span { display: block; margin-top: 8px; color: var(--muted); font-size: 14px; }
.mf-note { margin: 16px 0 0; color: var(--muted); }
.mf-note b { color: var(--text); font-weight: 600; }
.dl-total { margin: 8px 0 0; color: var(--muted); font-variant-numeric: tabular-nums; }
.dl-total:empty { display: none; }
.dl-os .dl-count { font-variant-numeric: tabular-nums; }
@media (max-width: 760px) { .ui-grid { grid-template-columns: 1fr; } }
