.site-header {
    background: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0d6efd;
}

.sidebar-menu {
    list-style: none;
    padding-left: 0;
}

.sidebar-menu li {
    border-bottom: 1px solid #eee;
}

.sidebar-menu a {
    display: block;
    padding: 0.5rem 0;
    color: #333;
    text-decoration: none;
}

.sidebar-menu a:hover {
    color: #0d6efd;
}

.ad-banner {
    background: #e9ecef;
    border: 1px dashed #adb5bd;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 0.9rem;
}

.video-placeholder {
    width: 100%;
    max-width: 100%;
    background: #212529;
    color: #fff;
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
}

.video-placeholder::before {
    content: "▶";
    font-size: 3rem;
    opacity: 0.8;
}

/* Рекламный контейнер поверх плеера */
.ad-container {
    position: absolute;
    inset: 0;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    z-index: 10;
}

.ad-container.ad-container--visible {
    opacity: 1;
    visibility: visible;
}

.ad-container__inner {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-container__slot {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #adb5bd;
    font-size: 0.95rem;
}

.ad-container__iframe {
    border: none;
    width: 100%;
    height: 100%;
    display: block;
}

.ad-container__close {
    position: absolute !important;
    top: 0.5rem !important;
    right: 0.5rem !important;
    left: auto !important;
    bottom: auto !important;
    margin: 0 !important;
    transform: none;
    inset: auto 0.5rem auto auto;
    width: 2rem;
    height: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 50%;
    background: rgba(10, 14, 24, 0.72);
    color: transparent;
    cursor: pointer;
    font-size: 0;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: absolute !important;
    z-index: 20;
    transition: background 0.2s, transform 0.2s, border-color 0.2s;
}

.ad-container__close::before,
.ad-container__close::after {
    content: "";
    position: absolute;
    width: 46%;
    height: 2px;
    border-radius: 2px;
    background: #fff;
    top: 50%;
    left: 50%;
    transform-origin: center;
}

.ad-container__close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.ad-container__close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.ad-container__close:hover {
    background: rgba(247, 107, 28, 0.35);
    border-color: rgba(247, 107, 28, 0.9);
    transform: scale(1.04);
}

.ad-reopen-btn {
    position: absolute;
    top: auto;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 30;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 10px;
    background: rgba(10, 14, 24, 0.78);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1;
    padding: 0.65rem 1rem;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.ad-reopen-btn:hover {
    background: rgba(247, 107, 28, 0.35);
    border-color: rgba(247, 107, 28, 0.9);
}
