.dev888-ad{box-sizing:border-box;text-align:center;margin:12px auto;max-width:100%;overflow:visible;position:relative;clear:both}
.dev888-ad img,.dev888-ad-img{max-width:100%;height:auto;display:block;margin:0 auto;border:0}
.dev888-ad-video{max-width:100%;height:auto;display:block;margin:auto;background:#000}
.dev888-ad-link{display:inline-block;max-width:100%;line-height:0;text-decoration:none!important}
.dev888-ad-button{display:inline-block;background:#e50914;color:#fff!important;padding:10px 18px;border-radius:4px;text-decoration:none;font-weight:700}
.dev888-responsive-embed{position:relative;width:100%;padding-top:56.25%;background:#000}
.dev888-responsive-embed iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.dev888-global-footer{margin:15px auto}

/* Header Banner + Header Ads Grid */
.dev888-ad-header{width:100%;max-width:1200px;margin:12px auto 8px;overflow:hidden}
.dev888-ad-header_grid{width:100%;max-width:1200px;margin:8px auto 18px;overflow:hidden}
.dev888-header-grid-inner{display:grid;grid-template-columns:repeat(var(--dev888-cols,2),minmax(0,1fr));gap:4px;width:100%}
.dev888-header-grid-item{display:block;background:#111;overflow:hidden;line-height:0;border-radius:3px}
.dev888-header-grid-item a{display:block;line-height:0;text-decoration:none!important}
.dev888-header-grid-item img{width:100%;height:180px;object-fit:cover;display:block;transition:transform .18s ease}
.dev888-header-grid-item a:hover img{transform:scale(1.015)}

/* Sticky Ads */
.dev888-sticky{position:fixed!important;top:50%!important;transform:translateY(-50%)!important;z-index:999998!important;width:160px!important;max-width:160px!important;margin:0!important;min-height:auto!important;clear:none!important;overflow:visible!important;text-align:center!important;background:transparent!important}
.dev888-sticky-left{left:12px!important;right:auto!important}
.dev888-sticky-right{right:12px!important;left:auto!important}
.dev888-sticky img{width:160px!important;max-width:160px!important;height:auto!important;display:block!important}

/* Close button */
.dev888-ad-close{position:absolute!important;top:4px!important;right:4px!important;width:24px!important;height:24px!important;border:0!important;border-radius:50%!important;background:#000!important;color:#fff!important;cursor:pointer!important;z-index:1000000!important;opacity:.88!important;font-size:18px!important;line-height:22px!important;padding:0!important;text-align:center!important;pointer-events:auto!important}
.dev888-ad-close:hover{opacity:1!important;background:#e50914!important}
.dev888-sticky-left .dev888-ad-close,.dev888-sticky-right .dev888-ad-close{top:-10px!important;right:-10px!important}

/* Popup + Exit Popup */
.dev888-popup-overlay{position:fixed;inset:0;background:rgba(0,0,0,.72);z-index:999999;align-items:center;justify-content:center;padding:20px}
.dev888-popup-box{position:relative;background:#111;padding:18px;max-width:760px;width:auto;border-radius:8px;text-align:center;box-shadow:0 10px 30px rgba(0,0,0,.45)}
.dev888-popup-box img{max-width:100%;height:auto}
.dev888-popup-close{position:absolute;right:8px;top:8px;border:0;background:#f44336;color:#fff;border-radius:50%;width:30px;height:30px;font-size:22px;line-height:28px;cursor:pointer;z-index:2}

/* Bottom Floating */
.dev888-bottom-floating{position:fixed!important;left:50%!important;bottom:0!important;transform:translateX(-50%)!important;z-index:999997!important;max-width:970px!important;width:auto!important;margin:0!important;background:rgba(0,0,0,.08)!important;padding:0!important;clear:none!important}
.dev888-bottom-floating img{max-height:110px;width:auto;max-width:96vw}
.dev888-bottom-floating .dev888-ad-close{top:-12px!important;right:-12px!important}

/* Push Bar */
.dev888-push-bar{position:fixed!important;top:0!important;left:0!important;right:0!important;z-index:999997!important;max-width:none!important;width:100%!important;margin:0!important;background:#e50914!important;color:#fff!important;padding:8px 48px!important;text-align:center!important;clear:none!important}
.dev888-push-bar a{color:#fff!important;text-decoration:none!important;font-weight:700}
.dev888-push-bar img{max-height:48px;width:auto}
.dev888-push-bar .dev888-ad-close{right:12px!important;top:50%!important;transform:translateY(-50%)!important}

/* Player */
.dev888-player-wrap{background:#000;margin:15px 0;position:relative}
.dev888-main-video,.dev888-preroll-video{width:100%;height:auto;display:block;background:#000}
.dev888-preroll{position:relative;background:#000;min-height:160px}
.dev888-preroll-html{min-height:160px;display:flex;align-items:center;justify-content:center}
.dev888-skip{position:absolute;right:12px;bottom:12px;background:#222;color:#fff;border:1px solid #555;padding:8px 14px;border-radius:4px;cursor:pointer;z-index:3}
.dev888-skip:disabled{opacity:.7;cursor:not-allowed}

/* Admin */
.dev888-admin .dev888-version{font-size:13px;background:#111;color:#fff;border-radius:3px;padding:3px 7px}
.dev888-help-box{background:#fff;border:1px solid #ccd0d4;border-left:4px solid #e50914;padding:12px 16px;margin:15px 0}
.dev888-help-box pre,.dev888-sample{background:#111;color:#eee;padding:12px;white-space:pre-wrap;border-radius:4px}
.dev888-table textarea{min-height:88px}

/* Theme placeholder auto-fill */
.cpv-ad.dev888-header-filled,
.cp-video-ad.dev888-header-filled,
.video-header-ad.dev888-header-filled,
.header-ad-placeholder.dev888-header-filled,
.dev888-header-placeholder.dev888-header-filled{border:0!important;background:transparent!important;padding:0!important;min-height:0!important;color:inherit!important}
.cpv-ad.dev888-header-filled .dev888-ad,
.cp-video-ad.dev888-header-filled .dev888-ad{margin-top:0!important;margin-bottom:12px!important}

@media(max-width:1200px){.dev888-sticky{display:none!important}}
@media(max-width:900px){.dev888-header-grid-inner{grid-template-columns:repeat(2,minmax(0,1fr))!important}.dev888-header-grid-item img{height:150px}}
@media(max-width:767px){
  .dev888-popup-box{max-width:94vw}
  .dev888-ad{margin:8px auto}
  .dev888-header-grid-inner{grid-template-columns:1fr!important;gap:4px}
  .dev888-header-grid-item img{height:auto;max-height:none;object-fit:contain}
  .dev888-bottom-floating img{max-height:80px}
  .dev888-push-bar{font-size:13px;padding:8px 40px 8px 10px!important}
}
