/* Librarian. One ground, one ink, one accent (brass, on actions and live data only).
   Surfaces are separated by tone steps, not lines or shadows. Media is square-cornered. */
:root {
  --ground: #131313; --raise: #1c1c1c; --raise-2: #262626; --raise-3: #313131;
  --ink: #f1efea; --dust: #a8a49c; --brass: #e3b261; --brass-ink: #1a1408;
  --exit: #f07563; --ok: #84d19f; --info: #93b6fb;
  --display: "Big Shoulders Display", "Arial Narrow", "Roboto Condensed", sans-serif;
  --ui: "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --pad: 28px; --r-ui: 10px; --r-pill: 999px;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --ground: #f3f3f2; --raise: #ffffff; --raise-2: #e9e9e7; --raise-3: #dcdcd9;
    --ink: #151515; --dust: #5b5852; --brass: #8a5a0c; --brass-ink: #fffaf0;
    --exit: #c23a28; --ok: #1f7442; --info: #2852b5;
    color-scheme: light;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--ground); color: var(--ink); }
body { font: 16px/1.5 var(--ui); -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums; }
button, input, select { font: inherit; color: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }
.muted { color: var(--dust); }
.err { color: var(--exit); min-height: 1.2em; margin: 0; }
code { font-size: .92em; background: var(--raise-2); padding: 1px 6px; border-radius: 5px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ------------------------------------------------ top bar: wordmark, four links, search */
.top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 28px; padding: 12px var(--pad); background: var(--ground); }
.brand { display: flex; align-items: center; gap: 10px; font: 800 26px/1 var(--display); letter-spacing: -.01em; }
.brand.big { font-size: 52px; justify-content: center; margin-bottom: 28px; }
.logo { width: 18px; height: 18px; background: var(--brass);
  mask: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'><path d='M9 6h3.4v20H9zM14.6 6H18v20h-3.4zM20.3 6.9l3.2-.9 5.2 19.3-3.2.9z'/></svg>") center/contain no-repeat; }
.tabs { display: flex; gap: 2px; }
.tabs button { border: 0; background: none; padding: 8px 14px; cursor: pointer; color: var(--dust); font-weight: 600; border-radius: var(--r-pill); transition: background .15s, color .15s; }
.tabs button:hover { color: var(--ink); background: var(--raise); }
.tabs button.on { color: var(--ink); background: var(--raise-2); }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--brass); margin-left: 4px; vertical-align: 2px; }
.gsearch { position: relative; flex: 0 1 360px; margin-left: auto; }
.gsearch input { width: 100%; padding: 10px 52px 10px 18px; border: 0; border-radius: var(--r-pill); background: var(--raise-2); outline: none; }
.gsearch input::placeholder { color: var(--dust); }
.gsearch input:focus { box-shadow: 0 0 0 2px var(--brass); }
.gsearch kbd { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font: 600 12px var(--ui); color: var(--dust); pointer-events: none; }
.disk { display: flex; align-items: center; gap: 10px; color: var(--dust); font-size: 14px; white-space: nowrap; }
.disk b { color: var(--ink); }
.disk .bar { width: 90px; height: 6px; border-radius: 3px; background: var(--raise-3); overflow: hidden; }
.disk .bar i { display: block; height: 100%; background: var(--ok); }
.disk.low .bar i { background: var(--brass); } .disk.crit .bar i { background: var(--exit); }
.icon { border: 0; background: var(--raise-2); width: 40px; height: 40px; border-radius: 50%; cursor: pointer; font-size: 17px; line-height: 1; color: var(--dust); transition: color .15s, background .15s; }
.icon:hover { color: var(--ink); background: var(--raise-3); }
.icon:active { transform: scale(.94); }
.icon.spin { animation: spin 1s linear infinite; } @keyframes spin { to { transform: rotate(360deg); } }
.banner { margin: 8px var(--pad) 0; padding: 12px 18px; border-radius: var(--r-ui); background: var(--raise); font-size: 14px; }
.banner::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--brass); margin-right: 10px; vertical-align: 1px; }

main { padding: 0 var(--pad) 140px; max-width: 1520px; margin: 0 auto; }
.tab { padding-top: 28px; }
#tab-discover { padding-top: 0; }

/* ------------------------------------------------ controls: flat fills, pills decided once */
.btn { border: 0; border-radius: var(--r-pill); padding: 11px 20px; cursor: pointer; font-weight: 650; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; white-space: nowrap; transition: filter .15s, background .15s, transform .1s; }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--brass); color: var(--brass-ink); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.ghost { background: var(--raise-2); }
.btn.ghost:hover { background: var(--raise-3); }
.btn.danger { background: var(--exit); color: #fff; }
.btn.quiet-danger { background: var(--raise-2); color: var(--exit); }
.btn.quiet-danger:hover { background: var(--exit); color: #fff; }
.btn.small { padding: 8px 15px; font-size: 14px; }
.btn:disabled { opacity: .5; cursor: default; filter: none; transform: none; }
.b { font-size: 13px; padding: 2px 9px; border-radius: 6px; background: var(--raise-2); color: var(--ink); white-space: nowrap; }
.b.ok { color: var(--ok); } .b.warn { color: var(--brass); } .b.danger { color: var(--exit); } .b.info { color: var(--info); } .b.brass { color: var(--brass); }

.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; }
#q { flex: 1 1 280px; min-width: 200px; padding: 10px 18px; border: 0; border-radius: var(--r-pill); background: var(--raise-2); outline: none; }
#q:focus { box-shadow: 0 0 0 2px var(--brass); }
select { padding: 9px 14px; border: 0; border-radius: var(--r-pill); background: var(--raise-2); cursor: pointer; }
.seg { display: inline-flex; background: var(--raise); border-radius: var(--r-pill); padding: 4px; }
.seg button { border: 0; background: none; padding: 7px 15px; cursor: pointer; color: var(--dust); border-radius: var(--r-pill); font-weight: 600; font-size: 14px; transition: background .15s, color .15s; }
.seg button:hover { color: var(--ink); }
.seg button.on { background: var(--raise-3); color: var(--ink); }
.ctl { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-size: 14px; cursor: pointer; }
input[type=checkbox] { width: 17px; height: 17px; accent-color: var(--brass); cursor: pointer; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.chip { border: 0; background: var(--raise); padding: 8px 15px; border-radius: var(--r-pill); cursor: pointer; color: var(--ink); font-size: 14px; font-weight: 550; display: inline-flex; gap: 8px; align-items: center; transition: background .15s; }
.chip:hover { background: var(--raise-2); }
.chip .n { color: var(--dust); font-size: 13px; }
.chip.on { background: var(--ink); color: var(--ground); } .chip.on .n { color: var(--ground); opacity: .7; }
.summary { color: var(--ink); font-size: 15px; margin: 0 2px 16px; min-height: 1.4em; max-width: 78ch; }
.summary .muted { color: var(--dust); }
.empty { padding: 64px 24px; text-align: center; color: var(--dust); }
.empty .btn { margin-top: 14px; }
.more { padding: 16px; text-align: center; }

/* ------------------------------------------------ skeletons: grey bars at real sizes, no shimmer */
.sk { background: var(--raise-2); border-radius: 4px; }
.sk-row { display: grid; grid-template-columns: 26px 46px minmax(200px, 1fr) 100px 96px 124px 150px 116px; gap: 14px; align-items: center; padding: 12px 18px; }
.sk-row .p { width: 46px; height: 69px; } .sk-row .l { height: 14px; width: 60%; } .sk-row .s { height: 12px; width: 70px; justify-self: end; }
.sk-card .p { aspect-ratio: 2/3; } .sk-card .l { height: 14px; width: 80%; margin-top: 10px; } .sk-card .s { height: 12px; width: 50%; margin-top: 6px; }

/* ------------------------------------------------ discover: the marquee (one dominant picture) */
.marquee { position: relative; margin: 0 calc(-1 * var(--pad)) 0; min-height: min(70vh, 640px); display: grid; align-items: end; overflow: hidden; isolation: isolate; background: var(--raise); }
.marquee .bd { position: absolute; inset: 0; z-index: -2; background: center 22%/cover no-repeat; animation: warm 1.2s ease-out both; }
.marquee::before { content: ""; position: absolute; inset: 0; z-index: -1; /* neutral scrim under text on a photo */
  background: linear-gradient(90deg, rgb(19 19 19 / .92) 0%, rgb(19 19 19 / .6) 38%, rgb(19 19 19 / 0) 68%), linear-gradient(0deg, var(--ground) 0%, rgb(19 19 19 / 0) 45%); }
@keyframes warm { from { opacity: 0; transform: scale(1.04); } to { opacity: 1; transform: none; } }
.mq-body { padding: 0 var(--pad) 44px; max-width: 780px; color: #f1efea; }
.mq-title { font: 800 clamp(52px, 7.6vw, 116px)/.88 var(--display); letter-spacing: -.02em; margin: 0; text-wrap: balance; }
.mq-title.long { font-size: clamp(44px, 5.6vw, 84px); } .mq-title.xlong { font-size: clamp(38px, 4.4vw, 64px); }
.mq-sub { margin: 28px 0 0; font-size: 18px; line-height: 1.5; max-width: 58ch; color: #f1efea; }
.mq-sub .muted { color: #c9c5bc; }
.mq-act { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.mq-act .btn.ghost { background: rgb(255 255 255 / .14); color: #f1efea; }
.mq-act .btn.ghost:hover { background: rgb(255 255 255 / .22); }
.mq-strip { display: flex; gap: 10px; padding: 0 var(--pad) 44px; position: absolute; right: 0; bottom: 0; }
.mq-strip button { border: 0; padding: 0; width: 66px; aspect-ratio: 2/3; overflow: hidden; cursor: pointer; background: var(--raise-2); opacity: .55; transition: opacity .2s, transform .2s; position: relative; }
.mq-strip button img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mq-strip button:hover { opacity: 1; transform: translateY(-4px); }
.mq-strip button.on { opacity: 1; }
.mq-strip button.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--brass); }

/* ------------------------------------------------ discover: shelves */
.dtools { margin: 26px 0 0; }
.shelf { margin: 64px 0 0; }
.shelf:first-child { margin-top: 40px; }
.shelf-h { display: flex; align-items: baseline; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.shelf-h h2 { font: 800 40px/1 var(--display); margin: 0; letter-spacing: -.01em; }
.shelf-h p { margin: 0; color: var(--dust); font-size: 15px; flex: 1; min-width: 220px; }
.shelf-h .see { border: 0; background: var(--raise); color: var(--ink); cursor: pointer; font-weight: 600; font-size: 14px; white-space: nowrap; padding: 8px 15px; border-radius: var(--r-pill); }
.shelf-h .see:hover { background: var(--raise-2); }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: 168px; gap: 18px; overflow-x: auto; scroll-snap-type: x proximity; padding: 2px 0 14px; scrollbar-width: thin; scrollbar-color: var(--raise-3) transparent; }
.rail > * { scroll-snap-align: start; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 28px 18px; }

.card { position: relative; cursor: pointer; min-width: 0; }
.card .img { position: relative; aspect-ratio: 2/3; overflow: hidden; background: var(--raise-2); }
.card .img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease, opacity .35s; }
.card:hover .img img { transform: scale(1.035); opacity: .45; }
.card .have { position: absolute; left: 0; bottom: 0; font-size: 13px; font-weight: 650; padding: 4px 10px; background: var(--ok); color: #0c2416; }
.card .have.req { background: var(--info); color: #0b1733; }
.card .ov { position: absolute; inset: auto 10px 10px; display: flex; gap: 6px; opacity: 0; transform: translateY(6px); transition: opacity .2s, transform .2s; }
.card:hover .ov, .card:focus-within .ov { opacity: 1; transform: none; }
@media (hover: none) { .card .ov { opacity: 1; transform: none; } .card:hover .img img { opacity: 1; transform: none; } }
.card .ov .req { flex: 1; border: 0; border-radius: var(--r-pill); padding: 9px 8px; font-weight: 700; font-size: 14px; cursor: pointer; background: var(--brass); color: var(--brass-ink); }
.card .ov .req:active { transform: scale(.97); }
.card .ov .req.alt { flex: 0 0 auto; padding: 9px 12px; background: #f1efea; color: #151515; }
.card .ov .req:disabled { opacity: .7; cursor: default; }
.card .ct { font-weight: 650; font-size: 15px; line-height: 1.3; margin-top: 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .meta { font-size: 14px; color: var(--dust); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .why { font-size: 13px; color: var(--dust); margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.cal { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 1fr); gap: 10px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: thin; }
.calitem { display: flex; gap: 14px; align-items: center; background: var(--raise); border-radius: var(--r-ui); padding: 10px 16px 10px 10px; }
.calitem img { width: 40px; height: 60px; object-fit: cover; background: var(--raise-2); }
.calitem .d { font-weight: 700; font-size: 14px; }
.calitem .n { font-size: 15px; white-space: nowrap; max-width: 200px; overflow: hidden; text-overflow: ellipsis; }
.calitem .l { font-size: 13px; color: var(--dust); }

/* ------------------------------------------------ library */
.lib-h { display: flex; flex-wrap: wrap; align-items: end; gap: 12px 40px; margin: 0 0 28px; }
.lib-h h1 { font: 800 48px/.95 var(--display); margin: 0; letter-spacing: -.01em; }
.stats { display: flex; flex-wrap: wrap; gap: 8px 36px; align-items: baseline; }
.stat .v { font-size: 26px; font-weight: 700; line-height: 1.1; }
.stat .k { color: var(--dust); font-size: 14px; }
.stat[data-view] { cursor: pointer; } .stat[data-view]:hover .v { color: var(--brass); }
.stat.lead .v { font-size: 40px; }
.list { background: var(--raise); border-radius: var(--r-ui); overflow: clip; }
.row { display: grid; grid-template-columns: 26px 46px minmax(200px, 1fr) 100px 96px 124px 150px 120px; gap: 14px; align-items: center; padding: 10px 18px; contain: content; transition: background .12s; }
.row + .row { box-shadow: inset 0 1px 0 var(--raise-2); }
.row:hover { background: var(--raise-2); }
.row.sel { background: color-mix(in srgb, var(--brass) 14%, var(--raise)); }
.row.head { position: sticky; top: 64px; z-index: 5; background: var(--raise); color: var(--dust); font-size: 13px; font-weight: 600; padding-top: 12px; padding-bottom: 12px; }
.row.head:hover { background: var(--raise); }
.row.season { background: var(--ground); padding-top: 8px; padding-bottom: 8px; font-size: 15px; }
.poster { width: 46px; height: 69px; background: var(--raise-2); object-fit: cover; display: block; }
.title { min-width: 0; }
.title .t { font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.title .t .y { color: var(--dust); font-weight: 400; margin-left: 6px; }
.title .t .open { cursor: pointer; } .title .t .open:hover { text-decoration: underline; text-underline-offset: 3px; }
.title .t .exp { border: 0; background: none; cursor: pointer; color: var(--dust); padding: 0 6px 0 0; font-size: 12px; }
.title .sub { color: var(--dust); font-size: 14px; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.title .sub .mark { font-weight: 650; margin-right: 8px; }
.mark.danger { color: var(--exit); } .mark.danger.quiet { color: var(--brass); } .mark.ok { color: var(--ok); } .mark.warn { color: var(--brass); }
.num { text-align: right; font-weight: 600; }
.num small { display: block; color: var(--dust); font-size: 13px; font-weight: 400; }
.when small, .who small { display: block; color: var(--dust); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acts { display: flex; gap: 6px; justify-content: flex-end; }
.acts button { border: 0; background: var(--raise-2); border-radius: var(--r-pill); height: 34px; min-width: 36px; cursor: pointer; padding: 0 14px; color: var(--ink); font-weight: 600; font-size: 14px; transition: background .15s, color .15s; }
.acts button:hover { background: var(--raise-3); }
.acts .del:hover { color: #fff; background: var(--exit); }
.acts .keep.on { color: var(--brass-ink); background: var(--brass); }

/* ------------------------------------------------ selection bar, dialog, toasts (floating: these may cast shadows) */
.selbar { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 35; display: flex; gap: 8px; align-items: center;
  background: var(--ink); color: var(--ground); padding: 8px 8px 8px 22px; border-radius: var(--r-pill); box-shadow: 0 14px 40px rgb(0 0 0 / .45); animation: rise .2s ease-out; }
.selbar .btn.ghost { background: color-mix(in srgb, var(--ground) 12%, transparent); color: var(--ground); }
@keyframes rise { from { transform: translate(-50%, 12px); opacity: 0; } }
dialog { border: 0; border-radius: 16px; padding: 28px; width: min(560px, calc(100vw - 32px)); background: var(--raise); color: var(--ink); box-shadow: 0 30px 80px rgb(0 0 0 / .5); }
dialog::backdrop { background: rgb(0 0 0 / .6); }
dialog h3 { margin: 0 0 16px; font: 800 34px/1 var(--display); }
.clist { max-height: 260px; overflow: auto; margin: 0 0 16px; padding: 0; list-style: none; border-radius: var(--r-ui); background: var(--raise-2); }
.clist li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 16px; font-size: 15px; }
.clist li + li { box-shadow: inset 0 1px 0 var(--raise-3); }
.clist li span:last-child { color: var(--dust); white-space: nowrap; }
.cwhat { font-size: 15px; display: grid; gap: 8px; margin-bottom: 16px; } .cwhat .muted { font-size: 14px; }
.cfree { font-size: 16px; margin-bottom: 22px; }
.row.end { display: flex; justify-content: flex-end; gap: 8px; padding: 0; }
.toasts { position: fixed; right: 24px; bottom: 96px; z-index: 60; display: grid; gap: 8px; width: min(380px, calc(100vw - 48px)); }
.toast { background: var(--raise-2); border-radius: 12px; padding: 12px 16px 12px 18px; box-shadow: 0 14px 40px rgb(0 0 0 / .4); font-size: 15px; position: relative; animation: rise2 .2s ease-out; }
.toast::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 4px; border-radius: 2px; background: var(--ok); }
.toast.bad::before { background: var(--exit); } .toast ul { margin: 4px 0 0; padding-left: 16px; color: var(--dust); font-size: 14px; }
@keyframes rise2 { from { transform: translateY(8px); opacity: 0; } }

/* ------------------------------------------------ title drawer */
.drawer { position: fixed; inset: 0; z-index: 50; }
.dback { position: absolute; inset: 0; background: rgb(0 0 0 / .6); animation: fade .18s ease-out; }
.dpanel { position: absolute; top: 0; right: 0; bottom: 0; width: min(700px, 100vw); background: var(--ground); overflow-y: auto; box-shadow: -24px 0 60px rgb(0 0 0 / .5); animation: slide .24s cubic-bezier(.2, .8, .2, 1); }
@keyframes slide { from { transform: translateX(40px); opacity: 0; } } @keyframes fade { from { opacity: 0; } }
.dclose { position: absolute; top: 14px; right: 14px; z-index: 3; background: rgb(0 0 0 / .55); color: #f1efea; }
.hero { position: relative; aspect-ratio: 16/8; background: var(--raise) center/cover no-repeat; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgb(19 19 19 / 0) 35%, var(--ground)); }
.dhead { display: flex; gap: 22px; padding: 0 28px; margin-top: -100px; position: relative; z-index: 1; align-items: flex-end; }
.dhead img { width: 128px; aspect-ratio: 2/3; object-fit: cover; background: var(--raise); flex: 0 0 auto; }
.dhead h2 { margin: 0 0 8px; font: 800 clamp(38px, 6vw, 58px)/.9 var(--display); letter-spacing: -.01em; text-wrap: balance; }
.dhead .sub { color: var(--dust); font-size: 15px; }
.dsect { padding: 26px 28px 0; } .dsect h4 { margin: 0 0 12px; font: 800 26px/1 var(--display); }
.dsect p { margin: 0; line-height: 1.6; max-width: 66ch; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 22px; margin: 0; font-size: 15px; }
.facts dt { color: var(--dust); } .facts dd { margin: 0; }
.dactions { display: flex; flex-wrap: wrap; gap: 8px; padding: 24px 28px 0; }
.seasons { display: grid; gap: 4px; }
.seasons label { display: flex; align-items: center; gap: 14px; background: var(--raise); border-radius: var(--r-ui); padding: 11px 16px; font-size: 15px; cursor: pointer; transition: background .15s; }
.seasons label:hover { background: var(--raise-2); }
.seasons label span:nth-child(2) { flex: 1; }
.hscroll { display: grid; grid-auto-flow: column; grid-auto-columns: 128px; gap: 14px; overflow-x: auto; padding-bottom: 10px; scrollbar-width: thin; }
.hscroll .card .ct { font-size: 14px; }
.dpad { height: 44px; }

/* ------------------------------------------------ downloads, activity */
.sec-h { display: flex; align-items: baseline; gap: 16px; margin: 56px 0 16px; flex-wrap: wrap; }
.sec-h:first-child { margin-top: 0; }
.sec-h h2 { font: 800 40px/1 var(--display); margin: 0; } .sec-h p { margin: 0; color: var(--dust); font-size: 15px; }
.dl { display: grid; gap: 4px; }
.dlrow { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; gap: 16px; align-items: center; background: var(--raise); border-radius: var(--r-ui); padding: 10px 18px 10px 10px; position: relative; }
.dlrow img, .dlrow .ph { width: 46px; height: 69px; object-fit: cover; background: var(--raise-2); }
.dlrow .t { font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dlrow .t .open { cursor: pointer; } .dlrow .t .open:hover { text-decoration: underline; text-underline-offset: 3px; }
.dlrow .r { color: var(--dust); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prog { height: 6px; border-radius: 3px; background: var(--raise-3); overflow: hidden; margin-top: 8px; } .prog i { display: block; height: 100%; background: var(--brass); transition: width .6s ease; }
.dlrow .side { text-align: right; font-size: 14px; color: var(--dust); white-space: nowrap; display: grid; gap: 4px; justify-items: end; }
.dlrow .side .pct { font-size: 26px; font-weight: 700; line-height: 1; color: var(--ink); }
.dlrow .why { font-size: 15px; margin-top: 3px; }
.lv-bad::before, .lv-warn::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 4px; border-radius: 2px; background: var(--exit); }
.lv-warn::before { background: var(--brass); }
.lv-bad .why { color: var(--exit); } .lv-warn .why { color: var(--brass); } .lv-wait .why { color: var(--info); } .lv-ok .why { color: var(--ok); } .lv-info .why { color: var(--dust); }
.activity { display: grid; gap: 4px; max-width: 920px; }
.act { background: var(--raise); border-radius: var(--r-ui); padding: 14px 20px; }
.act .h { display: flex; gap: 14px; align-items: baseline; } .act .h b { flex: 1; font-weight: 650; } .act .h span { color: var(--dust); font-size: 14px; white-space: nowrap; }
.act ul { margin: 6px 0 0; padding-left: 18px; color: var(--dust); font-size: 14px; }
.ext { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; background: var(--raise); border-radius: var(--r-ui); padding: 20px 22px; margin: 0 0 8px; max-width: 920px; }
.ext h3 { margin: 0 0 6px; font: 800 28px/1 var(--display); }
.ext p { margin: 0; color: var(--dust); font-size: 15px; max-width: 60ch; }
.ext-tok { display: flex; gap: 6px; align-items: center; }
.ext-tok input { width: 230px; padding: 9px 14px; border: 0; border-radius: var(--r-pill); background: var(--raise-2); font-size: 14px; }

/* ------------------------------------------------ login */
.login { min-height: 100vh; display: grid; place-items: center; padding: 16px; background: var(--ground); }
.login form { width: min(340px, 100%); display: grid; gap: 12px; }
.login input { padding: 13px 20px; border: 0; border-radius: var(--r-pill); background: var(--raise-2); outline: none; }
.login input:focus { box-shadow: 0 0 0 2px var(--brass); }
.login .btn { justify-content: center; }

/* ------------------------------------------------ phone: its own composition, 44px targets */
@media (max-width: 960px) {
  :root { --pad: 16px; }
  .top { display: grid; grid-template-columns: 1fr auto auto; gap: 8px 10px; padding-top: 10px; padding-bottom: 10px; }
  .brand { grid-column: 1; } .disk { grid-column: 2; } .icon { grid-column: 3; }
  .tabs { grid-column: 1 / -1; grid-row: 2; }
  .tabs button { padding: 10px 12px; min-height: 44px; }
  .gsearch { grid-column: 1 / -1; grid-row: 3; margin: 0; } .gsearch input { min-height: 44px; }
  .disk .bar { width: 56px; }
  .seg button { min-height: 40px; } .title .t .exp { padding: 10px 8px 10px 0; }
  .stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; width: 100%; }
  .icon { width: 44px; height: 44px; }
  .marquee { min-height: 82vh; } .mq-body { padding: 0 var(--pad) 128px; } .mq-strip { padding: 0 var(--pad) 28px; left: 0; }
  .mq-sub { font-size: 16px; margin-top: 18px; }
  .row, .row.season, .sk-row { grid-template-columns: 24px 40px minmax(0, 1fr) 84px 88px; gap: 10px; padding: 10px 12px; }
  .row > .c-added, .row > .c-who, .sk-row > .c-added, .sk-row > .c-who { display: none; }
  .row .acts { grid-column: 3 / -1; justify-content: flex-start; }
  .acts button { height: 44px; min-width: 44px; }
  .row.head { position: static; }
  .poster, .sk-row .p { width: 40px; height: 60px; }
  .rail { grid-auto-columns: 138px; } .grid { grid-template-columns: repeat(auto-fill, minmax(138px, 1fr)); }
  .lib-h h1 { font-size: 40px; } .stat.lead .v { font-size: 32px; } .stat .v { font-size: 22px; }
  .shelf-h h2, .sec-h h2 { font-size: 34px; }
  .btn { min-height: 44px; } .chip { min-height: 40px; }
  .dhead { margin-top: -72px; padding: 0 var(--pad); } .dhead img { width: 96px; } .dsect, .dactions { padding-left: var(--pad); padding-right: var(--pad); }
}
