/* Library tools — media/vlib-tools.js. Same neon-marquee language as vlib.css:
   the library's colour (--vl-rgb) on a night stage, rows and rules instead of
   boxes-in-boxes. Plex's own amber is used only inside the two Plex dialogs. */

/* ── On the tiles: versions, edition, unavailable ────────────────────── */
.vl-vers {
  position: absolute; right: 8px; bottom: 10px; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px; max-width: calc(100% - 64px);
  padding: 2px 7px; border-radius: 5px;
  background: rgba(10, 11, 16, .78); border: 1px solid rgba(var(--vl-rgb), .5);
  color: #fff; font-size: 10.5px; font-weight: 800; letter-spacing: .04em; white-space: nowrap;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.vl-vers-n { color: rgb(var(--vl-rgb)); font-variant-numeric: tabular-nums; }
.vl-vers-ed { overflow: hidden; text-overflow: ellipsis; color: var(--text-dim); }
.vl-vers-n + .vl-vers-ed { padding-left: 6px; border-left: 1px solid rgba(255, 255, 255, .2); }
.vl-poster.is-unavailable img { filter: grayscale(1) brightness(.5); }
.vl-unavail {
  position: absolute; left: 50%; top: 50%; z-index: 2; transform: translate(-50%, -50%);
  padding: 4px 10px; border-radius: 6px;
  background: rgba(10, 11, 16, .82); border: 1px solid rgba(252, 165, 165, .5);
  color: #fecaca; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
}
.vl-ep-chip {
  padding: 1px 6px; border-radius: 5px; border: 1px solid rgba(255, 255, 255, .22);
  color: var(--text); font-size: 10.5px; font-weight: 800; letter-spacing: .06em;
}
.vl-ep-vers {
  min-height: 24px; padding: 0 9px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(var(--vl-rgb), .5); background: rgba(var(--vl-rgb), .1);
  color: rgb(var(--vl-rgb)); font: 800 11px/1 inherit; font-family: inherit; font-variant-numeric: tabular-nums;
  position: relative; transition: background .2s ease, border-color .2s ease;
}
/* A 24px pill with a 44px target. */
.vl-ep-vers::after { content: ''; position: absolute; inset: -10px -4px; }
.vl-ep-vers:hover { background: rgba(var(--vl-rgb), .2); border-color: rgb(var(--vl-rgb)); }
.vl-ep-vers:focus-visible { outline: 2px solid rgb(var(--vl-rgb)); outline-offset: 3px; }
.vl-ep.is-unavailable .vl-ep-still img { filter: grayscale(1) brightness(.5); }

/* ── Scan strip (under the library toolbar) ──────────────────────────── */
.vt-scan {
  position: relative; display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px;
  margin-top: 12px; padding: 8px 0 0;
  border-top: 1px solid rgba(255, 255, 255, .07);
}
.vt-scan[hidden] { display: none; }
.vt-scan-main {
  flex: 1 1 280px; min-width: 0; min-height: 44px;
  display: flex; align-items: center; flex-wrap: wrap; gap: 2px 10px;
  padding: 0; border: 0; background: none; color: inherit; text-align: left; cursor: pointer;
  font: inherit; border-radius: 8px;
}
.vt-scan-main:focus-visible { outline: 2px solid rgb(var(--vl-rgb)); outline-offset: 2px; }
.vt-scan-line { font-size: 13px; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.vt-scan-main:hover .vt-scan-line { color: #fff; text-decoration: underline; text-decoration-color: rgba(var(--vl-rgb), .7); text-underline-offset: 4px; }
.vt-scan-detail { font-size: 12.5px; color: var(--text-dim); font-variant-numeric: tabular-nums; }
.vt-scan .vl-ring { width: 14px; height: 14px; }
.vt-scan-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.vt-scan-problem { flex: 1 1 100%; order: 3; font-size: 13px; font-weight: 600; color: #fde68a; line-height: 1.45; }
.vt-scan[data-state="offline"] .vt-scan-problem, .vt-scan[data-state="failed"] .vt-scan-problem { color: #fca5a5; }
.vt-scan-bar {
  --p: 0; position: absolute; left: 0; right: 0; top: -1px; height: 2px; overflow: hidden;
  background: rgba(var(--vl-rgb), .16);
}
.vt-scan-bar::after {
  content: ''; position: absolute; inset: 0 auto 0 0; width: calc(var(--p) * 100%);
  background: rgb(var(--vl-rgb)); box-shadow: 0 0 10px rgba(var(--vl-rgb), .9);
  transition: width .6s cubic-bezier(.2, .8, .2, 1);
}
/* Unknown total: a light sweeps the rule instead of filling it. */
.vt-scan-bar.is-open::after { width: 34%; animation: vt-sweep 1.5s cubic-bezier(.4, 0, .2, 1) infinite; }
@keyframes vt-sweep { from { transform: translateX(-110%); } to { transform: translateX(310%); } }

.vt-btn-sm { min-height: 44px; padding: 0 14px; font-size: 13px; }
@media (hover: hover) and (pointer: fine) { .vt-btn-sm { min-height: 34px; } }
.vt-btn-quiet { border-color: transparent; color: var(--text-dim); }

/* ── Shared dialog parts ─────────────────────────────────────────────── */
.vt-dlg .vl-dlg-body { gap: 14px; }
/* The body scrolls as one column: nothing in it may be squeezed to fit. */
.vt-dlg .vl-dlg-body > * { flex: none; }
.vt-sec { display: flex; flex-direction: column; gap: 10px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .07); }
.vt-sec-title { margin: 0; font-size: 11.5px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: rgb(var(--vl-rgb)); }
.vt-sec-lead { margin: 0; font-size: 13px; line-height: 1.5; color: var(--text-dim); }
.vt-hint { font-size: 12.5px; line-height: 1.45; color: var(--text-mute); font-weight: 500; letter-spacing: 0; text-transform: none; }
.vt-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; }
.vt-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.vt-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.vt-tools .vl-input { flex: 1 1 220px; min-width: 0; }
.vt-dlg select.vl-input { font-size: 15px; appearance: auto; }
.vt-dlg textarea.vl-input { padding: 10px 14px; line-height: 1.5; resize: vertical; }
.vt-map, .vt-path, .vt-key-value { font: 500 12.5px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; }
.vt-dlg .vt-map { font-size: 14px; min-height: 96px; }
.vt-path { color: var(--text-dim); opacity: .85; overflow-wrap: anywhere; min-width: 0; }
.vt-status { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 13px; line-height: 1.45; color: var(--text-dim); }
.vt-status[hidden] { display: none; }
.vt-status[data-kind="err"] { color: #fca5a5; }
.vt-status[data-kind="ok"] { color: rgb(var(--vl-rgb)); font-weight: 700; }
.vt-status .vl-ring { width: 14px; height: 14px; flex: none; }
.vt-watch { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--text-mute); }
.vt-tag {
  flex: none; padding: 2px 8px; border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, .18); color: var(--text-dim);
  font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
}
.vt-tag-on { border-color: rgba(var(--vl-rgb), .55); color: rgb(var(--vl-rgb)); background: rgba(var(--vl-rgb), .08); }
.vt-check { display: flex; align-items: flex-start; gap: 12px; min-height: 44px; padding: 6px 0; cursor: pointer; }
.vt-check input { flex: none; width: 20px; height: 20px; margin-top: 2px; accent-color: rgb(var(--vl-rgb)); }
.vt-check input:focus-visible { outline: 2px solid rgb(var(--vl-rgb)); outline-offset: 3px; }
.vt-check-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.vt-check-l { font-size: 14px; font-weight: 650; color: var(--text); }
.vt-check:has(input:disabled) { opacity: .5; cursor: default; }
.vt-seg { align-self: flex-start; max-width: 100%; }
.vt-seg .vl-seg-btn { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; }
.vt-seg-n { color: var(--text-mute); font-size: 11.5px; font-variant-numeric: tabular-nums; }
.vt-seg .vl-seg-btn.active .vt-seg-n { color: rgb(var(--vl-rgb)); }
/* The dialog tab strip (vlib-tools.js tabStrip): one line, always. The frame
   is the pill; the track inside it scrolls sideways when the labels do not fit,
   and an edge fades where more tabs wait. Tabs share the width when they fit. */
.vt-tabs {
  --vt-fl: 0px; --vt-fr: 0px;
  align-self: stretch; min-width: 0; max-width: none;
  border: 1px solid var(--border); border-radius: 999px; background: var(--bg-2);
}
.vt-tabs.is-fade-l { --vt-fl: 36px; }
.vt-tabs.is-fade-r { --vt-fr: 36px; }
.vt-tabs-track {
  position: relative; display: flex; gap: 2px; padding: 3px;
  overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain;
  scrollbar-width: none; scroll-behavior: auto;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--vt-fl), #000 calc(100% - var(--vt-fr)), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 var(--vt-fl), #000 calc(100% - var(--vt-fr)), transparent);
}
.vt-tabs-track::-webkit-scrollbar { display: none; }
/* Equal shares when they fit; never narrower than the label and its count. */
.vt-tabs .vl-seg-btn { flex: 1 0 0; min-width: max-content; justify-content: center; white-space: nowrap; padding: 0 14px; }
/* Inside a scroller an outside ring would be cut off: draw it inside. */
.vt-tabs .vl-seg-btn:focus-visible { outline-offset: -2px; }
.vt-tab-l { white-space: nowrap; }
.vt-tabs .vt-seg-n[hidden] { display: none; }
@media (pointer: coarse) { .vt-tabs .vl-seg-btn { min-height: 44px; } }
.vt-list { display: flex; flex-direction: column; min-height: 0; }

/* ── Versions ────────────────────────────────────────────────────────── */
.vt-vers { display: flex; flex-direction: column; }
.vt-ver {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  min-height: 56px; padding: 12px 14px 12px 16px; text-align: left; cursor: pointer;
  border: 0; border-top: 1px solid rgba(255, 255, 255, .07); border-left: 2px solid transparent;
  background: none; color: inherit; font: inherit;
  transition: background .2s ease, border-color .2s ease;
}
.vt-ver:first-child { border-top: 0; }
.vt-ver:hover:not(:disabled), .vt-ver:focus-visible { background: rgba(var(--vl-rgb), .07); border-left-color: rgb(var(--vl-rgb)); outline: none; }
.vt-ver:focus-visible { box-shadow: inset 0 0 0 2px rgba(var(--vl-rgb), .7); }
.vt-ver.is-off { opacity: .55; cursor: default; }
.vt-ver-top { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.vt-ver-title { font-size: 15px; font-weight: 800; color: #fff; }
.vt-ver-facts { font-size: 12.5px; color: var(--text-dim); font-variant-numeric: tabular-nums; }
.vt-ver-note { font-size: 12.5px; font-weight: 650; color: #fde68a; }
.vt-aside-vers { display: flex; flex-direction: column; gap: 6px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .08); }
.vt-vers.is-compact .vt-ver { min-height: 48px; padding: 9px 8px 9px 10px; margin: 0 -8px; }
.vt-vers.is-compact .vt-ver-title { font-size: 13.5px; }

/* ── Duplicates ──────────────────────────────────────────────────────── */
.vt-dupe { padding: 12px 0; border-top: 1px solid rgba(255, 255, 255, .07); }
.vt-dupe:first-child { border-top: 0; }
.vt-dupe-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; margin-bottom: 6px; }
.vt-dupe-name { flex: 1 1 200px; min-width: 0; font-size: 15px; font-weight: 800; color: #fff; }
.vt-dupe-size { font-size: 12.5px; font-weight: 700; color: rgb(var(--vl-rgb)); font-variant-numeric: tabular-nums; }
.vt-dupe-row {
  display: grid; grid-template-columns: minmax(150px, 220px) minmax(0, 1fr); gap: 2px 16px;
  padding: 7px 0 7px 12px; border-left: 2px solid rgba(255, 255, 255, .1);
}
.vt-dupe-row + .vt-dupe-row { margin-top: 6px; }
.vt-dupe-row:has(.vt-tag-on) { border-left-color: rgb(var(--vl-rgb)); }
.vt-dupe-row.is-off { opacity: .6; }
.vt-dupe-q { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.vt-dupe-q .vt-ver-title { font-size: 13.5px; }
.vt-dupe-row .vt-path, .vt-dupe-row .vt-ver-note { grid-column: 1 / -1; }

/* ── Scan dialog ─────────────────────────────────────────────────────── */
.vt-folders { display: flex; flex-direction: column; }
.vt-folder { display: grid; grid-template-columns: minmax(140px, 240px) minmax(0, 1fr); gap: 2px 16px; padding: 10px 0; border-top: 1px solid rgba(255, 255, 255, .07); }
.vt-folder-name { font-weight: 800; color: #fff; overflow-wrap: anywhere; }
.vt-folder-facts { font-size: 13px; color: var(--text-dim); font-variant-numeric: tabular-nums; }
.vt-folder .vt-path, .vt-folder .vt-ver-note { grid-column: 1 / -1; }
.vt-folder[data-phase="offline"] .vt-ver-note, .vt-folder[data-phase="failed"] .vt-ver-note { color: #fca5a5; }

/* ── Plex ────────────────────────────────────────────────────────────── */
.vt-sections { display: flex; flex-direction: column; }
.vt-section { display: flex; flex-direction: column; gap: 8px; padding: 14px 0; border-top: 1px solid rgba(255, 255, 255, .07); }
.vt-section:first-child { border-top: 0; padding-top: 2px; }
.vt-section-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 12px; }
.vt-section-title { font-size: 16px; font-weight: 850; letter-spacing: -.01em; color: #fff; }
.vt-section-count { flex: 1; font-size: 12.5px; color: var(--text-dim); font-variant-numeric: tabular-nums; }
.vt-locs { display: flex; flex-direction: column; gap: 4px; }
.vt-loc { display: grid; grid-template-columns: minmax(0, 1fr) 18px minmax(0, 1fr) minmax(0, 1.1fr); gap: 8px; align-items: baseline; padding-left: 10px; border-left: 2px solid rgba(252, 165, 165, .45); }
.vt-loc.is-ok { border-left-color: rgb(var(--vl-rgb)); }
.vt-loc-arrow { color: var(--text-mute); text-align: center; }
.vt-loc-note { font-size: 12px; color: var(--text-dim); }
.vt-loc.is-bad .vt-loc-note { color: #fca5a5; }
.vt-loc.is-ok .vt-path:nth-child(3) { color: var(--text); }
.vt-plan { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border-radius: 12px; background: rgba(var(--vl-rgb), .06); border: 1px solid rgba(var(--vl-rgb), .28); }
.vt-plan[hidden] { display: none; }
.vt-plan-title { font-size: 11.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: rgb(var(--vl-rgb)); }
.vt-plan-list { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; font-size: 13px; line-height: 1.45; color: var(--text); overflow-wrap: anywhere; }

/* ── Compare ─────────────────────────────────────────────────────────── */
.vt-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px 18px; margin: 0; padding: 12px 0; border-block: 1px solid rgba(255, 255, 255, .07); }
.vt-stats dt { grid-row: 1; font-size: 10.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--text-mute); }
.vt-stats dd { grid-row: 2; margin: 0; font-size: 14px; font-weight: 750; color: #fff; font-variant-numeric: tabular-nums; }
.vt-reasons[hidden] { display: none; }
.vt-rows { max-height: 44vh; overflow: auto; overscroll-behavior: contain; }
.vt-crow { display: flex; flex-direction: column; gap: 3px; padding: 9px 0; border-top: 1px solid rgba(255, 255, 255, .06); }
.vt-crow:first-child { border-top: 0; }
.vt-crow-top { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; }
.vt-crow-title { min-width: 0; font-size: 14px; font-weight: 700; color: var(--text); overflow-wrap: anywhere; }
.vt-crow-side { font-size: 12.5px; color: var(--text-dim); overflow-wrap: anywhere; }

/* ── API access ──────────────────────────────────────────────────────── */
.vt-keys { display: flex; flex-direction: column; }
.vt-key { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid rgba(255, 255, 255, .07); }
.vt-key:first-child { border-top: 0; }
.vt-key.is-off { opacity: .55; }
.vt-key-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.vt-libs { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 0 16px; }
.vt-once {
  display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 14px;
  border: 1px solid rgba(var(--vl-rgb), .6); background: rgba(var(--vl-rgb), .07);
  animation: vt-arrive .45s cubic-bezier(.2, 1, .3, 1) both;
}
.vt-once[hidden] { display: none; }
@keyframes vt-arrive { from { opacity: 0; transform: translateY(10px); } }
.vt-once-title { font-size: 15px; font-weight: 850; color: #fff; }
.vt-once .vl-input { flex: 1 1 260px; min-width: 0; font-size: 14px; }

@media (max-width: 760px) {
  .vt-grid2, .vt-dupe-row, .vt-folder { grid-template-columns: minmax(0, 1fr); }
  .vt-stats { grid-template-columns: max-content minmax(0, 1fr); gap: 6px 16px; align-items: baseline; }
  .vt-stats dt, .vt-stats dd { grid-row: auto; }
  .vt-loc { grid-template-columns: minmax(0, 1fr); gap: 1px; }
  .vt-loc-arrow { display: none; }
  .vt-scan-acts { flex: 1 1 100%; }
  .vt-scan-acts .vl-btn { flex: 1 1 auto; }
  .vt-dlg .vl-dlg-foot .vl-btn { flex: 1 1 auto; }
  .vt-seg { align-self: stretch; }
  .vt-tabs .vl-seg-btn { padding: 0 11px; }
  .vt-rows { max-height: none; }
}
@media (prefers-reduced-motion: reduce) {
  .vt-scan-bar.is-open::after { animation: none; width: 100%; opacity: .5; }
  .vt-once { animation: none; }
}

/* ── Needs attention, maintenance, media info ────────────────────────── */
/* A count, never a dot: how many things in this library want the owner. */
.vt-count {
  display: inline-grid; place-items: center; min-width: 20px; height: 20px; margin-left: 8px; padding: 0 6px;
  border-radius: 6px; background: #fde68a; color: #1a1304;
  font-size: 11.5px; font-weight: 850; line-height: 1; font-variant-numeric: tabular-nums;
}
.vt-attn-btn { border-color: rgba(253, 230, 138, .45); }
[data-vt-attn] { position: relative; }
[data-vt-attn]::after {
  content: attr(data-vt-attn); position: absolute; top: -5px; right: -7px; z-index: 1;
  min-width: 18px; height: 18px; padding: 0 5px; box-sizing: border-box; border-radius: 6px;
  display: grid; place-items: center; background: #fde68a; color: #1a1304;
  font: 850 10.5px/1 inherit; font-family: inherit; font-variant-numeric: tabular-nums; pointer-events: none;
}
/* Wide enough that five or six tabs share one line on a desktop; the scrim's
   16px padding keeps it off the screen's edges below that. min-width: 0 because
   a one-line strip and one-line titles are as wide as all their text: left to
   size itself, the grid scrim would widen the dialog past a phone's screen. */
.vl-dlg.vt-dlg-attn, .vl-dlg.vt-dlg-compare { width: min(880px, 100%); min-width: 0; }
.vt-attn-tabs { display: flex; min-width: 0; }
.vt-attn-tabs .vt-tabs { flex: 1; }
.vt-attn-panel { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.vt-attn-panel > * { flex: none; }
/* A row's tag stays beside its title. The title is a path or a release-group
   file name whose telling part (episode, last folder) is at the end, so it gets
   two lines on purpose, not one: a phone has no hover to read a cut name. Past
   two lines it ends in an ellipsis (full text on hover). The tag keeps its words
   and only shortens past half the row. */
.vt-dlg-attn .vt-crow-top { flex-wrap: nowrap; align-items: flex-start; min-width: 0; }
.vt-dlg-attn .vt-crow-top .vt-crow-title {
  flex: 0 1 auto; min-width: 0; white-space: normal; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden;
}
.vt-dlg-attn .vt-crow-top .vt-tag { flex: 0 0 auto; max-width: 50%; overflow: hidden; text-overflow: ellipsis; }
/* The two summary rows of "Missing and copies" are sentences, not names: no clamp. */
.vt-dlg-attn .vt-crow.is-summary .vt-crow-title { display: block; -webkit-line-clamp: none; line-clamp: none; overflow: visible; }
.vt-dlg-attn .vt-tools[hidden] { display: none; }
.vt-dlg-attn .vt-rows { max-height: none; overflow: visible; }
.vt-dlg-attn .vt-crow { padding: 12px 0 12px 12px; border-left: 2px solid rgba(253, 230, 138, .5); margin-top: 8px; border-top: 0; }
.vt-dlg-attn .vt-crow:first-child { margin-top: 0; }
.vt-dlg-attn .vt-crow.is-waiting { border-left-color: rgba(255, 255, 255, .16); }
.vt-dlg-attn .vt-crow.is-waiting .vt-ver-note { color: var(--text-dim); font-weight: 550; }
.vt-dlg-attn .vt-crow[data-kind="offline"], .vt-dlg-attn .vt-crow[data-kind="failed"] { border-left-color: rgba(252, 165, 165, .6); }
.vt-dlg-attn .vt-crow[data-kind="offline"] .vt-ver-note, .vt-dlg-attn .vt-crow[data-kind="failed"] .vt-ver-note { color: #fca5a5; }
.vt-crow-acts { margin-top: 6px; gap: 8px; }
.vt-skip { padding: 12px 0 12px 12px; margin-top: 8px; border-left: 2px solid rgba(var(--vl-rgb), .55); display: flex; flex-direction: column; gap: 3px; }
.vt-skip:first-child { margin-top: 0; }
.vt-skip-files { display: flex; flex-direction: column; margin-top: 8px; border-top: 1px solid rgba(255, 255, 255, .07); }
.vt-skip-files[hidden] { display: none; }
.vt-skip-file { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; padding: 8px 0; border-bottom: 1px solid rgba(255, 255, 255, .05); }
.vt-skip-file .vt-path { flex: 1 1 260px; }
.vt-skip-file .vt-crow-acts { margin-top: 0; }
.vt-link {
  padding: 0; border: 0; background: none; cursor: pointer; font: inherit; font-weight: 700;
  color: rgb(var(--vl-rgb)); text-decoration: underline; text-underline-offset: 3px; position: relative;
}
.vt-link::after { content: ''; position: absolute; inset: -12px -6px; }
.vt-link:focus-visible { outline: 2px solid rgb(var(--vl-rgb)); outline-offset: 3px; border-radius: 4px; }
.vt-fix-bar .vl-input[name="vt-fix-year"] { flex: 0 0 92px; }
.vt-prune-list { max-height: 32vh; }
.vt-maint { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; padding: 10px 0; border-top: 1px solid rgba(255, 255, 255, .07); }
.vt-sec > .vt-maint:first-of-type { border-top: 0; padding-top: 0; }
.vt-maint-text { position: relative; flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.vt-maint-bar { position: relative; top: auto; left: auto; right: auto; margin-top: 6px; border-radius: 2px; }
.vt-maint-bar[hidden] { display: none; }
.vt-info { display: grid; grid-template-columns: minmax(96px, max-content) minmax(0, 1fr); gap: 6px 18px; margin: 0; }
.vt-info dt { font-size: 12.5px; font-weight: 700; color: var(--text-mute); font-variant-numeric: tabular-nums; }
.vt-info dd { margin: 0; font-size: 13.5px; color: var(--text); overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.vt-info dd.vt-path { color: var(--text); opacity: 1; }
.vt-info-btn { align-self: flex-start; margin-top: 4px; }

@media (max-width: 760px) {
  .vt-crow-acts .vl-btn { flex: 1 1 auto; }
  .vt-maint .vl-btn { flex: 1 1 100%; }
  .vt-info { grid-template-columns: minmax(0, 1fr); gap: 1px; }
  .vt-info dd { margin-bottom: 8px; }
  .vt-fix-bar .vl-input[name="vt-fix-year"] { flex: 1 1 92px; }
}

/* ── Art: every row carries a picture in a fixed box ─────────────────── */
/* The same stage as a .vl-poster: the library's colour over the surface. An
   image fades in over it; with nothing to show, the name's initials stand on it. */
.vt-art {
  position: relative; flex: none; display: block; overflow: hidden; border-radius: 8px;
  background: radial-gradient(120% 80% at 30% 10%, rgba(var(--vl-rgb), .22), transparent 60%), var(--surface, #14161d);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06) inset, 0 6px 16px -10px rgba(0, 0, 0, .8);
}
.vt-art-poster { width: 54px; aspect-ratio: 2 / 3; }
.vt-art-still { width: 96px; aspect-ratio: 16 / 9; }
.vt-art-poster.is-small { width: 36px; border-radius: 6px; }
.vt-art-still.is-small { width: 64px; border-radius: 6px; }
.vt-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; transition: opacity .4s ease; }
.vt-art img.is-loaded { opacity: 1; }
.vt-art[data-art="placeholder"]::before {
  content: ''; position: absolute; left: 18%; right: 18%; top: 22%; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, rgb(var(--vl-rgb)), transparent); box-shadow: 0 0 8px rgba(var(--vl-rgb), .8);
}
.vt-art[data-art="placeholder"]::after {
  content: attr(data-ph); position: absolute; inset: 0; display: grid; place-items: center; padding-top: 12%;
  color: rgba(255, 255, 255, .82); font-size: 15px; font-weight: 850; letter-spacing: .04em;
}
.vt-art.is-small[data-art="placeholder"]::after { font-size: 11.5px; }
.vt-has-art { display: grid !important; grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; align-items: start; }
.vt-crow-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.vt-ver-top .vt-art, .vt-dupe-q .vt-art, .vt-dupe-head .vt-art { margin-right: 4px; }
.vt-info-head { display: flex; align-items: center; gap: 14px; }
.vt-info-head .vl-dlg-lead { flex: 1; min-width: 0; }
@media (max-width: 760px) {
  .vt-art-still { width: 72px; }
  .vt-art-poster { width: 46px; }
  .vt-has-art { column-gap: 12px; }
}
@media (prefers-reduced-motion: reduce) { .vt-art img { transition: none; } }
/* vlib.js marks a picture box whose image will not load: the same placeholder
   tile on the wall, the rails, the hero and the episode rows. */
.vl-poster[data-art="placeholder"], .vl-still[data-art="placeholder"], .vl-ep-still[data-art="placeholder"] { animation: none; }
.vl-poster[data-art="placeholder"]:not(.is-plain)::after, .vl-still[data-art="placeholder"]::after, .vl-ep-still[data-art="placeholder"]::after {
  content: attr(data-ph); position: absolute; inset: 0; display: grid; place-items: center;
  color: rgba(255, 255, 255, .8); font-size: 22px; font-weight: 850; letter-spacing: .04em;
  background: radial-gradient(120% 80% at 30% 10%, rgba(var(--vl-rgb), .22), transparent 60%);
}
