Files
arr/web/src/components.css
T
Miguel PalhasandClaude Opus 5.5 e953358f20 build(web): add React and Tailwind to the SPA
Tailwind's theme is reset to the design tokens and the existing
stylesheet moves under a components cascade layer, so utilities can
only produce token values and still win over component rules.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-11-11 00:36:23 +00:00

2719 lines
53 KiB
CSS

/* arr — master-control board, revision 2 (mobile first).
Tokens mirror .impeccable/design.json; components consume tokens, never
literals. Committed dark: a control room is lit by its lamps.
The phone is the base layout: rules here are the 390px truth, and the
min-width queries at the end of each block add room as it appears. Rows
answer to their container (`.deck` and every inline panel are containers),
so a row lays out the same in a narrow panel as on a narrow screen. */
@font-face {
font-family: "Rajdhani";
font-style: normal;
font-weight: 600;
font-display: swap;
src: url("/fonts/rajdhani-600-latin.woff2") format("woff2");
}
@font-face {
font-family: "Rajdhani";
font-style: normal;
font-weight: 700;
font-display: swap;
src: url("/fonts/rajdhani-700-latin.woff2") format("woff2");
}
:root {
/* ground and panels */
--ground: oklch(0.14 0.01 250);
--panel: oklch(0.18 0.012 250);
--panel-raised: oklch(0.21 0.014 250);
--line: oklch(0.3 0.015 250);
--line-strong: oklch(0.42 0.02 250);
--highlight: oklch(1 0 0 / 4%);
/* ink */
--ink: oklch(0.93 0.008 250);
--ink-muted: oklch(0.72 0.015 250);
--ink-faint: oklch(0.58 0.015 250);
/* signal lamps: ok on disk, warn needs you or armed, fault broken */
--signal-ok: oklch(0.8 0.17 150);
--signal-warn: oklch(0.82 0.14 80);
--signal-fault: oklch(0.68 0.21 25);
--signal-idle: oklch(0.45 0.02 250);
/* the one interactive hue */
--accent: oklch(0.8 0.12 220);
--accent-bright: oklch(0.88 0.12 220);
/* dead lamp and pressed-control lowlight */
--lamp-off: oklch(0.3 0.012 250);
--lowlight: oklch(0 0 0 / 30%);
/* release verdicts (§9.3) — rejected is quiet slate, never fault red */
--verdict-eligible: oklch(0.8 0.17 150);
--verdict-waived: oklch(0.82 0.14 80);
--verdict-rejected: oklch(0.68 0.02 250);
/* score heat scale (issue #111) — list-relative, lowest red to highest green */
--score-0: oklch(0.68 0.19 25);
--score-1: oklch(0.7 0.185 46);
--score-2: oklch(0.72 0.175 67);
--score-3: oklch(0.75 0.165 88);
--score-4: oklch(0.77 0.16 108);
--score-5: oklch(0.79 0.165 129);
--score-6: oklch(0.8 0.17 150);
/* activity: airing, downloading */
--status-airing: oklch(0.78 0.14 305);
/* type */
--font-label: system-ui, -apple-system, "Segoe UI", sans-serif;
--font-readout:
ui-monospace, "SF Mono", "Cascadia Mono", "JetBrains Mono", Menlo, Consolas, monospace;
--font-display: "Rajdhani", "Avenir Next Condensed", "Arial Narrow", sans-serif;
--text-2xs: 0.6875rem;
--text-xs: 0.75rem;
--text-sm: 0.8125rem;
--text-base: 1rem;
--text-md: 1.0625rem;
--text-lg: 1.3125rem;
--text-xl: 1.625rem;
/* rhythm */
--space-1: 0.25rem;
--space-2: 0.5rem;
--space-3: 0.75rem;
--space-4: 1rem;
--space-6: 1.5rem;
--space-8: 2rem;
--space-12: 3rem;
--radius: 4px;
--ease-out: cubic-bezier(0.25, 1, 0.5, 1);
/* geometry: a 44px touch target, a 24px chip, one row height */
--control-h: 2.75rem;
--chip-h: 1.5rem;
--row-min: 3.5rem;
--toggle-w: 8.5rem;
--word-w: 5.5rem;
--rail-h: 3.25rem;
--tabbar-h: 3.5rem;
/* the device's own edges */
--safe-top: env(safe-area-inset-top, 0px);
--safe-bottom: env(safe-area-inset-bottom, 0px);
--gutter: max(var(--space-4), env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
--tabbar-space: calc(var(--tabbar-h) + var(--safe-bottom));
}
/* the tab bar becomes rail links */
@media (min-width: 40rem) {
:root {
--tabbar-space: 0px;
--word-w: 7.5rem;
}
}
/* dense only where a mouse and room both exist */
@media (pointer: fine) and (min-width: 64rem) {
:root {
--control-h: 2.25rem;
--row-min: 3rem;
--toggle-w: 8rem;
}
}
* {
box-sizing: border-box;
}
html,
body {
margin: 0;
padding: 0;
}
html {
scroll-padding-top: var(--rail-h);
-webkit-text-size-adjust: 100%;
}
body {
min-height: 100dvh;
display: flex;
flex-direction: column;
padding-bottom: var(--tabbar-space);
background: var(--ground);
color: var(--ink);
font-family: var(--font-label);
font-size: var(--text-base);
line-height: 1.5;
-webkit-tap-highlight-color: transparent;
}
::selection {
background: oklch(from var(--accent) l c h / 35%);
color: var(--ink);
}
* {
scrollbar-color: var(--line-strong) transparent;
}
.readout {
font-family: var(--font-readout);
font-size: var(--text-sm);
font-variant-numeric: tabular-nums;
}
.dim {
color: var(--ink-muted);
}
:focus-visible {
outline: 2px solid var(--accent);
outline-offset: 2px;
}
/* a heading focused on navigation is a reading position, not a control */
[tabindex="-1"]:focus {
outline: none;
}
/* hidden wins over every display rule a component sets; the one exception is
a status slot, which keeps its line while empty */
[hidden]:not(.deck-status) {
/* biome-ignore lint/complexity/noImportantStyles: `hidden` must beat component display rules */
display: none !important;
}
/* ---- lamps ------------------------------------------------------------ */
.lamp {
--lamp: var(--signal-idle);
width: 0.625rem;
height: 0.625rem;
flex: none;
border-radius: 50%;
background: var(--lamp);
/* the panel's own device: a lit indicator, not a depth shadow */
box-shadow:
0 0 6px var(--lamp),
0 0 14px oklch(from var(--lamp) l c h / 35%);
transition: background 300ms var(--ease-out);
}
.lamp-big {
width: 0.875rem;
height: 0.875rem;
}
.lamp[data-state="ok"] {
--lamp: var(--signal-ok);
}
.lamp[data-state="unconfigured"],
.lamp[data-state="degraded"],
.lamp[data-state="warn"] {
--lamp: var(--signal-warn);
}
.lamp[data-state="unreachable"] {
--lamp: var(--signal-fault);
}
.lamp[data-state="probing"] {
--lamp: var(--signal-idle);
animation: lamp-probe 1.2s var(--ease-out) infinite alternate;
}
/* dead air: dark, no glow, no motion */
.lamp[data-state="off"] {
--lamp: var(--lamp-off);
box-shadow: none;
}
@keyframes lamp-probe {
from {
opacity: 0.45;
}
to {
opacity: 1;
}
}
/* power-up: lamps flicker on upstream to downstream, once, on first verdict */
@keyframes lamp-strike {
0% {
opacity: 0.2;
}
40% {
opacity: 1;
}
55% {
opacity: 0.35;
}
100% {
opacity: 1;
}
}
.chain.powered .lamp {
animation: lamp-strike 420ms var(--ease-out) both;
animation-delay: calc(var(--strike, 0) * 120ms);
}
.chain.powered .lamp[data-state="off"] {
animation: none;
}
/* ---- type roles --------------------------------------------------------- */
/* one role per job: page title, section, group label, row title, readout */
.page-title {
margin: 0;
min-width: 0;
font-family: var(--font-display);
font-size: var(--text-lg);
font-weight: 700;
letter-spacing: 0.04em;
line-height: 1.1;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.section-title {
margin: 0;
font-family: var(--font-display);
font-size: var(--text-md);
font-weight: 600;
letter-spacing: 0.08em;
text-transform: uppercase;
line-height: 1.2;
color: var(--ink-muted);
}
/* the engraved micro-label: a group inside a section, never a kicker */
.deck-label {
margin: 0;
font-size: var(--text-2xs);
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.12em;
color: var(--ink-muted);
}
.deck-count {
font-size: var(--text-xs);
color: var(--ink-faint);
}
/* ---- controls ------------------------------------------------------------- */
/* primary: cyan word on a raised plate — one per header or panel */
.control {
display: inline-flex;
align-items: center;
justify-content: center;
gap: var(--space-2);
min-height: var(--control-h);
padding: 0 var(--space-4);
font-family: var(--font-readout);
font-size: var(--text-xs);
font-weight: 600;
font-variant-numeric: tabular-nums;
line-height: 1;
text-transform: uppercase;
letter-spacing: 0.08em;
white-space: nowrap;
text-decoration: none;
color: var(--accent);
background: var(--panel-raised);
border: 1px solid var(--line-strong);
border-radius: var(--radius);
box-shadow: inset 0 1px var(--highlight);
cursor: pointer;
transition:
border-color 150ms var(--ease-out),
color 150ms var(--ease-out),
background 150ms var(--ease-out);
}
.control:hover:not(:disabled) {
border-color: var(--accent);
color: var(--accent-bright);
}
.control:active:not(:disabled) {
box-shadow: inset 0 1px var(--lowlight);
}
.control:disabled {
color: var(--ink-faint);
border-color: var(--line);
cursor: default;
}
.control[data-busy] {
color: var(--ink-faint);
border-style: dashed;
cursor: progress;
}
.control[data-done] {
color: var(--signal-ok);
border-color: oklch(from var(--signal-ok) l c h / 55%);
}
.control[data-failed] {
color: var(--signal-fault);
border-color: oklch(from var(--signal-fault) l c h / 55%);
}
/* quiet: secondary actions — cancel, add, back, retry. Never a toggle. */
.control-quiet {
color: var(--ink);
background: transparent;
border-color: var(--line);
box-shadow: none;
}
/* a word control whose label changes keeps one width */
.control-fixed {
min-width: var(--word-w);
}
/* icon: a square glyph, the accessible name carries the meaning */
.control-icon {
width: var(--control-h);
min-width: var(--control-h);
padding: 0;
}
.control[aria-expanded="true"] {
border-color: var(--accent);
color: var(--accent-bright);
}
/* destructive rests red, so delete never reads like the glyph beside it */
.control[data-kind="delete"]:not(:disabled) {
color: var(--signal-fault);
}
.control[data-kind="delete"]:hover:not(:disabled),
.control[data-kind="delete"]:focus-visible:not(:disabled) {
border-color: var(--signal-fault);
color: var(--signal-fault);
}
/* armed: the same square, now an amber check — the next tap fires */
.control[data-armed="true"]:not(:disabled),
.control[data-armed="true"]:hover:not(:disabled) {
color: var(--ground);
background: var(--signal-warn);
border-color: var(--signal-warn);
}
.icon {
display: block;
flex: none;
width: 1rem;
height: 1rem;
fill: none;
stroke: currentColor;
stroke-width: 1.5;
stroke-linecap: round;
stroke-linejoin: round;
}
.icon[data-icon="more"] {
stroke-width: 2.2;
}
.icon[data-icon="play"] {
fill: currentColor;
stroke-width: 1;
}
/* provider wordmark badges (§9.6): drawn inline, monochrome */
.icon-mark {
width: auto;
height: 1.125rem;
}
.icon-mark rect {
stroke-width: 1.6;
}
.icon-mark text {
fill: currentColor;
stroke: none;
font-family: var(--font-readout);
font-weight: 700;
letter-spacing: 0.06em;
}
/* the chip-scale delete (#251): no plate, the armed glyph does the word's job */
.control-micro {
display: inline-flex;
align-items: center;
justify-content: center;
width: 1rem;
height: 1rem;
padding: 0;
margin-inline-start: var(--space-1);
color: var(--ink-faint);
background: none;
border: 0;
border-radius: 2px;
cursor: pointer;
}
.control-micro .icon {
width: 0.75rem;
height: 0.75rem;
}
.control-micro:hover:not(:disabled),
.control-micro:focus-visible {
color: var(--signal-fault);
background: oklch(from var(--signal-fault) l c h / 15%);
}
.control-micro[data-armed="true"] {
color: var(--ground);
background: var(--signal-warn);
}
.control-micro:disabled {
opacity: 0.5;
}
/* disclosure: full control height, the chevron turns, the plate holds its width */
.disclose {
justify-content: space-between;
min-width: 9rem;
}
.disclose .icon {
transition: transform 200ms var(--ease-out);
}
.disclose[aria-expanded="true"] .icon {
transform: rotate(180deg);
}
/* lamp toggle: a rule that is on or off, lamp plus word */
.toggle {
display: inline-flex;
align-items: center;
gap: var(--space-2);
min-height: var(--control-h);
padding: 0 var(--space-3);
font-family: var(--font-readout);
font-size: var(--text-xs);
font-weight: 600;
line-height: 1;
text-transform: uppercase;
letter-spacing: 0.08em;
white-space: nowrap;
color: var(--ink-muted);
background: transparent;
border: 1px solid var(--line);
border-radius: var(--radius);
cursor: pointer;
transition:
border-color 150ms var(--ease-out),
color 150ms var(--ease-out);
}
.toggle:hover:not(:disabled) {
border-color: var(--accent);
}
.toggle:disabled {
cursor: progress;
opacity: 0.6;
}
.toggle-lamp {
width: 0.5rem;
height: 0.5rem;
flex: none;
border-radius: 50%;
background: var(--lamp-off);
transition:
background 300ms var(--ease-out),
box-shadow 300ms var(--ease-out);
}
.toggle-state {
min-width: 3ch;
margin-left: auto;
text-align: left;
color: var(--ink-faint);
}
.toggle[aria-pressed="true"] {
color: var(--ink);
border-color: var(--line-strong);
}
.toggle[aria-pressed="true"] .toggle-lamp {
background: var(--accent);
box-shadow: 0 0 6px oklch(from var(--accent) l c h / 60%);
}
.toggle[aria-pressed="true"] .toggle-state {
color: var(--accent);
}
/* segmented: one choice of a few, the engaged side lit */
.segmented {
display: inline-flex;
flex: none;
min-width: 0;
margin: 0;
padding: 0;
border: 0;
}
.seg {
display: inline-flex;
align-items: center;
justify-content: center;
gap: var(--space-2);
min-height: var(--control-h);
padding: 0 var(--space-3);
font-family: var(--font-readout);
font-size: var(--text-xs);
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.08em;
color: var(--ink-muted);
background: transparent;
border: 1px solid var(--line);
cursor: pointer;
transition:
border-color 150ms var(--ease-out),
color 150ms var(--ease-out);
}
.seg:first-child {
border-radius: var(--radius) 0 0 var(--radius);
}
.seg:last-child {
border-radius: 0 var(--radius) var(--radius) 0;
}
.seg + .seg {
border-left-width: 0;
}
.seg-icon {
width: var(--control-h);
padding: 0;
}
.seg:hover {
color: var(--accent-bright);
}
/* the lit edge is drawn inside, so the joined borders never double */
.seg[aria-pressed="true"] {
color: var(--accent-bright);
background: var(--panel-raised);
box-shadow: inset 0 0 0 1px var(--accent);
}
.filter-count {
color: var(--ink-faint);
font-variant-numeric: tabular-nums;
}
.seg[aria-pressed="true"] .filter-count {
color: var(--ink-muted);
}
/* ---- chips ---------------------------------------------------------------- */
/* a label, not a target: shorter than a control, one line always */
.chip {
display: inline-flex;
flex: none;
align-items: center;
gap: var(--space-1);
height: var(--chip-h);
padding: 0 var(--space-2);
background: var(--panel-raised);
border: 1px solid var(--line);
border-radius: 3px;
font-family: var(--font-readout);
font-size: var(--text-2xs);
font-variant-numeric: tabular-nums;
line-height: 1;
white-space: nowrap;
color: var(--ink-muted);
}
.chip .icon {
width: 0.75rem;
height: 0.75rem;
stroke-width: 1.7;
}
/* a chip that explains itself on tap (§9.6 tooltips have no touch) */
.chip[data-explain],
.chip[role="button"],
button.chip {
font: inherit;
font-family: var(--font-readout);
font-size: var(--text-2xs);
cursor: pointer;
transition:
color 150ms var(--ease-out),
border-color 150ms var(--ease-out);
}
.chip[data-explain]:hover,
.chip[data-explain][aria-expanded="true"] {
border-color: currentColor;
}
/* release verdicts */
.chip[data-verdict="eligible"] {
color: var(--verdict-eligible);
border-color: oklch(from var(--verdict-eligible) l c h / 45%);
}
/* the dashed border is the visible mark of a relaxed rule */
.chip[data-verdict="waived"] {
color: var(--verdict-waived);
border-style: dashed;
border-color: oklch(from var(--verdict-waived) l c h / 55%);
}
.chip[data-verdict="rejected"] {
color: var(--verdict-rejected);
}
/* a subtitle wanted and not yet on disk is the system's errand, not yours */
.chip[data-verdict="wanted"] {
color: var(--ink);
border-color: var(--line-strong);
}
/* #227: blacklisted at import — the policy's own floor (amber, act on it) or
the release itself broken (fault red) */
.chip[data-blacklist="policy"] {
color: var(--signal-warn);
border-color: oklch(from var(--signal-warn) l c h / 55%);
}
.chip[data-blacklist="release"] {
color: var(--signal-fault);
border-color: oklch(from var(--signal-fault) l c h / 55%);
}
/* media state (§4.2): green on disk, violet downloading; wanted-and-missing
is ink — the system is on it, nothing needs you yet */
.chip[data-movie-state="available"] {
color: var(--signal-ok);
border-color: oklch(from var(--signal-ok) l c h / 45%);
}
.chip[data-movie-state="downloading"] {
color: var(--status-airing);
border-color: oklch(from var(--status-airing) l c h / 45%);
}
.chip[data-movie-state="missing"][data-wanted="true"] {
color: var(--ink);
border-color: var(--line-strong);
}
/* §9.8: the slot is refilled in place by the poll and takes no box itself */
.dl-slot {
display: contents;
}
/* §9.8: live download state, fixed width so 9% → 10% never moves a neighbour */
.dl-chip {
min-width: 7ch;
justify-content: center;
}
.dl-chip[data-dl-phase="downloading"] {
color: var(--status-airing);
border-color: oklch(from var(--status-airing) l c h / 45%);
}
.dl-chip[data-dl-phase="stalled"] {
color: var(--signal-warn);
border-color: oklch(from var(--signal-warn) l c h / 55%);
}
.dl-chip[data-dl-phase="errored"] {
color: var(--signal-fault);
border-color: oklch(from var(--signal-fault) l c h / 55%);
}
.dl-chip[data-dl-phase="seeding"] {
color: var(--signal-ok);
border-color: oklch(from var(--signal-ok) l c h / 45%);
}
/* library status (§4.2): violet while live, green once complete; incomplete
and waiting are neutral — amber is kept for what needs you */
.chip[data-status="airing"] {
color: var(--status-airing);
border-color: oklch(from var(--status-airing) l c h / 45%);
}
.chip[data-status="incomplete"] {
color: var(--ink);
border-color: var(--line-strong);
}
.chip[data-status="complete"],
.chip[data-status="ended"],
.chip[data-counts="complete"] {
color: var(--signal-ok);
border-color: oklch(from var(--signal-ok) l c h / 45%);
}
.chip[data-counts="partial"] {
color: var(--ink);
}
/* issue 122: gone upstream while its file remained — a conflict, amber dashed */
.chip[data-flag="vanished"] {
color: var(--signal-warn);
border-style: dashed;
border-color: oklch(from var(--signal-warn) l c h / 55%);
}
/* a machine translation reads as machine-made (§15) — the relaxed-case dash */
.chip[data-mt="true"] {
border-style: dashed;
}
.chip[data-tone="fault"] {
color: var(--signal-fault);
border-color: oklch(from var(--signal-fault) l c h / 55%);
}
/* a chip whose whole label is its glyph */
.chip-glyph {
min-width: var(--chip-h);
justify-content: center;
padding: 0 var(--space-1);
}
.star {
width: 0.625rem;
height: 0.625rem;
flex: none;
fill: var(--ink);
}
/* ---- the rail and the tab bar ------------------------------------------- */
.rail {
position: sticky;
top: 0;
z-index: 20;
padding-top: var(--safe-top);
border-bottom: 1px solid var(--line);
background: var(--panel);
box-shadow: inset 0 1px var(--highlight);
}
.rail-inner {
display: flex;
align-items: center;
gap: var(--space-3);
width: 100%;
max-width: 68rem;
height: var(--rail-h);
margin-inline: auto;
padding-inline: var(--gutter);
}
.rail-id {
display: flex;
flex: none;
align-items: center;
gap: var(--space-3);
margin-right: auto;
}
/* §9.7: the wordmark is a link home */
.wordmark {
font-family: var(--font-display);
font-size: var(--text-xl);
font-weight: 700;
letter-spacing: 0.1em;
line-height: 1;
color: var(--ink);
text-decoration: none;
}
.wordmark:hover,
.wordmark:focus-visible {
color: var(--accent-bright);
}
.rail-nav {
display: none;
}
.nav-link {
display: inline-flex;
align-items: center;
gap: var(--space-2);
min-height: var(--control-h);
padding: 0 var(--space-3);
font-family: var(--font-readout);
font-size: var(--text-xs);
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.08em;
color: var(--ink-muted);
text-decoration: none;
border-bottom: 2px solid transparent;
}
.nav-link:hover {
color: var(--accent-bright);
}
.nav-link[aria-current="page"] {
color: var(--accent);
border-bottom-color: var(--accent);
}
/* attention: amber count on the queues destination, wherever it sits */
.nav-count {
font-size: var(--text-xs);
color: var(--signal-warn);
}
.rail-search {
position: relative;
display: none;
flex: 1;
align-items: center;
min-width: 0;
}
.rail-search-glyph {
position: absolute;
left: var(--space-3);
color: var(--ink-faint);
pointer-events: none;
}
.search-input {
width: 100%;
min-height: var(--control-h);
padding: 0 var(--space-8) 0 var(--space-8);
font-size: var(--text-base);
color: var(--ink);
background: var(--ground);
border: 1px solid var(--line);
border-radius: var(--radius);
box-shadow: inset 0 1px var(--lowlight);
caret-color: var(--accent);
transition: border-color 150ms var(--ease-out);
}
.search-input::placeholder {
color: var(--ink-faint);
opacity: 1;
}
.search-input:hover {
border-color: var(--line-strong);
}
.search-input:focus {
border-color: var(--accent);
outline: none;
}
.search-hint {
position: absolute;
right: var(--space-3);
display: none;
padding: 0 var(--space-1);
font-size: var(--text-2xs);
color: var(--ink-faint);
border: 1px solid var(--line);
border-radius: var(--radius);
pointer-events: none;
}
.rail-search-close {
flex: none;
margin-left: var(--space-2);
}
.rail-version {
display: none;
font-size: var(--text-xs);
}
.tabbar {
position: fixed;
right: 0;
bottom: 0;
left: 0;
z-index: 20;
display: grid;
grid-template-columns: repeat(4, 1fr);
height: var(--tabbar-space);
padding-bottom: var(--safe-bottom);
background: var(--panel);
border-top: 1px solid var(--line);
}
.tab {
position: relative;
display: grid;
place-items: center;
align-content: center;
gap: var(--space-1);
font-size: var(--text-2xs);
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.1em;
color: var(--ink-faint);
text-decoration: none;
}
.tab[aria-current="page"] {
color: var(--accent);
}
.tab[aria-current="page"]::before {
content: "";
position: absolute;
top: 0;
left: 30%;
right: 30%;
height: 2px;
background: var(--accent);
}
.tab-badge {
position: absolute;
top: var(--space-1);
left: 55%;
min-width: 1.1rem;
height: 1.1rem;
padding: 0 var(--space-1);
border-radius: 999px;
font-size: var(--text-2xs);
font-weight: 700;
line-height: 1.1rem;
text-align: center;
color: var(--ground);
background: var(--signal-warn);
}
/* phone search mode: the field takes the rail, the identity steps aside */
.rail[data-searching] .rail-id,
.rail[data-searching] .rail-search-open {
display: none;
}
.rail[data-searching] .rail-search {
display: flex;
}
@media (min-width: 40rem) {
.tabbar,
.rail-search-close {
display: none;
}
/* biome-ignore lint/style/noDescendingSpecificity: the phone search-mode rule never applies from 40rem */
.rail-search-open {
display: none;
}
.rail-id {
margin-right: 0;
}
.rail-nav {
display: flex;
align-items: center;
gap: var(--space-1);
}
.rail-search,
.rail[data-searching] .rail-search {
display: flex;
max-width: 26rem;
margin-left: auto;
}
.rail[data-searching] .rail-id {
display: flex;
}
.search-input {
font-size: var(--text-sm);
}
}
@media (min-width: 64rem) {
.search-hint,
.rail-version {
display: inline;
}
}
/* ---- decks, pages, sections --------------------------------------------- */
.deck {
container-type: inline-size;
width: 100%;
max-width: 68rem;
margin: 0 auto;
padding: var(--space-4) 0 var(--space-12);
flex: 1;
}
/* the gutter belongs to the content, so a hero can still reach both edges */
.deck > * {
margin-inline: var(--gutter);
}
.deck > section.hero {
margin-inline: 0;
}
.deck.detail {
padding-top: 0;
}
.page-bar .page-title {
text-transform: capitalize;
}
/* a page's line: title, count, a one-line status slot, the page's controls */
.page-bar {
display: flex;
align-items: center;
gap: var(--space-3);
min-height: var(--control-h);
margin-bottom: var(--space-4);
}
.page-bar .deck-count {
flex: none;
}
/* always laid out, so a message never pushes the page down */
.head-status {
flex: 1;
min-width: 0;
margin: 0;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
font-size: var(--text-xs);
color: var(--ink-muted);
}
.head-status[data-tone="fault"] {
color: var(--signal-fault);
}
/* a section's status: one reserved line, wraps only when the sentence must */
.deck-status {
display: flex;
align-items: center;
flex-wrap: wrap;
gap: var(--space-2) var(--space-3);
min-height: 1.5rem;
margin-bottom: var(--space-3);
font-size: var(--text-xs);
color: var(--ink-muted);
}
.deck-status[hidden] {
visibility: hidden;
}
.deck-status[data-tone="fault"],
.head-status[data-tone="fault"] {
color: var(--signal-fault);
}
.deck-status .lamp,
.head-status .lamp {
display: inline-block;
margin-right: var(--space-2);
}
.deck-group {
margin-bottom: var(--space-8);
}
.deck-head {
display: flex;
align-items: center;
gap: var(--space-3);
min-height: var(--control-h);
padding-bottom: var(--space-1);
border-bottom: 1px solid var(--line);
}
.deck-head .head-action,
.deck-head .disclose {
margin-left: auto;
}
/* nested heads inside a section are group labels, one step quieter */
.deck-group .deck-group .deck-head {
min-height: var(--chip-h);
padding-top: var(--space-3);
}
.deck-rows {
margin: 0;
padding: 0;
list-style: none;
}
/* one plain sentence, the long form behind a tap */
.group-note {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: var(--space-1) var(--space-2);
padding: var(--space-2) 0 0;
font-size: var(--text-sm);
color: var(--ink-muted);
}
.group-note p {
margin: 0;
}
.group-note .group-note-more {
flex-basis: 100%;
max-width: 65ch;
font-size: var(--text-xs);
}
.group-note .control-icon {
width: var(--chip-h);
min-width: var(--chip-h);
min-height: var(--chip-h);
border-color: transparent;
background: none;
box-shadow: none;
color: var(--ink-faint);
}
/* ---- the row ------------------------------------------------------------------ */
/* lead | body | actions, then the tray full width. The body is minmax(0, 1fr):
whatever is too long is clipped inside it and never pushes the actions. */
.r {
position: relative;
display: grid;
grid-template-columns: auto minmax(0, 1fr) auto;
grid-template-areas:
"lead body act"
"tray tray tray";
align-items: center;
column-gap: var(--space-3);
min-height: var(--row-min);
padding: var(--space-2) 0;
border-bottom: 1px solid oklch(from var(--line) l c h / 60%);
}
.r[data-nolead] {
grid-template-columns: minmax(0, 1fr) auto;
grid-template-areas:
"body act"
"tray tray";
}
.r-lead {
grid-area: lead;
display: flex;
align-items: center;
justify-content: center;
}
.r-body {
grid-area: body;
display: grid;
align-content: center;
gap: var(--space-1);
min-width: 0;
}
.r-title {
min-width: 0;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
font-size: var(--text-sm);
font-weight: 600;
line-height: 1.3;
color: var(--ink);
}
.r-title .yr {
margin-left: var(--space-2);
font-family: var(--font-readout);
font-size: var(--text-xs);
font-weight: 400;
color: var(--ink-faint);
}
/* one line of chips; what does not fit fades out at the edge rather than
being cut through a word */
.r-meta {
display: flex;
align-items: center;
flex-wrap: nowrap;
gap: var(--space-1);
min-width: 0;
overflow: hidden;
mask-image: linear-gradient(to right, var(--ink) calc(100% - 1.5rem), transparent);
}
.r-meta:empty {
display: none;
}
.r-meta [data-pri="2"] {
display: none;
}
.r-sub {
min-width: 0;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
font-size: var(--text-2xs);
line-height: 1.3;
color: var(--ink-faint);
}
/* the full string, on a tap (§9.3: the release name is evidence, on expand) */
.r-sub[data-full] {
white-space: normal;
overflow-wrap: anywhere;
}
.r-sub[data-tone="fault"] {
color: var(--signal-fault);
}
.r-act {
grid-area: act;
display: flex;
align-items: center;
justify-content: flex-end;
gap: var(--space-1);
}
/* every slot has its width whether or not it holds a control, so a row of a
kind keeps one action column */
.r-slot {
display: flex;
flex: none;
align-items: center;
justify-content: center;
}
.r-slot[data-width="icon"] {
width: var(--control-h);
}
.r-slot[data-width="toggle"] {
width: var(--toggle-w);
}
.r-slot[data-width="toggle"] > .toggle {
width: 100%;
}
.r-slot[data-width="word"] {
min-width: var(--word-w);
}
.r-slot[data-width="word"] > .control {
width: 100%;
}
.r-slot[data-wide] {
display: none;
}
.r-chevron {
color: var(--ink-faint);
}
.r-chevron .icon {
width: 0.875rem;
height: 0.875rem;
}
/* the row as a link: a stretched button under everything; real controls sit
above it, everything else lets the tap through */
.r-link {
position: absolute;
inset: 0;
z-index: 0;
padding: 0;
background: transparent;
border: 0;
cursor: pointer;
transition: background 150ms var(--ease-out);
}
.r-link:hover {
background: var(--highlight);
}
.r-link:focus-visible {
outline-offset: -2px;
}
.r:has(> .r-link) > :not(.r-link) {
position: relative;
z-index: 1;
pointer-events: none;
}
.r:has(> .r-link) button:not(.r-link),
.r:has(> .r-link) a,
.r:has(> .r-link) select,
.r:has(> .r-link) input,
.r:has(> .r-link) [role="button"] {
pointer-events: auto;
}
.r-tray {
grid-area: tray;
display: grid;
gap: var(--space-2);
min-width: 0;
padding-top: var(--space-2);
}
.r-tray:not(:has(> :not([hidden]))) {
display: none;
}
.r:has(> .r-link) > .r-tray {
pointer-events: auto;
}
.r-note {
margin: 0;
font-size: var(--text-xs);
color: var(--ink-muted);
}
.r-note[data-tone="fault"] {
color: var(--signal-fault);
}
.r-note[data-tone="warn"] {
color: var(--signal-warn);
}
/* the ⋯ tray: the row's other actions, labelled, full width */
.r-morepanel {
display: grid;
gap: var(--space-2);
}
.r-morepanel .control,
.r-morepanel .toggle {
width: 100%;
justify-content: flex-start;
}
.r-morepanel .control .icon {
margin-right: var(--space-1);
}
.r-empty {
display: flex;
align-items: center;
gap: var(--space-2);
min-height: var(--row-min);
padding: var(--space-2) 0;
font-size: var(--text-xs);
color: var(--ink-muted);
border-bottom: 1px solid oklch(from var(--line) l c h / 60%);
}
.r-empty[data-tone="fault"] {
color: var(--signal-fault);
}
/* row leads */
.row-poster,
.row-poster-blank {
display: block;
width: 2.25rem;
aspect-ratio: 2 / 3;
flex: none;
object-fit: cover;
background: var(--panel-raised);
border: 1px solid var(--line);
border-radius: 3px;
}
.lead-tag {
width: var(--control-h);
text-align: center;
font-size: var(--text-xs);
font-weight: 600;
color: var(--ink-faint);
}
.lead-lamp {
display: flex;
width: var(--space-4);
justify-content: center;
}
/* score: the release's lead, on the list-relative heat scale (issue 111) */
.score {
display: inline-grid;
place-items: center;
width: var(--control-h);
height: var(--control-h);
font-family: var(--font-readout);
font-size: var(--text-sm);
font-weight: 700;
font-variant-numeric: tabular-nums;
color: var(--ink-muted);
border: 1px solid var(--line);
border-radius: var(--radius);
}
.score[data-score="0"] {
color: var(--score-0);
border-color: oklch(from var(--score-0) l c h / 50%);
}
.score[data-score="1"] {
color: var(--score-1);
border-color: oklch(from var(--score-1) l c h / 50%);
}
.score[data-score="2"] {
color: var(--score-2);
border-color: oklch(from var(--score-2) l c h / 50%);
}
.score[data-score="3"] {
color: var(--score-3);
border-color: oklch(from var(--score-3) l c h / 50%);
}
.score[data-score="4"] {
color: var(--score-4);
border-color: oklch(from var(--score-4) l c h / 50%);
}
.score[data-score="5"] {
color: var(--score-5);
border-color: oklch(from var(--score-5) l c h / 50%);
}
.score[data-score="6"] {
color: var(--score-6);
border-color: oklch(from var(--score-6) l c h / 50%);
}
/* season disclosure: the lead of a season row */
.r-lead .disclose-lead {
border-color: var(--line);
background: transparent;
box-shadow: none;
color: var(--ink-muted);
}
.disclose-lead .icon {
transition: transform 200ms var(--ease-out);
}
.disclose-lead[aria-expanded="true"] .icon {
transform: rotate(90deg);
}
.r[data-row="season"] > .r-body > .r-title {
font-family: var(--font-display);
font-size: var(--text-base);
font-weight: 700;
letter-spacing: 0.08em;
text-transform: uppercase;
}
.episodes {
margin: 0;
padding: 0;
list-style: none;
background: oklch(from var(--panel) l c h / 50%);
}
/* release cells: the §9.3 fixed columns, from 46rem; the chips carry them below */
.r-cells,
.colhead {
display: none;
}
.colhead-cells,
.r-cells {
grid-template-columns: 4rem 4.5rem 4.5rem 6rem 7rem 3.5rem;
gap: var(--space-4);
}
.r-cells > span {
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
font-family: var(--font-readout);
font-size: var(--text-xs);
font-variant-numeric: tabular-nums;
color: var(--ink-muted);
}
.r-cells > .num,
.colhead-cells > .num {
text-align: right;
}
.r-cells > .unclaimed {
color: var(--ink-faint);
}
.colhead {
grid-template-columns: var(--control-h) minmax(0, 1fr) var(--word-w);
column-gap: var(--space-3);
padding: var(--space-2) 0 var(--space-1);
border-bottom: 1px solid oklch(from var(--line) l c h / 60%);
}
.colhead-cells {
grid-column: 2;
display: grid;
}
.colhead-score,
.colhead-cells > span {
font-family: var(--font-readout);
font-size: var(--text-2xs);
text-transform: uppercase;
letter-spacing: 0.04em;
color: var(--ink-faint);
}
/* skeleton: the row's own geometry, no shimmer (Dead-Air) */
.r-skel {
pointer-events: none;
}
.skel {
display: block;
background: var(--panel-raised);
border-radius: 3px;
}
.skel-lead {
width: 2.25rem;
height: 3.375rem;
}
.skel-line {
width: 70%;
height: 0.75rem;
}
.skel-short {
width: 40%;
}
@container (min-width: 40rem) {
.r-meta [data-pri="2"] {
display: inline-flex;
}
.r-slot[data-wide] {
display: flex;
}
.r-slot[data-narrow],
.r-morepanel {
display: none;
}
.r-title {
font-size: var(--text-base);
}
}
@container (min-width: 46rem) {
.r[data-row="release"] .r-meta [data-cell] {
display: none;
}
.r[data-row="release"] .r-cells,
.colhead {
display: grid;
}
}
/* ---- poster grid (§9.6, issue 151) -------------------------------------- */
.deck-rows.grid-rows {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr));
gap: var(--space-3);
padding-top: var(--space-3);
}
.card {
display: flex;
flex-direction: column;
width: 100%;
height: 100%;
padding: 0;
font: inherit;
text-align: left;
color: inherit;
background: var(--panel);
border: 1px solid var(--line);
border-radius: var(--radius);
overflow: hidden;
cursor: pointer;
transition: border-color 150ms var(--ease-out);
}
.card:hover {
border-color: var(--accent);
}
.card-art {
display: block;
aspect-ratio: 2 / 3;
background: var(--panel-raised);
}
.card-poster {
display: block;
width: 100%;
height: 100%;
object-fit: cover;
}
/* same ratio as a poster, carrying the title: the grid never has a hole */
.card-blank {
display: flex;
align-items: center;
justify-content: center;
width: 100%;
height: 100%;
padding: var(--space-3);
}
.card-blank-title {
font-family: var(--font-display);
font-size: var(--text-base);
font-weight: 600;
text-align: center;
color: var(--ink-faint);
}
.card-body {
display: grid;
gap: var(--space-1);
padding: var(--space-2);
}
.card-name {
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
font-size: var(--text-sm);
font-weight: 600;
color: var(--ink);
}
.card-chips {
display: flex;
gap: var(--space-1);
min-height: var(--chip-h);
overflow: hidden;
}
.card-skel .card-art {
background: var(--panel-raised);
}
/* ---- search rows and the add flow (§9.2) ---------------------------------- */
.add-panel {
display: grid;
gap: var(--space-3);
padding: var(--space-3);
background: var(--panel);
border: 1px solid var(--line);
border-radius: var(--radius);
box-shadow: inset 0 1px var(--highlight);
}
.add-roots {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
gap: var(--space-2);
}
.root-option {
display: grid;
gap: var(--space-1);
min-height: var(--control-h);
padding: var(--space-2) var(--space-3);
font: inherit;
text-align: left;
color: var(--ink);
background: var(--panel-raised);
border: 1px solid var(--line);
border-radius: var(--radius);
cursor: pointer;
transition: border-color 150ms var(--ease-out);
}
.root-option:hover:not(:disabled) {
border-color: var(--line-strong);
}
.root-option[aria-pressed="true"] {
border-color: var(--accent);
}
.root-option:disabled {
cursor: default;
opacity: 0.6;
}
.root-audience {
font-family: var(--font-display);
font-size: var(--text-md);
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.12em;
line-height: 1;
}
.root-policy,
.root-path {
font-size: var(--text-xs);
}
.add-actions {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: var(--space-3);
}
.add-autotrack {
display: grid;
justify-items: start;
gap: var(--space-1);
}
.add-note {
margin: 0;
font-size: var(--text-xs);
color: var(--ink-muted);
}
.add-note[data-tone="fault"] {
color: var(--signal-fault);
}
.add-note[data-tone="ok"] {
color: var(--signal-ok);
}
/* ---- title detail (§9.6) ---------------------------------------------------- */
/* the hero: back and title, then poster and what the title IS, over the
backdrop sunk into the console charcoal by a scrim */
.hero {
position: relative;
overflow: hidden;
margin-bottom: var(--space-3);
padding: var(--space-2) var(--gutter) var(--space-4);
}
.hero::before {
content: "";
position: absolute;
inset: 0;
background-image: var(--backdrop);
background-size: cover;
background-position: center 20%;
opacity: 0;
transition: opacity 400ms var(--ease-out);
}
.hero.has-backdrop::before {
opacity: 1;
}
.hero::after {
content: "";
position: absolute;
inset: 0;
background:
linear-gradient(
to top,
oklch(from var(--ground) l c h / 96%) 0%,
oklch(from var(--ground) l c h / 78%) 50%,
oklch(from var(--ground) l c h / 55%) 100%
),
oklch(from var(--ground) l c h / 30%);
}
.hero > * {
position: relative;
z-index: 1;
}
.page-head {
display: flex;
align-items: center;
gap: var(--space-2);
min-height: var(--control-h);
margin-bottom: var(--space-3);
}
/* a detail page without a hero still gives its head room under the rail */
.deck.detail > .page-head {
padding-top: var(--space-2);
}
.page-head .page-title {
flex: 0 1 auto;
}
.page-head > .control-icon {
flex: none;
border-color: transparent;
background: transparent;
box-shadow: none;
}
.page-id {
display: grid;
min-width: 0;
}
.page-year,
.page-sub {
flex: none;
font-size: var(--text-xs);
color: var(--ink-muted);
}
.page-sub {
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
/* the title is known before the page is: a bar the title's own size */
.page-title:empty::before,
[data-loading] .page-title::before {
content: "";
display: inline-block;
width: 12rem;
height: 1em;
vertical-align: middle;
background: var(--panel-raised);
border-radius: 3px;
}
.hero-body {
display: grid;
grid-template-columns: 6rem minmax(0, 1fr);
gap: var(--space-4);
align-items: start;
}
/* the poster's box is there before the poster is */
.hero-poster {
aspect-ratio: 2 / 3;
background: var(--panel-raised);
border: 1px solid var(--line-strong);
border-radius: var(--radius);
overflow: hidden;
}
.movie-poster {
display: block;
width: 100%;
height: 100%;
object-fit: cover;
opacity: 0;
transition: opacity 300ms var(--ease-out);
}
.movie-poster[data-loaded] {
opacity: 1;
}
.hero-info {
display: grid;
gap: var(--space-2);
align-content: start;
min-width: 0;
}
.hero-chips {
display: flex;
flex-wrap: wrap;
gap: var(--space-1);
min-height: var(--chip-h);
}
/* each line keeps its height while empty, so the hero never grows in steps */
.hero-rating,
.hero-meta {
display: flex;
align-items: center;
gap: var(--space-1);
min-height: 1.25rem;
margin: 0;
font-size: var(--text-xs);
color: var(--ink-muted);
}
.hero-rating {
color: var(--ink);
}
.hero-tagline {
display: none;
margin: 0;
font-family: var(--font-display);
font-size: var(--text-md);
font-weight: 600;
color: var(--ink-muted);
}
/* three lines, reserved, a tap opens the rest */
.hero-overview {
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 3;
min-height: 4.5em;
max-width: 65ch;
margin: 0;
overflow: hidden;
font-size: var(--text-sm);
color: var(--ink);
cursor: pointer;
}
.hero-overview[data-full] {
-webkit-line-clamp: unset;
}
.hero-note {
margin-top: var(--space-2);
}
/* one action bar: the primary word, the links as glyphs, the rest behind ⋯ */
.actionbar {
display: flex;
align-items: center;
gap: var(--space-2);
min-height: var(--control-h);
margin-bottom: var(--space-3);
}
.actionbar-links {
display: flex;
flex: 1;
align-items: center;
gap: var(--space-2);
min-width: 0;
}
.actionbar > .control-icon:last-child {
margin-left: auto;
}
.trailer-link .control-word {
display: none;
}
.more-panel {
display: grid;
gap: var(--space-3);
margin-bottom: var(--space-4);
padding: var(--space-3);
background: var(--panel);
border: 1px solid var(--line);
border-radius: var(--radius);
box-shadow: inset 0 1px var(--highlight);
}
.more-links {
display: flex;
flex-wrap: wrap;
gap: var(--space-2);
}
.more-links:empty {
display: none;
}
.more-toggles {
display: grid;
gap: var(--space-2);
}
.more-toggles .toggle,
.more-panel > .control {
width: 100%;
justify-content: flex-start;
}
.more-field {
display: grid;
}
.control-note {
margin: 0;
font-size: var(--text-xs);
color: var(--ink-muted);
}
@container (min-width: 40rem) {
.hero {
padding-top: var(--space-4);
}
.hero-body {
grid-template-columns: 9rem minmax(0, 1fr);
gap: var(--space-6);
}
.hero-tagline {
display: block;
}
.page-title {
font-size: var(--text-xl);
}
.trailer-link .control-word {
display: inline;
}
.trailer-link {
width: auto;
padding: 0 var(--space-4);
}
.more-panel {
grid-template-columns: repeat(2, minmax(0, 1fr));
align-items: end;
}
.more-toggles {
grid-template-columns: repeat(2, minmax(0, 1fr));
grid-column: 1 / -1;
}
.more-panel > .remove-panel,
.more-panel > .more-links,
.more-panel > .control-note {
grid-column: 1 / -1;
}
}
@container (min-width: 64rem) {
.hero-body {
grid-template-columns: 10.5rem minmax(0, 1fr);
}
}
/* ---- removal confirmation (§7.4, issue 104) ------------------------------- */
.remove-body {
display: grid;
gap: var(--space-2);
padding: var(--space-3);
background: var(--panel-raised);
border: 1px solid var(--line);
border-radius: var(--radius);
}
.remove-body[data-armed="true"] {
border-color: oklch(from var(--signal-warn) l c h / 55%);
}
.remove-evidence,
.remove-path,
.remove-note {
margin: 0;
font-size: var(--text-xs);
}
/* the folder is evidence: it wraps rather than truncating */
.remove-path {
color: var(--ink-muted);
overflow-wrap: anywhere;
white-space: pre-line;
}
.remove-note {
color: var(--ink-muted);
}
.remove-note[data-tone="warn"] {
color: var(--signal-warn);
}
.remove-note[data-tone="fault"] {
color: var(--signal-fault);
}
.remove-actions {
display: flex;
flex-wrap: wrap;
gap: var(--space-2);
}
.remove-body[data-armed="true"] .remove-actions .control:first-child:not(:disabled) {
color: var(--signal-warn);
border-color: oklch(from var(--signal-warn) l c h / 55%);
}
/* ---- release deck (§9.3) ------------------------------------------------- */
.buckets {
container-type: inline-size;
}
.bucket-more {
padding-top: var(--space-3);
}
/* #227: a pack abandoned at import, above the candidates — a quiet panel */
.deck-notice {
margin-bottom: var(--space-6);
padding: var(--space-3) var(--space-4) var(--space-4);
background: var(--panel);
border: 1px solid var(--line);
border-radius: var(--radius);
}
.deck-notice[data-blacklist="policy"] {
background: oklch(from var(--signal-warn) l c h / 7%);
border-color: oklch(from var(--signal-warn) l c h / 40%);
}
.deck-notice[data-blacklist="release"] {
background: oklch(from var(--signal-fault) l c h / 7%);
border-color: oklch(from var(--signal-fault) l c h / 40%);
}
.deck-notice .deck-label {
margin-bottom: var(--space-2);
}
.deck-notice[data-blacklist="policy"] .deck-label {
color: var(--signal-warn);
}
.deck-notice[data-blacklist="release"] .deck-label {
color: var(--signal-fault);
}
.notice-release {
margin: 0 0 var(--space-2);
overflow-wrap: anywhere;
font-size: var(--text-xs);
color: var(--ink);
}
.notice-line {
margin: 0;
max-width: 68ch;
font-size: var(--text-sm);
color: var(--ink-muted);
}
.notice-line + .notice-line {
margin-top: var(--space-2);
}
.r-why {
font-size: var(--text-xs);
color: var(--ink-muted);
}
.r-why[data-blacklist="release"] {
color: oklch(from var(--signal-fault) 0.78 0.1 h);
}
/* ---- subtitles (§15, §9.6) -------------------------------------------- */
/* the one subtitle chip a file's row carries: it opens the panel */
.subs-chip .icon {
opacity: 0.7;
}
.subs-chip:hover,
.subs-chip:focus-visible,
.subs-chip[aria-expanded="true"] {
border-color: currentColor;
}
/* the languages read as one string, as wide as the wanted set can need */
.subs-chip-langs {
display: inline-flex;
align-items: baseline;
flex: none;
overflow: hidden;
white-space: nowrap;
}
/* the check has its slot whether or not it is drawn */
.subs-chip-mark {
display: inline-flex;
flex: none;
justify-content: center;
width: 0.75rem;
}
.subs-chip-langs [data-mt="true"] {
text-decoration: underline dotted;
text-underline-offset: 2px;
}
.subs-panel {
container-type: inline-size;
min-width: 0;
padding: var(--space-3);
background: var(--panel);
border: 1px solid var(--line);
border-radius: var(--radius);
}
.subs-panel .deck-group {
margin-bottom: var(--space-4);
}
.subs-panel .deck-group:last-child {
margin-bottom: 0;
}
.subs-present {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: var(--space-1);
padding-top: var(--space-3);
}
.subs-present > p {
margin: 0;
font-size: var(--text-xs);
}
.subs-controls {
display: flex;
flex-wrap: wrap;
align-items: flex-end;
gap: var(--space-2) var(--space-3);
padding-top: var(--space-3);
}
.subs-langs {
display: flex;
flex-wrap: wrap;
gap: var(--space-1);
}
.subs-field {
flex: 1 1 12rem;
min-width: 9rem;
max-width: 18rem;
}
.subs-field-narrow {
flex: 0 1 9rem;
max-width: 11rem;
}
.subs-note {
margin: var(--space-2) 0 0;
font-size: var(--text-xs);
color: var(--ink-muted);
}
.subs-note[data-tone="fault"] {
color: var(--signal-fault);
}
.subs-buckets {
margin-top: var(--space-3);
}
.subs-buckets .deck-group {
margin-bottom: var(--space-3);
}
/* ---- settings (issue #116) -------------------------------------------- */
.form-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
gap: var(--space-3);
align-items: end;
}
.field {
display: grid;
gap: var(--space-1);
}
.field-label {
font-size: var(--text-2xs);
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.12em;
color: var(--ink-muted);
}
.form-input {
width: 100%;
min-height: var(--control-h);
padding: 0 var(--space-3);
font-family: var(--font-readout);
font-size: var(--text-base);
color: var(--ink);
background: var(--ground);
border: 1px solid var(--line);
border-radius: var(--radius);
box-shadow: inset 0 1px var(--lowlight);
caret-color: var(--accent);
transition: border-color 150ms var(--ease-out);
}
.form-input:hover {
border-color: var(--line-strong);
}
.form-input:focus {
border-color: var(--accent);
outline: none;
}
.form-input:disabled {
color: var(--ink-faint);
border-color: var(--line);
}
/* a select draws its own chevron: appearance is gone, so the shape returns */
select.form-input {
appearance: none;
padding-right: var(--space-8);
background-image:
linear-gradient(45deg, transparent 50%, var(--ink-muted) 50%),
linear-gradient(135deg, var(--ink-muted) 50%, transparent 50%);
background-position:
calc(100% - 1.1rem) 50%,
calc(100% - 0.8rem) 50%;
background-size: 0.3rem 0.3rem;
background-repeat: no-repeat;
}
.form-input[data-invalid] {
border-color: var(--signal-fault);
}
.band-line {
display: flex;
align-items: center;
gap: var(--space-2);
}
.band-line .field-label {
width: 3.5rem;
}
/* four numbers and a label must share a phone's width, so the inputs shrink
rather than push the line past the gutter */
.band-num {
flex: 1 1 0;
min-width: 0;
max-width: 4.5rem;
}
.subtitle-panel .field-label {
display: block;
margin: var(--space-4) 0 var(--space-2);
}
.provider-list {
margin: 0 0 var(--space-3);
padding: 0;
list-style: none;
}
.provider-toggle {
width: 1.25rem;
height: 1.25rem;
margin: 0;
accent-color: var(--accent);
}
.provider-budget {
width: 5.5rem;
}
@media (min-width: 40rem) {
.form-input {
font-size: var(--text-sm);
}
}
/* ---- signal chain (§9.7: a settings section) ------------------------------- */
.chain-wrap {
container-type: inline-size;
padding-top: var(--space-4);
}
/* the phone stacks the chain into one junctioned trace */
.chain {
width: 100%;
display: grid;
grid-template-columns: 1fr;
grid-template-areas:
"tmdb"
"prow"
"t1"
"master"
"out"
"sink";
align-items: center;
row-gap: var(--space-3);
}
.area-tmdb {
grid-area: tmdb;
}
.area-prowlarr {
grid-area: prow;
}
.area-t1 {
grid-area: t1;
}
.area-t2 {
display: none;
}
.area-master {
grid-area: master;
}
.area-out {
grid-area: out;
}
.area-qbittorrent {
grid-area: sink;
}
.chain-lane {
margin-top: var(--space-4);
display: grid;
grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
gap: var(--space-3);
align-items: stretch;
}
.module {
min-width: 0;
background: var(--panel);
border: 1px solid var(--line);
border-radius: var(--radius);
box-shadow: inset 0 1px var(--highlight);
padding: var(--space-4) var(--space-4) var(--space-3);
}
.module-master {
background: var(--panel-raised);
border-color: var(--line-strong);
}
.module-head {
display: flex;
align-items: center;
flex-wrap: wrap;
gap: var(--space-1) var(--space-2);
}
.module-name {
margin: 0;
font-family: var(--font-display);
font-size: var(--text-md);
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.12em;
line-height: 1;
}
.module-master .module-name {
font-size: var(--text-lg);
}
.module-status {
margin-left: auto;
padding-left: var(--space-3);
color: var(--ink-muted);
}
.module-status[data-tone="ok"] {
color: var(--signal-ok);
}
.module-status[data-tone="warn"] {
color: var(--signal-warn);
}
.module-status[data-tone="fault"] {
color: var(--signal-fault);
}
.module-role {
margin: var(--space-2) 0 0;
font-size: var(--text-2xs);
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.12em;
color: var(--ink-muted);
}
.module-detail {
margin: var(--space-1) 0 0;
min-height: 1.2em;
font-size: var(--text-xs);
color: var(--ink-muted);
}
.intake .module-detail {
overflow-wrap: anywhere;
}
.bus {
display: grid;
align-content: center;
justify-items: center;
height: 2rem;
}
.bus svg {
transform: rotate(90deg);
width: 2rem;
}
.bus-trace {
--trace: var(--line-strong);
width: 100%;
height: 0.5rem;
display: block;
transition: filter 300ms var(--ease-out);
}
.bus-trace line {
stroke: var(--trace);
stroke-width: 1;
}
.bus-arrow {
fill: var(--trace);
}
.bus-trace[data-tone="ok"] {
--trace: var(--signal-ok);
}
.bus-trace[data-tone="warn"] {
--trace: var(--signal-warn);
}
.bus-trace[data-tone="fault"] {
--trace: var(--signal-fault);
}
@container (min-width: 46rem) {
.chain {
grid-template-columns: 1fr 2.5rem 1.2fr 2.5rem 1fr;
grid-template-areas:
"tmdb t1 master out sink"
"prow t2 master out sink";
row-gap: var(--space-6);
}
.area-t2 {
display: grid;
grid-area: t2;
}
.bus {
height: auto;
}
.bus svg {
transform: none;
width: 100%;
}
.module-master {
padding: var(--space-6) var(--space-4) var(--space-4);
}
}
@media (prefers-reduced-motion: reduce) {
*,
*::before {
/* biome-ignore lint/complexity/noImportantStyles: reduced motion overrides every transition */
transition: none !important;
}
.lamp[data-state="probing"],
.chain.powered .lamp {
animation: none;
}
}