/* casinomilyon591 — BetConstruct slider-bc / slider-full-sized */

.mainContentWrap {
    position: relative;
}

.layout-content-holder-bc {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    background: transparent;
}

.layout-content-holder-bc.slider-full-sized {
    position: relative;
}

/* Slider satırı — home.css grid kurallarını devre dışı bırak */
.hero-slider-stage .slider-hero-row-bc,
.hero-slider-stage .hm-row-bc.slider-hero-row-bc {
    display: block !important;
    grid-template-columns: unset !important;
    gap: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    max-width: none !important;
    width: 100% !important;
    overflow: visible;
    background: transparent;
}

.hm-row-bc.hm-row-slider-bc {
    display: block !important;
    grid-template-columns: unset !important;
    gap: 0 !important;
    margin: 0 auto !important;
    max-width: var(--max-width, 1440px);
    width: 100%;
    padding: 0 15px !important;
    box-sizing: border-box;
    overflow: visible;
    background: transparent;
}

.layout-content-holder-bc.slider-full-sized > .hm-row-bc.hm-row-slider-bc + .hm-row-bc {
    position: relative;
    z-index: 1;
    margin-top: 15px;
}

.slider-bc {
    min-width: 0;
    position: relative;
    flex-shrink: 0;
    overflow: hidden;
    width: 100%;
    height: 100%;
    background: transparent;
}

.hero-slider-stage,
.hero-slider-stage.slider-full-sized,
.hero-slider-stage.slider-boxed,
.home-hero-slider .carousel.carouselCountEnable,
.home-hero-slider .slides,
.home-hero-slider .sdr-item-bc {
    background: transparent;
}

.slider-hero-row-bc {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    max-width: none;
    display: block;
    background: transparent;
}

/* home.css .hm-row-bc grid kuralları slider satırına uygulanmasın (legacy) */
.hero-slider-stage .slider-hero-row-bc,
.hero-slider-stage .hm-row-bc.slider-hero-row-bc {
    display: block !important;
    grid-template-columns: unset !important;
    gap: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    max-width: none !important;
    overflow: visible;
}

.home-hero-slider .carousel.carouselCountEnable {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-slider-stage.slider-full-sized .home-hero-slider.slider-bc {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.home-hero-slider-inner.slides-holder {
    position: relative;
    width: 100%;
    height: 100%;
    cursor: grab;
    background: transparent;
}

.home-hero-slider-inner.slides-holder:active {
    cursor: grabbing;
}

.home-hero-slider .slides {
    position: absolute;
    inset: 0;
    margin: 0;
    padding: 0;
}

.home-hero-slider .sdr-item-holder-bc.slide-item {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    z-index: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
    border: none;
    background: transparent;
}

/* JS hazir olmadan once ilk slayti goster (bos ekran olmasin). */
.home-hero-slider:not(.is-ready) .slides .sdr-item-holder-bc.slide-item:first-child {
    opacity: 1;
    visibility: visible;
    z-index: 1;
    pointer-events: auto;
}

.home-hero-slider .sdr-item-holder-bc.slide-item.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
    pointer-events: auto;
}

/* JS hazir olduktan sonra aktif olmayan slaytlari zorla gizle —
   eski CSS/SW onbellegi veya :has desteklemeyen tarayici ust uste binmesin. */
.home-hero-slider.is-ready .sdr-item-holder-bc.slide-item:not(.active) {
    opacity: 0 !important;
    visibility: hidden !important;
    z-index: 0 !important;
    pointer-events: none !important;
}

.home-hero-slider .sdr-item-bc {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 4px;
}

.home-hero-slider .sdr-item-bc::before {
    display: none !important;
}

.home-hero-slider .sdr-image-bc,
.home-hero-slider img.sdr-image-bc,
.home-hero-slider video.sdr-image-bc {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    object-position: center center;
    background: transparent;
    border-radius: 4px;
}

@media (min-width: 768px) {
    .hero-slider-stage.slider-full-sized .home-hero-slider .sdr-image-bc,
    .hero-slider-stage.slider-full-sized .home-hero-slider img.sdr-image-bc,
    .hero-slider-stage.slider-full-sized .home-hero-slider video.sdr-image-bc,
    .hero-slider-stage.slider-boxed .home-hero-slider .sdr-image-bc,
    .hero-slider-stage.slider-boxed .home-hero-slider img.sdr-image-bc,
    .hero-slider-stage.slider-boxed .home-hero-slider video.sdr-image-bc {
        object-fit: cover;
        object-position: center center;
        background: transparent;
    }
}

.slider-mobile-media  { display: none !important; }
.slider-desktop-media { display: block !important; }

/* ── Sayaç + oklar — tek pill (BC görünümü, box-shadow hack yok) ── */
.slider-bc .carousel-count-arrow-container.with-count {
    position: absolute;
    top: 20px;
    right: 20px;
    left: auto;
    bottom: auto;
    z-index: 10;
    width: auto;
    height: auto;
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 0 2px;
    margin: 0;
    pointer-events: auto;
    background: rgba(0, 0, 0, 0.9);
    border-radius: 999px;
    overflow: hidden;
    box-sizing: border-box;
}

.slider-bc .carousel-count-arrow-container.with-count .swiper-pagination,
.home-hero-slider-counter-text {
    position: static !important;
    top: auto !important;
    right: auto !important;
    left: auto !important;
    bottom: auto !important;
    transform: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    order: 2;
    flex: 0 0 auto;
    min-width: 52px;
    height: 22px;
    line-height: 22px;
    padding: 0 10px;
    margin: 0;
    color: rgba(255, 255, 255, 0.92);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    white-space: nowrap;
    pointer-events: none;
    background: transparent;
}

.slider-bc .carousel-count-arrow-container.with-count .swiper-pagination::before,
.slider-bc .carousel-count-arrow-container.with-count .swiper-pagination::after,
.home-hero-slider-counter-text::before,
.home-hero-slider-counter-text::after {
    display: none !important;
    content: none !important;
    box-shadow: none !important;
}

.slider-bc .carousel-count-arrow-container.with-count .swiper-button-prev,
.home-hero-slider-counter-prev {
    position: static !important;
    top: auto !important;
    right: auto !important;
    left: auto !important;
    bottom: auto !important;
    order: 1;
    margin: 0 !important;
}

.slider-bc .carousel-count-arrow-container.with-count .swiper-button-next,
.home-hero-slider-counter-next {
    position: static !important;
    top: auto !important;
    right: auto !important;
    left: auto !important;
    bottom: auto !important;
    order: 3;
    margin: 0 !important;
}

.slider-bc .carousel-count-arrow-container.with-count .swiper-button-prev,
.slider-bc .carousel-count-arrow-container.with-count .swiper-button-next {
    width: 22px;
    height: 22px;
    min-width: 22px;
    border: none;
    border-radius: 50%;
    background: transparent;
    pointer-events: auto;
    cursor: pointer;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    margin-top: 0 !important;
    color: rgba(255, 255, 255, 0.92);
    flex-shrink: 0;
}

.slider-bc .carousel-count-arrow-container.with-count .swiper-button-prev::after,
.slider-bc .carousel-count-arrow-container.with-count .swiper-button-next::after {
    position: static;
    width: auto;
    height: auto;
    display: block;
    font-family: inherit;
    font-size: 13px;
    font-weight: 400;
    line-height: 1;
    color: rgba(255, 255, 255, 0.92);
    margin: 0;
}

.slider-bc .carousel-count-arrow-container.with-count .swiper-button-prev::after {
    content: "‹" !important;
}

.slider-bc .carousel-count-arrow-container.with-count .swiper-button-next::after {
    content: "›" !important;
}

.slider-bc .carousel-count-arrow-container.with-count .swiper-button-prev:hover,
.slider-bc .carousel-count-arrow-container.with-count .swiper-button-next:hover {
    background: rgba(255, 255, 255, 0.08);
}

.slider-bc .carousel-count-arrow-container.with-count .swiper-button-prev::before,
.slider-bc .carousel-count-arrow-container.with-count .swiper-button-next::before {
    display: none !important;
    background: none !important;
}

.slider-bc .carousel-count-arrow-container.with-count i {
    display: flex !important;
    background: transparent !important;
}

/* ── Ana sayfa: slider-full-sized — genişlik sabit, yükseklik +5 kademe ── */
.hero-slider-stage.slider-full-sized {
    position: relative;
    width: 100%;
    max-width: none;
    height: auto;
    max-height: none;
    min-height: 0;
    aspect-ratio: 161 / 41;
    margin: 0;
    padding: 0;
    z-index: 0;
    background: transparent;
    overflow: hidden;
    border-radius: 0;
}

.hero-slider-stage.slider-full-sized .home-hero-slider.slider-bc,
.hero-slider-stage.slider-full-sized .carousel.carouselCountEnable,
.hero-slider-stage.slider-full-sized .home-hero-slider-inner.slides-holder {
    border-radius: 0;
}

.hero-slider-stage.slider-full-sized .home-hero-slider .sdr-item-bc,
.hero-slider-stage.slider-full-sized .home-hero-slider .sdr-image-bc,
.hero-slider-stage.slider-full-sized .home-hero-slider img.sdr-image-bc,
.hero-slider-stage.slider-full-sized .home-hero-slider video.sdr-image-bc {
    border-radius: 0;
}

/* Eski absolute + margin-top:% hack — yedek (login/register vb.) */
.hero-slider-stage.slider-full-sized ~ .hm-row-bc,
.layout-content-holder-bc:not(.slider-full-sized) .hero-slider-stage.slider-full-sized + .hm-row-bc {
    position: relative;
    z-index: 1;
    margin-top: 15px;
}

/* ── Slot / Live casino: boxed ── */
.hero-slider-stage.slider-boxed {
    position: relative;
    width: 100%;
    margin: 0 0 16px;
}

.hero-slider-stage.slider-boxed .home-hero-slider.slider-bc {
    border-radius: 4px;
    overflow: hidden;
}

.hero-slider-stage.slider-boxed .carousel.carouselCountEnable {
    aspect-ratio: 3.2 / 1;
    max-height: 520px;
    min-height: 180px;
}

.slot-top-section .hero-slider-stage.slider-boxed {
    margin-bottom: 16px;
}

.slot-page-root .hero-slider-stage.slider-boxed .carousel.carouselCountEnable {
    aspect-ratio: 161 / 41;
    max-height: 430px;
    min-height: 140px;
}

.slot-page-root .home-hero-slider .sdr-image-bc,
.slot-page-root .home-hero-slider img.sdr-image-bc,
.slot-page-root .home-hero-slider video.sdr-image-bc {
    object-fit: contain;
    object-position: center center;
    background: transparent;
}

/* ── Masaüstü ── */
@media (min-width: 768px) {
    .hero-slider-stage.slider-full-sized {
        aspect-ratio: 161 / 41;
        height: auto;
        max-height: none;
        min-height: 0;
        overflow: hidden;
    }

    .hero-slider-stage.slider-boxed .carousel.carouselCountEnable {
        aspect-ratio: 3.2 / 1;
        max-height: 520px;
    }

    .slot-page-root .hero-slider-stage.slider-boxed .carousel.carouselCountEnable {
        aspect-ratio: 161 / 41;
        max-height: 430px;
        min-height: 140px;
    }

    .slot-page-root .hero-slider-stage.slider-boxed .home-hero-slider .sdr-image-bc,
    .slot-page-root .hero-slider-stage.slider-boxed .home-hero-slider img.sdr-image-bc,
    .slot-page-root .hero-slider-stage.slider-boxed .home-hero-slider video.sdr-image-bc {
        object-fit: contain;
        object-position: center center;
        background: transparent;
    }

    .slider-bc .carousel-count-arrow-container.with-count {
        top: 16px;
        right: 16px;
    }
}

/* ── Mobil ── */
@media (max-width: 767px) {
    .hm-row-bc.hm-row-slider-bc {
        padding: 0 10px;
    }

    .hero-slider-stage.slider-full-sized {
        aspect-ratio: 16 / 9;
        height: 56vw;
        max-height: 260px;
        min-height: 120px;
        overflow: hidden;
    }

    .layout-content-holder-bc.slider-full-sized > .hm-row-bc.hm-row-slider-bc + .hm-row-bc {
        margin-top: 0;
    }

    .hero-slider-stage.slider-boxed .carousel.carouselCountEnable {
        aspect-ratio: unset;
        min-height: 0;
    }

    .hero-slider-stage.slider-boxed {
        aspect-ratio: 16 / 9;
        max-height: 260px;
    }

    .slot-page-root .hero-slider-stage.slider-boxed {
        aspect-ratio: 16 / 9;
        max-height: 280px;
    }

    .hero-slider-stage.slider-boxed > .home-hero-slider {
        position: absolute;
        inset: 0;
    }

    .slider-bc .carousel-count-arrow-container.with-count {
        top: 6px;
        right: 16px;
        left: auto;
        padding: 0;
        background: transparent;
        border-radius: var(--border-radius, 4px);
    }

    .slider-bc .carousel-count-arrow-container.with-count .swiper-button-prev,
    .home-hero-slider-counter-prev,
    .slider-bc .carousel-count-arrow-container.with-count .swiper-button-next,
    .home-hero-slider-counter-next {
        display: none !important;
    }

    .slider-bc .carousel-count-arrow-container.with-count .swiper-pagination,
    .home-hero-slider-counter-text {
        order: 0;
        position: relative;
        min-width: 44px;
        height: auto;
        line-height: normal;
        padding: 4px 6px;
        font-size: 11px;
        color: rgba(255, 255, 255, 0.92);
        background: rgba(133, 15, 131, 0.7);
        border-radius: var(--border-radius, 4px);
        overflow: hidden;
    }

    html.is-mobile .slider-bc .carousel-count-arrow-container.with-count .swiper-pagination::before,
    html.is-mobile .home-hero-slider-counter-text::before {
        content: "";
        position: absolute;
        inset: 0;
        background: rgba(133, 15, 131, 0.4);
        z-index: -1;
    }

    .slider-bc .carousel-count-arrow-container.with-count .swiper-pagination::before,
    .slider-bc .carousel-count-arrow-container.with-count .swiper-pagination::after,
    .home-hero-slider-counter-text::before,
    .home-hero-slider-counter-text::after {
        display: none !important;
    }

    .slider-mobile-media  { display: block !important; }
    .slider-desktop-media { display: none !important; }
}

