/* ==========================================================================
   Video feature — poster, dark shade, play button and caption; a click opens
   the .video-lightbox player (js/video-showcase.js, video-lightbox.css).
   Used by the homepage video showcase and the pillar page "Βίντεο ειδικού".
   .video-feature--large    pillar page: 934 × 511, 90px play, 28px title,
                            speaker in the theme accent
   ========================================================================== */

.video-feature {
  position: relative;
  overflow: hidden;
  aspect-ratio: 724 / 396;
  background: var(--color-bg-dark);
  color: var(--white);
  cursor: pointer;
}

.video-feature__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
}

.video-feature:hover .video-feature__poster {
  transform: scale(1.03);
}

/* Dark blurred shade behind the caption (Figma: #000f20 rect, blur 100) */
.video-feature::after {
  position: absolute;
  top: 62.06%;
  left: -25.76%;
  width: 149.2%;
  height: 81.65%;
  background: var(--color-video-shade);
  content: "";
  filter: blur(100px);
  pointer-events: none;
}

.video-feature__play {
  position: absolute;
  z-index: 2;
  top: calc(50% - 2px);
  left: 50%;
  width: 70px;
  height: 70px;
  border-radius: 50%; /* round focus ring */
  transform: translate(-50%, -50%);
  transition: transform var(--transition-fast);
}

.video-feature:hover .video-feature__play,
.video-feature__play:focus-visible {
  transform: translate(-50%, -50%) scale(1.06);
}

.video-feature__caption {
  position: absolute;
  z-index: 1;
  right: 37px;
  bottom: 27px;
  left: 37px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  pointer-events: none;
}

.video-feature__title {
  max-width: 330px;
  font-size: 20px;
  line-height: 28px;
  font-weight: var(--font-weight-medium);
}

.video-feature__speaker {
  margin-top: 7px;
  color: var(--color-video-speaker);
  font-size: var(--font-size-sm);
  line-height: 24px;
}

.video-feature__duration {
  flex: none;
  padding: 7px 12px;
  border-radius: 5px;
  background: rgb(15 98 254 / 32%);
  font-size: var(--font-size-sm);
  line-height: var(--leading-snug);
}

/* ---- Large (pillar page "Βίντεο ειδικού", Figma 78:2297) --------------- */
.video-feature--large {
  aspect-ratio: 934.43 / 511.1;
}

/* Figma: shade rect 1319.7 x 323.4 at (-186.5, 375.7) */
.video-feature--large::after {
  top: 73.52%;
  left: -19.96%;
  width: 141.24%;
  height: 63.27%;
}

.video-feature--large .video-feature__play {
  top: calc(50% - 1.5px);
  width: 90px;
  height: 90px;
}

.video-feature--large .video-feature__caption {
  right: 45px;
  bottom: 35px;
  left: 37px;
}

.video-feature--large .video-feature__title {
  max-width: 437px;
  font-size: var(--font-size-lead-lg);
  line-height: var(--leading-snug);
}

.video-feature--large .video-feature__speaker {
  margin-top: 11px;
  color: var(--accent-strong, var(--accent, var(--color-video-speaker)));
  font-weight: var(--font-weight-medium);
}

/* Figma: the duration pill sits 7px above the speaker line */
.video-feature--large .video-feature__duration {
  margin-bottom: 7px;
  font-size: var(--font-size-sm);
  line-height: 18px;
}

/* ---- Phone ---------------------------------------------------------------- */
@media (max-width: 700px) {
  .video-feature {
    aspect-ratio: 4 / 3;
  }

  .video-feature__play {
    width: 56px;
    height: 56px;
  }

  .video-feature__caption {
    right: 16px;
    bottom: 16px;
    left: 16px;
    gap: 12px;
  }

  .video-feature__title {
    font-size: var(--font-size-base);
    line-height: 22px;
  }

  .video-feature__speaker {
    margin-top: 2px;
    font-size: 13px;
    line-height: 18px;
  }

  .video-feature--large .video-feature__play {
    width: 64px;
    height: 64px;
  }

  .video-feature--large .video-feature__caption {
    right: 16px;
    bottom: 16px;
    left: 16px;
  }

  .video-feature--large .video-feature__title {
    font-size: 18px;
    line-height: 24px;
  }

  .video-feature--large .video-feature__speaker {
    margin-top: 4px;
    font-size: 13px;
    line-height: 18px;
  }

  .video-feature--large .video-feature__duration {
    margin-bottom: 0;
    font-size: 13px;
  }
}
