/* Videos in the px system (css/px.css): plain centred hero, centred language
   pills, then OpenAI-style cards (square-cornered 16:9 image, title, small
   grey date). YouTube's player loads only when a video is played (site.js
   swaps .yt-lite[data-yt] for an iframe). */

.vid-section { padding-top: 72px; padding-bottom: 136px; }
.vid-tablist { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 56px; }
.vid-tablist button {
  font: inherit; font-size: 15px; font-weight: 500; color: var(--nxt-midnight); cursor: pointer;
  min-height: 44px; padding: 0 22px; border-radius: 999px; border: 0; background: rgba(16, 22, 77, 0.05);
  transition: background-color 200ms var(--ease-out), color 200ms var(--ease-out);
}
.vid-tablist button:hover { background: rgba(16, 22, 77, 0.1); }
.vid-tablist button[aria-selected="true"] { background: var(--nxt-midnight); color: #fff; }
.vid-count { opacity: 0.6; margin-left: 4px; font-weight: 400; }
.vid-panel { background: none; border: 0; border-radius: 0; box-shadow: none; padding: 0; font-size: inherit; }

.px .vid-grid { list-style: none; padding: 0; margin: 0; }
.vid-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px 24px; }
.yt-lite { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--nxt-midnight); }
.yt-lite img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms var(--ease-out); }
.yt-lite:hover img { transform: scale(1.025); }
.yt-play {
  position: absolute; left: 20px; bottom: 20px; width: 44px; height: 44px; border-radius: 50%;
  background: rgba(16, 22, 77, 0.72); transition: background-color 200ms var(--ease-out);
}
.yt-play::after { content: ""; position: absolute; left: 17px; top: 14px; border-style: solid; border-width: 8px 0 8px 13px; border-color: transparent transparent transparent #fff; }
.yt-lite:hover .yt-play, .yt-lite:focus-visible .yt-play { background: var(--nxt-cobalt); }
.yt-lite iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.px .vid-title { font-size: 17px; font-weight: 500; line-height: 1.4; letter-spacing: -0.01em; color: var(--nxt-midnight); margin: 18px 0 6px; }
.px .vid-meta { font-size: 14px; color: var(--nxt-gray); margin: 0; }
.px .vid-more { margin: 72px 0 0; padding-top: 24px; border-top: 1px solid var(--border-subtle); text-align: center; }

@media (max-width: 1020px) { .vid-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) {
  .vid-section { padding-top: 48px; padding-bottom: 96px; }
  .vid-grid { grid-template-columns: 1fr; gap: 40px; }
  .vid-tablist { margin-bottom: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .yt-lite img, .yt-play, .vid-tablist button { transition: none; }
}

/* "Watch" block on the home page */
.watch-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 32px; }
.watch-head h2 { margin: 0; }
.watch-note { margin: 32px 0 0; font-size: 14px; color: var(--nxt-gray); }
.watch-note a { color: var(--nxt-midnight); }
@media (max-width: 560px) { .watch-head { flex-direction: column; align-items: flex-start; } }
