/* GJC Video Showcase Player — poster + play button, lazy YouTube iframe. */
/* Semi-transparent overlays use color-mix() with kit tokens to keep alpha. */
.elementor-widget-buildpress_gjc_player .gjc-player {
  position: relative;
  width: min(100%, var(--gjc-player-max-width, 75rem));
  margin: 0 auto;
  aspect-ratio: var(--gjc-player-aspect-ratio, 16 / 9);
  background-color: var(--e-global-color-primary, #070708);
  background-image: var(--gjc-poster, none);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  overflow: hidden;
  font-family: var(--e-global-typography-text-font-family, 'Manrope', system-ui, 'Segoe UI', Inter, sans-serif);
  -webkit-font-smoothing: antialiased;
  cursor: pointer;
}

.elementor-widget-buildpress_gjc_player .gjc-player::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--e-global-color-primary, #050505) 4%, transparent) 0%,
    transparent 30%,
    transparent 60%,
    color-mix(in srgb, var(--e-global-color-primary, #050505) 18%, transparent) 100%
  );
  pointer-events: none;
}

.elementor-widget-buildpress_gjc_player .gjc-player__host {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.elementor-widget-buildpress_gjc_player .gjc-player__host iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.elementor-widget-buildpress_gjc_player .gjc-player.is-playing {
  background-color: var(--e-global-color-primary, #070708);
  background-image: none;
}

.elementor-widget-buildpress_gjc_player .gjc-player.is-playing::before {
  opacity: 0;
}

.elementor-widget-buildpress_gjc_player .gjc-player.is-playing .gjc-player__btn,
.elementor-widget-buildpress_gjc_player .gjc-player.is-playing .gjc-player__brand {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.elementor-widget-buildpress_gjc_player .gjc-player.is-playing .gjc-player__host {
  z-index: 2;
}

.elementor-widget-buildpress_gjc_player .gjc-player.is-playing::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 3;
  width: 100%;
  height: 54px;
  background: linear-gradient(
    180deg,
    transparent 0%,
    color-mix(in srgb, var(--e-global-color-primary, #050505) 32%, transparent) 100%
  );
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease 0.15s;
}

.elementor-widget-buildpress_gjc_player .gjc-player.is-playing::after {
  opacity: 1;
}

.elementor-widget-buildpress_gjc_player .gjc-player__btn {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--e-global-color-primary, #0c0c0e) 42%, transparent);
  border: 1px solid color-mix(in srgb, var(--e-global-color-surface, #fff) 18%, transparent);
  -webkit-backdrop-filter: blur(10px) saturate(1.1);
  backdrop-filter: blur(10px) saturate(1.1);
  color: var(--e-global-color-surface, #fff);
  box-shadow: 0 10px 30px color-mix(in srgb, var(--e-global-color-primary, #000) 40%, transparent);
  transform: scale(1);
  transition: transform 0.28s cubic-bezier(0.2, 0.7, 0.2, 1), background 0.25s, border-color 0.25s;
  will-change: transform;
  z-index: 3;
}

.elementor-widget-buildpress_gjc_player .gjc-player__btn svg {
  display: block;
  margin-left: 3px;
}

.elementor-widget-buildpress_gjc_player .gjc-player:hover .gjc-player__btn {
  transform: scale(1.06);
  background: color-mix(in srgb, var(--e-global-color-primary, #0c0c0e) 60%, transparent);
  border-color: color-mix(in srgb, var(--e-global-color-surface, #fff) 32%, transparent);
}

.elementor-widget-buildpress_gjc_player .gjc-player:active .gjc-player__btn {
  transform: scale(0.97);
}

.elementor-widget-buildpress_gjc_player .gjc-player__brand {
  position: absolute;
  left: 22px;
  bottom: 16px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 9px;
  opacity: 0.92;
  filter: drop-shadow(0 1px 2px color-mix(in srgb, var(--e-global-color-primary, #000) 50%, transparent));
  transition: opacity 0.25s ease;
}

.elementor-widget-buildpress_gjc_player .gjc-player__brand-logo {
  display: block;
  height: 16px;
  width: auto;
  max-height: none;
  filter: brightness(0) invert(1);
}

.elementor-widget-buildpress_gjc_player .gjc-player__brand-label {
  font-size: var(--e-global-typography-text-font-size, 11px);
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--e-global-color-surface, #fff);
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
  text-shadow: 0 1px 2px color-mix(in srgb, var(--e-global-color-primary, #000) 50%, transparent);
}

.elementor-widget-buildpress_gjc_player .gjc-player__brand-label::before {
  content: "";
  display: inline-block;
  width: 1.5px;
  height: 11px;
  margin-right: 9px;
  background: var(--e-global-color-surface, #fff);
  opacity: 0.85;
  vertical-align: middle;
  transform: skewX(-12deg);
}

.elementor-widget-buildpress_gjc_player .gjc-player:hover .gjc-player__brand {
  opacity: 1;
}

@media (max-width: 480px) {
  .elementor-widget-buildpress_gjc_player .gjc-player__brand {
    left: 14px;
    bottom: 11px;
    gap: 7px;
  }
  .elementor-widget-buildpress_gjc_player .gjc-player__brand-logo {
    height: 13px;
  }
  .elementor-widget-buildpress_gjc_player .gjc-player__brand-label {
    font-size: var(--e-global-typography-text-font-size, 9px);
    letter-spacing: 0.18em;
  }
  .elementor-widget-buildpress_gjc_player .gjc-player__brand-label::before {
    height: 9px;
    margin-right: 7px;
  }
  .elementor-widget-buildpress_gjc_player .gjc-player__btn {
    width: 64px;
    height: 64px;
  }
  .elementor-widget-buildpress_gjc_player .gjc-player__btn svg {
    width: 20px;
    height: 20px;
  }
}

@media (hover: none) {
  .elementor-widget-buildpress_gjc_player .gjc-player__btn {
    transform: scale(0.96);
  }
}

@media (prefers-reduced-motion: reduce) {
  .elementor-widget-buildpress_gjc_player .gjc-player__btn,
  .elementor-widget-buildpress_gjc_player .gjc-player__brand {
    transition: none;
  }
}
