/* Docs, round 9 (21.11.): the docs on the home page's system. Loaded after hub.css on /docs/ and /whats-new/ pages (build-hub.py page());
   r11: What's New shares every rule here (head, reading column, sidebar, rows), its own parts are in kit/whats-new.css.
   Same type scale, rhythm and tokens as index.html: titles --type-title, leads --type-lead secondary, heads --type-heading,
   body 17 at --lh-prose, measure --measure-doc (~70 characters). One accent per view: teal only for links, the current
   sidebar/TOC entry and the title's full stop; icons and cards are neutral. Hover only with a real pointer, press on
   press-down (motion.instant), release motion.quick. Tokens only: kit/tokens.css (r9 block), theme rules_extra.web_r9. */

/* ---------- page head ---------- */
:is([data-hub="docs"],[data-hub="whats-new"]) .sub-top-in{padding:var(--sw-space-8) 0 var(--sw-space-7)}
:is([data-hub="docs"],[data-hub="whats-new"]) .wiki:not(.has-toc){padding-top:0}
:is([data-hub="docs"],[data-hub="whats-new"]) .sub-title{font-size:var(--type-title);line-height:var(--lh-title);letter-spacing:var(--track-title);font-weight:700}
:is([data-hub="docs"],[data-hub="whats-new"]) .sub-intro{margin-top:var(--head-gap);max-width:var(--measure-lead);font-size:var(--type-lead);line-height:var(--lh-lead);color:var(--text-secondary)}
:is([data-hub="docs"],[data-hub="whats-new"]) .sub-crumbs{margin-bottom:var(--sw-space-4)}
:is([data-hub="docs"],[data-hub="whats-new"]) .sub-crumbs a{transition:color var(--motion-quick) var(--ease-out)}
:is([data-hub="docs"],[data-hub="whats-new"]) .sub-actions{margin-top:var(--sw-space-6)}
:is([data-hub="docs"],[data-hub="whats-new"]) .search{max-width:var(--measure-doc)}
@media (hover:hover) and (pointer:fine){:is([data-hub="docs"],[data-hub="whats-new"]) .sub-crumbs a:hover{color:var(--text-primary)}}
/* the docs home is the front door: same head rhythm as a home-page section (hero padding, 40 to the actions) */
:is([data-hub="docs"],[data-hub="whats-new"]) .hub-top:not(:has(.sub-crumbs)) .sub-top-in{padding:var(--hero-pad-top) 0 var(--gap-block)}
:is([data-hub="docs"],[data-hub="whats-new"]) .hub-top:not(:has(.sub-crumbs)) .sub-actions{margin-top:var(--hero-act-gap)}

/* ---------- reading column ---------- */
:is([data-hub="docs"],[data-hub="whats-new"]) .wiki{column-gap:var(--sw-space-8)}
:is([data-hub="docs"],[data-hub="whats-new"]) .doc{padding-top:var(--sw-space-6)}
:is([data-hub="docs"],[data-hub="whats-new"]) .doc>*{max-width:var(--measure-doc)}
:is([data-hub="docs"],[data-hub="whats-new"]) .doc>figure,:is([data-hub="docs"],[data-hub="whats-new"]) .doc>.ex-wrap,:is([data-hub="docs"],[data-hub="whats-new"]) .doc>.related,:is([data-hub="docs"],[data-hub="whats-new"]) .doc>.pn{max-width:none}
:is([data-hub="docs"],[data-hub="whats-new"]) .doc p,:is([data-hub="docs"],[data-hub="whats-new"]) .doc li{font-size:var(--type-body);line-height:var(--lh-prose);color:var(--text-secondary)}
:is([data-hub="docs"],[data-hub="whats-new"]) .doc p{text-wrap:pretty}
:is([data-hub="docs"],[data-hub="whats-new"]) .doc b,:is([data-hub="docs"],[data-hub="whats-new"]) .doc strong,:is([data-hub="docs"],[data-hub="whats-new"]) .doc .ui{font-weight:600;color:var(--text-primary)}
:is([data-hub="docs"],[data-hub="whats-new"]) .doc h2{margin:var(--gap-block) 0 var(--head-gap);font-size:var(--type-heading);line-height:1.2;font-weight:700;letter-spacing:var(--track-heading);color:var(--text-primary);text-wrap:balance}
:is([data-hub="docs"],[data-hub="whats-new"]) .doc>h2:first-child,:is([data-hub="docs"],[data-hub="whats-new"]) .doc>.toc-m+h2{margin-top:0}
:is([data-hub="docs"],[data-hub="whats-new"]) .doc h3{margin:var(--sw-space-6) 0 var(--sw-space-2);font-size:var(--type-body);line-height:1.4;font-weight:600;color:var(--text-primary)}
:is([data-hub="docs"],[data-hub="whats-new"]) .doc p{margin:0 0 var(--sw-space-4)}
:is([data-hub="docs"],[data-hub="whats-new"]) .doc li+li{margin-top:var(--sw-space-2)}
:is([data-hub="docs"],[data-hub="whats-new"]) .doc li::marker{color:var(--text-tertiary)}
/* links: the one accent; underline stays (links in running text must not rely on colour alone) */
:is([data-hub="docs"],[data-hub="whats-new"]) .doc a:not([class]){color:var(--accent-text);text-decoration-color:color-mix(in srgb,var(--accent-text) 45%,transparent);transition:text-decoration-color var(--motion-quick) var(--ease-out),opacity var(--motion-quick) var(--ease-out)}
@media (hover:hover) and (pointer:fine){:is([data-hub="docs"],[data-hub="whats-new"]) .doc a:not([class]):hover{text-decoration-color:currentColor;text-decoration-thickness:1px}}
:is([data-hub="docs"],[data-hub="whats-new"]) .doc a:not([class]):active{opacity:.6;transition-duration:var(--motion-instant)}
:is([data-hub="docs"],[data-hub="whats-new"]) .doc a:not([class]):focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-radius:var(--radius-badge)}
/* code and keys */
:is([data-hub="docs"],[data-hub="whats-new"]) .doc code{padding:.12em .4em;border-radius:var(--radius-badge);background:var(--surface-control);box-shadow:inset 0 0 0 1px var(--border-faint);font-family:var(--font-mono);font-size:.86em;color:var(--text-primary)}
:is([data-hub="docs"],[data-hub="whats-new"]) .doc pre{font-family:var(--font-mono);font-size:var(--type-caption);line-height:var(--lh-body)}
:is([data-hub="docs"],[data-hub="whats-new"]) .doc kbd,:is([data-hub="docs"],[data-hub="whats-new"]) .kbd{display:inline-flex;align-items:center;justify-content:center;min-width:var(--size-kbd);height:var(--size-kbd);padding:0 var(--sw-space-2);border-radius:var(--radius-badge);background:var(--surface-control);box-shadow:inset 0 0 0 1px var(--border-hairline),inset 0 -1px 0 var(--border-strong);font:500 var(--type-micro)/1 var(--font);color:var(--text-secondary);vertical-align:.1em}
/* call-outs and steps: neutral, no accent */
:is([data-hub="docs"],[data-hub="whats-new"]) .note{margin:var(--sw-space-6) 0;padding:var(--sw-space-4) var(--sw-space-5);background:var(--surface-group);box-shadow:inset 0 0 0 1px var(--border-hairline)}
:is([data-hub="docs"],[data-hub="whats-new"]) .note .ci{color:var(--text-secondary)}
:is([data-hub="docs"],[data-hub="whats-new"]) .note p{font-size:var(--type-caption);line-height:var(--lh-body)}
:is([data-hub="docs"],[data-hub="whats-new"]) .steps>li::before{background:var(--surface-control);box-shadow:inset 0 0 0 1px var(--border-hairline);color:var(--text-primary)}
:is([data-hub="docs"],[data-hub="whats-new"]) .ex-cap{max-width:var(--measure-doc)}
:is([data-hub="docs"],[data-hub="whats-new"]) .ex-credit{display:block;margin-top:var(--sw-space-1);color:var(--text-tertiary)}

/* ---------- sidebar and on-this-page ---------- */
:is([data-hub="docs"],[data-hub="whats-new"]) .side h2{color:var(--text-tertiary);font-weight:600}
:is([data-hub="docs"],[data-hub="whats-new"]) .chap{transition:background-color var(--motion-quick) var(--ease-out),color var(--motion-quick) var(--ease-out)}
:is([data-hub="docs"],[data-hub="whats-new"]) .chap.is-home{font-weight:500}
:is([data-hub="docs"],[data-hub="whats-new"]) .toc a{transition:color var(--motion-quick) var(--ease-out),border-color var(--motion-quick) var(--ease-out)}
:is([data-hub="docs"],[data-hub="whats-new"]) .toc a:active{color:var(--text-primary);transition-duration:var(--motion-instant)}

/* ---------- docs home: one quiet list per group, the whole row is the link (no cards, no teal icon tiles) ---------- */
:is([data-hub="docs"],[data-hub="whats-new"]) .doc-wide{padding-top:var(--sw-space-6)}
:is([data-hub="docs"],[data-hub="whats-new"]) .home-grp+.home-grp,:is([data-hub="docs"],[data-hub="whats-new"]) .doc-wide>.related{margin-top:var(--gap-block)}
:is([data-hub="docs"],[data-hub="whats-new"]) .home-grp h2,:is([data-hub="docs"],[data-hub="whats-new"]) .related h2,:is([data-hub="docs"],[data-hub="whats-new"]) .changed h2{margin:0 0 var(--sw-space-3);font-size:var(--type-heading);line-height:1.2;font-weight:700;letter-spacing:var(--track-heading);color:var(--text-primary)}
:is([data-hub="docs"],[data-hub="whats-new"]) .home-grp h2::after,:is([data-hub="docs"],[data-hub="whats-new"]) .related h2::after,:is([data-hub="docs"],[data-hub="whats-new"]) .changed h2::after{content:none}
:is([data-hub="docs"],[data-hub="whats-new"]) .topics,:is([data-hub="docs"],[data-hub="whats-new"]) .related ul{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:var(--gap-tile);list-style:none;margin:0;padding:0}
:is([data-hub="docs"],[data-hub="whats-new"]) .topics li,:is([data-hub="docs"],[data-hub="whats-new"]) .related li{margin:0;border-top:1px solid var(--border-hairline)}
:is([data-hub="docs"],[data-hub="whats-new"]) .topic,:is([data-hub="docs"],[data-hub="whats-new"]) .related a{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:start;gap:var(--sw-space-4);height:auto;margin:var(--sw-space-1) calc(-1 * var(--sw-space-3));padding:var(--sw-space-4) var(--sw-space-3);border-radius:var(--radius-control);background:none;box-shadow:none;color:var(--text-primary);text-decoration:none;transition:background-color var(--motion-quick) var(--ease-out)}
:is([data-hub="docs"],[data-hub="whats-new"]) .topic>.ci,:is([data-hub="docs"],[data-hub="whats-new"]) .related a>.ci{width:20px;height:20px;margin-top:2px;color:var(--text-secondary)}
:is([data-hub="docs"],[data-hub="whats-new"]) .topic b,:is([data-hub="docs"],[data-hub="whats-new"]) .related b{display:block;font-size:var(--type-body);line-height:1.35;font-weight:600}
:is([data-hub="docs"],[data-hub="whats-new"]) .topic small,:is([data-hub="docs"],[data-hub="whats-new"]) .related small{display:block;margin-top:var(--sw-space-1);font-size:var(--type-caption);line-height:var(--lh-body);color:var(--text-secondary)}
:is([data-hub="docs"],[data-hub="whats-new"]) .topic .topic-chev{width:16px;height:16px;margin-top:4px;color:var(--text-tertiary);transition:transform var(--motion-quick) var(--ease-out),color var(--motion-quick) var(--ease-out)}
@media (hover:hover) and (pointer:fine){
  :is([data-hub="docs"],[data-hub="whats-new"]) .topic:hover,:is([data-hub="docs"],[data-hub="whats-new"]) .related a:hover{background:var(--surface-hover)}
  :is([data-hub="docs"],[data-hub="whats-new"]) .topic:hover .topic-chev{transform:translateX(2px);color:var(--text-secondary)}
}
:is([data-hub="docs"],[data-hub="whats-new"]) .topic:active,:is([data-hub="docs"],[data-hub="whats-new"]) .related a:active{background:var(--surface-pressed);transition-duration:var(--motion-instant)}
:is([data-hub="docs"],[data-hub="whats-new"]) .topic:focus-visible,:is([data-hub="docs"],[data-hub="whats-new"]) .related a:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}
/* devices: one row of quiet links */
:is([data-hub="docs"],[data-hub="whats-new"]) .devices{grid-template-columns:repeat(auto-fill,minmax(min(100%,180px),1fr));gap:0 var(--gap-tile)}
:is([data-hub="docs"],[data-hub="whats-new"]) .devices li{border-top:1px solid var(--border-hairline)}
:is([data-hub="docs"],[data-hub="whats-new"]) .devices a{flex-direction:row;align-items:center;gap:var(--sw-space-3);margin:var(--sw-space-1) calc(-1 * var(--sw-space-3));padding:var(--sw-space-3);background:none;box-shadow:none;font-size:var(--type-caption);font-weight:500;transition:background-color var(--motion-quick) var(--ease-out)}
:is([data-hub="docs"],[data-hub="whats-new"]) .devices a .ci{width:18px;height:18px;color:var(--text-secondary)}
@media (hover:hover) and (pointer:fine){:is([data-hub="docs"],[data-hub="whats-new"]) .devices a:hover{background:var(--surface-hover)}:is([data-hub="docs"],[data-hub="whats-new"]) .devices a:hover .ci{color:var(--text-secondary)}}
:is([data-hub="docs"],[data-hub="whats-new"]) .devices a:active{background:var(--surface-pressed);transition-duration:var(--motion-instant)}
/* topic page footer blocks */
:is([data-hub="docs"],[data-hub="whats-new"]) .doc>.changed{margin-top:var(--gap-block)}
:is([data-hub="docs"],[data-hub="whats-new"]) .doc>.related{margin-top:var(--sw-space-7)}
:is([data-hub="docs"],[data-hub="whats-new"]) .pn{margin-top:var(--sw-space-7);border-top-color:var(--border-hairline)}
:is([data-hub="docs"],[data-hub="whats-new"]) .pn a{transition:background-color var(--motion-quick) var(--ease-out)}

/* ---------- entrance: the docs home only, once per load (head, then the first groups), the home page's reveal values.
   Topic pages get none: people open them often and read at once (Emil: frequent views stay still). ---------- */
@media (prefers-reduced-motion:no-preference){
  :is([data-hub="docs"],[data-hub="whats-new"]) .hub-top:not(:has(.sub-crumbs)) .sub-top-in>*,:is([data-hub="docs"],[data-hub="whats-new"]) .doc-wide>.home-grp{animation:docs-in var(--motion-standard) var(--ease-out) both}
  :is([data-hub="docs"],[data-hub="whats-new"]) .hub-top:not(:has(.sub-crumbs)) .sub-intro{animation-delay:50ms}
  :is([data-hub="docs"],[data-hub="whats-new"]) .hub-top:not(:has(.sub-crumbs)) .sub-actions{animation-delay:90ms}
  :is([data-hub="docs"],[data-hub="whats-new"]) .doc-wide>.home-grp:nth-child(1){animation-delay:120ms}
  :is([data-hub="docs"],[data-hub="whats-new"]) .doc-wide>.home-grp:nth-child(n+2){animation-delay:150ms}
}
@keyframes docs-in{from{opacity:0;transform:translateY(var(--reveal-rise))}}

/* ---------- phone ---------- */
@media (max-width:700px){
  :is([data-hub="docs"],[data-hub="whats-new"]) .topics,:is([data-hub="docs"],[data-hub="whats-new"]) .related ul{grid-template-columns:minmax(0,1fr)}
  :is([data-hub="docs"],[data-hub="whats-new"]) .sub-top-in{padding:var(--sw-space-7) 0 var(--sw-space-6)}
  :is([data-hub="docs"],[data-hub="whats-new"]) .hub-top:not(:has(.sub-crumbs)) .sub-top-in{padding:var(--sw-space-8) 0 var(--sw-space-7)}
  :is([data-hub="docs"],[data-hub="whats-new"]) .devices{grid-template-columns:repeat(2,minmax(0,1fr))}
}
/* row links inside a topic (Related topics, Changed in) are not running-text links: no teal, no underline, no fade on press */
:is([data-hub="docs"],[data-hub="whats-new"]) .doc .related a:not([class]),:is([data-hub="docs"],[data-hub="whats-new"]) .doc .changed a:not([class]){color:var(--text-primary);text-decoration:none}
:is([data-hub="docs"],[data-hub="whats-new"]) .doc .changed a:not([class]){color:var(--text-secondary)}
:is([data-hub="docs"],[data-hub="whats-new"]) .doc .related a:not([class]):active,:is([data-hub="docs"],[data-hub="whats-new"]) .doc .changed a:not([class]):active{opacity:1}

/* ---------- r10: the 4 app examples, rebuilt from the app code (Swiftly-Rust rust-umbau), 1 CSS px = 1 app point.
   connect = ServerOnboardingView + InputField + AdvancedSection + PrimaryButtonStyle + SubpageHeader;
   downloads = DownloadsView header/cache bar, GroupsTitle, DownloadRow, DownloadRing, ProgressBar;
   hand over + subtitles = iOS PlayerBar (BarRail, PlayerGlass) + MenuBox/MenuRows (device, check, value, segments).
   The kind mark above the question is the ORIGINAL Jellyfin icon from jellyfin/jellyfin-ux (CC BY-SA 4.0, kit/assets/CREDITS.md),
   never a redrawn shape (r11). Tokens: tokens.css r10. ---------- */
.ex-wrap{margin:var(--sw-space-6) 0}
.ex{position:relative;display:flex;justify-content:center;align-items:flex-start;padding:var(--sw-space-6) var(--sw-space-5) 0;border-radius:var(--radius-window);background:var(--surface-group);box-shadow:inset 0 0 0 1px var(--border-faint);overflow:hidden}
.ex.is-wide{flex-direction:column;align-items:center;padding:var(--sw-space-5)}
.ex-cap{margin-top:var(--sw-space-3);font-size:var(--type-small);line-height:var(--lh-body);color:var(--text-tertiary)}
.x-ctl{display:flex;justify-content:center;flex-wrap:wrap;gap:var(--sw-space-2);margin-top:var(--sw-space-3)}
.ex .ci{flex:none}
/* the phone screen, upright: the top of the screen, cut at the card's bottom edge */
.scr.a-ios{zoom:var(--ex-zoom);position:relative;width:var(--app-screen-w);height:var(--app-screen-h);border-radius:var(--radius-window) var(--radius-window) 0 0;background:var(--app-surface-base);color:var(--app-text-primary);box-shadow:var(--shadow-window);font-family:var(--font);overflow:hidden;color-scheme:dark}
.a-pg{padding:0 var(--app-page)}
/* SubpageHeader: back arrow in a 44 frame (inset 2), 28 bold title, 18 below */
.a-subhd{display:flex;align-items:center;gap:var(--sw-space-1);height:var(--app-control-h);margin:var(--sw-space-3) 0 18px;padding-left:2px}
.a-backbtn{display:flex;align-items:center;justify-content:center;width:var(--app-control-h);height:var(--app-control-h)}
.a-backbtn .ci{width:var(--app-icon-header);height:var(--app-icon-header)}
.a-subhd .b,.a-dlhd .b{font-size:var(--app-type-title);font-weight:700;letter-spacing:var(--app-track-title);line-height:1.15}
/* ServerKindMark(kind: .jellyfin, size: 44), 8 below the header, the question 20 below it (RootView.swift, pushed path) */
.a-kind{display:block;width:44px;height:44px;margin-top:8px}
.a-kind+.a-ask{margin-top:20px}
.a-ask{margin:var(--sw-space-2) 0 14px;font-size:var(--app-type-row);color:var(--app-text-secondary)}
.a-field{display:flex;align-items:center;gap:10px;min-height:var(--app-control-h);padding:0 14px;border-radius:var(--app-radius-field);background:var(--app-surface-control);font-size:var(--app-type-row);animation:a-focus var(--ex-loop) steps(1) infinite}
.a-field .ci{width:var(--app-icon-field);height:var(--app-icon-field);color:var(--app-text-primary)}
.a-in{position:relative;flex:1;min-width:0}
.a-ph{position:absolute;inset:0;color:var(--app-text-tertiary);animation:a-ph var(--ex-loop) steps(1) infinite}
.a-type{display:inline-block;white-space:nowrap;clip-path:inset(0 100% 0 0);animation:a-type var(--ex-loop) steps(17,end) infinite}
.a-hint{margin:10px 0 0 2px;font-size:var(--app-type-small);line-height:1.35;color:var(--app-text-tertiary)}
.a-adv{display:flex;align-items:center;gap:6px;min-height:var(--app-control-h);margin-top:10px;font-size:var(--app-type-small);color:var(--app-text-secondary)}
.a-adv .ci{width:11px;height:11px}
.a-pri{position:relative;display:flex;align-items:center;justify-content:center;height:var(--app-primary-h);margin-top:20px;border-radius:var(--radius-control);font-size:var(--app-type-button);font-weight:600;animation:a-pri var(--ex-loop) var(--ease-out) infinite}
.a-pri span{position:absolute}
.a-pri .b1{animation:a-b1 var(--ex-loop) steps(1) infinite}
.a-pri .b2{opacity:0;animation:a-b2 var(--ex-loop) steps(1) infinite}
@keyframes a-focus{0%,9%{box-shadow:none}10%,62%{box-shadow:inset 0 0 0 2px var(--app-border-edge)}63%,100%{box-shadow:none}}
@keyframes a-ph{0%{opacity:1}14%,100%{opacity:0}}
@keyframes a-type{0%,14%{clip-path:inset(0 100% 0 0)}44%,100%{clip-path:inset(0 0 0 0)}}
@keyframes a-pri{0%,45%{opacity:.4;background:var(--app-surface-control);color:var(--app-text-tertiary);transform:none}
  46%,55%{opacity:1;background:var(--app-accent);color:var(--app-text-on-accent);transform:none}
  56%,58%{opacity:1;background:var(--app-accent);color:var(--app-text-on-accent);transform:scale(.97)}
  59%,100%{opacity:1;background:var(--app-surface-control);color:var(--app-text-tertiary);transform:none}}
@keyframes a-b1{0%,58%{opacity:1}59%,100%{opacity:0}}
@keyframes a-b2{0%,58%{opacity:0}59%,100%{opacity:1}}
/* Downloads: BlurHeader (20 sides, 12 below), title row + header targets 16 apart, cache bar 6 */
.a-dlhd{display:flex;align-items:center;justify-content:space-between;height:var(--app-control-h);margin-top:var(--sw-space-3);padding:0 var(--app-page)}
.a-acts{display:flex;align-items:center;gap:var(--sw-space-4)}
.a-acts .ci{width:var(--app-icon-header);height:var(--app-icon-header)}
.a-av{display:flex;align-items:center;justify-content:center;width:var(--app-avatar-size);height:var(--app-avatar-size);border-radius:var(--radius-pill);background:var(--app-avatar);font-size:var(--app-type-detail);font-weight:600}
.a-cache{display:flex;height:var(--app-cache-h);margin:var(--sw-space-3) var(--app-page) var(--sw-space-3);border-radius:var(--radius-pill);overflow:hidden}
.a-cache i{width:18%;background:var(--app-accent)}.a-cache s{width:62%;background:var(--app-surface-raised)}
.a-grp{margin:var(--sw-space-1) 0 10px;font-size:var(--app-type-section);font-weight:700;letter-spacing:var(--app-track-section);color:var(--app-text-primary)}
.a-dl{display:grid;grid-template-columns:var(--app-poster-w) minmax(0,1fr) var(--app-control-h);gap:var(--sw-space-3);align-items:center;padding:10px 0}
.a-dl img{width:var(--app-poster-w);height:var(--app-poster-h);object-fit:cover;border-radius:var(--app-radius-tile)}
.a-dl .b{display:block;font-size:var(--app-type-row);font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.a-dl small{display:block;margin-top:3px;font-size:var(--app-type-small);font-variant-numeric:tabular-nums;color:var(--app-text-tertiary)}
.a-dl small.acc{color:var(--app-accent)}
.a-bar{display:block;height:var(--app-bar-h);margin-top:5px;border-radius:var(--radius-pill);background:var(--app-ring-track);overflow:hidden}
.a-bar i{display:block;width:34%;height:100%;border-radius:var(--radius-pill);background:var(--app-accent);animation:a-grow var(--ex-loop) linear infinite}
.a-bar.is-halt i{width:52%;animation:none}
.a-ring{position:relative;justify-self:center;display:flex;align-items:center;justify-content:center;width:var(--app-ring);height:var(--app-ring)}
svg.a-ring,.a-ring svg{width:var(--app-ring);height:var(--app-ring);fill:none;stroke-width:2}
.a-ring>svg{position:absolute;inset:0}
.a-ring .tr{stroke:var(--app-ring-track)}
.a-ring .arc{stroke-linecap:round;stroke-dasharray:100;transform:rotate(-90deg);transform-origin:center}
.a-ring.is-load .arc{stroke:var(--app-accent);stroke-dashoffset:66;animation:a-arc var(--ex-loop) linear infinite}
.a-ring.is-load rect{fill:var(--app-accent);stroke:none}
.a-ring.is-halt .arc{stroke:var(--app-text-secondary);stroke-dashoffset:48}
.a-ring.is-wait .dash{stroke:var(--app-text-tertiary);stroke-dasharray:3 4}
.a-ring .ci{position:relative;width:11px;height:11px}
.a-ring.is-halt .ci{color:var(--app-text-primary)}.a-ring.is-wait .ci{color:var(--app-text-tertiary)}
@keyframes a-grow{from{width:34%}to{width:41%}}
@keyframes a-arc{from{stroke-dashoffset:66}to{stroke-dashoffset:59}}
/* the player on iPhone, sideways: 874 x 402 points, scaled as one */
.a-stage{zoom:var(--ex-zoom-wide);width:var(--app-landscape-w);max-width:none}
.a-pl{position:relative;width:var(--app-landscape-w);height:var(--app-landscape-h);border-radius:var(--radius-window);background:var(--app-black) center/cover;box-shadow:var(--shadow-window);overflow:hidden;color:var(--app-text-primary);font-family:var(--font);color-scheme:dark}
.a-pl>*{position:absolute}
.a-scrim{inset:0;background:linear-gradient(180deg,var(--app-scrim-top),transparent 34%,transparent 70%,var(--app-scrim-top))}
.a-ttl{left:var(--app-page);top:var(--app-player-top)}
.a-ttl .b{display:block;font-size:var(--app-type-player-title);font-weight:600;line-height:1.3}
.a-ttl small{font-size:var(--app-type-detail);color:var(--app-text-secondary)}
.a-rail{right:var(--app-page);top:var(--app-player-top);display:flex;gap:var(--sw-space-2);height:var(--app-bar-btn-h)}
.a-glass{display:flex;border-radius:var(--radius-pill);background:var(--app-scrim-glass);box-shadow:inset 0 0 0 1px var(--app-glass-edge);-webkit-backdrop-filter:blur(var(--app-glass-blur));backdrop-filter:blur(var(--app-glass-blur))}
.a-cap>span,.a-close{display:flex;align-items:center;justify-content:center;width:var(--app-bar-btn-w);height:var(--app-bar-btn-h);border-radius:var(--radius-pill)}
.a-close{width:var(--app-bar-btn-h)}
.a-glass .ci{width:var(--app-icon-bar);height:var(--app-icon-bar);filter:drop-shadow(var(--app-glyph-shadow))}
.a-cap .is-open{background:var(--app-surface-selected)}
.a-menu{right:var(--app-page);top:calc(var(--app-player-top) + var(--app-bar-btn-h) + var(--sw-space-2));width:var(--app-menu-w);padding:var(--app-menu-box-pad);border-radius:var(--app-menu-radius);background:var(--app-surface-group);box-shadow:inset 0 0 0 1px var(--app-border-edge),var(--app-shadow-menu);transform-origin:top right}
.a-hom{right:calc(var(--app-page) + var(--app-bar-btn-h) + var(--sw-space-2));animation:a-open var(--ex-loop) var(--ease-out) infinite}
.a-ho{animation:a-hobtn var(--ex-loop) steps(1) infinite}
.a-sec{display:flex;align-items:center;height:calc(var(--app-menu-row) - var(--sw-space-3));margin:0;padding:0 var(--app-menu-pad);font-size:var(--app-type-detail);font-weight:600;color:var(--app-text-tertiary)}
.a-dev,.a-chk,.a-val{display:flex;align-items:center;gap:var(--sw-space-2);min-height:var(--app-menu-row);padding:0 var(--app-menu-pad);border-radius:var(--app-menu-row-radius);font-size:var(--app-type-row)}
.a-dev .b,.a-chk .b,.a-val .b{flex:1;min-width:0;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.a-dev small,.a-chk small,.a-val small{display:block;margin:0;position:relative;font-size:var(--app-type-detail);color:var(--app-text-tertiary);white-space:nowrap}
.a-ic{position:relative;display:flex;width:var(--app-icon-field);height:var(--app-icon-field)}
.a-ic .ci{width:var(--app-icon-field);height:var(--app-icon-field)}
.a-spin{position:absolute;inset:0;margin:auto;width:var(--app-spin);height:var(--app-spin);border-radius:var(--radius-pill);box-shadow:inset 0 0 0 2px var(--app-ring-track);border:2px solid transparent;border-top-color:var(--app-text-primary);opacity:0;animation:a-spin .8s linear infinite,a-k2 var(--ex-loop) steps(1) infinite}
.a-dev.d1 .ci{animation:a-k1 var(--ex-loop) steps(1) infinite}
.a-dev.d1{animation:a-row var(--ex-loop) steps(1) infinite}
.a-dev .k2,.a-hintm .k2{position:absolute;right:0;opacity:0}.a-hintm .k2{left:var(--app-menu-pad);right:auto}
.a-dev .k1,.a-hintm .k1{animation:a-k1 var(--ex-loop) steps(1) infinite}
.a-dev .k2,.a-hintm .k2{animation:a-k2 var(--ex-loop) steps(1) infinite}
.a-dev.d2{animation:a-dim var(--ex-loop) steps(1) infinite}
.a-div{height:1px;margin:6px var(--app-menu-pad);background:var(--app-border-hairline)}
.a-hintm{position:relative;margin:0;padding:var(--sw-space-1) var(--app-menu-pad) var(--sw-space-2);font-size:var(--app-type-detail);color:var(--app-text-tertiary)}
.a-hintm .k2{top:var(--sw-space-1)}
@keyframes a-open{0%,7%{opacity:0;transform:scale(.96)}12%,86%{opacity:1;transform:none}92%,100%{opacity:0;transform:scale(.96)}}
@keyframes a-hobtn{0%,7%{background:transparent}8%,88%{background:var(--app-surface-selected)}89%,100%{background:transparent}}
@keyframes a-row{0%,29%{background:transparent}30%,35%{background:var(--app-surface-selected)}36%,38%{background:var(--app-surface-focus)}39%,100%{background:transparent}}
@keyframes a-k1{0%,38%{opacity:1}39%,100%{opacity:0}}
@keyframes a-k2{0%,38%{opacity:0}39%,100%{opacity:1}}
@keyframes a-dim{0%,38%{opacity:1}39%,100%{opacity:.4}}
@keyframes a-spin{to{transform:rotate(360deg)}}
/* Audio & Subtitles: segments (raised pill on control), check rows, value rows; the subtitle line on the film */
.a-seg{display:flex;align-items:center;gap:6px;height:var(--app-menu-row);padding:0 2px}
.a-segs{display:flex;flex:1;padding:3px;border-radius:var(--app-menu-row-radius);background:var(--app-surface-control)}
.a-segs span{flex:1;display:flex;align-items:center;justify-content:center;min-height:calc(var(--app-menu-row) - 14px);border-radius:var(--radius-small);font-size:var(--app-type-detail);font-weight:600;color:var(--app-text-secondary)}
.a-segs .on{background:var(--app-surface-raised);color:var(--app-text-primary)}
.a-find{display:flex;align-items:center;justify-content:center;width:40px;height:40px}
.a-find .ci{width:var(--app-icon-field);height:var(--app-icon-field)}
.a-ck{display:flex;justify-content:center;width:18px}
.a-ck .ci{width:var(--app-icon-menu);height:var(--app-icon-menu);opacity:0}
.a-chk.o1 .ci{animation:a-k1 var(--ex-loop) steps(1) infinite}
.a-chk.o2 .ci{animation:a-k2 var(--ex-loop) steps(1) infinite}
.a-chk.o2{animation:a-row var(--ex-loop) steps(1) infinite}
.a-val .ci{width:var(--app-icon-chev);height:var(--app-icon-chev);color:var(--app-text-tertiary)}
.a-line{left:0;right:0;bottom:var(--sw-space-7);margin:0;text-align:center;font-size:var(--app-type-player-title);font-weight:600;text-shadow:var(--app-sub-shadow);animation:a-k2 var(--ex-loop) steps(1) infinite}
.a-line span{padding:2px var(--sw-space-2);border-radius:var(--radius-badge)}
.x-subs.has-bg .a-line span{background:var(--app-sub-box);text-shadow:none}
@media (max-width:1100px){:root{--ex-zoom-wide:.56}}
@media (max-width:700px){:root{--ex-zoom-wide:.5}}
@media (max-width:560px){:root{--ex-zoom:.74;--ex-zoom-wide:.36}.ex.is-wide{padding:var(--sw-space-3)}}
@media (prefers-reduced-motion:reduce){
  .a-field,.a-ph,.a-type,.a-pri,.a-pri .b1,.a-pri .b2,.a-bar i,.a-ring .arc,.a-hom,.a-ho,.a-dev.d1,.a-dev.d1 .ci,.a-dev .k1,.a-dev .k2,.a-hintm .k1,.a-hintm .k2,.a-dev.d2,.a-spin,.a-chk.o1 .ci,.a-chk.o2 .ci,.a-chk.o2,.a-line{animation:none}
  .a-ph{opacity:0}.a-type{clip-path:none}.a-pri{background:var(--app-accent);color:var(--app-text-on-accent)}
  .a-chk.o2 .ci,.a-line{opacity:1}
}
