/* /videos/ library index: built by tools/videos_index.py, behaviour in vlib.js. Tokens from home.css. */
.vl .vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.vl-hero { padding-block: clamp(24px, 3.5vw, 48px) 8px; }
.vl-hero .hm-title { margin: 0; max-width: 22ch; }
.vl-hero .hm-sub { max-width: 64ch; }
.vl-bar { position: sticky; top: 64px; z-index: 5; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; padding: 12px 0; background: #fff; }
.vl-q-in { position: relative; flex: 1 1 320px; min-width: 0; display: flex; align-items: center; }
.vl-q-in svg { position: absolute; inset-inline-start: 16px; color: var(--hm-ink-3); pointer-events: none; }
.vl-q-in input, .vl-sel select { width: 100%; height: 48px; border: 1px solid var(--hm-line-2); border-radius: var(--r-xl); background: #fff; color: var(--hm-ink); font: 400 var(--fs-body-l)/1 var(--f-body); }
.vl-q-in input { padding-inline: 48px 16px; }
.vl-sel { flex: 0 1 220px; min-width: 0; }
.vl-sel select { padding-inline: 16px 36px; appearance: none; cursor: pointer; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%235f6368' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 16px center; text-overflow: ellipsis; }
[dir="rtl"] .vl-sel select { background-position: left 16px center; }
.vl-q-in input:hover, .vl-sel select:hover { border-color: var(--hm-ink-3); }
.vl-q-in input:focus-visible, .vl-sel select:focus-visible, .vl-th:focus-visible, .vl-more:focus-visible, .vl-clear:focus-visible, .vl-rail a:focus-visible, .vl-t:focus-visible { outline: var(--ring); outline-offset: var(--ring-offset); }
.vl-sum { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding: 4px 0 8px; border-bottom: 1px solid var(--hm-line); }
.vl-cnt { margin: 0; font-size: var(--fs-body-s); color: var(--hm-ink-3); font-variant-numeric: tabular-nums; }
.vl-rail ol { display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; list-style: none; }
.vl-rail li[hidden] { display: none; }
.vl-rail a { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 12px; border-radius: var(--r-l); color: var(--hm-ink-2); font-size: var(--fs-body-s); text-decoration: none; }
.vl-rail a:hover { background: var(--hm-surface); color: var(--hm-blue); }
.vl-ri { display: inline-grid; color: var(--hm-blue); }
.vl-st { padding-top: var(--page-top); scroll-margin-top: 140px; }
.vl-sh { display: flex; align-items: center; gap: 16px; margin: 0 0 8px; font: 500 clamp(22px, 2vw, 28px)/1.2 var(--f-hero); color: var(--hm-ink); }
.vl-sh .pr-stage-ic { display: inline-grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: var(--r-m); background: var(--ds-primary-tonal); color: var(--hm-blue, var(--ds-primary)); }
.vl-n { font: 500 var(--fs-body-s)/1 var(--f-body); color: var(--hm-ink-3); font-variant-numeric: tabular-nums; }
.vl-ps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 16px; }
.vl-p { grid-column: span var(--n, 4); min-width: 0; padding-top: 20px; }
.vl-p .vl-g { grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); }
@media (max-width: 1100px) { .vl-ps { grid-template-columns: repeat(2, minmax(0, 1fr)); } .vl-p { grid-column: span min(var(--n, 2), 2); } .vl-p .vl-g { grid-template-columns: repeat(min(var(--n, 2), 2), minmax(0, 1fr)); } }
.vl-ph { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; font: 500 var(--fs-title-s)/1.3 var(--f-hero); color: var(--hm-ink); }
.vl-ph svg { flex: none; color: var(--hm-ink-2); }
.vl-ph a { color: inherit; text-decoration: none; }
.vl-ph a:hover { color: var(--hm-blue); text-decoration: underline; text-underline-offset: 4px; }
.vl-g { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 248px), 1fr)); gap: 24px 16px; margin: 0; padding: 0; list-style: none; }
.vl-c { display: flex; flex-direction: column; min-width: 0; }
.vl-c[hidden], .vl-more[hidden] { display: none; }
.vl-th { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; border-radius: var(--r-m); overflow: hidden; background: var(--hm-surface); cursor: pointer; }
.vl-th img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 300ms var(--hm-ease); }
button.vl-th::after { content: ""; position: absolute; inset: 50% auto auto 50%; width: 52px; height: 52px; margin: -28px 0 0 -28px; border-radius: 50%; background: rgba(32, 33, 36, .72) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Cpath d='M6 3.5v13l11-6.5z' fill='%23fff'/%3E%3C/svg%3E") no-repeat 58% 50%; opacity: 0; transition: opacity 200ms var(--hm-ease); }
.vl-th:hover::after, .vl-th:focus-visible::after { opacity: 1; }
.vl-th:hover img { transform: scale(1.03); }
.vl-th iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vl-dur { position: absolute; inset-inline-end: 8px; bottom: 8px; padding: 2px 8px; border-radius: var(--r-xs); background: rgba(32, 33, 36, .85); color: #fff; font: 500 var(--fs-label-s)/1.4 var(--f-body); font-variant-numeric: tabular-nums; direction: ltr; }
.vl-t { margin-top: 12px; color: var(--hm-ink); font: 500 var(--fs-body-l)/1.35 var(--f-hero); text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.vl-t:hover { color: var(--hm-blue); text-decoration: underline; text-underline-offset: 3px; }
.vl-m { margin: 8px 0 0; font-size: var(--fs-label); line-height: 1.4; color: var(--hm-ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vl-lc { display: inline-block; padding: 0 4px; border: 1px solid var(--hm-line-2); border-radius: var(--r-xs); font: 500 var(--fs-label-s)/1.5 var(--f-body); color: var(--hm-ink-2); text-decoration: none; }
.vl-q { margin: 8px 0 0; font-size: var(--fs-body-s); line-height: 1.45; color: var(--hm-ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vl-more, .vl-clear { margin-top: 16px; min-height: 40px; padding: 0 20px; border: 1px solid var(--hm-line-2); border-radius: var(--r-xl); background: #fff; color: var(--hm-blue); font: 500 var(--fs-body-s)/1 var(--f-body); cursor: pointer; }
.vl-more:hover, .vl-clear:hover { background: #f1f6fe; border-color: #d2e3fc; }
.vl-empty { padding: 48px 0; text-align: center; color: var(--hm-ink-2); }
.vl-empty[hidden] { display: none; }
.vl .is-off { display: none; }
@media (max-width: 720px) {
  .vl-bar { top: 56px; }
  .vl-sel { flex: 1 1 40%; }
  .vl-rail { width: 100%; overflow-x: auto; scrollbar-width: none; }
  .vl-rail ol { flex-wrap: nowrap; }
  .vl-rail a { white-space: nowrap; }
  .vl-ps { grid-template-columns: 1fr; }
  .vl-p { grid-column: auto; }
  .vl-p .vl-g { grid-template-columns: 1fr; gap: 20px; }
}
@media (prefers-reduced-motion: reduce) { .vl-th img, .vl-th::after { transition: none; } .vl-th:hover img { transform: none; } }
.vl-t { min-height: 24px; }
