﻿.ad-container {
    position: relative;
    background: rgba(15, 23, 42, 0.02);
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 16px;
    overflow: hidden;
    margin: 24px 0;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.ad-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.12);
}

.ad-container .ad-label {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: linear-gradient(135deg, #f97316 0%, #facc15 100%);
    color: #1f2937;
    border-radius: 999px;
    box-shadow: 0 8px 18px rgba(249, 115, 22, 0.35);
    z-index: 2;
}

.ad-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-decoration: none;
    color: inherit;
}

.ad-banner img,
.ad-banner video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ad-context-link {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.12) 0%, rgba(118, 75, 162, 0.12) 100%);
    border-radius: 12px;
    padding: 8px 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #4338ca;
    transition: background 0.2s ease, transform 0.2s ease;
    text-decoration: none;
}

.ad-context-link::before {
    content: 'Р РµРєР»Р°РјР°';
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6b7280;
}

.ad-context-link:hover {
    transform: translateY(-1px);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
}

.ad-ticker {
    position: fixed;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: clamp(280px, 80vw, 1024px);
    background: rgba(15, 23, 42, 0.92);
    border-radius: 14px;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.45);
    z-index: 9998;
}

.ad-ticker-content {
    display: flex;
    gap: 24px;
    animation: ticker-scroll 30s linear infinite;
    white-space: nowrap;
}

.ad-ticker:hover .ad-ticker-content {
    animation-play-state: paused;
}

.ad-ticker-item {
    color: #f8fafc;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
}

.ad-ticker-item::before {
    content: 'вЂў';
    color: rgba(248, 250, 252, 0.6);
}

.ad-ticker-close {
    background: rgba(248, 250, 252, 0.15);
    border: none;
    color: #f8fafc;
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.ad-ticker-close:hover {
    background: rgba(248, 250, 252, 0.3);
}

@keyframes ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@media (max-width: 768px) {
    .ad-container {
        margin: 16px -8px;
        border-radius: 12px;
    }

    .ad-ticker {
        bottom: 0;
        left: 0;
        right: 0;
        transform: none;
        border-radius: 12px 12px 0 0;
    }
}
