/* --- Unified Ad Placement System for Nonafile --- */
:root {
    /* Linking to existing vars but providing defaults if used standalone */
    --ad-glass-bg: rgba(255, 255, 255, 0.02);
    --ad-border: rgba(255, 255, 255, 0.1);
    --ad-text: #94a3b8;
}

.ad-slot {
    position: relative;
    background: var(--ad-glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px dashed var(--ad-border);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2.5rem auto;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.ad-slot:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.ad-label {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--ad-text);
    letter-spacing: 0.15em;
    opacity: 0.5;
    pointer-events: none;
}

.ad-placeholder {
    color: var(--ad-text);
    font-size: 0.95rem;
    font-weight: 700;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.ad-placeholder i {
    font-size: 1.5rem;
    opacity: 0.8;
}

/* Specific Placements */
.ad-top-banner {
    max-width: 970px;
    min-height: 100px;
    margin-top: 3rem;
}

.ad-native-middle {
    max-width: 1300px;
    min-height: 280px;
    margin: 5rem auto;
    border-radius: 48px;
    background: rgba(255, 255, 255, 0.03);
}

.ad-sidebar-container {
    display: none;
}

@media (min-width: 1440px) {
    .ad-sidebar-container {
        display: block;
        position: fixed;
        left: 2.5rem;
        top: 50%;
        transform: translateY(-50%);
        z-index: 100;
    }

    .ad-sidebar {
        width: 160px;
        min-height: 600px;
        margin: 0;
    }
}

.ad-bottom-banner {
    max-width: 728px;
    min-height: 100px;
    margin-bottom: 5rem;
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {

    .ad-top-banner,
    .ad-bottom-banner {
        max-width: 100%;
        border-radius: 16px;
    }
}

@media (max-width: 768px) {
    .ad-slot {
        margin: 2rem auto;
    }

    .ad-top-banner,
    .ad-bottom-banner {
        min-height: 60px;
        font-size: 0.8rem;
    }

    .ad-native-middle {
        min-height: 200px;
        margin: 3rem auto;
        border-radius: 32px;
    }

    .ad-label {
        font-size: 0.55rem;
        top: 6px;
        right: 10px;
    }
}