/* Immersive container around Heyzine iframes */
.cl-heyzine-embed {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(2rem, 3vw, 4rem) clamp(1rem, 5vw, 3rem);
  margin: clamp(1.5rem, 3vw, 3rem) auto;
  background: radial-gradient(120% 120% at 20% 20%, rgba(66, 188, 255, 0.24) 0%, rgba(12, 17, 24, 0.75) 48%, rgba(6, 8, 14, 0.95) 100%),
              linear-gradient(135deg, rgba(12, 188, 145, 0.18), rgba(69, 83, 255, 0.12));
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  isolation: isolate;
  min-height: 70vh;
}

.cl-heyzine-embed::before,
.cl-heyzine-embed::after {
  content: "";
  position: absolute;
  inset: 10%;
  background: radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.07), transparent 42%),
              radial-gradient(circle at 30% 80%, rgba(32, 201, 151, 0.07), transparent 40%);
  filter: blur(42px);
  opacity: 0.9;
  z-index: 0;
}

.cl-heyzine-embed::after {
  inset: 4%;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0));
  mix-blend-mode: screen;
}

.cl-heyzine-iframe {
  position: relative;
  z-index: 1;
  width: min(92vw, 1100px);
  height: clamp(420px, 72vh, 900px);
  border: 0;
  border-radius: 18px;
  background: #0c1118;
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.03);
  transition: transform 260ms ease, box-shadow 260ms ease;
}

.cl-heyzine-embed:hover .cl-heyzine-iframe {
  transform: scale(1.01);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.cl-heyzine-fullscreen-btn {
  position: absolute;
  right: clamp(0.75rem, 2vw, 1.6rem);
  top: clamp(0.75rem, 2vw, 1.6rem);
  z-index: 2;
  border: 0;
  border-radius: 999px;
  padding: 0.65rem 1rem;
  display: inline-flex;
  gap: 0.45rem;
  align-items: center;
  background: rgba(12, 188, 145, 0.16);
  color: #e7f8ff;
  backdrop-filter: blur(8px);
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 200ms ease, background 200ms ease, box-shadow 200ms ease;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3), inset 0 0 0 1px rgba(231, 248, 255, 0.12);
}

.cl-heyzine-fullscreen-btn:hover {
  transform: translateY(-1px);
  background: rgba(12, 188, 145, 0.26);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.32), inset 0 0 0 1px rgba(231, 248, 255, 0.18);
}

.cl-heyzine-fullscreen-btn:active {
  transform: translateY(0);
}

.cl-heyzine-fullscreen-btn .dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #52ffcb;
  box-shadow: 0 0 12px rgba(82, 255, 203, 0.8);
}

.cl-heyzine-caption {
  position: absolute;
  left: clamp(1.25rem, 2vw, 1.8rem);
  bottom: clamp(1rem, 2vw, 1.6rem);
  z-index: 2;
  color: #d7e5f1;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  backdrop-filter: blur(8px);
  background: rgba(7, 10, 15, 0.52);
  padding: 0.55rem 0.9rem;
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

@media (max-width: 768px) {
  .cl-heyzine-embed {
    padding: 1.5rem 0.75rem 2rem;
    border-radius: 18px;
    min-height: 65vh;
  }

  .cl-heyzine-iframe {
    width: 100%;
    height: min(70vh, 640px);
    border-radius: 14px;
  }

  .cl-heyzine-fullscreen-btn {
    top: 0.9rem;
    right: 0.9rem;
    padding: 0.55rem 0.85rem;
    font-size: 0.9rem;
  }

  .cl-heyzine-caption {
    left: 1rem;
    right: 1rem;
    bottom: 0.9rem;
    font-size: 0.9rem;
  }
}
