/* =========================================================
   VIDEO PRODÜKSİYON — Özel oynatıcı
   Sadece proje-detay.php'de "Video URL" dolu olan projelerde
   yüklenir. Diğer sayfaları/stilleri etkilemez.
   ========================================================= */

.vp-section {
    width: calc(100% - 56px);
    max-width: 1872px;
    margin: 40px auto 0;
}

.vp-head {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 28px;
}

.vp-num {
    font-family: 'Athletics', sans-serif;
    font-size: 56px;
    font-weight: 800;
    line-height: 1;
    color: var(--primary);
    letter-spacing: -1px;
}

.vp-title {
    font-family: 'Athletics', sans-serif;
    font-size: 30px;
    font-weight: 700;
    color: var(--text-dark);
}

.vp-desc {
    font-family: 'Athletics', sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.6;
    color: #848484;
    max-width: 760px;
    margin-bottom: 36px;
}

/* ---------- Sahne ---------- */
.vp-stage {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 32px;
    overflow: hidden;
    background: #0b0c0e;
    box-shadow: 0 30px 80px rgba(16, 17, 20, 0.18);
    user-select: none;
}

.vp-stage.is-fullscreen {
    border-radius: 0;
    box-shadow: none;
}

/* YouTube iframe — chrome'u tamamen gizli, tıklamayı biz yönetiyoruz */
.vp-frame {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    pointer-events: none;
}

/* iframe üzerinde kendi tıklama katmanımız (YT logosuna gidilmesin) */
.vp-hit {
    position: absolute;
    inset: 0;
    cursor: pointer;
    background: transparent;
}

/* ---------- Kapak / poster ---------- */
.vp-poster {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0b0c0e;
    cursor: pointer;
    z-index: 3;
    transition: opacity .45s ease, visibility .45s ease;
}

.vp-poster img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vp-poster::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(11, 12, 14, .12) 0%, rgba(11, 12, 14, .55) 100%);
}

.vp-stage.is-started .vp-poster {
    opacity: 0;
    visibility: hidden;
}

.vp-play-big {
    position: relative;
    z-index: 2;
    width: 108px;
    height: 108px;
    border: 0;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 0 0 0 rgba(0, 174, 190, .45);
    transition: transform .3s cubic-bezier(.22, 1, .36, 1), box-shadow .3s ease;
}

.vp-play-big svg {
    margin-left: 6px;
}

.vp-poster:hover .vp-play-big {
    transform: scale(1.08);
    box-shadow: 0 0 0 18px rgba(0, 174, 190, .18);
}

.vp-poster-label {
    position: absolute;
    left: 44px;
    bottom: 44px;
    z-index: 2;
    font-family: 'Athletics', sans-serif;
    color: #fff;
    text-align: left;
}

.vp-poster-label strong {
    display: block;
    font-size: 34px;
    font-weight: 700;
    line-height: 1.15;
}

.vp-poster-label span {
    display: block;
    margin-top: 6px;
    font-size: 15px;
    font-weight: 400;
    opacity: .72;
}

/* ---------- Yükleniyor ---------- */
.vp-spinner {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: none;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.vp-stage.is-buffering .vp-spinner {
    display: flex;
}

.vp-spinner i {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, .22);
    border-top-color: var(--primary);
    animation: vp-spin .8s linear infinite;
}

@keyframes vp-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ---------- Kontrol çubuğu ---------- */
.vp-bar {
    position: absolute;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 18px;
    width: min(78%, 900px);
    padding: 14px 24px;
    border-radius: 999px;
    background: rgba(16, 17, 20, .92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility .3s ease, transform .3s ease;
}

.vp-stage.is-started .vp-bar {
    opacity: 1;
    visibility: visible;
}

.vp-stage.is-started.is-idle .vp-bar {
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(10px);
}

.vp-btn {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: color .2s ease, background .2s ease;
}

.vp-btn:hover {
    color: var(--primary);
    background: rgba(255, 255, 255, .08);
}

.vp-btn-play {
    width: 40px;
    height: 40px;
}

.vp-btn .vp-ico-pause,
.vp-stage.is-playing .vp-btn .vp-ico-play {
    display: none;
}

.vp-stage.is-playing .vp-btn .vp-ico-pause {
    display: block;
}

.vp-btn .vp-ico-unmute {
    display: none;
}

.vp-stage.is-muted .vp-btn .vp-ico-unmute {
    display: block;
}

.vp-stage.is-muted .vp-btn .vp-ico-mute {
    display: none;
}

/* Seek */
.vp-seek {
    flex: 1 1 auto;
    position: relative;
    height: 20px;
    display: flex;
    align-items: center;
    cursor: pointer;
    touch-action: none;
}

.vp-seek-track {
    position: relative;
    width: 100%;
    height: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .22);
    overflow: visible;
}

.vp-seek-buffer {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, .18);
}

.vp-seek-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    border-radius: 999px;
    background: var(--primary);
}

.vp-seek-knob {
    position: absolute;
    top: 50%;
    left: 0;
    width: 13px;
    height: 13px;
    margin-left: -6.5px;
    border-radius: 50%;
    background: #fff;
    transform: translateY(-50%) scale(.85);
    transition: transform .18s ease;
    pointer-events: none;
}

.vp-seek:hover .vp-seek-knob {
    transform: translateY(-50%) scale(1.15);
}

/* Süre */
.vp-time {
    flex: 0 0 auto;
    font-family: 'Athletics', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, .78);
    letter-spacing: .3px;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.vp-time b {
    color: #fff;
    font-weight: 500;
}

/* Ses */
.vp-volume {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 8px;
}

.vp-volume-slider {
    width: 0;
    height: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .22);
    position: relative;
    cursor: pointer;
    opacity: 0;
    transition: width .25s ease, opacity .25s ease;
    touch-action: none;
}

.vp-volume:hover .vp-volume-slider,
.vp-volume-slider.is-open {
    width: 72px;
    opacity: 1;
}

.vp-volume-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    border-radius: 999px;
    background: #fff;
}

/* ---------- Alt bilgi ---------- */
.vp-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 24px;
}

.vp-meta-tag {
    font-family: 'Athletics', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #545454;
    padding: 8px 18px;
    border: 1px solid #E4E4E4;
    border-radius: 999px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .vp-stage {
        border-radius: 24px;
    }

    .vp-bar {
        width: calc(100% - 32px);
        gap: 12px;
        padding: 12px 16px;
        bottom: 16px;
    }

    .vp-play-big {
        width: 84px;
        height: 84px;
    }

    .vp-poster-label {
        left: 28px;
        bottom: 92px;
    }

    .vp-poster-label strong {
        font-size: 24px;
    }

    .vp-num {
        font-size: 42px;
    }

    .vp-title {
        font-size: 24px;
    }
}

@media (max-width: 640px) {
    .vp-section {
        width: calc(100% - 24px);
    }

    .vp-stage {
        border-radius: 18px;
    }

    .vp-bar {
        gap: 8px;
        padding: 10px 12px;
    }

    .vp-time {
        font-size: 11px;
    }

    .vp-volume {
        display: none;
    }

    .vp-play-big {
        width: 66px;
        height: 66px;
    }

    .vp-play-big svg {
        width: 22px;
        height: 26px;
    }

    .vp-poster-label {
        left: 18px;
        bottom: 78px;
    }

    .vp-desc {
        font-size: 16px;
    }
}
