/* Product video (Aparat): card badge, modal, PDP facade section. Small, loaded site-wide (badge must never paint unstyled). */
.dz-video-badge {
  /* sits in the card's flex column right after the cover and overlaps the cover's bottom edge;
     the negative top margin cancels its own height so cards with/without video stay the same height */
  position: relative;
  z-index: 4;
  align-self: center;
  box-sizing: border-box;
  height: 28px;
  margin: -36px auto 8px;
  flex: 0 0 auto;
  max-width: calc(100% - 1rem);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.7rem 0.28rem 0.35rem;
  border-radius: 999px;
  background: rgba(11, 29, 58, 0.86);
  color: #fff !important;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.6;
  text-decoration: none !important;
  box-shadow: 0 6px 16px rgba(11, 29, 58, 0.28);
  backdrop-filter: blur(4px);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s;
}
.dz-video-badge:hover { transform: translateY(-2px) scale(1.03); background: #0284c7; }
.dz-video-badge:active { transform: scale(0.96); }
.dz-video-badge:focus-visible { outline: 2px solid #7dd3fc; outline-offset: 2px; }
.dz-video-badge__ic {
  position: relative;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #ef4444;
  flex: 0 0 auto;
}
.dz-video-badge__ic::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 5px;
  border-style: solid;
  border-width: 5px 0 5px 8px;
  border-color: transparent transparent transparent #fff;
}
.dz-video-badge__ic::before {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 999px;
  border: 2px solid rgba(239, 68, 68, 0.6);
  animation: dzVidRing 2.2s ease-out infinite;
}
@keyframes dzVidRing { 0% { transform: scale(0.8); opacity: 1; } 70%, 100% { transform: scale(1.5); opacity: 0; } }
.dz-video-badge--hpc { margin: -34px auto 6px; }

/* ---- modal ---- */
.dz-vmodal { position: fixed; inset: 0; z-index: 2147483001; display: flex; align-items: center; justify-content: center; padding: 16px; perspective: 1200px; direction: rtl; font-family: var(--dz-font-main, inherit); }
.dz-vmodal[hidden] { display: none; }
.dz-vmodal__scrim { position: absolute; inset: 0; background: rgba(2, 6, 23, 0.78); backdrop-filter: blur(3px); opacity: 0; transition: opacity 0.25s; }
.dz-vmodal.is-open .dz-vmodal__scrim { opacity: 1; }
.dz-vmodal__panel {
  position: relative;
  width: min(960px, 100%);
  background: #0b1d3a;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 30px 70px -10px rgba(0, 0, 0, 0.6);
  transform: translateY(30px) rotateX(14deg) scale(0.9);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s;
}
.dz-vmodal.is-open .dz-vmodal__panel { transform: none; opacity: 1; }
.dz-vmodal__bar { display: flex; align-items: center; gap: 0.75rem; padding: 0.7rem 0.9rem; color: #fff; }
.dz-vmodal__bar strong { flex: 1 1 auto; min-width: 0; font-size: 0.92rem; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dz-vmodal__bar a { color: #7dd3fc; font-size: 0.78rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.dz-vmodal__x { flex: 0 0 36px; height: 36px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, 0.12); color: #fff; font-size: 1.3rem; cursor: pointer; transition: transform 0.25s, background 0.2s; }
.dz-vmodal__x:hover { transform: rotate(90deg); background: rgba(255, 255, 255, 0.22); }

/* ---- 16:9 frame + facade (shared by modal and PDP section) ---- */
.dz-video-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #0b1d3a; overflow: hidden; }
@supports not (aspect-ratio: 16 / 9) { .dz-video-frame { height: 0; padding-top: 56.25%; } }
.dz-video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.dz-video-facade { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: #0b1d3a; cursor: pointer; display: block; }
.dz-video-facade img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s; }
.dz-video-facade::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 29, 58, 0) 40%, rgba(11, 29, 58, 0.55) 100%); pointer-events: none; }
.dz-video-facade:hover img { transform: scale(1.04); filter: brightness(0.92); }
.dz-video-facade__play {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  width: 76px;
  height: 76px;
  margin: -38px 0 0 -38px;
  border-radius: 999px;
  background: #ef4444;
  box-shadow: 0 12px 30px rgba(239, 68, 68, 0.45), 0 0 0 10px rgba(255, 255, 255, 0.18);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.dz-video-facade__play::after { content: ""; position: absolute; left: 30px; top: 23px; border-style: solid; border-width: 15px 0 15px 24px; border-color: transparent transparent transparent #fff; }
.dz-video-facade:hover .dz-video-facade__play { transform: scale(1.1); }
.dz-video-facade:active .dz-video-facade__play { transform: scale(0.95); }
.dz-video-facade:focus-visible { outline: 3px solid #7dd3fc; outline-offset: -3px; }
.dz-video-facade__label { position: absolute; z-index: 2; right: 14px; bottom: 12px; color: #fff; font-weight: 800; font-size: 0.85rem; text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5); font-family: inherit; }
.dz-video-frame.is-loading::before { content: ""; position: absolute; z-index: 3; left: 50%; top: 50%; width: 38px; height: 38px; margin: -19px 0 0 -19px; border-radius: 999px; border: 3px solid rgba(255, 255, 255, 0.3); border-top-color: #fff; animation: dzVidSpin 0.8s linear infinite; }
@keyframes dzVidSpin { to { transform: rotate(360deg); } }

/* ---- PDP section ---- */
.dz-video-section { margin: 0 0 2rem; padding: 1.25rem; background: #fff; border: 1px solid #e6ebf1; border-radius: 26px; box-shadow: 0 10px 30px rgba(11, 29, 58, 0.06); }
.dz-video-section__head { margin: 0 0.25rem 1rem; }
.dz-video-section__kicker { display: inline-block; font-size: 0.75rem; font-weight: 800; color: #ef4444; background: #fef2f2; border-radius: 999px; padding: 0.2rem 0.7rem; margin-bottom: 0.4rem; }
.dz-video-section__title { margin: 0; font-size: clamp(1.05rem, 1rem + 0.5vw, 1.35rem); font-weight: 900; color: #0b1d3a; line-height: 1.6; }
.dz-video-section__desc { margin: 0.35rem 0 0; color: #475569; font-size: 0.9rem; line-height: 1.9; }
.dz-video-section .dz-video-frame { border-radius: 18px; }
.dz-video-section__src { margin: 0.6rem 0.25rem 0; font-size: 0.78rem; }
.dz-video-section__src a { color: #0284c7; font-weight: 700; text-decoration: none; }
@media (min-width: 993px) { .dz-video-section { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); gap: 1.5rem; align-items: center; padding: 1.5rem; } .dz-video-section__src { grid-column: 2; margin-top: -0.75rem; } }
@media (max-width: 600px) { .dz-video-section { padding: 0.9rem; border-radius: 20px; } .dz-video-facade__play { width: 60px; height: 60px; margin: -30px 0 0 -30px; } .dz-video-facade__play::after { left: 23px; top: 18px; border-width: 12px 0 12px 19px; } .dz-vmodal { padding: 0; align-items: center; } .dz-vmodal__panel { border-radius: 0; } }
body.dz-vmodal-lock { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .dz-video-badge, .dz-video-badge__ic::before, .dz-vmodal__panel, .dz-vmodal__scrim, .dz-video-facade img, .dz-video-facade__play, .dz-vmodal__x { animation: none !important; transition: none !important; }
}
