/* =========================================================
   V16 — portrait video inside the single showcase player
   ========================================================= */

.video-showcase-player.has-video .video-showcase-copy {
  width: min(480px, 43%);
}

.video-showcase-player.has-video .video-showcase-play {
  display: none;
}

.video-showcase-media {
  position: absolute;
  top: 50%;
  right: 7%;
  z-index: 2;
  height: 84%;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: 20px;
  background: #050707;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    0 24px 54px rgba(0, 0, 0, 0.38),
    0 0 0 6px rgba(255, 255, 255, 0.035);
  transform: translateY(-50%);
}

.video-showcase-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #050707;
}

.video-showcase-media-play {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: rgba(248, 252, 250, 0.9);
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.22));
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.video-showcase-media-play > span {
  display: grid;
  place-items: center;
  width: clamp(56px, 6vw, 76px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    0 12px 32px rgba(0, 0, 0, 0.25);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  transition: transform 0.3s var(--ease), background-color 0.3s ease;
}

.video-showcase-media-play svg {
  width: 22px;
  height: 22px;
  margin-left: 3px;
  fill: currentColor;
}

.video-showcase-media-play small {
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.video-showcase-media-play:hover > span {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.04);
}

.video-showcase-media-play.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.video-showcase-video::-webkit-media-controls-panel {
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.72));
}

.video-showcase-player.has-video .video-showcase-count {
  top: 28px;
  right: 42px;
  bottom: auto;
}

.video-showcase-player.has-video .video-showcase-glow {
  left: 55%;
  right: auto;
  top: 6%;
  width: 40%;
}

@media (max-width: 960px) {
  .video-showcase-player.has-video .video-showcase-copy {
    width: min(370px, 47%);
  }

  .video-showcase-media {
    right: 5.5%;
    height: 80%;
    border-radius: 17px;
  }

  .video-showcase-player.has-video .video-showcase-count {
    right: 30px;
  }
}

@media (max-width: 760px) {
  .video-showcase-player.has-video {
    aspect-ratio: auto;
    min-height: 0;
    height: 600px;
  }

  .video-showcase-player.has-video .video-showcase-copy {
    left: 20px;
    bottom: 19px;
    width: calc(100% - 40px);
  }

  .video-showcase-player.has-video .video-showcase-copy h3 {
    font-size: 27px;
  }

  .video-showcase-player.has-video .video-showcase-copy p {
    max-width: 320px;
    font-size: 9.5px;
  }

  .video-showcase-media {
    top: 22px;
    right: auto;
    left: 50%;
    height: 380px;
    border-radius: 16px;
    transform: translateX(-50%);
    box-shadow:
      0 18px 38px rgba(0, 0, 0, 0.34),
      0 0 0 5px rgba(255, 255, 255, 0.035);
  }

  .video-showcase-media-play > span {
    width: 50px;
  }

  .video-showcase-media-play svg {
    width: 18px;
    height: 18px;
  }

  .video-showcase-media-play small {
    font-size: 7px;
  }

  .video-showcase-player.has-video .video-showcase-count {
    display: none;
  }

  .video-showcase-player.has-video .video-showcase-tags {
    margin-top: 9px;
  }

  .video-showcase-player.has-video .video-showcase-glow {
    left: 5%;
    right: auto;
    top: 0;
    width: 60%;
  }
}

@media (max-width: 380px) {
  .video-showcase-player.has-video {
    height: 570px;
  }

  .video-showcase-media {
    top: 19px;
    height: 350px;
  }

  .video-showcase-player.has-video .video-showcase-copy {
    bottom: 16px;
  }

  .video-showcase-player.has-video .video-showcase-copy h3 {
    font-size: 24px;
  }

  .video-showcase-player.has-video .video-showcase-copy p {
    font-size: 9px;
    line-height: 1.55;
  }
}
