.ea-lv { --ea-lv-fade: 18%; position: relative; width: 100%; }

.ea-lv__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; gap: 1rem; }
.ea-lv__title { margin: 0; }
.ea-lv__nav { display: flex; gap: .5rem; }
.ea-lv__nav button {
  width: 40px; height: 40px; border: 1px solid currentColor; border-radius: 9999px;
  background: transparent; color: inherit; font-size: 18px; line-height: 1; cursor: pointer;
  transition: opacity .2s ease;
}
.ea-lv__nav button:hover { opacity: .6; }
.ea-lv__nav button.swiper-button-disabled { opacity: .25; cursor: default; }

.ea-lv__swiper { overflow: hidden; }

/* Fondre amb el costat dret (s'amaga en arribar al final) */
.ea-lv--fade:not(.is-end) .ea-lv__swiper {
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - var(--ea-lv-fade)), transparent 100%);
  mask-image: linear-gradient(to right, #000 calc(100% - var(--ea-lv-fade)), transparent 100%);
}

.ea-lv__media { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.ea-lv__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; background: #000; }
.ea-lv__video[controls] { object-fit: contain; }

.ea-lv__play {
  position: absolute; inset: 0; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  padding: 0; border: 0; background: transparent; cursor: pointer; transition: opacity .2s ease, transform .2s ease;
}
.ea-lv__play svg { transition: transform .2s ease; }
.ea-lv__play:hover svg { transform: scale(1.08); }
.ea-lv__media.is-playing .ea-lv__play { opacity: 0; pointer-events: none; }

.ea-lv__caption { margin: .75rem 0 0; text-align: left; }
.ea-lv__empty { padding: 1rem; border: 1px dashed currentColor; text-align: center; }
