
.ad-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 1rem 0;
    min-height: 50px;
}

.ad-container ins {
    display: block !important;
}

/* Etiqueta de publicidad */
.ad-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    margin-bottom: 0.25rem;
    opacity: 0.6;
}

/* =============================================
   SIDEBAR AD - Desktop 300x250
   ============================================= */
.ad-sidebar {
    position: sticky;
    top: 100px;
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 1rem;
    border: 1px solid var(--border-color);
}

.ad-sidebar .ad-container {
    margin: 0;
}

/* Layout con sidebar para home */
.home-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 1200px) {
    .home-layout {
        grid-template-columns: 1fr 320px;
    }
    
    .home-main {
        min-width: 0;
    }
    
    .home-sidebar {
        display: block;
    }
}

@media (max-width: 1199px) {
    .home-sidebar {
        display: none;
    }
}

/* =============================================
   NATIVE AD - Entre videos del grid
   ============================================= */
.ad-native-grid {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.ad-native-grid .ad-label {
    margin-bottom: 0.75rem;
}

/* =============================================
   VIDEO DETAIL AD - Debajo del reproductor
   ============================================= */
.ad-video-detail {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 1rem;
    margin: 1.5rem 0;
    border: 1px solid var(--border-color);
}

.ad-video-detail .ad-container {
    margin: 0;
}

/* =============================================
   MOBILE STICKY AD - Footer sticky
   ============================================= */
.ad-mobile-sticky {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    padding: 0.5rem;
    z-index: 999;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

.ad-mobile-sticky .ad-container {
    margin: 0;
}

.ad-mobile-sticky .ad-close {
    position: absolute;
    top: -10px;
    right: 10px;
    width: 24px;
    height: 24px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.75rem;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.ad-mobile-sticky .ad-close:hover {
    background: var(--error-color);
    color: white;
}

@media (max-width: 768px) {
    .ad-mobile-sticky {
        display: block;
    }
    
    /* Agregar padding al body para el ad sticky */
    body.has-mobile-ad {
        padding-bottom: 70px;
    }
}

/* =============================================
   RESPONSIVE ADJUSTMENTS
   ============================================= */

/* Ocultar ads grandes en móvil */
@media (max-width: 768px) {
    .ad-native-grid {
        padding: 1rem;
    }
    
    .ad-video-detail {
        margin: 1rem 0;
        padding: 0.75rem;
    }
}

/* =============================================
   MOBILE BANNER AD - En home para móvil
   ============================================= */
.ad-mobile-banner {
    display: none;
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    text-align: center;
}

.ad-mobile-banner .ad-container {
    margin: 0;
    justify-content: center;
}

@media (max-width: 768px) {
    .ad-mobile-banner {
        display: block;
    }
}

/* =============================================
   ANIMACIONES
   ============================================= */
.ad-container {
    animation: adFadeIn 0.5s ease;
}

@keyframes adFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =============================================
   AD PLACEHOLDER (mientras carga)
   ============================================= */
.ad-placeholder {
    background: linear-gradient(90deg, 
        var(--bg-tertiary) 25%, 
        var(--bg-secondary) 50%, 
        var(--bg-tertiary) 75%);
    background-size: 200% 100%;
    animation: adShimmer 1.5s infinite;
    border-radius: 8px;
}

@keyframes adShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}