.videos-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.video-card { min-width: 0; overflow: hidden; border: 1px solid #e5e5e5; border-radius: 4px; }
.video-card__info { padding: 24px; }
.video-card__info h2 { margin: 0 0 20px; font-size: clamp(18px, 1.5vw, 24px); line-height: 1.4; overflow-wrap: anywhere; }
.video-card__link { color: #a84200; text-decoration: underline; text-underline-offset: 4px; }
.video-card__link:hover { color: #7c3100; }
.video-card__link:focus-visible { outline: 2px solid var(--orange); outline-offset: 5px; }
@media (max-width: 767px) {
  .videos-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .video-card__info { padding: 20px; }
}

body:has(.video-modal[open]) { overflow: hidden; }
.video-modal {
  width: min(1100px, calc(100% - 24px));
  max-height: calc(100dvh - 24px);
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: #17191b;
  color: #fff;
}
.video-modal[open] { display: flex; flex-direction: column; }
.video-modal::backdrop { background: rgb(0 0 0 / 78%); }
.video-modal header { display: flex; align-items: center; gap: 16px; }
.video-modal header, .video-modal footer { flex-shrink: 0; padding: 12px 16px; }
.video-modal h2 { flex: 1; min-width: 0; margin: 0; font-size: clamp(16px, 2vw, 23px); overflow-wrap: anywhere; }
.video-modal button { flex: 0 0 44px; height: 44px; border: 1px solid #ffffff40; border-radius: 50%; color: inherit; background: transparent; font-size: 26px; cursor: pointer; }
.video-modal__player { position: relative; aspect-ratio: 16 / 9; min-height: 0; background: #000; }
.video-modal__player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-modal footer { text-align: right; }
.video-modal footer a { color: #ff984f; text-decoration: underline; }

.video-card__preview {
  position: relative;
  aspect-ratio: 16 / 9;
  background: linear-gradient(rgb(10 15 20 / 48%), rgb(10 15 20 / 65%)),
    url("assets/technograd-stylized-v1.webp") center / cover no-repeat;
}
.video-card__preview::before {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 72px;
  height: 32px;
  background: url("assets/logo.svg") left center / contain no-repeat;
  content: "";
}
.video-card__play {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #fff;
}
.video-card__play-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--orange);
}
.video-card__play-icon::before {
  margin-left: 4px;
  border-block: 9px solid transparent;
  border-left: 14px solid #fff;
  content: "";
}
.video-card__play:hover .video-card__play-icon { background: var(--orange-deep); }
.video-card__play:focus-visible { outline: 3px solid var(--orange); outline-offset: -5px; }
