/**
 * Vídeo de capçalera de la subcategoria.
 */

.explora-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius-lg, 2px);
  background: rgb(var(--brand-primary));
  cursor: pointer;
  border: 0;
  padding: 0;
  display: block;
}

.explora-video__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.explora-video:hover .explora-video__poster {
  transform: scale(1.03);
}

.explora-video__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgb(var(--brand-primary) / 0.25);
  transition: background-color 0.3s ease;
}

.explora-video:hover .explora-video__play {
  background: rgb(var(--brand-primary) / 0.1);
}

.explora-video__play span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  background: rgb(var(--brand-accent));
  color: rgb(var(--on-accent, var(--brand-primary)));
  font-size: 2.5rem;
  box-shadow: 0 10px 30px rgb(0 0 0 / 0.25);
  transition: transform 0.3s ease;
}

.explora-video:hover .explora-video__play span {
  transform: scale(1.08);
}

.explora-video__frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.explora-video.is-playing {
  cursor: default;
}
