.video-carousel {
  --video-blue: #123f84;
  --video-navy: #092557;
  --video-gold: #f2bd49;
  margin-top: 20px;
}

.video-header { display: flex; align-items: end; justify-content: space-between; gap: 14px; margin-bottom: 15px; }
.video-header h2 { margin: 0; font-size: clamp(1.3rem, 2.05vw, 1.85rem); letter-spacing: -.032em; }
.video-status { margin: 4px 0 0; color: var(--muted); font-size: .79rem; line-height: 1.35; }

.video-controls { display: flex; flex: none; gap: 6px; }
.video-controls[hidden] { display: none; }
.video-controls button, .video-dialog button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  min-height: 36px;
  padding: 6px 10px;
  border: 1px solid #c3d7f0;
  border-radius: 7px;
  background: #edf4fd;
  color: var(--video-navy);
  font-size: .83rem;
  font-weight: 650;
}
.video-controls button:hover { background: #dceafd; }
.video-controls button:focus-visible { outline-color: var(--video-blue); }
.video-dialog button { border-color: #aac9ef79; background: #ffffff10; color: #fff; }
.video-dialog button:hover { background: #ffffff24; }
.video-dialog button:focus-visible { outline-color: var(--video-gold); }
.video-controls svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.video-viewport { --video-columns: 3; overflow: hidden; }
.video-track {
  --video-gap: 12px;
  display: flex;
  align-items: stretch;
  gap: var(--video-gap);
  margin: 0;
  padding: 0;
  list-style: none;
  transform: translateX(var(--video-offset, 0));
}

.video-slot {
  flex: 0 0 calc((100% + var(--video-gap)) / var(--video-visible, 3) - var(--video-gap));
  min-width: 0;
}
.video-card {
  display: flex;
  height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--video-blue);
  border-radius: 9px;
  color: #fff;
  background: linear-gradient(120deg, var(--video-navy), var(--video-blue));
  text-decoration: none;
}
.video-card:focus-visible { outline: 2px solid var(--video-gold); outline-offset: -3px; }
.video-card:hover .video-title { text-decoration: underline; text-underline-offset: 2px; }

.video-image {
  position: relative;
  display: grid;
  aspect-ratio: 16 / 9;
  place-items: center;
  overflow: hidden;
  border-bottom: 2px solid var(--video-gold);
  background: var(--video-blue);
}
.video-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.video-play {
  z-index: 1;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--video-gold);
  border-radius: 50%;
  background: #10274cd6;
  color: white;
}
.video-card:hover .video-play { background: #19497c; }
.video-play svg { width: 15px; height: 15px; fill: currentColor; }

.video-copy { display: grid; gap: 5px; padding: 9px 12px 11px; }
.video-title {
  display: -webkit-box;
  min-height: 2.48em;
  overflow: hidden;
  color: inherit;
  font-size: .92rem;
  font-weight: 700;
  line-height: 1.24;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.video-meta { color: #dceaff; font-size: .77rem; line-height: 1.3; }

.video-dialog {
  width: min(810px, calc(100% - 24px));
  max-height: calc(100% - 24px);
  padding: 14px;
  border: 1px solid #858fa5;
  border-radius: 12px;
  background: #132b4e;
  color: #fff;
}
.video-dialog::backdrop { background: #071323bd; }
.video-dialog-header { display: flex; align-items: start; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.video-dialog-header h2 { margin: 4px 0; font-size: 1.05rem; }
.video-player { min-height: 200px; aspect-ratio: 16 / 9; background: #000; }
.video-player iframe { display: block; width: 100%; height: 100%; border: 0; }
.video-open { display: inline-block; margin-top: 10px; color: #e0edff; font-size: .9rem; }

@media (min-width: 821px) and (max-width: 1030px), (min-width: 631px) and (max-width: 820px) {
  .video-viewport { --video-columns: 2; }
}
@media (max-width: 630px) {
  .video-viewport { --video-columns: 1; }
  .video-header { align-items: start; }
  .video-controls { gap: 4px; }
  .video-controls button { min-width: 31px; min-height: 33px; padding: 5px 7px; }
}
@media (max-width: 355px) {
  .video-header { flex-wrap: wrap; }
}
