/* ==========================================================================
   video — click-to-play poster on a dark section (EXALCO-Istoria "Corporate
   video", EXALCO-Anakainizo "Anakainizo video"). JS adds .is-playing on
   .ex-video__frame and appends the <iframe>.
   ========================================================================== */
/* Head → frame: 26px in both mockups (the base gap is 30px). */
.ex-video { --ex-head-gap: 26px; }

.ex-video__frame {
  position: relative;
  max-width: 1060px;
  margin-inline: auto;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #2a2e39;
}

.ex-video__poster { position: absolute; inset: 0; z-index: var(--ex-z-raised); display: block; color: var(--ex-white); }
.ex-video__poster:hover { color: var(--ex-white); }
.ex-video__poster > img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.ex-video__poster::after { content: ''; position: absolute; inset: 0; background: rgba(32, 35, 43, .35); pointer-events: none; }
.ex-video__poster--static::after { content: none; }
.ex-video__poster:focus-visible { outline-offset: -4px; }

.ex-video__play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 84px;
  background: var(--ex-red);
  box-shadow: 0 14px 34px -12px rgba(201, 18, 41, .6);
  transform: translate(-50%, -50%);
  transition: transform var(--ex-t-base), box-shadow var(--ex-t-base);
}
.ex-video__play-icon {
  display: block;
  width: 0;
  height: 0;
  margin-left: 5px;
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
  border-left: 22px solid var(--ex-white);
}
.ex-video__poster:hover .ex-video__play,
.ex-video__poster:focus-visible .ex-video__play { transform: translate(-50%, -50%) scale(1.08); box-shadow: 0 20px 44px -10px rgba(201, 18, 41, .7); }

.ex-video__caption,
.ex-video__external {
  position: absolute;
  bottom: 16px;
  z-index: 3;
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: .14em;
  color: var(--ex-white);
}
.ex-video__caption { left: 20px; max-width: calc(100% - 190px); line-height: normal; /* rendered: 12px line */ pointer-events: none; }
.ex-video__external {
  right: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(255, 255, 255, .55);
  transition: border-color var(--ex-t-fast);
}
.ex-video__external:hover,
.ex-video__external:focus-visible { border-bottom-color: var(--ex-red); color: var(--ex-white); }

/* Playing: the iframe (appended by JS) replaces the cover */
.ex-video__frame iframe { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; border: 0; }
.ex-video__frame.is-playing .ex-video__poster,
.ex-video__frame.is-playing .ex-video__caption,
.ex-video__frame.is-playing .ex-video__external { display: none; }

@media (max-width: 899px) {
  .ex-video__play { width: 68px; height: 68px; }
  .ex-video__play-icon { margin-left: 4px; border-top-width: 11px; border-bottom-width: 11px; border-left-width: 18px; }
  .ex-video__external { padding-block: 8px 6px; }
  /* 44px tap area without moving the label */
  .ex-video__external::after { content: ''; position: absolute; inset: -9px -10px; }
}

@media (max-width: 599px) {
  .ex-video__frame { margin-inline: calc(-1 * var(--ex-gutter)); }
  .ex-video__caption { left: 14px; bottom: 12px; max-width: calc(100% - 140px); font-size: 10px; letter-spacing: .1em; }
  .ex-video__external { right: 14px; bottom: 6px; font-size: 10px; }
  .ex-video__play { width: 56px; height: 56px; }
}

@media (prefers-reduced-motion: reduce) {
  .ex-video__play,
  .ex-video__external { transition: none; }
  .ex-video__poster:hover .ex-video__play,
  .ex-video__poster:focus-visible .ex-video__play { transform: translate(-50%, -50%); }
}
