.video-catalogue { margin-block: clamp(1.6rem, 4vw, 3.4rem); }
.video-catalogue-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .6rem 1.2rem; margin-bottom: .85rem; }
.video-catalogue-heading h2 {
  color: var(--deep);
  font: 400 clamp(2.05rem, 4.5vw, 4rem)/1.04 var(--book);
  letter-spacing: -.036em;
}
.video-search {
  display: flex;
  align-items: center;
  width: min(100%, 22rem);
  min-height: 2.75rem;
  border: 1px solid var(--rule);
  background: var(--white);
}
.video-search:focus-within { outline: 2px solid var(--focus); outline-offset: 2px; }
.video-search input { width: 100%; min-width: 0; min-height: 2.75rem; padding: .5rem .75rem; border: 0; background: transparent; color: var(--ink); outline: 0; }
.video-search input::-webkit-search-cancel-button { appearance: none; }
.video-search input::placeholder { color: var(--gray); }
.video-search button, .video-filters button {
  min-height: 2.75rem;
  border: 0;
  color: var(--green);
  background: transparent;
  font: inherit;
  cursor: pointer;
}
.video-search button { min-width: 2.75rem; font-size: 1.35rem; }
.video-search button:hover, .video-filters button:hover { background: var(--wash); }
.video-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .15rem .65rem; border-block: 1px solid var(--rule); }
.video-filters { display: flex; flex-wrap: wrap; gap: 0 .25rem; }
.video-filters button { padding-inline: .68rem; border-bottom: 2px solid transparent; font-size: .875rem; }
.video-filters button[aria-pressed='true'] { border-bottom-color: var(--green); font-weight: 650; }
.video-count { margin-left: auto; padding-block: .6rem; color: var(--gray); font-size: .86rem; font-variant-numeric: tabular-nums; }

.video-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: clamp(.8rem, 2vw, 1.5rem); margin-top: 1rem; }
.video-card { min-width: 0; border: 1px solid var(--rule); background: var(--white); }
.video-card-active { grid-column: 1 / -1; border-color: var(--green); }
.video-preview { position: relative; isolation: isolate; aspect-ratio: 16 / 9; background: var(--deep); }
.video-preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.video-duration {
  position: absolute;
  right: .46rem;
  bottom: .46rem;
  padding: .18rem .4rem;
  color: #f6faf5;
  background: #182820ee;
  border-radius: .22rem;
  font-size: .76rem;
  font-variant-numeric: tabular-nums;
}
.video-play {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 2.75rem;
  white-space: nowrap;
  padding-inline: .75rem;
  border: 1px solid #c4d9ce;
  border-radius: .34rem;
  background: #164238f5;
  color: #f6faf5;
  font-size: .875rem;
  font-weight: 650;
  cursor: pointer;
}
.video-play:hover { background: var(--green); }
.video-play:active { transform: translate(-50%, -50%) scale(.975); }
.video-play:focus-visible { outline-color: #dff0ac; outline-offset: 3px; }
.video-play-symbol { width: 0; height: 0; border-block: .32rem solid transparent; border-left: .53rem solid currentColor; }
.video-card-content { padding: .68rem .85rem .42rem; }
.video-card-meta { display: flex; align-items: baseline; flex-wrap: wrap; gap: .1rem .62rem; color: var(--gray); font-size: .78rem; }
.video-card-meta > span { color: var(--green); font-weight: 650; }
.video-card h3 { margin: .28rem 0 0; color: var(--ink); font: 400 clamp(1.33rem, 2.25vw, 1.9rem)/1.16 var(--book); letter-spacing: -.018em; overflow-wrap: anywhere; }
.video-source {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  min-height: 2.75rem;
  width: fit-content;
  color: var(--green);
  font-size: .83rem;
  font-weight: 600;
}
.video-unavailable { padding-top: .22rem; color: var(--gray); font-size: .83rem; }

.video-active-player { background: var(--deep); color: #f6faf5; }
.video-active-player iframe { display: block; width: 100%; min-height: 12rem; aspect-ratio: 16 / 9; border: 0; background: #111915; }
.video-player-controls { display: flex; justify-content: flex-end; min-height: 2.75rem; padding-inline: .4rem; }
.video-close { min-height: 2.75rem; padding-inline: .45rem; border: 0; background: transparent; color: #f6faf5; font-size: .78rem; font-weight: 590; cursor: pointer; }
.video-close:hover { text-decoration: underline; }
.video-close:focus-visible { outline-color: #dff0ac; outline-offset: -3px; }
.video-empty { padding-block: 1.05rem; color: var(--gray); }
.video-empty button { margin-top: .65rem; }
.video-more { display: flex; justify-content: center; margin-top: 1.1rem; }

.video-catalogue-compact { margin-block: 0; }
.video-catalogue-compact .video-grid { display: block; margin: 0; }
.video-catalogue-compact .video-card-content { padding-block: .14rem; }
.video-catalogue-compact .video-active-player iframe { min-height: auto; }

@media (max-width: 61rem) { .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 38rem) {
  .video-grid { grid-template-columns: minmax(0, 1fr); }
  .video-search { width: 100%; }
  .video-active-player iframe { min-height: 10rem; }
}
@media (max-width: 22rem) {
  .video-active-player { margin-inline: calc(50% - 50vw); }
}
@media (prefers-reduced-motion: reduce) {
  .video-play:active { transform: translate(-50%, -50%); }
}
