/* Student video grid (block/slider/view_video_grid.tpl). The heading, posters and pop-up player come from
   video-feedback.css; this file lays the videos out in a grid and styles the filters and "show more". */
.mvd--grid { scroll-margin-top: 72px; }
.mvd--grid [hidden] { display: none !important; }
.mvd-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: -12px 0 30px; }
.mvd-filters button { min-height: 38px; padding: 8px 16px; border: 1px solid var(--mvd-line); border-radius: 100px; background: transparent; color: var(--mvd-ink); font: 600 13px/1.3 Inter, Arial, sans-serif; cursor: pointer; transition: border-color .16s, background-color .16s, color .16s; }
.mvd-filters button:hover { border-color: var(--mvd-red); }
.mvd-filters button[aria-pressed="true"] { border-color: var(--mvd-red); background: var(--mvd-red); color: #fff; }
.mvd-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 14px; }
.mvd .mvd-course { display: inline-block; margin-top: 10px; color: var(--mvd-muted) !important; font: 600 12px/1.4 Inter, Arial, sans-serif; text-decoration: none; }
.mvd .mvd-course span { color: var(--mvd-red); }
.mvd .mvd-course:hover { color: var(--mvd-ink) !important; text-decoration: underline; text-underline-offset: 3px; }
.mvd-grid-footer { display: flex; flex-direction: column; align-items: center; gap: 16px; margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--mvd-line); }
.mvd-status { margin: 0; color: var(--mvd-muted); font: 500 13px/1.4 Inter, Arial, sans-serif; }
.mvd-more { min-height: 48px; padding: 12px 28px; border: 2px solid var(--mvd-line); border-radius: 8px; background: transparent; color: var(--mvd-ink); font: 700 15px/1.2 Inter, Arial, sans-serif; cursor: pointer; }
.mvd-more:hover { border-color: var(--mvd-red); color: var(--mvd-red); }
.mvd-filters button:focus-visible, .mvd-more:focus-visible { outline: 2px solid var(--mvd-red); outline-offset: 3px; }
@media (max-width: 900px) {
  .mvd-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 650px) {
  .mvd-filters { flex-wrap: nowrap; margin-inline: -16px; padding-inline: 16px; overflow-x: auto; scrollbar-width: none; }
  .mvd-filters::-webkit-scrollbar { display: none; }
  .mvd-filters button { flex: none; }
  .mvd-grid { grid-template-columns: 1fr; gap: 30px; }
}
@media (prefers-reduced-motion: reduce) { .mvd-filters button { transition: none; } }
