/* /videos: the Shorts library (videos.php) */
.vid-filter { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 2rem; }
.vid-chip { font: inherit; font-size: .92rem; font-weight: 600; padding: .45rem .95rem; border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface, var(--bg-elev)); color: var(--text); cursor: pointer; }
.vid-chip span { color: var(--text-faint); font-weight: 500; margin-left: .25rem; }
.vid-chip:hover { border-color: var(--brand); }
.vid-chip.is-on { background: var(--brand); border-color: var(--brand); color: var(--on-brand, #fff); }
.vid-chip.is-on span { color: inherit; opacity: .8; }
.vid-chip:focus-visible { outline: 2px solid var(--focus, var(--brand)); outline-offset: 2px; }
.vid-group { margin: 0 0 3rem; }
.vid-group h2 { margin: 0 0 .35rem; font-size: 1.45rem; }
.vid-group__about { margin: 0 0 1.25rem; color: var(--text-soft); max-width: 60ch; }
.vid-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.5rem; }
.vid-card { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: var(--radius-lg, 16px); overflow: hidden;
  background: var(--surface, var(--bg-elev)); box-shadow: var(--shadow-sm, none); }
.vid-card__frame { aspect-ratio: 9 / 16; background: #0b0a12; }
.vid-card__frame video { width: 100%; height: 100%; display: block; object-fit: cover; background: #0b0a12; }
.vid-card__body { padding: .9rem 1rem 1.1rem; display: flex; flex-direction: column; gap: .3rem; }
.vid-card__body h3 { margin: 0; font-size: 1rem; line-height: 1.35; }
.vid-card__course { margin: 0; font-size: .88rem; font-weight: 600; color: var(--brand); }
.vid-card__meta { margin: 0; font-size: .82rem; color: var(--text-faint); }
.vid-empty { color: var(--text-soft); }
[hidden].vid-group { display: none; }
.vid-card--wide .vid-card__frame { aspect-ratio: 16 / 9; }
@media (min-width: 600px) { .vid-card--wide { grid-column: span 2; } }
