.elementor-2547 .elementor-element.elementor-element-86bb7a9{--display:flex;--flex-direction:column;--container-widget-width:100%;--container-widget-height:initial;--container-widget-flex-grow:0;--container-widget-align-self:initial;--flex-wrap-mobile:wrap;}/* Start custom CSS for html, class: .elementor-element-3bfa63d */#video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.video-card {
  position: relative;
  cursor: pointer;
  aspect-ratio: 9/16;
  overflow: hidden;
  border-radius: 8px;
  background: #111;
}

.video-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .3s;
}

.video-card:hover img { transform: scale(1.05); }

.video-card .card-views {
  position: absolute;
  bottom: 6px; left: 8px;
  color: #fff;
  font-size: 12px;
  text-shadow: 0 1px 3px rgba(0,0,0,.7);
}

/* پاپ‌آپ */
#popup-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.75);
  z-index: 9998;
}

#popup-inner {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
  width: min(400px, 95vw);
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: 90vh;
}

#popup-video {
  width: 100%;
  aspect-ratio: 9/16;
  background: #000;
  max-height: 60vh;
  object-fit: contain;
}

#popup-info {
  padding: 12px 16px;
  background: #111;
  color: #fff;
}

#popup-stats {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 12px;
  font-size: 14px;
}

#btn-like {
  background: none;
  border: none;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  padding: 0;
}

#btn-like.liked { color: #e0245e; }

#popup-products {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 180px;
  overflow-y: auto;
}

.product-card {
  display: flex;
  gap: 10px;
  align-items: center;
  background: #1e1e1e;
  border-radius: 8px;
  padding: 8px;
  text-decoration: none;
  color: #fff;
}

.product-card img {
  width: 52px; height: 52px;
  object-fit: cover;border-radius: 6px;
}

.product-card .p-info { font-size: 13px; }
.product-card .p-price { color: #4caf50; font-size: 12px; margin-top: 2px; }

#popup-close {
  position: absolute;
  top: 10px; right: 12px;
  background: rgba(0,0,0,.5);
  border: none;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  border-radius: 50%;
  width: 32px; height: 32px;
  z-index: 10000;
}

@media (max-width: 600px) {
  #video-grid { grid-template-columns: repeat(2, 1fr); }
}/* End custom CSS */