/* /watch/ video library (src/tools/watch.py). Page-only file; tokens from tokens.css, so light + dark
   themes follow the site. Thumbnails are self-hosted (img-src 'self'). Works without JS. */
.vl { padding-bottom: 2rem; }
.vl-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem 1.5rem;
  border-top: 1px solid var(--rule); padding-top: 1.2rem; margin-top: .5rem; }
.vl-stats { margin: 0; font-size: var(--step--1); color: var(--mute); letter-spacing: .02em; }
.vl-toc ul { list-style: none; margin: 1.2rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .45rem; }
.vl-toc a { display: inline-flex; align-items: center; gap: .45em; min-height: 44px; box-sizing: border-box;
  padding: .55em .9em; border: 1px solid var(--rule-2); border-radius: var(--radius); color: var(--ink);
  text-decoration: none; font-size: var(--step--1); line-height: 1.2; }
.vl-toc a:hover, .vl-toc a:focus-visible { border-color: var(--action); color: var(--action); }
.vl-n { font-variant-numeric: tabular-nums; color: var(--mute); font-size: .8rem; }
.vl-tools { margin: 1.6rem 0 0; padding: 1.2rem 0 0; border-top: 1px solid var(--rule);
  display: flex; flex-wrap: wrap; align-items: end; gap: 1rem 1.5rem; }
.vl-tools[hidden], .vl-empty[hidden], .vl-group[hidden], .vl-card[hidden], .vl-sub[hidden], .vl-grid[hidden] { display: none; }
.vl-search { flex: 1 1 18rem; max-width: 34rem; }
.vl-search label { display: block; font: 600 var(--step--1)/1.3 var(--sans); margin-bottom: .45rem; color: var(--ink-2); }
.vl-search input { width: 100%; box-sizing: border-box; font: inherit; font-size: var(--step-0); padding: .75em .9em;
  min-height: 44px; border: 1px solid var(--rule-2); border-radius: var(--radius); background: var(--paper-2); color: var(--ink); }
.vl-search input:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }
.vl-kind { display: flex; gap: .35rem; flex-wrap: wrap; }
.vl-k { font: inherit; font-size: var(--step--1); min-height: 44px; padding: .55em .95em; cursor: pointer;
  border: 1px solid var(--rule-2); border-radius: var(--radius); background: transparent; color: var(--ink); }
.vl-k[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.vl-k:focus-visible, .vl-clear:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.vl-status { flex-basis: 100%; margin: 0; font-size: var(--step--1); color: var(--mute); }
.vl-empty { margin: 2rem 0; }
.vl-clear { font: inherit; background: none; border: 0; padding: 0; color: var(--action); text-decoration: underline; cursor: pointer; }
.vl-group { margin-top: clamp(2.2rem, 5vw, 3.5rem); scroll-margin-top: 6rem; }
.vl-ghead { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem 1rem; border-bottom: 1px solid var(--rule); padding-bottom: .5rem; }
.vl-ghead h2 { margin: 0; font-size: var(--step-2); }
.vl-count { font-size: var(--step--1); color: var(--mute); font-variant-numeric: tabular-nums; }
.vl-blurb { margin: .8rem 0 1.2rem; max-width: 70ch; color: var(--ink-2); font-size: .98rem; }
.vl-blurb .link { white-space: nowrap; }
.vl-sub { margin: 1.4rem 0 .7rem; font: 600 .8rem/1.2 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.vl-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.vl-grid--short { grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); }
.vl-grid--long { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
@media (max-width: 520px) {
  .vl-grid--short { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
}
.vl-card { display: flex; flex-direction: column; background: var(--paper-2); border: 1px solid var(--rule);
  border-radius: var(--radius); overflow: hidden; }
.vl-thumb { position: relative; display: block; background: var(--band); overflow: hidden; }
.vl-card--short .vl-thumb { aspect-ratio: 9 / 16; }
.vl-card--long .vl-thumb { aspect-ratio: 16 / 9; }
.vl-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s var(--ease); }
.vl-card:hover .vl-thumb img { transform: scale(1.03); }
.vl-badge { position: absolute; left: .5rem; top: .5rem; font: 600 .68rem/1 var(--sans); letter-spacing: .06em;
  text-transform: uppercase; padding: .35em .55em; border-radius: var(--radius); background: rgba(12, 13, 15, .78); color: #f4f3ec; }
.vl-play { position: absolute; left: 50%; top: 50%; width: 2.8rem; height: 2.8rem; margin: -1.4rem 0 0 -1.4rem;
  border-radius: 50%; background: rgba(12, 13, 15, .62); box-shadow: 0 0 0 2px rgba(244, 243, 236, .85); }
.vl-play::after { content: ""; position: absolute; left: 55%; top: 50%; transform: translate(-50%, -50%);
  border-style: solid; border-width: .5rem 0 .5rem .85rem; border-color: transparent transparent transparent #f4f3ec; }
.vl-card:hover .vl-play { background: var(--wood-ink); }
.vl-body { padding: .75rem .8rem .9rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.vl-t { margin: 0; font-family: var(--sans); font-size: .95rem; font-weight: 600; line-height: 1.32; letter-spacing: 0; }
.vl-t a { color: var(--ink); text-decoration: none; }
.vl-t a:hover { text-decoration: underline; text-decoration-color: var(--action); }
.vl-t a:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.vl-meta { margin: 0; font-size: .78rem; color: var(--mute); font-variant-numeric: tabular-nums; }
.vl-tags { list-style: none; margin: .1rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .3rem; }
.vl-tags li { font-size: .72rem; line-height: 1.3; padding: .2em .5em; border: 1px solid var(--rule-2); border-radius: var(--radius); color: var(--ink-2); }
.vl-rel { margin: auto 0 0; padding-top: .3rem; font-size: .82rem; }
@media (max-width: 520px) {
  .vl-body { padding: .6rem .6rem .75rem; }
  .vl-t { font-size: .86rem; }
  .vl-play { width: 2.3rem; height: 2.3rem; margin: -1.15rem 0 0 -1.15rem; }
}
@media (prefers-reduced-motion: reduce) { .vl-thumb img { transition: none; } }
