/* /videos (views/site/videos.php) and the short video cards (views/site/videos/_card.php) */
.vids-hero { padding-block: 56px 24px; display: grid; gap: 18px; max-width: 860px; margin-inline: auto; text-align: center; justify-items: center; }
.vids-hero h1 { font-size: clamp(40px, 5.4vw, 64px); font-weight: 800; letter-spacing: -.045em; }
.vids-crumbs { display: flex; gap: 8px; font-size: 14px; color: var(--ink-faint); }
.vids-crumbs a { color: var(--ink-muted); text-decoration: none; }
.vids-cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 8px; }
.vids-cta svg { width: 22px; height: 22px; }

.vids-topics { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding-block: 16px 8px; }
.vids-topics a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--line); color: var(--ink); font: 500 14px/1.2 var(--body); text-decoration: none; }
.vids-topics a:hover { border-color: var(--accent); color: var(--accent); }
.vids-topics a span { color: var(--ink-faint); font-size: 12px; }

.vids-topic { padding-block: 48px 8px; scroll-margin-top: 88px; }
.vids-topic + .vids-topic { border-top: 1px solid var(--line); }
.vids-topic-h { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 32px; margin-bottom: 24px; }
.vids-topic-h h2 { font-size: clamp(26px, 3vw, 34px); letter-spacing: -.03em; }
.vids-topic-h p { color: var(--ink-muted); font-size: 16px; max-width: 60ch; margin-top: 6px; }
.vids-topic-links { display: flex; gap: 20px; font-size: 15px; font-weight: 600; }
.vids-topic-links a { color: var(--accent); text-decoration: none; white-space: nowrap; }
.vids-topic-links a:hover { text-decoration: underline; }

.vids-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 24px 20px; }
.vids-more { margin-top: 24px; }
.vids-more[hidden] { display: none; }
.vids-all { margin-top: 24px; }

/* a short: the 1280x720 thumbnail has the 9:16 video in its middle, so cover-crop it to 9:16 */
.vid { display: grid; gap: 10px; align-content: start; color: var(--ink); text-decoration: none; }
.vid-shot { position: relative; aspect-ratio: 9 / 16; border-radius: var(--r-lg); overflow: hidden; background: var(--hero); box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s; }
.vid-shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vid-play { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 56px; height: 56px; border-radius: 50%; background: rgba(14,17,22,.62); color: #fff; display: grid; place-items: center; transition: background .2s, scale .2s; }
.vid-play svg { width: 26px; height: 26px; margin-left: 3px; }
.vid-time { position: absolute; right: 8px; bottom: 8px; padding: 2px 7px; border-radius: 6px; background: rgba(14,17,22,.78); color: #fff; font: 600 12px/1.4 var(--body); }
.vid-title { font-size: 15px; font-weight: 600; line-height: 1.35; text-wrap: pretty; }
.vid:hover .vid-shot { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.vid:hover .vid-play { background: var(--accent); scale: 1.06; }
.vid:focus-visible { outline: none; }
.vid:focus-visible .vid-shot { box-shadow: var(--ring); }

.vid-dialog { padding: 0; border: 0; border-radius: var(--r-xl); background: #000; width: min(92vw, calc(84vh * 9 / 16)); overflow: hidden; box-shadow: var(--shadow-lg); }
.vid-dialog::backdrop { background: rgba(14,17,22,.82); }
.vid-frame { aspect-ratio: 9 / 16; }
.vid-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.vid-bar { display: flex; align-items: center; justify-content: space-between; padding: 8px 8px 8px 16px; background: #0E1116; }
.vid-yt { color: #C3CAD6; font-size: 14px; text-decoration: none; }
.vid-yt:hover { color: #fff; }
.vid-close { width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; }
.vid-close:hover { background: rgba(255,255,255,.2); }

.vids-end { padding-block: 72px 96px; display: grid; gap: 16px; justify-items: center; text-align: center; }
.vids-end h2 { font-size: clamp(30px, 4vw, 44px); letter-spacing: -.035em; }

@media (max-width: 640px) {
  .vids-hero { padding-block: 32px 16px; }
  .vids-topics { flex-wrap: nowrap; justify-content: start; overflow-x: auto; margin-inline: -16px; padding-inline: 16px; scrollbar-width: none; }
  .vids-topics a { flex: none; }
  .vids-grid { grid-template-columns: repeat(2, 1fr); gap: 20px 14px; }
  .vids-topic { padding-block: 36px 4px; }
  .vid-title { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .vid-shot, .vid-play { transition: none; }
}
