/* NQT Ads — frontend */
.nqtad { text-align: center; margin: 14px 0; }
.nqtad__box { display: flex; justify-content: center; }
.nqtad__img { max-width: 100%; height: auto; border-radius: 8px; }
.nqtad__img--mobile { display: none; }
@media (max-width: 720px) {
  .nqtad__img--desktop { display: none; }
  .nqtad__img--mobile { display: inline-block; }
}
.nqtad--video_top { margin: 0 0 12px; }
.nqtad--video_bottom { margin: 12px 0 0; }

/* Catfish — dính đáy màn hình */
.nqtad-catfish {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 9998;
  display: flex; justify-content: center; align-items: flex-end;
  padding: 0 8px 6px; pointer-events: none;
}
.nqtad-catfish__body { position: relative; pointer-events: auto; max-width: 100%; line-height: 0; }
.nqtad-catfish__body .nqtad__img { border-radius: 8px 8px 0 0; box-shadow: 0 -4px 20px rgba(0,0,0,.4); }
.nqtad-catfish__close {
  position: absolute; top: -26px; right: 0; z-index: 2; pointer-events: auto;
  width: 26px; height: 26px; border: 0; border-radius: 6px 6px 0 0; cursor: pointer;
  background: rgba(0,0,0,.75); color: #fff; font-size: 18px; line-height: 1;
}
.nqtad-catfish.is-closed { display: none; }

/* Popup banner */
.nqtad-popup { position: fixed; inset: 0; z-index: 10000; display: grid; place-items: center; }
.nqtad-popup__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.7); }
.nqtad-popup__box { position: relative; z-index: 2; max-width: 92vw; max-height: 88vh; overflow: auto; line-height: 0; }
.nqtad-popup__box .nqtad__img { border-radius: 10px; max-height: 84vh; width: auto; }
.nqtad-popup__close {
  position: absolute; top: -14px; right: -14px; z-index: 3; width: 34px; height: 34px;
  border: 0; border-radius: 999px; cursor: pointer; background: #fff; color: #111; font-size: 22px; line-height: 1;
  box-shadow: 0 2px 10px rgba(0,0,0,.5);
}

/* TVC — video quảng cáo phủ toàn màn hình */
.nqtad-tvc { position: fixed; inset: 0; z-index: 10001; background: rgba(0,0,0,.94); display: grid; place-items: center; }
.nqtad-tvc__inner { position: relative; width: min(900px, 94vw); }
.nqtad-tvc__inner iframe, .nqtad-tvc__video { width: 100%; aspect-ratio: 16/9; border: 0; display: block; border-radius: 8px; background: #000; }
.nqtad-tvc__inner .nqtad__img { max-width: 100%; border-radius: 8px; }
.nqtad-tvc__skip {
  position: absolute; bottom: 14px; right: 14px; padding: 10px 18px; border: 0; border-radius: 8px;
  background: rgba(0,0,0,.75); color: #fff; font-weight: 700; font-size: 14px; cursor: pointer;
}
.nqtad-tvc__skip:disabled { opacity: .6; cursor: default; }
.nqtad-tvc__skip:not(:disabled):hover { background: #ff3d6e; }
