/* ---------- Video stories ---------- */
.vs [hidden] { display: none !important; }

/* The section must not be a scroll container, or the filter bar could not stick (.sec has overflow: hidden). */
/* Clipped sideways only, and above the next section: an open filter menu may reach past a short list. */
.sec.vs { overflow: visible; overflow-x: clip; z-index: 1; }

/* People: a strip of stories (shown by video-stories.js). The avatars are the one round shape of the block. */
.vs__stories { margin-bottom: clamp(20px, 3vw, 32px); }
.vs__people { display: flex; gap: clamp(14px, 2.2vw, 28px); margin-inline: calc(var(--gut) * -1); padding: 4px var(--gut) 8px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; scroll-padding-inline: var(--gut); }
.vs__people::-webkit-scrollbar { display: none; }
.vs__people li { flex: none; scroll-snap-align: start; }
.vs__person { display: grid; justify-items: center; gap: 8px; width: 84px; padding: 0; border: 0; background: none; color: var(--fg); font: inherit; font-size: var(--fs-sm); text-align: center; cursor: pointer; }
.vs__ring { display: block; padding: 3px; border-radius: 50%; background: linear-gradient(135deg, var(--yellow-200), var(--yellow) 55%, #E06A00); transition: transform .25s var(--ease-out); }
.vs__person:hover .vs__ring { transform: scale(1.05); }
.vs__person:focus-visible { outline: 0; }
.vs__person:focus-visible .vs__ring { outline: 2px solid var(--yellow); outline-offset: 3px; }
.vs__person.is-seen .vs__ring { background: var(--line-2); }
.vs__ring .vs__av { width: 72px; height: 72px; border-radius: 50%; border: 3px solid var(--ink-0); }
.vs__pname { display: grid; line-height: 1.2; }
.vs__pname small { font-size: var(--fs-xs); color: var(--fg-2); }
.vs__av { flex: none; display: block; width: 40px; height: 40px; overflow: hidden; background: var(--ink-3); }
.vs__av img { width: 100%; height: 100%; object-fit: cover; }
.vs__av:empty::before { content: ""; display: block; width: 100%; height: 100%; background-image: radial-gradient(circle, rgba(254,168,0,0.5) 1.3px, transparent 1.8px); background-size: 8px 8px; }

/* Filter bar: one row that stays under the site header (68px) while the grid scrolls */
.vs__filters { position: sticky; top: 68px; z-index: 20; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-bottom: clamp(20px, 3vw, 32px); padding-block: 12px; background: var(--ink-0); border-block: 1px solid var(--line-2); }
.sec--raised .vs__filters { background: var(--ink-1); }
.vs__dd { position: relative; }
.vs__dd-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 14px; border: 1px solid var(--line-2); color: var(--fg); font-family: var(--f-cond); font-weight: 700; font-size: 14px; letter-spacing: 0.04em; text-transform: uppercase; cursor: pointer; list-style: none; user-select: none; transition: border-color .2s; }
.vs__dd-btn::-webkit-details-marker { display: none; }
.vs__dd-btn:hover, .vs__dd[open] .vs__dd-btn { border-color: var(--fg-2); }
.vs__dd-btn:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }
.vs__dd-btn svg { flex: none; transition: transform .2s; }
.vs__dd[open] .vs__dd-btn svg { transform: rotate(180deg); }
.vs__dd-n { display: grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; background: var(--yellow); color: var(--ink-1); font-family: var(--f-text); font-size: 12px; font-variant-numeric: tabular-nums; }
.vs__dd-panel { position: absolute; left: 0; top: calc(100% + 8px); z-index: 1; display: grid; width: max-content; min-width: 100%; max-width: min(340px, calc(100vw - 32px)); max-height: min(60vh, 440px); margin: 0; padding: 8px; overflow-y: auto; border: 1px solid var(--line-2); background: var(--ink-2); box-shadow: 0 18px 40px rgba(0, 0, 0, .5); }
.vs__opt { position: relative; display: flex; align-items: center; gap: 12px; min-height: 40px; padding: 0 10px; font-size: var(--fs-sm); line-height: 1.2; cursor: pointer; }
.vs__opt:hover { background: var(--ink-3); }
.vs__opt::before { content: ""; flex: none; width: 16px; height: 16px; border: 1px solid var(--fg-2); background: center / 12px no-repeat; transition: background-color .15s, border-color .15s; }
.vs__opt:has(input:checked)::before { background-color: var(--yellow); border-color: var(--yellow); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6.2l2.6 2.6L10 3.4' fill='none' stroke='%23111' stroke-width='1.8'/%3E%3C/svg%3E"); }
.vs__opt:has(input:focus-visible) { outline: 2px solid var(--yellow); outline-offset: -2px; }
.vs__tag { display: inline-flex; align-items: center; border: 1px solid var(--line-2); background: transparent; font-family: var(--f-text); line-height: 1.2; transition: background .2s, border-color .2s, color .2s; }
.vs__count { margin-left: auto; font-size: var(--fs-sm); color: var(--fg-2); font-variant-numeric: tabular-nums; }
.vs__clear { order: 1; padding: 0; border: 0; background: none; color: var(--fg); font-family: var(--f-cond); font-weight: 700; font-size: 14px; letter-spacing: 0.03em; text-transform: uppercase; cursor: pointer; box-shadow: inset 0 -1px 0 var(--line-2); }
.vs__clear:hover { box-shadow: inset 0 -2px 0 var(--yellow); }

/* Cards */
.vs__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--card-gap); }
.vs__item { position: relative; display: flex; flex-direction: column; background: var(--ink-2); border: 1px solid var(--line); transition: border-color .25s; }
.vs__item:hover, .vs__item:focus-within { border-color: var(--line-2); }
.vs__card { display: grid; gap: 14px; align-content: start; flex: 1; padding: 0 0 4px; color: inherit; text-decoration: none; }
.vs__thumb { position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden; background: var(--ink-1); border-bottom: 1px solid var(--line); }
.vs__thumb img { width: 100%; height: 100%; object-fit: cover; }
.vs__thumb--portrait img { object-position: 50% 22%; }
.vs__thumb:not(:has(img)) { background-color: var(--ink-1); background-image: radial-gradient(circle, rgba(254,168,0,0.5) 1.3px, transparent 1.8px); background-size: 9px 9px; }
.vs__go { position: absolute; left: var(--card-gap); bottom: var(--card-gap); display: grid; place-items: center; width: 48px; height: 48px; background: var(--yellow); color: var(--ink-1); transition: transform .25s var(--ease-out); }
.vs__card:hover .vs__go, .vs__card:focus-visible .vs__go { transform: scale(1.08); }
.vs__dur { position: absolute; right: var(--card-gap); bottom: var(--card-gap); padding: 3px 8px; background: rgba(11, 11, 12, .82); font-size: var(--fs-xs); font-variant-numeric: tabular-nums; }
.vs__card::before { content: ""; position: absolute; left: -1px; top: -1px; width: 0; height: 2px; background: var(--yellow); transition: width .6s var(--ease-factory); z-index: 1; }
.vs__card:hover::before, .vs__card:focus-visible::before { width: 96px; }
.vs__q { padding-inline: var(--card-pad); font-size: var(--fs-h3-s); line-height: 1.25; }
.vs__who { display: flex; align-items: center; gap: 12px; padding-inline: var(--card-pad); }
.vs__who-t { display: grid; line-height: 1.3; }
.vs__who-t b { font-weight: 700; font-size: var(--fs-sm); }
.vs__who-t i { font-style: normal; font-size: var(--fs-xs); color: var(--fg-2); }
.vs__tags { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px var(--card-pad) var(--card-pad); }
.vs__tag { min-height: 30px; padding: 0 10px; font-size: var(--fs-xs); color: var(--fg-2); cursor: pointer; }
.vs__tag--area { color: var(--yellow-200); }
.vs__tag:hover { border-color: var(--fg-2); }
.vs__tag[aria-pressed="true"] { background: var(--yellow); border-color: var(--yellow); color: var(--ink-1); }
/* Without JavaScript the tags are labels, not controls. */
.vs:not(.is-js) .vs__tag { pointer-events: none; cursor: default; }
.vs__empty { padding: 32px var(--card-pad); border: 1px dashed var(--line-2); color: var(--fg-2); }

/* Player dialog: portrait and landscape both fit the viewport */
.vs__dlg { width: min(960px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 32px); margin: auto; padding: 0; border: 1px solid var(--line-2); background: var(--ink-1); color: var(--fg); overflow: auto; }
.vs__dlg::backdrop { background: rgba(5, 5, 6, .86); }
/* Story progress: one segment per video of the person */
.vs__segs { display: flex; gap: 4px; padding: 10px 68px 10px 12px; background: #000; }
.vs__segs i { flex: 1; height: 3px; background: rgba(255, 255, 255, .28); }
.vs__segs b { display: block; width: 0; height: 100%; background: var(--yellow); }
.vs__segs i.is-done b { width: 100%; }
.vs__stage { display: grid; place-items: center; background: #000; }
.vs__video { display: block; background: #000; object-fit: contain; }
.vs__dlg[data-ratio="landscape"] .vs__video { width: 100%; aspect-ratio: 16 / 9; max-height: calc(100dvh - 190px); }
.vs__dlg[data-ratio="portrait"] .vs__video { height: calc(100dvh - 190px); max-width: 100%; aspect-ratio: 9 / 16; }
.vs__cap { display: grid; gap: 4px; padding: 16px var(--card-pad) 8px; }
.vs__cap-q { font-size: var(--fs-lead); line-height: 1.3; font-weight: 700; }
.vs__cap-w { font-size: var(--fs-sm); color: var(--fg-2); }
.vs__nav { display: flex; justify-content: space-between; gap: 12px; padding: 8px var(--card-pad) var(--card-pad); }
.vs__btn { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 18px; border: 1px solid var(--line-2); background: transparent; color: var(--fg); font-family: var(--f-cond); font-weight: 700; font-size: 14px; letter-spacing: 0.03em; text-transform: uppercase; cursor: pointer; }
.vs__btn:hover:not(:disabled) { border-color: var(--fg-2); }
.vs__btn:disabled { opacity: .35; cursor: default; }
.vs__x { position: absolute; top: 12px; right: 12px; z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; border: 0; background: var(--yellow); color: var(--ink-1); cursor: pointer; }
.vs__x:hover { background: var(--yellow-200); }

@media (max-width: 960px) { .vs__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
	.vs__grid { grid-template-columns: 1fr; }
	.vs__person { width: 72px; }
	.vs__ring .vs__av { width: 60px; height: 60px; }
	/* Both menus open from the left edge of the bar, so the second one cannot leave the screen. */
	.vs__dd { position: static; }
	.vs__dd-panel { top: 100%; min-width: 0; width: 100%; max-width: none; }
	.vs__dd-btn { padding: 0 12px; }
	/* One row until a filter is on; then the count and "clear" share the second row. */
	.vs__count { order: 2; }
	.vs__filters:not(:has(.vs__clear:not([hidden]))) .vs__count { display: none; }
	.vs__btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
	.vs__btn { justify-content: center; min-width: 56px; }
	.vs__dlg[data-ratio="landscape"] .vs__video { max-height: calc(100dvh - 230px); }
	.vs__dlg[data-ratio="portrait"] .vs__video { height: calc(100dvh - 230px); }
}
@media (prefers-reduced-motion: reduce) {
	.vs *, .vs *::before { transition: none !important; }
	.vs__card:hover .vs__go { transform: none; }
}
