/* Стили для рекламы в ленте */
.lcab-advertisement {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    position: relative;
    overflow: hidden;
}

.lcab-advertisement::before {
    content: 'Реклама';
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.05);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    color: #666;
    text-transform: uppercase;
    font-weight: 600;
}

.lcab-advertisement__title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.lcab-advertisement__content {
    margin-bottom: 15px;
    color: #666;
    line-height: 1.6;
}

.lcab-advertisement__image {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.lcab-advertisement__image:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.lcab-advertisement__iframe {
    width: 100%;
    min-height: 300px;
    border: none;
    border-radius: 8px;
}

.lcab-advertisement__link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.lcab-advertisement__link:hover {
    text-decoration: none;
}

/* Дополнительная реклама площадки (mobile only) */
#adlk-hybrid-unit {
    display: none;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    aspect-ratio: 16 / 9;
    max-height: 250px;
    z-index: 99999;
    background: transparent;
    box-sizing: border-box;
    margin: 0 !important;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.lcab-adlook-slot {
    padding: 0;
    margin: 16px 0;
    background: transparent;
    border: none;
    overflow: hidden;
    position: relative;
}

.lcab-adlook-slot::before,
.lcab-adlook-slot .lcab-advertisement__title,
.lcab-adlook-slot .lcab-advertisement__content,
.lcab-adlook-slot .lcab-wall-card__footer {
    display: none !important;
}

.lcab-adlook-slot .adlk-hybrid-placeholder {
    display: block !important;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    margin: 0;
    visibility: visible !important;
    opacity: 1 !important;
    background-color: #f4f4f4;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

#adlk-hybrid-unit iframe,
#adlk-hybrid-unit video,
#adlk-hybrid-unit .hybrid-toggle-btn {
    pointer-events: auto !important;
}

.hybrid-toggle-btn {
    position: absolute;
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: none;
    cursor: pointer;
    z-index: 2147483647;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
    line-height: 1;
    padding: 4px;
    margin: 0;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
    outline: none;
    bottom: 16px;
    right: 16px;
    opacity: 0.5;
    transition: opacity 0.2s ease, transform 0.15s ease;
    pointer-events: auto !important;
}

.hybrid-toggle-btn:hover {
    opacity: 1;
    transform: translateY(-2px);
}

@media (max-width: 640px) {
    #adlk-hybrid-unit {
        max-height: 250px;
    }
}
