/**
 * Ad Manager Affiliate - High-Converting Native Frontend Styles
 * Built specifically for KingTube theme & Hornysimp video post layouts.
 */

.mng-affiliate-spot {
    width: 100%;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mng-spot-display {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.mng-spot-display img,
.mng-spot-display video {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.mng-spot-display iframe {
    max-width: 100%;
    display: block;
    margin: 0 auto;
    border: none;
}

.mng-affiliate-slot {
    margin: 14px 0;
    width: 100%;
    box-sizing: border-box;
}

/* 1. Native Under-Player Action Bar */
.mng-native-cta-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #1e1b4b 0%, #0f172a 100%);
    border: 1px solid rgba(139, 92, 246, 0.35);
    border-radius: 10px;
    padding: 12px 18px;
    text-decoration: none !important;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    color: #ffffff !important;
    overflow: hidden;
}

.mng-native-cta-bar:hover {
    transform: translateY(-2px);
    border-color: #a855f7;
    box-shadow: 0 6px 20px rgba(168, 85, 247, 0.3);
}

.mng-cta-content {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
    min-width: 0;
}

.mng-cta-media {
    width: 52px;
    height: 52px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.mng-cta-media img,
.mng-cta-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mng-cta-text-wrap {
    min-width: 0;
}

.mng-cta-headline-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.mng-cta-badge {
    background: #ec4899;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    animation: mngPulse 2s infinite;
}

@keyframes mngPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.85; transform: scale(1.04); }
}

.mng-cta-headline {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.3;
}

.mng-cta-subtitle {
    font-size: 13px;
    color: #94a3b8;
    margin-top: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mng-cta-btn-wrap {
    margin-left: 16px;
    flex-shrink: 0;
}

.mng-cta-button {
    background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
    color: #ffffff !important;
    font-size: 13px;
    font-weight: 700;
    padding: 9px 18px;
    border-radius: 8px;
    display: inline-block;
    transition: background 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
}

.mng-native-cta-bar:hover .mng-cta-button {
    transform: scale(1.05);
}

/* 2. In-Grid Pseudo-Video Card (Related Grid) */
.mng-affiliate-grid-item {
    position: relative;
}

.mng-grid-thumb-wrapper {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
}

.mng-grid-thumb-wrapper video,
.mng-grid-thumb-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mng-grid-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    background: rgba(236, 72, 153, 0.95);
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 3px;
    letter-spacing: 0.5px;
    z-index: 2;
}

.mng-grid-title {
    color: #ffffff;
    font-size: 13px !important;
    margin: 8px 0 4px 0 !important;
    line-height: 1.3 !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mng-grid-meta {
    font-size: 11px;
    color: #94a3b8;
}

.mng-sponsored-tag {
    color: #a855f7;
    font-weight: 600;
}

/* 3. Responsive Adjustments */
@media (max-width: 640px) {
    .mng-native-cta-bar {
        flex-direction: column;
        align-items: flex-start;
        padding: 12px 14px;
        gap: 10px;
    }

    .mng-cta-btn-wrap {
        width: 100%;
        margin-left: 0;
    }

    .mng-cta-button {
        display: block;
        text-align: center;
        width: 100%;
        box-sizing: border-box;
    }

    .mng-cta-subtitle {
        white-space: normal;
    }
}

/* 4. Global Header Billboards (After Menu Bar on All Pages) */
.mng-global-header-billboard-wrapper {
    width: 100%;
    margin: 6px auto 4px auto;
    padding: 0 10px;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

.mng-header-billboard-desktop {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 0 auto;
}

.mng-header-billboard-desktop img,
.mng-header-billboard-desktop video {
    max-width: 100% !important;
    height: auto;
    margin: 0 auto;
    display: block;
}

.mng-header-billboard-desktop iframe {
    max-width: 100% !important;
    margin: 0 auto;
    border: none;
    display: block;
}

.mng-header-billboard-mobile {
    display: none;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 0 auto;
}

.mng-header-billboard-mobile img,
.mng-header-billboard-mobile video {
    max-width: 100% !important;
    height: auto;
    margin: 0 auto;
    display: block;
}

.mng-header-billboard-mobile iframe {
    max-width: 100% !important;
    margin: 0 auto;
    border: none;
    display: block;
}

@media (max-width: 767px) {
    .mng-global-header-billboard-wrapper {
        margin: 4px auto 2px auto !important;
        padding: 0 6px !important;
    }
    .mng-header-billboard-desktop {
        display: none !important;
    }
    .mng-header-billboard-mobile {
        display: flex !important;
    }
}

@media (min-width: 768px) {
    .mng-header-billboard-desktop {
        display: flex !important;
    }
    .mng-header-billboard-mobile {
        display: none !important;
    }
}

/* 5. Post Page Section Banners (Related Posts & Most Viewed) */
.mng-section-banner-wrapper {
    width: 100%;
    max-width: 950px;
    margin: 15px auto 20px auto;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

.mng-section-banner-desktop {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 0 auto;
}

.mng-section-banner-desktop img,
.mng-section-banner-desktop video {
    max-width: 100% !important;
    height: auto;
    margin: 0 auto;
    display: block;
}

.mng-section-banner-desktop iframe {
    max-width: 100% !important;
    margin: 0 auto;
    border: none;
    display: block;
}

.mng-section-banner-mobile {
    display: none !important;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 0 auto;
}

.mng-section-banner-mobile img,
.mng-section-banner-mobile video {
    max-width: 100% !important;
    height: auto;
    margin: 0 auto;
    display: block;
}

.mng-section-banner-mobile iframe {
    max-width: 100% !important;
    margin: 0 auto;
    border: none;
    display: block;
}

@media (max-width: 767px) {
    .mng-section-banner-wrapper {
        margin: 12px auto 16px auto;
        padding: 0 4px;
    }
    .mng-section-banner-desktop {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        width: 0 !important;
        overflow: hidden !important;
    }
    .mng-section-banner-mobile {
        display: flex !important;
    }
}

@media (min-width: 768px) {
    .mng-section-banner-desktop {
        display: flex !important;
    }
    .mng-section-banner-mobile {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        width: 0 !important;
        overflow: hidden !important;
        margin: 0 !important;
        padding: 0 !important;
    }
}

/* 6. Homepage Inter-Section & Mobile In-Grid Banners */
.mng-home-between-sections {
    width: 100% !important;
    max-width: 1350px !important;
    margin: 25px auto 30px auto;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mng-mobile-only,
.home-mobile-ingrid {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
}

@media (max-width: 767px) {
    .mng-mobile-only,
    .home-mobile-ingrid {
        display: flex !important;
        visibility: visible !important;
        height: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        justify-content: center;
        align-items: center;
        margin: 18px auto;
        box-sizing: border-box;
        clear: both;
        overflow: visible !important;
    }

    .home-mobile-ingrid .hscp-mobile-ingrid-ad-slot {
        width: 100% !important;
        max-width: 100% !important;
        min-height: auto !important;
        height: auto !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        margin: 0 auto !important;
        box-sizing: border-box !important;
        overflow: visible !important;
    }

    .home-mobile-ingrid .hscp-mobile-ingrid-ad-slot img,
    .home-mobile-ingrid .hscp-mobile-ingrid-ad-slot video {
        max-width: 100% !important;
        height: auto;
        margin: 0 auto;
    }

    .home-mobile-ingrid .hscp-mobile-ingrid-ad-slot iframe {
        max-width: 100% !important;
        margin: 0 auto;
        border: none;
        display: block;
    }

    .mng-home-between-sections {
        margin: 15px auto 20px auto !important;
    }
}

/* 6. Post Page Mid 1:1 Banner (After Description, All Devices) */
.hscp-mid-ad-wrapper {
    width: 100%;
    max-width: 950px;
    margin: 22px auto;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

.hscp-mid-ad-slot {
    width: 300px;
    max-width: 100%;
    min-height: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
}

.hscp-mid-ad-slot img,
.hscp-mid-ad-slot video {
    max-width: 100% !important;
    height: auto;
    margin: 0 auto;
}

.hscp-mid-ad-slot iframe {
    max-width: 100% !important;
    margin: 0 auto;
    border: none;
    display: block;
}

/* 7. Post Page Mobile In-Grid 300x300 Banners (Between Video Cards - Mobile Only, OFF on Desktop & Tablet) */
.hscp-mobile-ingrid-ad-wrapper,
.mng-mobile-only {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
}

@media (max-width: 767px) {
    .hscp-mobile-ingrid-ad-wrapper,
    .mng-mobile-only {
        display: flex !important;
        visibility: visible !important;
        height: auto !important;
        width: 100% !important;
        justify-content: center !important;
        align-items: center !important;
        margin: 14px auto !important;
        box-sizing: border-box !important;
        overflow: visible !important;
        text-align: center !important;
    }

    .hscp-mobile-ingrid-ad-slot {
        width: 100% !important;
        max-width: 100% !important;
        min-height: auto !important;
        height: auto !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        margin: 0 auto !important;
        box-sizing: border-box !important;
        overflow: visible !important;
    }

    .hscp-mobile-ingrid-ad-slot img,
    .hscp-mobile-ingrid-ad-slot video {
        max-width: 100% !important;
        height: auto;
        margin: 0 auto;
    }

    .hscp-mobile-ingrid-ad-slot iframe {
        max-width: 100% !important;
        margin: 0 auto;
        border: none;
        display: block;
    }
}

/* Universal Standard Ad Iframe Dimensions: Stop Browser 150px Compression Across ALL Placements */
.mng-affiliate-spot iframe[height="300"],
.mng-spot-display iframe[height="300"],
.hscp-mid-ad-slot iframe[height="300"],
.hscp-mobile-ingrid-ad-slot iframe[height="300"],
.mng-section-banner-wrapper iframe[height="300"],
.mng-global-header-billboard-wrapper iframe[height="300"],
.hscp-ad-slot iframe[height="300"] {
    height: 300px !important;
}

.mng-affiliate-spot iframe[height="280"],
.mng-spot-display iframe[height="280"],
.hscp-mid-ad-slot iframe[height="280"],
.hscp-mobile-ingrid-ad-slot iframe[height="280"],
.mng-section-banner-wrapper iframe[height="280"],
.mng-global-header-billboard-wrapper iframe[height="280"],
.hscp-ad-slot iframe[height="280"] {
    height: 280px !important;
}

.mng-affiliate-spot iframe[height="600"],
.mng-spot-display iframe[height="600"],
.hscp-mid-ad-slot iframe[height="600"],
.hscp-mobile-ingrid-ad-slot iframe[height="600"],
.mng-section-banner-wrapper iframe[height="600"],
.mng-global-header-billboard-wrapper iframe[height="600"],
.hscp-ad-slot iframe[height="600"] {
    height: 600px !important;
}

.mng-affiliate-spot iframe[height="250"],
.mng-spot-display iframe[height="250"],
.hscp-mid-ad-slot iframe[height="250"],
.hscp-mobile-ingrid-ad-slot iframe[height="250"],
.mng-section-banner-wrapper iframe[height="250"],
.mng-global-header-billboard-wrapper iframe[height="250"],
.hscp-ad-slot iframe[height="250"] {
    height: 250px !important;
}

.mng-affiliate-spot iframe[height="100"],
.mng-spot-display iframe[height="100"],
.hscp-mid-ad-slot iframe[height="100"],
.hscp-mobile-ingrid-ad-slot iframe[height="100"],
.mng-section-banner-wrapper iframe[height="100"],
.mng-global-header-billboard-wrapper iframe[height="100"],
.hscp-ad-slot iframe[height="100"] {
    height: 100px !important;
}

.mng-affiliate-spot iframe[height="90"],
.mng-spot-display iframe[height="90"],
.hscp-mid-ad-slot iframe[height="90"],
.hscp-mobile-ingrid-ad-slot iframe[height="90"],
.mng-section-banner-wrapper iframe[height="90"],
.mng-global-header-billboard-wrapper iframe[height="90"],
.hscp-ad-slot iframe[height="90"] {
    height: 90px !important;
}

.mng-affiliate-spot iframe[height="60"],
.mng-spot-display iframe[height="60"],
.hscp-mid-ad-slot iframe[height="60"],
.hscp-mobile-ingrid-ad-slot iframe[height="60"],
.mng-section-banner-wrapper iframe[height="60"],
.mng-global-header-billboard-wrapper iframe[height="60"],
.hscp-ad-slot iframe[height="60"] {
    height: 60px !important;
}

.mng-affiliate-spot iframe[height="50"],
.mng-spot-display iframe[height="50"],
.hscp-mid-ad-slot iframe[height="50"],
.hscp-mobile-ingrid-ad-slot iframe[height="50"],
.mng-section-banner-wrapper iframe[height="50"],
.mng-global-header-billboard-wrapper iframe[height="50"],
.hscp-ad-slot iframe[height="50"] {
    height: 50px !important;
}

@media (min-width: 768px) {
    .hscp-mobile-ingrid-ad-wrapper,
    .mng-mobile-only {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        width: 0 !important;
        overflow: hidden !important;
        margin: 0 !important;
        padding: 0 !important;
    }
}

/* 8. Modern Layout-Safe Flexbox for Content Views & Clearfix Isolation */
.pt-cv-wrapper {
    position: relative !important;
    clear: both !important;
    display: block !important;
}

.pt-cv-view,
.pt-cv-page {
    position: relative !important;
    clear: both !important;
}

.pt-cv-view:after,
.pt-cv-page:after,
.pt-cv-wrapper:after {
    content: "" !important;
    display: table !important;
    clear: both !important;
}

@media screen and (min-width: 992px) {
    .pt-cv-view .pt-cv-page {
        display: flex !important;
        flex-wrap: wrap !important;
    }
    .pt-cv-view .col-md-3.pt-cv-content-item {
        width: 25% !important;
        max-width: 25% !important;
        flex: 0 0 25% !important;
        float: none !important;
        clear: none !important;
    }
}

@media screen and (min-width: 768px) and (max-width: 991px) {
    .pt-cv-view .pt-cv-page {
        display: flex !important;
        flex-wrap: wrap !important;
    }
    .pt-cv-view .col-sm-4.pt-cv-content-item {
        width: 33.333% !important;
        max-width: 33.333% !important;
        flex: 0 0 33.333% !important;
        float: none !important;
        clear: none !important;
    }
}

/* Mobile Flexbox (Prevents float collapse on screens < 768px) */
@media screen and (max-width: 767px) {
    .pt-cv-view .pt-cv-page {
        display: flex !important;
        flex-wrap: wrap !important;
    }
    .pt-cv-view .col-xs-6.pt-cv-content-item,
    .pt-cv-view .col-xs-12.pt-cv-content-item,
    .pt-cv-view .pt-cv-content-item {
        float: none !important;
        clear: none !important;
    }
}

/* Elementor "View More" Button Vertical Clearance & Anti-Overlap Protection */
.elementor-widget-button {
    clear: both !important;
    display: block !important;
    position: relative !important;
    z-index: 5 !important;
    margin-top: 28px !important;
    margin-bottom: 28px !important;
}

.elementor-widget-button .elementor-button-wrapper {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    clear: both !important;
}



