/* Reklam alanları, üst slider, giriş vitrini ve gelip geçen reklam */

.ad-unit { position: relative; width: 100%; }
.ad-unit.ad-slot--empty { display: none; }
.ad-slot-body { width: 100%; }
.ad-item { width: 100%; }
.ad-item + .ad-item { margin-top: 10px; }
.ad-item img { display: block; width: 100%; height: auto; border-radius: var(--uc-radius-lg); }
.ad-link { display: block; border-radius: var(--uc-radius-lg); overflow: hidden; }
.ad-html { max-width: 100%; overflow: hidden; }

.ad-zone-mobile-only { display: none; }
@media (max-width: 991px) {
    .ad-zone-mobile-only { display: block; }
}

/* Mobil üst / alt şerit — yalnızca ≤991px (uc-hide-desktop ile masaüstünde gizli) */
.ad-strip-mobile-wrap {
    padding: 0;
    margin: 0 0 12px;
}
.ad-strip-mobile-wrap.ad-mstrip--mid {
    margin: 16px 0;
}
.ad-strip-mobile-wrap.ad-mstrip--top {
    margin: 8px 0 16px;
}
.ad-strip-mobile-wrap.ad-mstrip--bottom {
    margin: 12px 0 8px;
}
.ad-strip-mobile-wrap > .uc-container {
    padding-left: var(--uc-gutter);
    padding-right: var(--uc-gutter);
    max-width: none;
}
.ad-mstrip {
    display: flex;
    flex-direction: column;
    width: 100%;
    border-radius: var(--uc-radius-lg);
    overflow: hidden;
    border: 1px solid var(--uc-border);
    background: #0a0b12;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .28);
}
.ad-mstrip__stage {
    position: relative;
    width: 100%;
    line-height: 0;
    background: #0a0b12;
}
.ad-mstrip__slide {
    display: none;
    width: 100%;
}
.ad-mstrip__slide.is-active {
    display: block;
}
.ad-mstrip__slide img {
    display: block;
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    object-position: center;
    vertical-align: top;
}
.ad-mstrip__html {
    padding: 10px;
    line-height: normal;
    overflow: hidden;
}
.ad-mstrip__label {
    flex: none;
    display: block;
    text-align: center;
    padding: 7px 8px 8px;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #8b90a5;
    background: #0a0b12;
    border-top: 1px solid var(--uc-border);
    line-height: 1;
}
@media (max-width: 991px) {
    .ad-strip-mobile-wrap {
        display: block !important;
    }
    .ad-mstrip {
        display: flex !important;
    }
}
@media (min-width: 992px) {
    .ad-strip-mobile-wrap,
    .ad-zone-mobile-only {
        display: none !important;
    }
}

/* Ana sayfa üst slider */
.home-top-ad-slider { position: relative; width: 100%; }
.home-top-ad-slider__viewport {
    overflow: hidden; width: 100%; border-radius: var(--uc-radius-xl);
    border: 1px solid var(--uc-border); background: var(--uc-surface);
    touch-action: pan-y pinch-zoom;
}
.home-top-ad-slider__track { display: flex; flex-wrap: nowrap; align-items: stretch; will-change: transform; }
.home-top-ad-slider__slide { flex: 0 0 auto; }
.home-top-ad-slider__slide .ad-item img { border-radius: 0; width: 100%; aspect-ratio: 1280 / 420; object-fit: cover; }
.home-top-ad-slider__slide .ad-link { border-radius: 0; }
.home-top-ad-slider__badges { position: absolute; top: 12px; right: 12px; z-index: 5; display: flex; gap: 6px; pointer-events: none; }
.home-top-ad-slider__badge {
    display: inline-flex; align-items: center; justify-content: center; min-width: 3.5em;
    padding: 5px 11px; border-radius: 99px; font-size: .74rem; font-weight: 700; font-variant-numeric: tabular-nums;
    background: rgba(12, 13, 22, .7); color: #fff; backdrop-filter: blur(6px);
}
.home-top-ad-slider__nav {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 4;
    width: 42px; height: 42px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .15);
    display: grid; place-items: center; cursor: pointer;
    background: rgba(12, 13, 22, .6); backdrop-filter: blur(6px); transition: background var(--uc-t);
}
.home-top-ad-slider__nav:hover { background: var(--uc-primary); }
.home-top-ad-slider__nav::after { content: ""; width: 9px; height: 9px; border-top: 2px solid #fff; border-right: 2px solid #fff; }
.home-top-ad-slider__nav--prev { left: 12px; }
.home-top-ad-slider__nav--prev::after { transform: translateX(2px) rotate(-135deg); }
.home-top-ad-slider__nav--next { right: 12px; }
.home-top-ad-slider__nav--next::after { transform: translateX(-2px) rotate(45deg); }
@media (max-width: 600px) {
    .home-top-ad-slider__nav { width: 34px; height: 34px; }
}

/* Yer tutucu (yalnızca admin önizlemesi vb.) */
.ad-slot-header { display: none; }
.ad-slot-placeholder {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
    min-height: 90px; padding: 16px; text-align: center; border-radius: var(--uc-radius-lg);
    border: 1.5px dashed var(--uc-border-strong); color: var(--uc-text-3); font-size: .82rem;
}
.ad-slot-placeholder-line1 { font-weight: 700; color: var(--uc-text-2); }

/* Giriş vitrini */
.m2-spot { position: fixed; inset: 0; z-index: 1300; display: grid; place-items: center; padding: 20px; }
.m2-spot[hidden] { display: none; }
.m2-spot__backdrop { position: absolute; inset: 0; background: var(--uc-overlay); backdrop-filter: blur(4px); opacity: 0; transition: opacity .3s; }
.m2-spot__stage { position: relative; width: min(960px, 100%); opacity: 0; transform: translateY(14px) scale(.97); transition: all .32s var(--uc-ease); }
.m2-spot.is-visible .m2-spot__backdrop { opacity: 1; }
.m2-spot.is-visible .m2-spot__stage { opacity: 1; transform: none; }
.m2-spot.is-leaving .m2-spot__backdrop { opacity: 0; }
.m2-spot.is-leaving .m2-spot__stage { opacity: 0; transform: translateY(10px) scale(.98); }
.m2-spot__canvas {
    position: relative; border-radius: var(--uc-radius-xl); overflow: hidden;
    background: var(--uc-surface); border: 1px solid var(--uc-border); box-shadow: var(--uc-shadow-lg);
}
.m2-spot__media { display: block; }
.m2-spot__media img { display: block; width: 100%; height: auto; max-height: 72vh; object-fit: contain; background: #0c0d16; }
.m2-spot__shine, .m2-spot__vignette { display: none; }
.m2-spot__chrome { position: absolute; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; pointer-events: none; }
.m2-spot__chrome > * { pointer-events: auto; }
.m2-spot__chrome--top { top: 0; }
.m2-spot__chrome--bot { bottom: 0; flex-direction: column; align-items: stretch; background: linear-gradient(180deg, transparent, rgba(10, 11, 22, .8)); padding-top: 26px; }
.m2-spot__pill { padding: 4px 10px; border-radius: 99px; font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; background: var(--uc-gradient); color: #fff; }
.m2-spot__close { width: 36px; height: 36px; border-radius: 10px; border: 0; background: rgba(12, 13, 22, .7); color: #fff; font-size: 1.3rem; line-height: 1; cursor: pointer; }
.m2-spot__close:hover { background: var(--uc-danger); }
.m2-spot__progress { height: 3px; border-radius: 99px; background: rgba(255, 255, 255, .2); overflow: hidden; }
.m2-spot__progress-bar { display: block; height: 100%; background: var(--uc-gradient); transform-origin: left; }
.m2-spot__meta { display: flex; justify-content: space-between; gap: 10px; color: #fff; font-size: .82rem; }
.m2-spot__name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m2-spot__timer { color: rgba(255, 255, 255, .75); }
html.m2-spot-open { overflow: hidden; }

/* Gelip geçen reklam */
.m2-fly {
    position: fixed; bottom: 96px; z-index: 1200; width: 300px; border-radius: var(--uc-radius-lg); overflow: hidden;
    background: var(--uc-surface); border: 1px solid var(--uc-border); box-shadow: var(--uc-shadow-lg);
    transition: transform .5s var(--uc-ease), opacity .4s;
    opacity: 0;
}
.m2-fly[hidden] { display: none; }
.m2-fly.from-left { left: 18px; transform: translateX(-120%); }
.m2-fly.from-right { right: 18px; transform: translateX(120%); }
.m2-fly.from-bottom { left: 12px; right: 12px; width: auto; bottom: 84px; transform: translateY(140%); }
.m2-fly.is-in { opacity: 1; transform: none; }
.m2-fly.is-out { opacity: 0; }
.m2-fly__link { display: block; }
.m2-fly__link img { display: block; width: 100%; height: auto; }
.m2-fly__badge { position: absolute; top: 8px; left: 8px; padding: 3px 8px; border-radius: 99px; font-size: .64rem; font-weight: 800; text-transform: uppercase; background: rgba(12, 13, 22, .7); color: #fff; }
.m2-fly__close { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border-radius: 8px; border: 0; background: rgba(12, 13, 22, .7); color: #fff; font-size: 1.1rem; cursor: pointer; }
