/* auproductvideo.css v1.6 — 9:16 dikey video */

/* ---- Thumbnail ---- */
.aupv-slide {
    cursor: pointer !important;
    position: relative !important;
}

.aupv-play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.12);
    transition: background 0.2s;
    pointer-events: none;
    z-index: 1;
}

.aupv-slide:hover .aupv-play-overlay {
    background: rgba(0, 0, 0, 0.35);
}

.aupv-play-overlay svg {
    width: 38px;
    height: 38px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.6));
}

/* ---- Overlay ---- */
#aupv-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s ease;
}

#aupv-overlay.aupv-open {
    opacity: 1;
}

/* ---- Video Kutusu — 9:16 dikey ---- */
#aupv-box {
    position: relative;
    /* Ekran yüksekliğinin %85'ini al, genişliği orandan hesapla */
    height: min(85vh, 85svh);
    width: calc(min(85vh, 85svh) * 9 / 16);
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.8);
    transform: scale(0.94);
    transition: transform 0.25s ease;
}

#aupv-overlay.aupv-open #aupv-box {
    transform: scale(1);
}

#aupv-box iframe,
#aupv-box video {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    object-fit: cover;
}

/* ---- Kapat butonu ---- */
#aupv-close {
    position: absolute;
    top: -48px;
    right: 0;
    background: rgba(255,255,255,0.15);
    border: none;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
    font-family: sans-serif;
    transition: background 0.2s;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

#aupv-close:hover,
#aupv-close:active {
    background: rgba(255,255,255,0.3);
}

/* ---- Mobil ---- */
@media (max-width: 768px) {
    #aupv-overlay {
        background: #000;
    }

    #aupv-box {
        /* Mobilde ekran genişliğini doldur, yüksekliği orandan hesapla */
        width: 100vw;
        height: calc(100vw * 16 / 9);
        max-height: 100svh;
        border-radius: 0;
        box-shadow: none;
        transform: none !important;
    }

    #aupv-close {
        position: fixed;
        top: 12px;
        right: 12px;
        background: rgba(0,0,0,0.6);
        z-index: 1000001;
    }
}

/* ------------------------------------------------------------------ */
/* Ana kapak görseli üzeri play baloncuğu                              */
/* ------------------------------------------------------------------ */
.aupv-cover-badge {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(13, 35, 71, 0.88);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 10px 18px 10px 10px;
    cursor: pointer;
    z-index: 10;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.35);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    /* Pulse animasyonu — dikkat çeksin */
    animation: aupv-pulse 2.5s ease-in-out 1.5s 3;
}

.aupv-cover-badge:hover,
.aupv-cover-badge:active {
    transform: scale(1.06);
    background: rgba(13, 35, 71, 1);
    box-shadow: 0 6px 28px rgba(0,0,0,0.45);
}

.aupv-badge-icon {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.aupv-badge-icon svg {
    width: 32px;
    height: 32px;
    display: block;
}

.aupv-badge-label {
    white-space: nowrap;
    line-height: 1;
}

@keyframes aupv-pulse {
    0%   { transform: scale(1);    box-shadow: 0 4px 20px rgba(0,0,0,0.35); }
    50%  { transform: scale(1.07); box-shadow: 0 6px 28px rgba(13,35,71,0.6); }
    100% { transform: scale(1);    box-shadow: 0 4px 20px rgba(0,0,0,0.35); }
}

/* Mobil */
@media (max-width: 768px) {
    .aupv-cover-badge {
        bottom: 14px;
        right: 14px;
        padding: 8px 14px 8px 8px;
        font-size: 12px;
        gap: 6px;
    }

    .aupv-badge-icon svg {
        width: 28px;
        height: 28px;
    }
}
