/* =========================================================
   02 - ADMIN ADS FIX
   Bütün reklam yerləri: header, slider altı, xəbər içi,
   sidebar, footer, sağ-sol reklamlar
========================================================= */

/* Köhnə hardcoded side ads gizlənsin */
.desktop-side-ads {
    display: none !important;
}

/* Ümumi ad slot */
.btv-ad-slot {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    overflow: hidden !important;
    text-decoration: none !important;
    color: #ffffff !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    background: #b40019 !important;
}

.btv-ad-slot picture {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
}

.btv-ad-slot img {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    object-fit: cover !important;
}

/* Placeholder */
.btv-ad-placeholder {
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
    min-height: inherit !important;
    overflow: hidden !important;
    color: #ffffff !important;
    background: linear-gradient(90deg, #b40019 0%, #c9001f 45%, #8c0016 100%) !important;
}

.btv-ad-placeholder::before {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    left: -35% !important;
    width: 30% !important;
    height: 100% !important;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255,255,255,.22),
        transparent
    ) !important;
    transform: skewX(-18deg) !important;
    animation: btvFinalAdLight 4s ease-in-out infinite !important;
    pointer-events: none !important;
}

@keyframes btvFinalAdLight {
    0% {
        left: -35%;
    }

    45% {
        left: 110%;
    }

    100% {
        left: 110%;
    }
}

.btv-ad-placeholder > * {
    position: relative !important;
    z-index: 2 !important;
}

/* =========================================================
   HEADER TOP AD
   SİZİN REKLAM BURADA / mail aşağıda
========================================================= */

.home-ad-section,
.detail-top-ad-section {
    padding: 5px !important;
    margin: 0 0 10px !important;
    background: transparent !important;
}

.home-top-ad,
.detail-top-ad {
    width: 100% !important;
    height: 100px !important;
    min-height: 100px !important;
    max-height: 100px !important;
    border-radius: 0 !important;
    overflow: hidden !important;
    background: #b40019 !important;
    box-shadow: none !important;
    padding: 0 !important;
    border: 0 !important;
}

/* Admin şəkli varsa tam görünsün */
.home-top-ad img,
.detail-top-ad img {
    object-fit: contain !important;
    background: #b40019 !important;
}

/* Placeholder yazı düzülüşü */
.home-top-ad .btv-ad-placeholder,
.detail-top-ad .btv-ad-placeholder {
    height: 100px !important;
    min-height: 100px !important;
    display: grid !important;
    grid-template-columns: max-content max-content max-content !important;
    grid-template-rows: auto auto !important;
    align-content: center !important;
    justify-content: center !important;
    align-items: center !important;
    column-gap: 10px !important;
    row-gap: 5px !important;
    padding: 10px 16px !important;
    text-align: center !important;
}

.home-top-ad .btv-ad-placeholder span,
.detail-top-ad .btv-ad-placeholder span {
    color: #ffffff !important;
    font-size: 26px !important;
    line-height: 1 !important;
    font-weight: 800 !important;
    letter-spacing: .2px !important;
    text-transform: uppercase !important;
}

.home-top-ad .btv-ad-placeholder strong,
.detail-top-ad .btv-ad-placeholder strong {
    color: #ffffff !important;
    font-size: 36px !important;
    line-height: 1 !important;
    font-weight: 900 !important;
    letter-spacing: .4px !important;
    text-transform: uppercase !important;
}

.home-top-ad .btv-ad-placeholder small,
.detail-top-ad .btv-ad-placeholder small {
    grid-column: 1 / -1 !important;
    color: rgba(255,255,255,.9) !important;
    font-size: 12px !important;
    line-height: 1 !important;
    font-weight: 600 !important;
}

/* =========================================================
   SLIDER ALTINDA 2 REKLAM
========================================================= */

.below-slider-ads-section {
    padding: 20px 0 !important;
    margin: 0 !important;
    background: #f4f7fb !important;
}

.below-slider-ads-grid {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 16px !important;
    align-items: stretch !important;
}

.below-slider-ad-card {
    width: 100% !important;
    height: 100px !important;
    min-height: 100px !important;
    max-height: 100px !important;
    border-radius: 0 !important;
    overflow: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    border: 0 !important;
}

.below-slider-ad-card img {
    object-fit: cover !important;
}

.below-slider-ad-card .btv-ad-placeholder {
    height: 100px !important;
    min-height: 100px !important;
    display: grid !important;
    grid-template-columns: max-content max-content max-content !important;
    grid-template-rows: auto auto !important;
    align-content: center !important;
    justify-content: center !important;
    align-items: center !important;
    column-gap: 8px !important;
    row-gap: 4px !important;
    padding: 8px 12px !important;
}

.below-slider-ad-card .btv-ad-placeholder span {
    color: #ffffff !important;
    font-size: 18px !important;
    line-height: 1 !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
}

.below-slider-ad-card .btv-ad-placeholder strong {
    color: #ffffff !important;
    font-size: 28px !important;
    line-height: 1 !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
}

.below-slider-ad-card .btv-ad-placeholder small {
    grid-column: 1 / -1 !important;
    color: rgba(255,255,255,.88) !important;
    font-size: 12px !important;
    line-height: 1 !important;
    font-weight: 600 !important;
}

/* =========================================================
   XƏBƏR İÇİ REKLAM
========================================================= */

.news-inside-ad {
    width: 100% !important;
    height: 115px !important;
    min-height: 115px !important;
    max-height: 115px !important;
    margin: 28px 0 !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    padding: 0 !important;
    box-shadow: none !important;
    border: 0 !important;
}

.news-inside-ad img {
    object-fit: cover !important;
}

.news-inside-ad .btv-ad-placeholder {
    height: 115px !important;
    min-height: 115px !important;
    display: grid !important;
    grid-template-columns: max-content max-content max-content !important;
    grid-template-rows: auto auto !important;
    align-content: center !important;
    justify-content: center !important;
    align-items: center !important;
    column-gap: 9px !important;
    row-gap: 5px !important;
    padding: 10px 14px !important;
}

.news-inside-ad .btv-ad-placeholder span {
    color: #ffffff !important;
    font-size: 20px !important;
    line-height: 1 !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
}

.news-inside-ad .btv-ad-placeholder strong {
    color: #ffffff !important;
    font-size: 34px !important;
    line-height: 1 !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
}

.news-inside-ad .btv-ad-placeholder small {
    grid-column: 1 / -1 !important;
    color: rgba(255,255,255,.88) !important;
    font-size: 12px !important;
    line-height: 1 !important;
    font-weight: 600 !important;
}

/* =========================================================
   SIDEBAR REKLAM
========================================================= */

.detail-sidebar-ad {
    width: 100% !important;
    height: 292px !important;
    min-height: 292px !important;
    max-height: 292px !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
}

.detail-sidebar-ad img {
    object-fit: cover !important;
}

.detail-sidebar-ad .btv-ad-placeholder {
    height: 292px !important;
    min-height: 292px !important;
    display: grid !important;
    grid-template-columns: max-content max-content max-content !important;
    grid-template-rows: auto auto !important;
    align-content: center !important;
    justify-content: center !important;
    align-items: center !important;
    column-gap: 8px !important;
    row-gap: 6px !important;
    padding: 14px !important;
}

.detail-sidebar-ad .btv-ad-placeholder span {
    color: #ffffff !important;
    font-size: 18px !important;
    line-height: 1 !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
}

.detail-sidebar-ad .btv-ad-placeholder strong {
    color: #ffffff !important;
    font-size: 34px !important;
    line-height: 1 !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
}

.detail-sidebar-ad .btv-ad-placeholder small {
    grid-column: 1 / -1 !important;
    color: rgba(255,255,255,.88) !important;
    font-size: 12px !important;
    line-height: 1 !important;
    font-weight: 600 !important;
}

/* =========================================================
   FOOTER TOP AD
========================================================= */

.footer-top-ad-section {
    padding: 20px 0 !important;
    background: #f4f7fb !important;
}

.footer-top-ad {
    width: 100% !important;
    height: 100px !important;
    min-height: 100px !important;
    max-height: 100px !important;
    border-radius: 16px !important;
    overflow: hidden !important;
}

.footer-top-ad img {
    object-fit: contain !important;
    background: #b40019 !important;
}

/* =========================================================
   MOBIL / DESKTOP GİZLƏTMƏ
========================================================= */

.ad-hide-mobile {
    display: block !important;
}

.ad-hide-desktop {
    display: none !important;
}

@media (max-width: 768px) {
    .ad-hide-mobile {
        display: none !important;
    }

    .ad-hide-desktop {
        display: block !important;
    }

    .home-top-ad,
    .detail-top-ad,
    .footer-top-ad,
    .below-slider-ad-card,
    .news-inside-ad {
        height: 92px !important;
        min-height: 92px !important;
        max-height: 92px !important;
        border-radius: 12px !important;
    }

    .below-slider-ads-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    .home-top-ad .btv-ad-placeholder,
    .detail-top-ad .btv-ad-placeholder,
    .footer-top-ad .btv-ad-placeholder,
    .below-slider-ad-card .btv-ad-placeholder,
    .news-inside-ad .btv-ad-placeholder {
        height: 92px !important;
        min-height: 92px !important;
        grid-template-columns: max-content max-content max-content !important;
        column-gap: 6px !important;
    }

    .home-top-ad .btv-ad-placeholder span,
    .detail-top-ad .btv-ad-placeholder span,
    .footer-top-ad .btv-ad-placeholder span,
    .below-slider-ad-card .btv-ad-placeholder span,
    .news-inside-ad .btv-ad-placeholder span {
        font-size: 15px !important;
    }

    .home-top-ad .btv-ad-placeholder strong,
    .detail-top-ad .btv-ad-placeholder strong,
    .footer-top-ad .btv-ad-placeholder strong,
    .below-slider-ad-card .btv-ad-placeholder strong,
    .news-inside-ad .btv-ad-placeholder strong {
        font-size: 24px !important;
    }

    .home-top-ad .btv-ad-placeholder small,
    .detail-top-ad .btv-ad-placeholder small,
    .footer-top-ad .btv-ad-placeholder small,
    .below-slider-ad-card .btv-ad-placeholder small,
    .news-inside-ad .btv-ad-placeholder small {
        font-size: 11px !important;
    }

    .detail-sidebar-ad {
        height: 250px !important;
        min-height: 250px !important;
        max-height: 250px !important;
    }
}

/* =========================================================
   GLOBAL SIDE ADS
========================================================= */

.global-side-ads {
    --btv-container-width: 1300px;
    --btv-side-ad-width: 160px;
    --btv-side-gap: 18px;
}

.global-side-ad {
    position: fixed !important;
    top: 128px !important;
    width: var(--btv-side-ad-width) !important;
    height: calc(100vh - 155px) !important;
    max-height: 620px !important;
    min-height: 500px !important;
    border-radius: 0 !important;
    overflow: hidden !important;
    z-index: 60 !important;
    box-shadow: 0 18px 40px rgba(6, 26, 51, .20) !important;
}

body.header-fixed .global-side-ad {
    top: 78px !important;
    height: calc(100vh - 92px) !important;
}

.global-side-ad-left {
    left: calc((100vw - var(--btv-container-width)) / 2 - var(--btv-side-ad-width) - var(--btv-side-gap)) !important;
}

.global-side-ad-right {
    right: calc((100vw - var(--btv-container-width)) / 2 - var(--btv-side-ad-width) - var(--btv-side-gap)) !important;
}

.global-side-ad img {
    object-fit: cover !important;
}

.global-side-ad .btv-ad-placeholder {
    height: 100% !important;
    min-height: 500px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-direction: column !important;
    gap: 10px !important;
    padding: 14px !important;
}

.global-side-ad .btv-ad-placeholder span:first-child {
    writing-mode: vertical-rl !important;
    transform: rotate(180deg) !important;
    font-size: 30px !important;
    line-height: 1 !important;
    letter-spacing: 2px !important;
    font-weight: 900 !important;
}

.global-side-ad .btv-ad-placeholder strong {
    font-size: 15px !important;
    line-height: 1.2 !important;
}

.global-side-ad .btv-ad-placeholder small {
    font-size: 12px !important;
}

@media (max-width: 1700px) {
    .global-side-ads {
        --btv-side-ad-width: 145px;
        --btv-side-gap: 12px;
    }
}

@media (max-width: 1560px) {
    .global-side-ad {
        width: calc((100vw - 1300px) / 2 - 12px) !important;
    }

    .global-side-ad-left {
        left: 6px !important;
    }

    .global-side-ad-right {
        right: 6px !important;
    }
}

@media (max-width: 1450px) {
    .global-side-ads {
        display: none !important;
    }
}

/* =========================================================
   FOOTER ÜST REKLAM - DÜZ KƏNAR + ORTADA YAZI
========================================================= */

.footer-top-ad-section {
    padding: 16px 0 !important;
    background: #f4f7fb !important;
}

.footer-top-ad {
    width: 100% !important;
    height: 100px !important;
    min-height: 100px !important;
    max-height: 100px !important;
    border-radius: 0 !important;
    overflow: hidden !important;
    background: #b40019 !important;
}

.footer-top-ad .btv-ad-placeholder {
    width: 100% !important;
    height: 100px !important;
    min-height: 100px !important;
    border-radius: 0 !important;
    padding: 10px 16px !important;
    background: linear-gradient(90deg, #b40019 0%, #c9001f 45%, #8c0016 100%) !important;

    display: grid !important;
    grid-template-columns: max-content max-content max-content !important;
    grid-template-rows: auto auto !important;
    align-content: center !important;
    justify-content: center !important;
    align-items: center !important;
    column-gap: 8px !important;
    row-gap: 5px !important;
    text-align: center !important;
}

.footer-top-ad .btv-ad-placeholder span {
    color: #ffffff !important;
    font-size: 22px !important;
    line-height: 1 !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
}

.footer-top-ad .btv-ad-placeholder strong {
    color: #ffffff !important;
    font-size: 30px !important;
    line-height: 1 !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
}

.footer-top-ad .btv-ad-placeholder small {
    grid-column: 1 / -1 !important;
    color: rgba(255,255,255,.9) !important;
    font-size: 12px !important;
    line-height: 1 !important;
    font-weight: 600 !important;
}

.footer-top-ad img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 0 !important;
}


/* =========================================================
   XƏBƏR İÇİ REKLAM BLOKU - DÜZ KƏNAR
   Sonra lazım olsa bu hissəni tapıb dəyişə bilərsən.
========================================================= */

.news-inside-ad,
.news-inside-ad .btv-ad-placeholder,
.news-inside-ad picture,
.news-inside-ad img,
.detail-article-body .news-inside-ad,
.detail-article-body .news-inside-ad .btv-ad-placeholder {
    border-radius: 0 !important;
}

.news-inside-ad {
    width: 100% !important;
    height: 115px !important;
    min-height: 115px !important;
    max-height: 115px !important;
    margin: 28px 0 !important;
    overflow: hidden !important;
    background: #b40019 !important;
    padding: 0 !important;
    box-shadow: none !important;
}

.news-inside-ad .btv-ad-placeholder {
    height: 115px !important;
    min-height: 115px !important;
    padding: 10px 16px !important;
    background: linear-gradient(90deg, #b40019 0%, #c9001f 45%, #8c0016 100%) !important;

    display: grid !important;
    grid-template-columns: max-content max-content max-content !important;
    grid-template-rows: auto auto !important;
    align-content: center !important;
    justify-content: center !important;
    align-items: center !important;
    column-gap: 10px !important;
    row-gap: 5px !important;
    text-align: center !important;
}

.news-inside-ad .btv-ad-placeholder span {
    color: #ffffff !important;
    font-size: 22px !important;
    line-height: 1 !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
}

.news-inside-ad .btv-ad-placeholder strong {
    color: #ffffff !important;
    font-size: 34px !important;
    line-height: 1 !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
}

.news-inside-ad .btv-ad-placeholder small {
    grid-column: 1 / -1 !important;
    color: rgba(255,255,255,.9) !important;
    font-size: 12px !important;
    line-height: 1 !important;
    font-weight: 600 !important;
}

.news-inside-ad img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 0 !important;
}

/* =========================================================
   MÜVƏQQƏTİ: SAĞ-SOL REKLAMLARI GİZLƏ
   Lazım olanda bu hissəni sil və ya display:block et.
========================================================= */

.global-side-ads,
.global-side-ad,
.global-side-ad-left,
.global-side-ad-right,
.desktop-side-ads,
.side-ad,
.side-ad-left,
.side-ad-right {
    display: none !important;
}