/*
 * Videos (inc/videos.php): the cards of the home strip, the list /videos/ and "More videos", and the video page.
 * Only the site's tokens (assets/css/tokens.css); motion is transform / opacity and stops with reduced motion.
 */

/* ---------- cards ---------- */
.vd-grid { display: grid; gap: clamp(16px, 1.6vw, 24px); }
.vd-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.vd-card { min-width: 0; }
.vd-link { display: flex; flex-direction: column; gap: 14px; color: var(--tZYQMwj); text-decoration: none; border-radius: 22px; }
.vd-link:focus-visible { outline: 2px solid var(--tAWe4DZ); outline-offset: 4px; }
.vd-thumb { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 20px; background: var(--t1P7HTr); isolation: isolate; }
.vd-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.vd-thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, 0.55) 100%); pointer-events: none; }
.vd-play { position: absolute; left: 50%; top: 50%; z-index: 1; display: grid; place-items: center; width: clamp(52px, 4.4vw, 68px); height: clamp(52px, 4.4vw, 68px); margin: calc(clamp(52px, 4.4vw, 68px) / -2) 0 0 calc(clamp(52px, 4.4vw, 68px) / -2); border-radius: 50%; background: rgba(10, 10, 12, 0.55); color: #fff; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.22) inset; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1); }
.vd-play svg { margin-left: 3px; }
.vd-dur { position: absolute; right: 12px; bottom: 12px; z-index: 1; padding: 4px 8px; border-radius: 8px; background: rgba(0, 0, 0, 0.72); color: #fff; font: 600 12.5px/1.2 "Geist Mono", ui-monospace, monospace; letter-spacing: 0.02em; }
.vd-body { display: flex; flex-direction: column; gap: 8px; padding: 0 4px; }
.vd-title { margin: 0; font-family: -apple-system, "SF Pro Display", Geist, system-ui, sans-serif; font-size: clamp(17px, 1.25vw, 20px); font-weight: 650; line-height: 1.28; letter-spacing: -0.015em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-wrap: pretty; }
.vd-meta { margin: 0; font-size: 13.5px; color: var(--tgHCZoc); }
@media (hover: hover) {
  .vd-link:hover .vd-img { transform: scale(1.04); }
  .vd-link:hover .vd-play { transform: scale(1.08); }
  .vd-link:hover .vd-title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  .vd-img, .vd-play { transition: none; }
  .vd-link:hover .vd-img, .vd-link:hover .vd-play { transform: none; }
}

/* home strip: three across; tablets two and a half in a row you swipe; phones one and a peek */
.vd-home .vd-grid-3 { margin-top: clamp(20px, 2vw, 28px); }
@media (max-width: 1099.98px) {
  .vd-home .vd-grid-3 { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(300px, 44%); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
  .vd-home .vd-grid-3::-webkit-scrollbar { display: none; }
  .vd-home .vd-card { scroll-snap-align: start; }
}
@media (max-width: 699.98px) {
  .vd-home .vd-grid-3 { grid-auto-columns: 84%; }
}

/* ---------- /videos/ and the video page ---------- */
.vd { font-family: -apple-system, "SF Pro Text", Geist, system-ui, sans-serif; color: var(--tZYQMwj); padding-bottom: clamp(56px, 7vw, 104px); }
.vd-sec { max-width: 1680px; margin: 0 auto; padding: clamp(32px, 4vw, 64px) clamp(16px, 3vw, 48px) 0; }
.vd-hero { padding-top: 26px; }
.vd-bc { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--tgHCZoc); }
.vd-bc a { color: inherit; text-decoration: none; }
.vd-bc a:hover, .vd-bc [aria-current] { color: var(--tZYQMwj); }
.vd-bc [aria-current] { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60ch; }
.vd-h1 { margin: clamp(18px, 2.4vw, 30px) 0 0; font-family: -apple-system, "SF Pro Display", Geist, system-ui, sans-serif; font-weight: 700; font-size: clamp(36px, 4.6vw, 72px); line-height: 1.02; letter-spacing: -0.04em; text-wrap: balance; }
.vd-h1-single { max-width: 24ch; font-size: clamp(30px, 3.6vw, 56px); }
.vd-lead { max-width: 760px; margin: 18px 0 0; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.5; color: var(--tLgByEz); text-wrap: pretty; }
.vd-feature .vd-link { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: end; gap: clamp(18px, 2.4vw, 40px); }
.vd-feature .vd-title { font-size: clamp(22px, 2.2vw, 34px); -webkit-line-clamp: 4; }
.vd-feature .vd-play { width: 84px; height: 84px; margin: -42px 0 0 -42px; }
.vd-grid-all { row-gap: clamp(28px, 3vw, 44px); }
.vd-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.vd-h2 { margin: 0; font-family: -apple-system, "SF Pro Display", Geist, system-ui, sans-serif; font-weight: 700; font-size: clamp(26px, 2.4vw, 38px); letter-spacing: -0.03em; }
.vd-all { color: var(--tAWe4DZ); font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.vd-all:hover { text-decoration: underline; }
.vd-pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: clamp(32px, 4vw, 56px); }
.vd-pager .page-numbers { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 14px; border-radius: 12px; background: var(--t1P7HTr); color: var(--tZYQMwj); font-size: 15px; font-weight: 600; text-decoration: none; }
.vd-pager .page-numbers.current { background: var(--tZYQMwj); color: var(--t1P7HTr); }
.vd-pager a.page-numbers:hover { background: var(--t5ViFMQ); }
.vd-note { margin: 22px 0 0; font-size: 14.5px; color: var(--tgHCZoc); }
.vd-note a { color: var(--tZYQMwj); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.vd-end { padding-top: 24px; }

/* the video page: the player full width of the column, then the description */
.vd-meta-top { margin-top: 14px; font-size: 14.5px; }
.vd-player-wrap { margin-top: clamp(22px, 2.6vw, 36px); max-width: 1180px; }
.vd-text .tjm-vi-block { margin: 0 0 clamp(22px, 2.6vw, 36px); }
.vd-text .tjm-vi-frame { border-radius: 22px; box-shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.6); }
.vd-text p { max-width: 760px; margin: 0 0 14px; font-size: 17px; line-height: 1.65; color: var(--tLgByEz); text-wrap: pretty; }

@media (max-width: 1099.98px) {
  .vd-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vd-feature .vd-link { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 699.98px) {
  .vd-grid-3 { grid-template-columns: minmax(0, 1fr); }
  .vd-thumb { border-radius: 16px; }
  .vd-text .tjm-vi-frame { border-radius: 14px; }
  .vd-feature .vd-play { width: 64px; height: 64px; margin: -32px 0 0 -32px; }
}
.vd-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
