/* ALL PORN TUBE — V12 UI layer
 * Goals: deep-black premium shell, xHamster-inspired dense video feed,
 * reliable poster-first previews, responsive mobile/desktop/TV layout,
 * no changes to PHP ad widget positions.
 */
:root{
  --apt-bg:#000;
  --apt-surface:#070709;
  --apt-surface-2:#0b0c10;
  --apt-line:rgba(255,255,255,.085);
  --apt-line-soft:rgba(255,255,255,.055);
  --apt-text:#f4f5f8;
  --apt-muted:#8f94a3;
  --apt-violet:#8b5cf6;
  --apt-cyan:#22d3ee;
  --apt-pink:#ec4899;
  --apt-radius:14px;
  --apt-ease:cubic-bezier(.22,.8,.22,1);
}
html{background:#000!important;scroll-behavior:smooth}
body{margin:0!important;background:#000!important;color:var(--apt-text)!important;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
*,*:before,*:after{box-sizing:border-box}
img,video,iframe{max-width:100%}
a{color:inherit}
button,input,select,textarea{font:inherit}

/* ===== Global reset against legacy theme surfaces ===== */
#page,.wtp-wrapper,#masthead,.site-header,.site-content,.site-footer,.header-main-area,.hm-nav-container,.main-navigation,.entry-content,.page,.archive,.search-results{background:#000!important;background-image:none!important;color:var(--apt-text)!important}
#masthead *,.site-content *,.site-footer *{--legacy-blue:transparent}
.header-main-area,.hm-nav-container{border:0!important}
.site-content{min-height:60vh!important}

/* ===== Header: centered, large logo; Ad1 stays in its original PHP slot ===== */
.header-main-area .hm-container{width:min(calc(100% - 32px),1800px)!important;margin:0 auto!important;min-height:190px!important;display:grid!important;grid-template-columns:1fr minmax(280px,620px)!important;align-items:center!important;position:relative!important;padding:18px 0!important}
.site-branding{position:absolute!important;left:50%!important;top:50%!important;transform:translate(-50%,-50%)!important;width:max-content!important;z-index:3!important}
.hm-logo{display:flex!important;align-items:center!important;justify-content:center!important;min-height:170px!important}
.hm-logo .custom-logo-link,.hm-logo .wtp-brand-link{display:flex!important;align-items:center!important;justify-content:center!important}
.hm-logo .custom-logo,.hm-logo .wtp-legacy-logo{display:block!important;width:auto!important;max-width:min(680px,60vw)!important;max-height:170px!important;height:auto!important;object-fit:contain!important;filter:drop-shadow(0 12px 38px rgba(139,92,246,.10))!important;transition:transform .25s var(--apt-ease),filter .25s var(--apt-ease)!important}
.hm-logo .custom-logo-link:hover .custom-logo,.hm-logo .wtp-brand-link:hover .wtp-legacy-logo{transform:scale(1.015)!important;filter:drop-shadow(0 16px 45px rgba(139,92,246,.18))!important}
.hm-header-sidebar{grid-column:2!important;justify-self:end!important;width:100%!important;max-width:620px!important;z-index:2!important}

/* ===== Navigation ===== */
.hm-nav-container{position:relative!important;z-index:50!important;border-top:1px solid var(--apt-line-soft)!important;border-bottom:1px solid var(--apt-line-soft)!important;background:rgba(0,0,0,.94)!important;backdrop-filter:blur(18px)!important;-webkit-backdrop-filter:blur(18px)!important}
.main-navigation .hm-nwrap:first-child{width:min(calc(100% - 32px),1800px)!important;margin:0 auto!important;min-height:58px!important;display:flex!important;align-items:center!important;gap:12px!important}
.main-navigation .hm-nwrap:first-child #cssmenu,.main-navigation .hm-nwrap:first-child>ul{flex:1 1 auto!important;min-width:0!important}
.main-navigation .hm-nwrap:first-child #cssmenu>ul,.main-navigation .hm-nwrap:first-child>ul{display:flex!important;align-items:center!important;gap:2px!important;list-style:none!important;margin:0!important;padding:0!important;overflow:auto!important;scrollbar-width:none!important}
.main-navigation .hm-nwrap:first-child #cssmenu>ul::-webkit-scrollbar,.main-navigation .hm-nwrap:first-child>ul::-webkit-scrollbar{display:none}
.main-navigation .hm-nwrap:first-child li{list-style:none!important;flex:0 0 auto!important;margin:0!important;padding:0!important}
.main-navigation .hm-nwrap:first-child li>a{display:flex!important;align-items:center!important;min-height:42px!important;padding:0 12px!important;border:1px solid transparent!important;border-radius:10px!important;color:#aeb2be!important;text-decoration:none!important;font-size:12px!important;font-weight:650!important;white-space:nowrap!important;transition:color .18s,background .18s,border-color .18s,transform .18s var(--apt-ease)!important}
.main-navigation .hm-nwrap:first-child li>a:hover,.main-navigation .hm-nwrap:first-child li.current-menu-item>a,.main-navigation .hm-nwrap:first-child li.current_page_item>a,.main-navigation .hm-nwrap:first-child li.page_name>a{color:#fff!important;background:#090a0e!important;border-color:var(--apt-line)!important;transform:translateY(-1px)!important}

/* ===== Search: standalone BetterStack-style box, never overlays content ===== */
.apt-search-v8-wrap,.hm-search-box-container{display:block!important;flex:0 0 460px!important;width:460px!important;margin:0!important;padding:0!important;background:transparent!important;border:0!important;position:relative!important;z-index:60!important}
.apt-search-v8{display:block!important;width:100%!important}
.apt-search-form{position:relative!important;display:flex!important;align-items:center!important;width:100%!important;height:62px!important;margin:0!important;padding:0 72px 0 54px!important;border:1px solid rgba(139,92,246,.55)!important;border-radius:20px!important;background:#08090d!important;box-shadow:0 0 0 1px rgba(34,211,238,.12),0 14px 45px rgba(0,0,0,.42),inset 0 1px 0 rgba(255,255,255,.045)!important;overflow:hidden!important;isolation:isolate!important}
.apt-search-form:before{content:""!important;position:absolute!important;inset:-1px!important;border-radius:21px!important;padding:1px!important;background:linear-gradient(110deg,rgba(139,92,246,.85),rgba(34,211,238,.48),rgba(236,72,153,.62),rgba(139,92,246,.85))!important;background-size:220% 100%!important;animation:apt-search-edge 7s linear infinite!important;pointer-events:none!important;z-index:-1!important;mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0)!important;mask-composite:exclude!important;-webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0)!important;-webkit-mask-composite:xor!important}
@keyframes apt-search-edge{to{background-position:220% 0}}
.apt-search-form:focus-within{box-shadow:0 0 0 1px rgba(139,92,246,.28),0 0 42px rgba(139,92,246,.12),0 18px 54px rgba(0,0,0,.48)!important}
.apt-search-v8-icon{position:absolute!important;left:18px!important;top:50%!important;transform:translateY(-50%)!important;color:#aeb3c3!important;font:normal 22px/1 FontAwesome!important;pointer-events:none!important}
.apt-search-v8-input{display:block!important;width:100%!important;height:60px!important;margin:0!important;padding:0!important;border:0!important;outline:0!important;background:transparent!important;color:#f7f8fb!important;font-size:17px!important;font-weight:500!important;letter-spacing:.002em!important;box-shadow:none!important}
.apt-search-v8-input::placeholder{color:#7f8493!important;opacity:1!important}
.apt-search-v8-submit{position:absolute!important;right:7px!important;top:7px!important;width:48px!important;height:48px!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:0!important;border:1px solid rgba(255,255,255,.10)!important;border-radius:15px!important;background:#171922!important;color:#f3f5fb!important;font:normal 18px/1 FontAwesome!important;cursor:pointer!important;transition:transform .18s var(--apt-ease),background .18s,box-shadow .18s!important}
.apt-search-v8-submit:hover{transform:scale(1.035)!important;background:#202330!important;box-shadow:0 0 28px rgba(139,92,246,.18)!important}
.apt-search-v8-submit:active{transform:scale(.94)!important}
.apt-search-v8-key{position:absolute!important;right:65px!important;top:50%!important;transform:translateY(-50%)!important;width:28px!important;height:28px!important;display:flex!important;align-items:center!important;justify-content:center!important;border-radius:9px!important;background:#181b25!important;color:#818697!important;font-size:12px!important;font-weight:800!important}
.apt-search-v8-refine,.main-navigation .search-suggestions,.main-navigation .refine-row,.main-navigation .search-refine{display:none!important}

/* ===== Mobile menu ===== */
.main-navigation .hm-nwrap:nth-of-type(2){display:none!important}
.navbutton{display:none!important}
.responsive-mainnav{display:none!important;background:#050507!important}
.responsive-mainnav.apt-menu-open{display:block!important}

/* ===== Main ===== */
.site-content>.hm-container{width:min(calc(100% - 32px),1800px)!important;margin:0 auto!important;padding:28px 0 80px!important}
.page-header{margin:0 0 20px!important;padding:0!important;border:0!important}
.page-title,.srch-page-title{font-size:clamp(25px,2.5vw,42px)!important;line-height:1.08!important;font-weight:850!important;letter-spacing:-.035em!important;color:#f5f6f9!important;margin:0!important}
.page-title:after,.srch-page-title:after{content:""!important;display:block!important;width:76px!important;height:3px!important;margin-top:12px!important;border-radius:99px!important;background:linear-gradient(90deg,var(--apt-violet),var(--apt-cyan),var(--apt-pink))!important;box-shadow:0 0 18px rgba(139,92,246,.18)!important}

/* ===== xHamster-inspired dense feed: large media, compact titles/metadata ===== */
.posts-wrap{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important;width:100%!important;float:none!important;clear:both!important}
.posts-wrap .wtp-post{float:none!important;clear:none!important;width:auto!important;margin:0!important}
.wtp-post{position:relative!important;min-width:0!important;padding:0!important;overflow:hidden!important;border:1px solid var(--apt-line)!important;border-radius:14px!important;background:#050507!important;box-shadow:0 12px 34px rgba(0,0,0,.30)!important;transition:transform .22s var(--apt-ease),border-color .22s,box-shadow .22s!important}
.wtp-post:not(.apt-inline-ad):hover{transform:translateY(-2px)!important;border-color:rgba(139,92,246,.38)!important;box-shadow:0 18px 44px rgba(0,0,0,.42),0 0 24px rgba(139,92,246,.055)!important}
.wtp-post>a{display:block!important;position:relative!important;text-decoration:none!important}

/* ===== Media: 16:9, stable poster ===== */
.apt-media-frame{position:relative!important;width:100%!important;aspect-ratio:16/9!important;overflow:hidden!important;background:#050507!important}
.apt-media-visual{position:absolute!important;inset:0!important;overflow:hidden!important;background:#050507!important}
.apt-media-poster{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;display:block!important;object-fit:cover!important;object-position:center!important;opacity:0!important;visibility:hidden!important;transform:scale(1.001)!important;transition:opacity .30s var(--apt-ease),transform .55s var(--apt-ease),visibility 0s linear .30s!important}
.apt-media-poster.is-active{opacity:1!important;visibility:visible!important;transform:scale(1)!important;transition-delay:0s!important}
.wtp-post:hover .apt-media-poster.is-active{transform:scale(1.015)!important}
.apt-feed-preview,.apt-feed-embed{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;display:block!important;object-fit:cover!important;border:0!important;background:#050507!important;opacity:0!important;z-index:3!important;transition:opacity .22s var(--apt-ease)!important}
.apt-feed-embed{pointer-events:none!important}
.apt-preview-live .apt-feed-preview,.apt-preview-live .apt-feed-embed{opacity:1!important}
.apt-preview-shade{position:absolute!important;inset:0!important;z-index:4!important;background:linear-gradient(180deg,rgba(0,0,0,0) 48%,rgba(0,0,0,.34) 100%)!important;pointer-events:none!important}
.apt-preview-play{position:absolute!important;left:50%!important;top:50%!important;z-index:6!important;width:48px!important;height:48px!important;display:flex!important;align-items:center!important;justify-content:center!important;transform:translate(-50%,-50%)!important;border:1px solid rgba(255,255,255,.20)!important;border-radius:50%!important;background:rgba(5,6,9,.72)!important;color:#fff!important;font-size:15px!important;line-height:1!important;box-shadow:0 10px 28px rgba(0,0,0,.45)!important;backdrop-filter:blur(10px)!important;transition:opacity .18s,transform .18s var(--apt-ease),background .18s!important;pointer-events:none!important}
.wtp-post:hover .apt-preview-play{transform:translate(-50%,-50%) scale(1.06)!important;background:rgba(15,16,23,.80)!important}
.apt-preview-live .apt-preview-play{opacity:0!important;transform:translate(-50%,-50%) scale(.88)!important}
.apt-preview-live-dot{position:absolute!important;left:10px!important;top:10px!important;width:6px!important;height:6px!important;border-radius:50%!important;background:#22d3ee!important;box-shadow:0 0 14px rgba(34,211,238,.65)!important;opacity:0!important;z-index:7!important}
.apt-preview-live .apt-preview-live-dot{opacity:1!important}
.apt-media-empty,.apt-media-missing{display:flex!important;align-items:center!important;justify-content:center!important;width:100%!important;aspect-ratio:16/9!important;background:#07080b!important;color:#737987!important}
.apt-media-empty span,.apt-media-missing span{display:flex!important;align-items:center!important;justify-content:center!important;width:48px!important;height:48px!important;border:1px solid var(--apt-line)!important;border-radius:50%!important;background:#0c0e13!important;color:#fff!important}

/* ===== Compact metadata/title ===== */
.entry-header{padding:9px 10px 0!important;margin:0!important;border:0!important;background:#050507!important}
.entry-title{margin:0!important;padding:0!important;font-size:13px!important;line-height:1.32!important;font-weight:720!important;letter-spacing:-.008em!important;color:#f2f3f6!important;display:-webkit-box!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical!important;overflow:hidden!important}
.entry-title a{text-decoration:none!important;color:inherit!important}
.entry-title a:hover{color:#fff!important}
.archive-content{display:flex!important;align-items:center!important;gap:7px!important;padding:7px 10px 10px!important;margin:0!important;color:#777d8a!important;font-size:11px!important;line-height:1.2!important;background:#050507!important;border:0!important}
.archive-content .fa{color:#737987!important}
.archive-content strong{color:#aeb3bf!important;font-weight:650!important}
.time-desc{margin-left:auto!important;white-space:nowrap!important}
.hd{position:absolute!important;right:8px!important;top:8px!important;z-index:8!important;padding:4px 6px!important;border:1px solid rgba(255,255,255,.18)!important;border-radius:7px!important;background:rgba(5,6,9,.72)!important;color:#f4f5f8!important;font-size:9px!important;font-weight:800!important;line-height:1!important;backdrop-filter:blur(8px)!important}

/* ===== Ads: preserve PHP order/positions; only style the slot ===== */
.adscencecode{max-width:100%!important}
.apt-inline-ad{grid-column:1/-1!important;display:block!important;min-height:90px!important;border:1px solid var(--apt-line-soft)!important;border-radius:14px!important;background:#020203!important;overflow:hidden!important}
.apt-inline-ad .adscencecode{min-height:90px!important;display:flex!important;align-items:center!important;justify-content:center!important}

/* ===== Legacy blue/tag/category panels neutralized ===== */
#content .tagcloud,.tag-list,.tags-list,.category-list,.categories-list,.video-categories,.cat-list{background:#050507!important;color:#e8e9ed!important;border:1px solid var(--apt-line)!important;border-radius:14px!important}
#content .tagcloud a,.tag-list a,.tags-list a,.category-list a,.categories-list a{display:inline-flex!important;align-items:center!important;margin:4px!important;padding:7px 10px!important;border:1px solid var(--apt-line)!important;border-radius:999px!important;background:#090a0e!important;color:#b8bdc9!important;text-decoration:none!important;transition:.18s var(--apt-ease)!important}
#content .tagcloud a:hover,.tag-list a:hover,.tags-list a:hover,.category-list a:hover,.categories-list a:hover{border-color:rgba(139,92,246,.55)!important;color:#fff!important;background:#0e1017!important;transform:translateY(-1px)!important}

/* ===== Single video ===== */
.entry-content iframe,.entry-content video,.video-player,.jwplayer,.wp-video{max-width:100%!important;border-radius:14px!important;overflow:hidden!important}
.single .entry-title,.single-title{font-size:clamp(26px,3.3vw,48px)!important;line-height:1.06!important;font-weight:850!important;color:#f5f6f9!important}

/* ===== Footer/widgets ===== */
.site-footer{border-top:1px solid var(--apt-line-soft)!important;padding-top:24px!important}
.footer-main-area{width:min(calc(100% - 32px),1800px)!important;margin:0 auto!important}
.site-footer .footer-sidebar{margin:12px auto!important;max-width:970px!important}
.widget,.widget-area{color:#aeb3bf!important}.widget-title{color:#f2f3f6!important;font-weight:800!important}

/* ===== Performance / motion ===== */
.wtp-post,.apt-media-frame,.apt-search-form,.main-navigation a{will-change:transform}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto!important}*,*:before,*:after{animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important}.apt-search-form:before{animation:none!important}}

/* ===== Mobile: xHamster-like 2-column feed, clean flow, menu never overlays search ===== */
@media(max-width:767px){
  .header-main-area .hm-container{width:100%!important;min-height:170px!important;display:block!important;padding:10px 12px 12px!important}
  .site-branding{position:relative!important;left:auto!important;top:auto!important;transform:none!important;width:100%!important}
  .hm-logo{min-height:150px!important;width:100%!important}
  .hm-logo .custom-logo,.hm-logo .wtp-legacy-logo{max-width:92vw!important;max-height:150px!important}
  .hm-header-sidebar{width:100%!important;max-width:none!important;margin:0!important}
  .hm-nav-container{position:relative!important;top:auto!important}
  .main-navigation .hm-nwrap:first-child{display:block!important;width:100%!important;min-height:0!important;padding:10px 12px!important}
  .main-navigation .hm-nwrap:first-child #cssmenu,.main-navigation .hm-nwrap:first-child>ul{display:none!important}
  .main-navigation .hm-nwrap:first-child .apt-search-v8-wrap{display:block!important;width:100%!important;margin:0!important}
  .apt-search-v8-wrap,.hm-search-box-container{width:100%!important;flex:none!important}
  .apt-search-form{height:64px!important;padding-left:56px!important;padding-right:62px!important;border-radius:20px!important}
  .apt-search-v8-input{height:62px!important;font-size:16px!important}
  .apt-search-v8-submit{width:48px!important;height:48px!important;right:7px!important;top:7px!important;border-radius:15px!important}
  .apt-search-v8-key{display:none!important}
  .main-navigation .hm-nwrap:nth-of-type(2){display:block!important;width:100%!important;padding:0 12px 10px!important}
  .navbutton{display:flex!important;align-items:center!important;justify-content:center!important;width:100%!important;min-height:50px!important;border:1px solid var(--apt-line)!important;border-radius:14px!important;background:#07080b!important;color:#f0f1f5!important;text-decoration:none!important;font-weight:800!important;letter-spacing:.01em!important;box-shadow:0 10px 28px rgba(0,0,0,.28)!important}
  .navbutton:before{content:'☰'!important;margin-right:10px!important;font-size:17px!important}
  .navbutton.is-open{border-color:rgba(139,92,246,.55)!important}
  .responsive-mainnav{padding:0 12px 12px!important}
  .responsive-mainnav.apt-menu-open{display:block!important}
  .responsive-mainnav .apt-mobile-menu-list{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important;margin:0!important;padding:0!important;list-style:none!important}
  .responsive-mainnav .apt-mobile-menu-list li{list-style:none!important;margin:0!important;padding:0!important}
  .responsive-mainnav .apt-mobile-menu-list li a{display:flex!important;align-items:center!important;min-height:50px!important;padding:10px 12px!important;border:1px solid var(--apt-line)!important;border-radius:12px!important;background:#07080b!important;color:#e7e9ee!important;text-decoration:none!important;font-size:14px!important;font-weight:650!important}
  .site-content>.hm-container{width:100%!important;padding:22px 10px 72px!important}
  .page-header{margin-bottom:16px!important;padding:0 2px!important}
  .page-title,.srch-page-title{font-size:25px!important}
  .posts-wrap{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
  .wtp-post{border-radius:12px!important}
  .entry-header{padding:8px 8px 0!important}
  .entry-title{font-size:12px!important;line-height:1.35!important}
  .archive-content{padding:6px 8px 8px!important;font-size:10px!important;gap:5px!important}
  .hd{right:6px!important;top:6px!important;font-size:8px!important;padding:4px 5px!important}
  .apt-preview-play{width:44px!important;height:44px!important;font-size:14px!important}
  .apt-inline-ad{border-radius:12px!important}
}

/* ===== Desktop / TV ===== */
@media(min-width:768px){.posts-wrap{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media(min-width:1200px){.posts-wrap{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:14px!important}}
@media(min-width:1600px){.posts-wrap{grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:16px!important}}
@media(min-width:2200px){
  .header-main-area .hm-container,.hm-nav-container .hm-container,.main-navigation .hm-nwrap:first-child,.site-content>.hm-container,.footer-main-area{width:min(calc(100% - 80px),2200px)!important}
  .posts-wrap{grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:18px!important}
}


/* =====================================================================
   V13 HARD RESET — eliminate legacy theme-color leakage without touching
   PHP widget/ad placement. The old theme paints #primary, .wtp-wrapper,
   footer, single-page ad columns and header bars with the selected theme
   color. These rules intentionally neutralize those surfaces.
   ===================================================================== */
:root{
  --apt-bg:#000000;
  --apt-surface:#050507;
  --apt-surface-2:#090a0f;
  --apt-violet:#9b6cff;
  --apt-cyan:#45e5ff;
  --apt-pink:#ff4fa3;
  --apt-gold:#f4c76b;
}
html,body,#page,.wtp-wrapper,#primary.content-area,.site-content,.site-footer,.hm-top-bar,.header-main-area,.hm-nav-container,.main-navigation,.videosection,.videopage-ad,.hm-related-posts,.hmrp-container,.site-main{background:#000!important;background-color:#000!important;background-image:none!important;color:#f5f5f7!important}
#primary.content-area{margin:0 auto!important;float:none!important;width:100%!important;min-height:0!important}
.wtp-wrapper{max-width:2000px!important;margin:0 auto!important}
.hm-top-bar{height:0!important;min-height:0!important;padding:0!important;border:0!important;overflow:hidden!important}
.header-main-area{border-top:1px solid rgba(255,255,255,.035)!important;border-bottom:1px solid rgba(255,255,255,.06)!important}
.hm-nav-container,.main-navigation{background:#000!important}
.videopage-ad{background:#000!important;border:0!important}
.player_ad{background:#09090c!important;border:1px solid rgba(255,255,255,.10)!important;border-radius:14px!important;color:#fff!important}
.hd{background:rgba(12,13,17,.88)!important;border:1px solid rgba(255,255,255,.16)!important;color:#fff!important;box-shadow:none!important}
.page-numbers,.nav-links .page-numbers{background:#07080b!important;border-color:rgba(255,255,255,.10)!important}
.page-numbers:hover,.page-numbers.current,.nav-links .current{background:#11121a!important;border-color:rgba(155,108,255,.55)!important}

/* Keep ad widgets visible and neutral; never relocate them. */
.adscencecode{display:block!important;max-width:100%!important;background:transparent!important;color:inherit!important}
.adscencecode>*,.adscencecode iframe,.adscencecode ins{max-width:100%!important}
.apt-inline-ad{grid-column:1/-1!important;background:#000!important;border:1px solid rgba(255,255,255,.055)!important;border-radius:12px!important;min-height:90px!important}
.apt-inline-ad .adscencecode{min-height:90px!important;display:flex!important;align-items:center!important;justify-content:center!important}

/* Media reliability: poster remains visible until a real native preview is playing. */
.apt-media-frame{background:#030304!important;contain:layout paint style!important}
.apt-media-visual{background:#030304!important}
.apt-media-poster{z-index:1!important}
.apt-feed-preview{z-index:2!important;background:#000!important}
.apt-feed-embed{z-index:2!important;opacity:0!important;background:#000!important}
.apt-preview-live .apt-feed-embed{opacity:1!important}
.apt-embed-preview .apt-preview-live-dot{background:#45e5ff!important;box-shadow:0 0 14px rgba(69,229,255,.6)!important}
.apt-media-poster.apt-image-failed{display:none!important}
.apt-media-frame.has-poster-fallback .apt-preview-play{opacity:.92!important}

/* Dense feed: closer to premium video-tube proportions, less empty space. */
.posts-wrap{align-items:start!important}
.wtp-post{background:#050507!important;border-color:rgba(255,255,255,.085)!important}
.wtp-post:hover{border-color:rgba(155,108,255,.42)!important}
.entry-header,.archive-content{background:#050507!important}

/* Single-video page: no legacy 70/30 blue panel. Keep Ad16 inside its original slot. */
.wtp-single{background:#000!important;color:#f4f5f8!important}
.wtp-single .entry-header{background:#000!important}
.wtp-single .entry-title{color:#f5f6f8!important}
.videosection{background:#000!important;width:100%!important;float:none!important}
.videosection iframe,.videosection embed,.videosection object,.videosection video{display:block!important;width:100%!important;max-width:100%!important;min-height:360px!important;border:0!important;background:#000!important;border-radius:16px!important}
.videosection>div[style*="position:relative"]{max-width:1400px!important;margin:0 auto!important;background:#000!important}

/* Logo: large, centered, clean; do not replace user's uploaded logo. */
.site-branding{z-index:5!important}
.hm-logo{min-height:185px!important}
.hm-logo .custom-logo,.hm-logo .wtp-legacy-logo{max-width:min(760px,72vw)!important;max-height:185px!important;filter:drop-shadow(0 14px 46px rgba(0,0,0,.65))!important}

/* Search: one premium box, no second shell behind it. */
.apt-search-v8-wrap,.hm-search-box-container{background:transparent!important;border:0!important;box-shadow:none!important}
.apt-search-form{background:#07080c!important;border:1px solid rgba(155,108,255,.48)!important;box-shadow:0 0 0 1px rgba(69,229,255,.08),0 16px 50px rgba(0,0,0,.50)!important}
.apt-search-form:before{background:linear-gradient(105deg,rgba(155,108,255,.90),rgba(69,229,255,.55),rgba(255,79,163,.72),rgba(155,108,255,.90))!important}
.apt-search-v8-submit{background:#11131b!important;border-color:rgba(255,255,255,.12)!important}

@media(max-width:767px){
  .header-main-area .hm-container{min-height:178px!important}
  .hm-logo{min-height:155px!important}
  .hm-logo .custom-logo,.hm-logo .wtp-legacy-logo{max-width:94vw!important;max-height:155px!important}
  .videosection iframe,.videosection embed,.videosection object,.videosection video{min-height:220px!important;height:auto!important;aspect-ratio:16/9!important}
  .site-content>.hm-container{padding-top:18px!important}
}

/* Never run decorative animations on every card; keep motion GPU-cheap. */
.wtp-post,.apt-media-frame,.apt-search-form{will-change:auto!important}
.apt-media-frame,.wtp-post{backface-visibility:hidden!important;transform:translateZ(0)!important}

.apt-search-empty{animation:apt-search-shake .28s ease!important;border-color:rgba(255,79,163,.72)!important}
@keyframes apt-search-shake{0%,100%{transform:translateX(0)}25%{transform:translateX(-3px)}75%{transform:translateX(3px)}}

/* V14 MEDIA RELIABILITY: never expose a cross-origin iframe as a fake preview. */
.apt-embed-preview .apt-feed-embed{display:none!important}
.apt-embed-badge{position:absolute!important;left:10px!important;bottom:10px!important;z-index:8!important;padding:5px 8px!important;border:1px solid rgba(255,255,255,.16)!important;border-radius:7px!important;background:rgba(5,5,7,.82)!important;color:#fff!important;font-size:9px!important;font-weight:800!important;letter-spacing:.08em!important}
.apt-motion-preview .apt-media-poster{transition:opacity .18s linear!important}
.apt-media-frame[data-preview-kind="poster-sequence"] .apt-preview-play{opacity:.82!important}
.apt-media-frame[data-preview-kind="poster-sequence"]:hover .apt-preview-play{opacity:1!important;transform:translate(-50%,-50%) scale(1.04)!important}
.apt-feed-preview{background:#000!important}
.apt-feed-preview:not(.x){color:transparent!important}

/* V14: eliminate the legacy selected theme color at its source. */
.hm-top-bar,.header-main-area,.hm-nav-container,.main-navigation,.site-header{--theme-color:#000!important}

@media(max-width:767px){
  .apt-media-frame{aspect-ratio:16/9!important;min-height:0!important}
  .apt-media-visual{aspect-ratio:16/9!important}
  .apt-media-poster{object-fit:cover!important}
}


/* ============================ V15 ============================
   Real feed-preview layer + total theme ad removal.
   Provider iframe stays behind the poster until its load phase settles.
   ============================================================ */
.apt-embed-preview .apt-feed-embed{
  position:absolute!important;inset:0!important;width:100%!important;height:100%!important;
  display:block!important;border:0!important;opacity:0!important;visibility:hidden!important;
  background:#000!important;z-index:3!important;pointer-events:none!important;
  object-fit:cover!important;
}
.apt-embed-preview.apt-preview-live .apt-feed-embed{opacity:1!important;visibility:visible!important}
.apt-embed-preview .apt-media-poster{z-index:2!important}
.apt-embed-preview.apt-preview-live .apt-media-poster{opacity:0!important;visibility:hidden!important}
.apt-embed-preview:not(.apt-preview-live) .apt-feed-embed{opacity:0!important;visibility:hidden!important}
.apt-embed-preview .apt-preview-shade{z-index:5!important}
.apt-embed-preview.apt-preview-live .apt-preview-play{opacity:0!important}

/* User requested: no ad placements anywhere in this theme. */
.adscencecode,.apt-inline-ad,.apt-footer-ads,.player_ad,.videopage-ad,
.hm-header-sidebar:has(.adscencecode),.leftside .left-ad{display:none!important}
