/* ==========================================================================
   VIDEO SHOWCASE GRID (KALA FILM / EDITORIAL SEAMLESS FULL-BLEED)
   Tam Ekran Kenardan Kenara Yaslı, Sıfır Boşluklu 2'li Elit Video Grid
   ========================================================================== */

.vsg-section {
    position: relative;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    background: #000000;
    overflow: hidden;
}

/* Koyu / Açık Tema */
.vsg-theme-acik {
    background: #ffffff;
    color: #0a0a0c;
}

.vsg-theme-koyu {
    background: #000000;
    color: #ffffff;
}

/* Üst Başlık Alanı (Varsa Zarif ve Minimal) */
.vsg-header-wrap {
    padding: 60px 20px 30px;
    text-align: center;
}

.vsg-header-wrap.text-start {
    text-align: left;
    max-width: 1320px;
    margin: 0 auto;
    padding-left: 30px;
}

.vsg-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 8px;
}

.vsg-theme-koyu .vsg-badge {
    color: #94a3b8;
}

.vsg-title {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.03em;
    margin: 0 0 8px 0;
}

.vsg-desc {
    font-size: 14px;
    line-height: 1.6;
    color: #64748b;
    margin: 0 auto;
    max-width: 650px;
}

.vsg-theme-koyu .vsg-desc {
    color: #94a3b8;
}

/* 2'li Full-Bleed Grid Mimarisi: Sağ-Sola Tam Yaslı, Aralarda Sıfır Boşluk (gap: 0) */
.vsg-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* Video Kartı - Keskin Kenarlar (border-radius: 0), Sıfır Kenarlık, Sıfır Boşluk */
.vsg-card {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #000000;
    cursor: pointer;
    border-radius: 0 !important;
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    display: block;
    box-sizing: border-box !important;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.vsg-card.ratio-21-9 {
    aspect-ratio: 21 / 9;
}

/* ==========================================================================
   MOBIL UYUMLULUK: GENİŞLİK OLARAK SAĞA-SOLA TAM YASLI, 16:9 DOĞAL ORAN
   ========================================================================== */
@media (max-width: 768px) {
    .vsg-section {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .vsg-grid {
        grid-template-columns: 1fr !important;
        gap: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .vsg-card {
        width: 100% !important;
        max-width: 100% !important;
        aspect-ratio: 16 / 9 !important; /* Doğal yatay 16:9 video formatı */
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        margin: 0 !important;
        padding: 0 !important;
        border-radius: 0 !important;
    }

    .vsg-card.ratio-21-9 {
        aspect-ratio: 21 / 9 !important;
    }
}

/* Ebeveyn satır veya container'ların kenarlardan boşluk vermesini %100 engelle */
.moov-grid-row-wrap:has(.vsg-section) {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.moov-grid-row-wrap:has(.vsg-section) .container-fluid,
.moov-grid-row-wrap:has(.vsg-section) .row,
.moov-grid-row-wrap:has(.vsg-section) [class*="col-"] {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Thumbnail Görseli */
.vsg-thumb-wrap {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #000000;
}

.vsg-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease;
    filter: brightness(0.92);
    display: block;
}

/* Masaüstü Hover Efekti (Dokunmatik Cihazlarda Yapışmayı Engeller) */
@media (hover: hover) and (pointer: fine) {
    .vsg-card:hover .vsg-thumb-img {
        transform: scale(1.04);
        filter: brightness(1.02);
    }

    .vsg-card:hover .vsg-card-overlay {
        background: linear-gradient(180deg, rgba(0, 0, 0, 0) 20%, rgba(0, 0, 0, 0.28) 55%, rgba(0, 0, 0, 0.90) 100%);
    }
}

/* Dokunmatik Cihazlarda Dokunma Anı (Tactile Geri Bildirim) */
.vsg-card:active .vsg-thumb-img {
    transform: scale(0.99);
    transition: transform 0.12s ease;
}

/* Doğal Sinematik Degrade */
.vsg-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0.35) 60%, rgba(0, 0, 0, 0.84) 100%);
    pointer-events: none;
    transition: opacity 0.35s ease;
}

/* Sol Alt Elit Tipografi */
.vsg-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 34px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 3px;
    pointer-events: none;
}

.vsg-card-title {
    font-size: 26px;
    font-weight: 800;
    line-height: 1.2;
    color: #ffffff;
    margin: 0;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.65);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.vsg-card-sub {
    font-size: 13.5px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.84);
    letter-spacing: 0.02em;
    margin: 0;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

@media (max-width: 991px) {
    .vsg-card-content {
        padding: 24px 24px;
    }
    .vsg-card-title {
        font-size: 22px;
    }
    .vsg-card-sub {
        font-size: 12.5px;
    }
}

@media (max-width: 768px) {
    .vsg-card-content {
        padding: 16px 18px !important;
        background: transparent !important;
        gap: 2px !important;
    }
    .vsg-card-title {
        font-size: 18px !important;
        font-weight: 800 !important;
    }
    .vsg-card-sub {
        font-size: 12px !important;
    }
}

/* Alt Aksiyon Butonu */
.vsg-footer-action {
    text-align: center;
    padding: 50px 20px 60px;
    background: inherit;
}

.vsg-btn-editorial {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 13px 38px;
    border-radius: 50px;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.25s ease;
    border: 1.5px solid #0a0a0c;
    background: transparent;
    color: #0a0a0c;
}

.vsg-btn-editorial:hover {
    background: #0a0a0c;
    color: #ffffff;
    transform: translateY(-2px);
}

.vsg-theme-koyu .vsg-btn-editorial {
    border-color: #ffffff;
    color: #ffffff;
}

.vsg-theme-koyu .vsg-btn-editorial:hover {
    background: #ffffff;
    color: #0a0a0c;
}

/* ==========================================================================
   SINEMATIK LIGHTBOX (POPUP) - %100 SCROLL VE Z-INDEX KİLİDİ
   ========================================================================== */

html.vsg-scroll-locked,
body.vsg-scroll-locked {
    overflow: hidden !important;
    touch-action: none !important;
}

.vsg-lightbox-modal {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 2147483647 !important;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    padding: 24px;
    opacity: 0;
    transition: opacity 0.25s ease;
    box-sizing: border-box;
}

.vsg-lightbox-modal.is-active {
    display: flex !important;
    opacity: 1 !important;
}

.vsg-lightbox-dialog {
    position: relative;
    width: 100%;
    max-width: 1180px;
    background: transparent;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transform: scale(0.96);
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.vsg-lightbox-modal.is-active .vsg-lightbox-dialog {
    transform: scale(1);
}

.vsg-lightbox-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #ffffff;
    padding: 0 4px;
}

.vsg-lightbox-info {
    display: flex;
    align-items: baseline;
    gap: 12px;
    overflow: hidden;
}

.vsg-lightbox-title {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.01em;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vsg-lightbox-cat {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
}

.vsg-lightbox-close {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 40px;
    padding: 6px 16px;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.vsg-lightbox-close:hover {
    background: #ffffff;
    color: #000000;
    border-color: #ffffff;
}

.vsg-video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    background: #000000;
    border-radius: 2px;
    overflow: hidden;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.vsg-video-wrapper iframe,
.vsg-video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.vsg-video-spinner {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #000000;
    z-index: 1;
}

.vsg-spin-circle {
    width: 44px;
    height: 44px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: vsgSpinAnim 0.8s linear infinite;
}

@keyframes vsgSpinAnim {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ==========================================================================
   LIGHTBOX MOBIL VE CİHAZ OPTİMİZASYONU (TÜM CİHAZLAR İÇİN)
   ========================================================================== */
@media (max-width: 768px) {
    .vsg-lightbox-modal {
        padding: max(16px, env(safe-area-inset-top, 16px)) max(12px, env(safe-area-inset-right, 12px)) max(20px, env(safe-area-inset-bottom, 20px)) max(12px, env(safe-area-inset-left, 12px)) !important;
    }
    
    .vsg-lightbox-dialog {
        width: 100% !important;
        max-width: 100% !important;
        gap: 12px !important;
    }

    .vsg-lightbox-bar {
        padding: 0 4px !important;
        gap: 10px;
    }

    .vsg-lightbox-info {
        flex: 1;
        min-width: 0;
    }

    .vsg-lightbox-title {
        font-size: 15px !important;
        line-height: 1.3;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .vsg-lightbox-cat {
        display: none !important;
    }

    .vsg-lightbox-close {
        padding: 8px 16px !important;
        min-height: 42px !important;
        font-size: 11px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .vsg-video-wrapper {
        border-radius: 4px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.95);
    }
}

/* Yatay Modda (Landscape) Video Yüksekliği Sığdırma */
@media (max-height: 520px) and (orientation: landscape) {
    .vsg-lightbox-modal {
        padding: 6px 14px !important;
    }
    .vsg-lightbox-dialog {
        max-height: 96vh !important;
        gap: 6px !important;
    }
    .vsg-lightbox-bar {
        padding: 0 2px !important;
    }
    .vsg-lightbox-title {
        font-size: 13px !important;
    }
    .vsg-video-wrapper {
        height: calc(100vh - 60px) !important;
        padding-bottom: 0 !important;
        aspect-ratio: 16 / 9;
        margin: 0 auto;
    }
}
