/* Reklamlar — izole Shorts mini slider (anasayfa) */
.sm-ads-shorts {
    --ads-visible: 10;
    --ads-gap: 10px;
    --ads-card-ratio: 9 / 16;
    position: relative;
    z-index: 11;
    padding: 36px 0 40px;
    background: #000;
    overflow: hidden;
}

.sm-ads-shorts::before,
.sm-ads-shorts::after {
    content: '';
    display: block;
    width: min(88%, 1180px);
    height: 1px;
    margin: 0 auto;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.07) 18%,
        rgba(255, 188, 0, 0.18) 50%,
        rgba(255, 255, 255, 0.07) 82%,
        transparent 100%
    );
    pointer-events: none;
}

.sm-ads-shorts::before {
    margin-bottom: 28px;
}

.sm-ads-shorts::after {
    margin-top: 28px;
}

.sm-ads-shorts__slider-wrap {
    position: relative;
    padding: 0 48px;
}

.sm-ads-shorts__viewport {
    overflow: hidden;
    width: 100%;
}

.sm-ads-shorts__track {
    display: flex;
    align-items: stretch;
    gap: var(--ads-gap);
    transition: transform 0.55s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
    cursor: grab;
    touch-action: pan-y;
}

.sm-ads-shorts__track.is-dragging {
    cursor: grabbing;
    transition: none;
}

.sm-ads-shorts__item {
    flex: 0 0 calc((100% - (var(--ads-gap) * (var(--ads-visible) - 1))) / var(--ads-visible));
    max-width: calc((100% - (var(--ads-gap) * (var(--ads-visible) - 1))) / var(--ads-visible));
    aspect-ratio: var(--ads-card-ratio);
    min-height: 0;
    border: 0;
    border-radius: 14px;
    overflow: hidden;
    background: #111;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
    outline: 1px solid rgba(255, 255, 255, 0.08);
    outline-offset: -1px;
    transition: outline-color 0.25s ease, box-shadow 0.25s ease;
    flex-shrink: 0;
    position: relative;
    display: block;
    cursor: pointer;
    padding: 0;
    -webkit-user-select: none;
    user-select: none;
}

.sm-ads-shorts__item:hover {
    outline-color: rgba(255, 188, 0, 0.45);
    box-shadow:
        0 0 0 1px rgba(255, 188, 0, 0.2),
        0 14px 32px rgba(255, 188, 0, 0.1),
        0 18px 36px rgba(0, 0, 0, 0.55);
}

.sm-ads-shorts__item:focus-visible {
    outline: 2px solid rgba(255, 188, 0, 0.55);
    outline-offset: 3px;
}

.sm-ads-shorts__card {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.sm-ads-shorts__media {
    position: absolute;
    inset: 0;
    background: #000;
    overflow: hidden;
}

.sm-ads-shorts img.sm-ads-shorts__poster,
.sm-ads-shorts__poster {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover !important;
    object-position: center center !important;
    transition: transform 0.35s ease, filter 0.35s ease;
    filter: grayscale(15%) brightness(0.9);
}

.sm-ads-shorts__item:hover .sm-ads-shorts__poster {
    filter: grayscale(0%) brightness(1);
    transform: scale(1.04);
}

.sm-ads-shorts__shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.35) 100%);
}

.sm-ads-shorts__play {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    transform: translate(-50%, -50%);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 188, 0, 0.92);
    color: #111;
    font-size: 12px;
    box-shadow: 0 0 18px rgba(255, 188, 0, 0.4);
    pointer-events: none;
    transition: transform 0.25s ease;
}

.sm-ads-shorts__play i {
    margin-left: 2px;
}

.sm-ads-shorts__item:hover .sm-ads-shorts__play {
    transform: translate(-50%, -50%) scale(1.08);
}

.sm-ads-shorts__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.sm-ads-shorts__arrow:hover {
    background: rgba(255, 188, 0, 0.9);
    border-color: rgba(255, 188, 0, 0.5);
    color: #111;
}

.sm-ads-shorts__arrow--prev { left: 0; }
.sm-ads-shorts__arrow--next { right: 0; }

@media (max-width: 1400px) {
    .sm-ads-shorts {
        --ads-visible: 8;
    }
}

@media (max-width: 991px) {
    .sm-ads-shorts {
        --ads-visible: 5;
        padding: 30px 0 34px;
    }

    .sm-ads-shorts::before {
        margin-bottom: 22px;
    }

    .sm-ads-shorts::after {
        margin-top: 22px;
    }

    .sm-ads-shorts__slider-wrap {
        padding: 0 40px;
    }
}

@media (max-width: 767px) {
    .sm-ads-shorts {
        --ads-visible: 4;
    }

    .sm-ads-shorts__slider-wrap {
        padding: 0 36px;
    }

    .sm-ads-shorts__item {
        border-radius: 12px;
    }

    .sm-ads-shorts__play {
        width: 32px;
        height: 32px;
        font-size: 10px;
    }
}

@media (max-width: 479px) {
    .sm-ads-shorts {
        --ads-visible: 2;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sm-ads-shorts__track {
        transition: none;
    }

    .sm-ads-shorts__poster {
        transition: none;
    }
}
