/* BYM v27 — reproductor audiovisual de portafolio */
.bym-showreel-trigger {
  position: relative;
  isolation: isolate;
  gap: 11px;
  cursor: pointer;
}

.bym-showreel-trigger .bym-play-icon {
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border: 1px solid rgba(255, 255, 255, .62);
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  box-shadow: 0 0 16px rgba(255, 255, 255, .18);
}

.bym-showreel-trigger .bym-play-icon svg {
  width: 9px;
  height: 11px;
  margin-left: 2px;
  fill: currentColor;
}

.bym-showreel-burst {
  --burst-x: 50vw;
  --burst-y: 50vh;
  position: fixed;
  z-index: 2147482998;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  visibility: hidden;
}

.bym-showreel-burst.is-active {
  visibility: visible;
}

.bym-showreel-burst::before,
.bym-showreel-burst::after,
.bym-showreel-burst span {
  content: "";
  position: absolute;
  top: var(--burst-y);
  left: var(--burst-x);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(.05);
  opacity: 0;
}

.bym-showreel-burst::before {
  background: radial-gradient(circle,
    rgba(255, 255, 255, .98) 0 4%,
    rgba(208, 170, 255, .95) 7%,
    rgba(132, 49, 255, .78) 26%,
    rgba(69, 19, 163, .32) 52%,
    transparent 72%);
  box-shadow: 0 0 90px rgba(139, 63, 255, .9);
}

.bym-showreel-burst::after,
.bym-showreel-burst span {
  border: 2px solid rgba(190, 130, 255, .84);
  box-shadow:
    0 0 24px rgba(151, 72, 255, .72),
    inset 0 0 22px rgba(119, 43, 255, .35);
}

.bym-showreel-burst span:nth-child(2) {
  border-color: rgba(93, 73, 255, .58);
}

.bym-showreel-burst.is-active::before {
  animation: bym-showreel-core .56s cubic-bezier(.12, .72, .18, 1) both;
}

.bym-showreel-burst.is-active::after {
  animation: bym-showreel-ring .62s cubic-bezier(.12, .72, .18, 1) both;
}

.bym-showreel-burst.is-active span:first-child {
  animation: bym-showreel-ring .66s .06s cubic-bezier(.12, .72, .18, 1) both;
}

.bym-showreel-burst.is-active span:nth-child(2) {
  animation: bym-showreel-ring .7s .12s cubic-bezier(.12, .72, .18, 1) both;
}

@keyframes bym-showreel-core {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(.04);
  }

  18% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(145);
  }
}

@keyframes bym-showreel-ring {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(.1);
  }

  20% {
    opacity: .95;
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(170);
  }
}

.bym-showreel-modal {
  position: fixed;
  z-index: 2147483000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: clamp(14px, 4vw, 56px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .34s ease, visibility .34s ease;
}

.bym-showreel-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.bym-showreel-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 1, 9, .64);
  backdrop-filter: blur(18px) saturate(.78);
  -webkit-backdrop-filter: blur(18px) saturate(.78);
}

.bym-showreel-shell {
  position: relative;
  width: min(1120px, 100%);
  overflow: hidden;
  border: 1px solid rgba(183, 123, 255, .42);
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(21, 10, 40, .98), rgba(5, 3, 12, .99)),
    #080511;
  box-shadow:
    0 32px 100px rgba(0, 0, 0, .72),
    0 0 70px rgba(111, 35, 244, .28),
    inset 0 1px 0 rgba(255, 255, 255, .08);
  transform: perspective(1200px) translateY(28px) scale(.72) rotateX(9deg);
  opacity: 0;
  transition: transform .52s cubic-bezier(.2, .82, .18, 1), opacity .34s ease;
}

.bym-showreel-shell::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: -120px;
  left: 12%;
  width: 48%;
  height: 180px;
  border-radius: 50%;
  background: rgba(127, 47, 255, .38);
  filter: blur(70px);
  pointer-events: none;
}

.bym-showreel-modal.is-open .bym-showreel-shell {
  transform: perspective(1200px) translateY(0) scale(1) rotateX(0deg);
  opacity: 1;
}

.bym-showreel-chrome {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 0 16px 0 24px;
}

.bym-showreel-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: #e9dcff;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .24em;
  text-transform: uppercase;
}

.bym-showreel-brand i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #a65bff;
  box-shadow: 0 0 16px #8434ff;
}

.bym-showreel-close {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(196, 151, 255, .28);
  border-radius: 50%;
  color: #f5efff;
  background: rgba(255, 255, 255, .055);
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.bym-showreel-close:hover,
.bym-showreel-close:focus-visible {
  border-color: rgba(210, 176, 255, .72);
  background: rgba(145, 66, 255, .2);
  outline: none;
  transform: rotate(8deg) scale(1.04);
}

.bym-showreel-close svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.bym-showreel-player {
  position: relative;
  z-index: 1;
  aspect-ratio: 16 / 9;
  margin: 0 14px 14px;
  overflow: hidden;
  border: 1px solid rgba(153, 91, 255, .24);
  border-radius: 20px;
  background:
    radial-gradient(circle at center, rgba(111, 39, 225, .18), transparent 42%),
    #020105;
  box-shadow: inset 0 0 40px rgba(100, 34, 211, .13);
}

.bym-showreel-player iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #020105;
}

body.bym-showreel-open {
  overflow: hidden !important;
}

@media (max-width: 720px) {
  .bym-showreel-modal {
    padding: 12px;
  }

  .bym-showreel-shell {
    border-radius: 20px;
  }

  .bym-showreel-chrome {
    min-height: 54px;
    padding: 0 10px 0 16px;
  }

  .bym-showreel-brand {
    font-size: 8px;
    letter-spacing: .18em;
  }

  .bym-showreel-close {
    width: 36px;
    height: 36px;
  }

  .bym-showreel-player {
    margin: 0 8px 8px;
    border-radius: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bym-showreel-burst {
    display: none;
  }

  .bym-showreel-modal,
  .bym-showreel-shell,
  .bym-showreel-close {
    transition: none;
  }

  .bym-showreel-shell,
  .bym-showreel-modal.is-open .bym-showreel-shell {
    transform: none;
  }
}
