/**
 * Ads Styling - Native Banner
 */

.native-ad-container {
    width: 100%;
    margin: var(--space-6) 0;
    padding: 0;
}

.native-ad-wrapper {
    max-width: var(--container-width, 1400px);
    margin: 0 auto;
    padding: 0 var(--space-4);
}

/* Live TV page - Full width banner under header */
.live-tv-ad-banner {
    margin: 0;
    padding: var(--space-3) 0;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    /* CRITICAL FIX: Remove from normal flow to not break layout */
    position: relative;
    z-index: 10;
}

.live-tv-ad-banner .native-ad-wrapper {
    max-width: 100%;
    padding: 0 var(--space-4);
}

.live-tv-ad-banner .native-ad-label {
    text-align: left;
    margin-bottom: var(--space-2);
}

.live-tv-ad-banner #container-fd9ce071a7eb9726461a88b784d6f62f {
    min-height: 90px;
    max-height: 120px;
    /* CRITICAL: Ensure ad stays within container on Live TV page */
    overflow: hidden;
    width: 100%;
}

.native-ad-label {
    font-size: 0.75rem;
    color: var(--text-secondary, #888);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-2);
    text-align: center;
    opacity: 0.6;
}

/* Ad container styling */
#container-fd9ce071a7eb9726461a88b784d6f62f {
    min-height: 100px;
    display: block;
    width: 100%;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-md, 8px);
    padding: var(--space-4);
    transition: all 0.3s ease;
    /* CRITICAL: Prevent ad content from overflowing */
    overflow: hidden;
    max-width: 100%;
    position: relative;
}

/* Force all ad content to stay within bounds */
#container-fd9ce071a7eb9726461a88b784d6f62f * {
    max-width: 100% !important;
    box-sizing: border-box !important;
}

#container-fd9ce071a7eb9726461a88b784d6f62f:hover {
    background: rgba(255, 255, 255, 0.04);
}

/* Responsive */
@media (max-width: 768px) {
    .native-ad-container {
        margin: var(--space-4) 0;
    }
    
    .native-ad-wrapper {
        padding: 0 var(--space-3);
    }
    
    .live-tv-ad-banner {
        padding: var(--space-2) 0;
    }
    
    .live-tv-ad-banner .native-ad-wrapper {
        padding: 0 var(--space-3);
    }
    
    .live-tv-ad-banner #container-fd9ce071a7eb9726461a88b784d6f62f {
        min-height: 60px;
        max-height: 90px;
    }
    
    #container-fd9ce071a7eb9726461a88b784d6f62f {
        padding: var(--space-3);
    }
}

/* Loading state */
#container-fd9ce071a7eb9726461a88b784d6f62f:empty::after {
    content: 'Loading advertisement...';
    color: var(--text-secondary, #888);
    font-size: 0.875rem;
    opacity: 0.5;
}
