/* TopH Cleaning Video - Centered popup + stronger glow + robust preview */
.toph-video-topbtn-wrap{ margin: 16px 0 18px; }
.toph-video-topbtn{
  width: 100%;
  display:flex;
  align-items:center;
  gap:12px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.26);
  background: rgba(255,255,255,0.10);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 18px 50px rgba(0,0,0,0.12);
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease;
}
.toph-video-topbtn:hover{ transform: translateY(-2px); box-shadow: 0 22px 65px rgba(0,0,0,0.16); }
.toph-video-topbtn-icon{
  width: 44px; height: 44px;
  border-radius: 16px;
  display:grid; place-items:center;
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.22);
  font-size: 16px; line-height:1;
}
.toph-video-topbtn-text strong{ font-size: 16px; font-weight: 800; line-height: 1.2; }

/* Anchor preview (before H2) */
.toph-video-anchor{ margin: 18px 0 26px; }
.toph-video-card{
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(15, 18, 25, 0.35);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 30px 120px rgba(0,0,0,0.18);
}

/* Stronger layered glow */
.toph-video-glow{
  position:absolute;
  inset:-50%;
  background: radial-gradient(circle at 35% 25%, rgba(120,200,255,0.22), transparent 55%),
              radial-gradient(circle at 75% 75%, rgba(180,255,200,0.16), transparent 60%);
  filter: blur(22px);
  opacity: .9;
  pointer-events:none;
}
.toph-video-glow2{
  position:absolute;
  inset:-60%;
  background: radial-gradient(circle at 55% 55%, rgba(255,255,255,0.14), transparent 60%);
  filter: blur(28px);
  opacity: .75;
  pointer-events:none;
}

.toph-video-cover{
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background-size: cover;
  background-position: center;
}
.toph-video-cover-overlay{
  position:absolute;
  inset:0;
  background: linear-gradient(180deg, rgba(0,0,0,0.05), rgba(0,0,0,0.45));
}
.toph-video-preview-tag{
  position:absolute;
  left: 12px;
  bottom: 12px;
  padding: 8px 10px;
  border-radius: 14px;
  font-size: 12px;
  color: #fff;
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Modal (animated) */
.toph-video-modal[hidden]{ display:none; }
.toph-video-modal{
  position: fixed;
  inset: 0;
  z-index: 999999;
  opacity: 0;
  transition: opacity .22s ease;
}
.toph-video-modal.toph-open{ opacity: 1; }

.toph-video-backdrop{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,0.68);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}

/* centered floating card (animated) */
.toph-video-floating{
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(.94);
  opacity: 0;
  border-radius: 22px;
  overflow:hidden;
  border: 1px solid rgba(255,255,255,0.20);
  background: rgba(15, 18, 25, 0.55);
  box-shadow: 0 30px 140px rgba(0,0,0,0.50);
  transition: transform .22s ease, opacity .22s ease;
  will-change: transform, opacity;
  max-width: 920px;
  width: min(92vw, 920px);
}
.toph-video-modal.toph-open .toph-video-floating{
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

.toph-video-floating-inner{
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
}
.toph-video-floating-inner iframe{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  border:0;
}

.toph-video-close{
  position:absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.12);
  color: #fff;
  cursor:pointer;
}

html[dir="rtl"] .toph-video-topbtn-text{ text-align:right; }
html[dir="rtl"] .toph-video-preview-tag{ left:auto; right: 12px; }
