/* ==========================================================================
   ANASAYFA VİDEO SLIDER BÖLÜMÜ (AÇIK ZEMİN / NEON MAVİ SİBER TEMA)
   ========================================================================== */

/* İZOLE KUTU MODELİ */
.ae-vb-section,
.ae-vb-section *,
.ae-vb-section *::before,
.ae-vb-section *::after {
    box-sizing: border-box !important;
    margin: 0;
    padding: 0;
}

.ae-vb-section {
    position: relative;
    width: 100%;
    background-color: #f8fafc;
    padding: 70px 0 85px 0;
    overflow: hidden;
    color: #0f172a;
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

/* --------------------------------------------------------------------------
   ARKA PLAN KATMANLARI
   -------------------------------------------------------------------------- */
.ae-vb-grid-bg {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(to right, rgba(2, 132, 199, 0.05) 1px, transparent 1px),
                      linear-gradient(to bottom, rgba(2, 132, 199, 0.05) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
}

.ae-vb-scanline {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(56, 189, 248, 0.06) 50%, transparent 100%);
    background-size: 100% 200%;
    animation: ae-vb-scan 9s linear infinite;
    pointer-events: none;
}

@keyframes ae-vb-scan {
    0%   { background-position: 0 -100%; }
    100% { background-position: 0 100%; }
}

.ae-vb-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    animation: ae-vb-glow-pulse 7s ease-in-out infinite alternate;
}

.ae-vb-glow-1 {
    width: 500px; height: 500px;
    top: -120px; right: -100px;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.15) 0%, transparent 70%);
}

.ae-vb-glow-2 {
    width: 600px; height: 600px;
    bottom: -160px; left: -120px;
    background: radial-gradient(circle, rgba(2, 132, 199, 0.16) 0%, transparent 70%);
    animation-delay: 3.5s;
}

@keyframes ae-vb-glow-pulse {
    0%   { transform: scale(1) translate(0, 0); opacity: 0.6; }
    100% { transform: scale(1.2) translate(30px, -20px); opacity: 1; }
}

/* --------------------------------------------------------------------------
   NEON GEOMETRİK HAREKETLİ ŞEKİLLER (dekor katmanı, içeriğin arkasında)
   -------------------------------------------------------------------------- */
.ae-vb-shapes {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
    --ae-cyan: #00e5ff;
    --ae-blue: #0284c7;
    --ae-violet: #8b5cf6;
    --ae-pink: #ff2bd6;
}

.ae-vb-shapes svg {
    position: absolute;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    overflow: visible;
    will-change: transform;
    filter: drop-shadow(0 0 5px currentColor);
}

.ae-vb-shapes svg * { vector-effect: non-scaling-stroke; }
.ae-vb-shapes .ae-vb-fill { fill: currentColor; stroke: none; }

/* Ortak hareketler */
@keyframes ae-vb-float {
    0%, 100% { transform: translate3d(0, 0, 0) rotate(var(--r0, 0deg)); }
    50%      { transform: translate3d(var(--dx, 12px), var(--dy, -22px), 0) rotate(var(--r1, 12deg)); }
}
@keyframes ae-vb-spin { to { transform: rotate(360deg); } }

/* Akan neon çizgiler */
.ae-vb-stream {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    opacity: 0.85;
    background:
        linear-gradient(90deg, transparent, rgba(0, 229, 255, 0.95), transparent) no-repeat,
        linear-gradient(90deg, transparent, rgba(2, 132, 199, 0.18) 20%, rgba(2, 132, 199, 0.18) 80%, transparent);
    background-size: 22% 100%, 100% 100%;
    background-position: -30% 0, 0 0;
    animation: ae-vb-stream 7s linear infinite;
}
.ae-vb-stream-1 { top: 24%; }
.ae-vb-stream-2 { bottom: 10%; animation-duration: 9s; animation-direction: reverse; animation-delay: -3s; }
@keyframes ae-vb-stream { to { background-position: 130% 0, 0 0; } }

/* Kamera vizörü köşeleri */
.ae-vb-vf {
    position: absolute;
    width: 38px;
    height: 38px;
    border: 0 solid var(--ae-blue);
    opacity: 0.5;
    animation: ae-vb-vf 3.2s ease-in-out infinite;
}
.ae-vb-vf-tl { top: 20px;    left: 20px;  border-top-width: 2px;    border-left-width: 2px; }
.ae-vb-vf-tr { top: 20px;    right: 20px; border-top-width: 2px;    border-right-width: 2px; }
.ae-vb-vf-bl { bottom: 20px; left: 20px;  border-bottom-width: 2px; border-left-width: 2px; }
.ae-vb-vf-br { bottom: 20px; right: 20px; border-bottom-width: 2px; border-right-width: 2px; }
@keyframes ae-vb-vf {
    0%, 100% { opacity: 0.35; transform: scale(1); }
    50%      { opacity: 0.85; transform: scale(1.12); }
}

.ae-vb-rec {
    position: absolute;
    top: 26px;
    left: 70px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: rgba(15, 23, 42, 0.45);
}
.ae-vb-rec::before {
    content: "";
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--ae-pink);
    box-shadow: 0 0 10px var(--ae-pink);
    animation: ae-vb-blink 1s infinite alternate;
}

/* Yörünge (başlığın arkasında) */
.ae-vb-shapes svg.ae-vb-orbit {
    top: -150px;
    left: 50%;
    width: 520px;
    height: 520px;
    margin-left: -260px;
    color: var(--ae-blue);
    opacity: 0.4;
    stroke-width: 1.5;
    filter: none;
    animation: ae-vb-spin 48s linear infinite;
}
.ae-vb-orbit-in { color: var(--ae-violet); }
.ae-vb-orbit .ae-vb-fill { color: var(--ae-cyan); filter: drop-shadow(0 0 8px var(--ae-cyan)); }

/* Oynat üçgenleri */
.ae-vb-sh-play  { top: 6%; left: 3.5%; width: 92px; height: 92px; color: var(--ae-cyan); opacity: 0.8;
                  --r0: -8deg; --r1: 10deg; --dx: 14px; --dy: -24px; animation: ae-vb-float 9s ease-in-out infinite; }
.ae-vb-sh-play2 { bottom: 12%; right: 5%; width: 58px; height: 58px; color: var(--ae-violet); opacity: 0.7;
                  --r0: 14deg; --r1: -6deg; --dx: -12px; --dy: -18px; animation: ae-vb-float 7s ease-in-out infinite -2s; }

/* Halka */
.ae-vb-sh-ring { top: 12%; right: 6%; width: 120px; height: 120px; color: var(--ae-blue); opacity: 0.55;
                 --r0: 0deg; --r1: 20deg; --dx: -10px; --dy: 18px; animation: ae-vb-float 11s ease-in-out infinite; }
.ae-vb-ring-in { color: var(--ae-cyan); transform-origin: 60px 60px; animation: ae-vb-spin 14s linear infinite; }

/* Altıgen / eşkenar dörtgen / üçgen */
.ae-vb-sh-hex { top: 46%; left: 1.2%; width: 70px; height: 70px; color: var(--ae-violet); opacity: 0.6;
                --r0: 0deg; --r1: 60deg; --dx: 10px; --dy: -26px; animation: ae-vb-float 12s ease-in-out infinite -4s; }
.ae-vb-sh-dia { bottom: 7%; left: 10%; width: 60px; height: 60px; color: var(--ae-cyan); opacity: 0.75;
                --r0: 0deg; --r1: 90deg; --dx: 16px; --dy: -14px; animation: ae-vb-float 10s ease-in-out infinite -1s; }
.ae-vb-sh-tri { top: 60%; right: 1.8%; width: 54px; height: 54px; color: var(--ae-pink); opacity: 0.5;
                --r0: -10deg; --r1: 24deg; --dx: -8px; --dy: -20px; animation: ae-vb-float 8s ease-in-out infinite -3s; }

/* Chevron ok akışı */
.ae-vb-chev { color: var(--ae-blue); stroke-width: 3; }
.ae-vb-chev polyline { animation: ae-vb-chev 1.8s ease-in-out infinite; }
.ae-vb-chev polyline:nth-child(2) { animation-delay: 0.22s; }
.ae-vb-chev polyline:nth-child(3) { animation-delay: 0.44s; }
.ae-vb-chev-1 { bottom: 4%; left: 3%; width: 90px; height: 40px; }
.ae-vb-chev-2 { top: 5%; right: 17%; width: 70px; height: 31px; color: var(--ae-cyan); }
@keyframes ae-vb-chev {
    0%, 100% { opacity: 0.12; transform: translateX(-4px); }
    50%      { opacity: 1;    transform: translateX(6px); }
}

/* Çapraz oklar */
.ae-vb-arrow-ne { width: 40px; height: 40px; stroke-width: 2.5; }
.ae-vb-arrow-ne-1 { top: 38%; right: 3.5%; color: var(--ae-cyan); opacity: 0.8; animation: ae-vb-arrow 3.4s ease-in-out infinite; }
.ae-vb-arrow-ne-2 { bottom: 24%; left: 3%; color: var(--ae-violet); opacity: 0.65; animation: ae-vb-arrow 4s ease-in-out infinite -1.5s; }
@keyframes ae-vb-arrow {
    0%, 100% { transform: translate(-6px, 6px); }
    50%      { transform: translate(8px, -8px); }
}

/* Artı işaretleri */
.ae-vb-plus { width: 18px; height: 18px; stroke-width: 2.5; animation: ae-vb-plus 3s ease-in-out infinite; }
.ae-vb-plus-1 { top: 18%; left: 16%; color: var(--ae-blue); }
.ae-vb-plus-2 { top: 30%; right: 22%; color: var(--ae-cyan); animation-delay: -1s; }
.ae-vb-plus-3 { bottom: 20%; left: 34%; color: var(--ae-violet); animation-delay: -2s; }
.ae-vb-plus-4 { bottom: 28%; right: 30%; color: var(--ae-blue); animation-delay: -0.5s; }
@keyframes ae-vb-plus {
    0%, 100% { opacity: 0.25; transform: scale(0.8) rotate(0deg); }
    50%      { opacity: 1;    transform: scale(1.3) rotate(90deg); }
}

/* Yayın dalgası */
.ae-vb-pulse { position: absolute; bottom: 5%; right: 14%; width: 90px; height: 90px; }
.ae-vb-pulse span {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid var(--ae-cyan);
    box-shadow: 0 0 12px rgba(0, 229, 255, 0.5);
    opacity: 0;
    animation: ae-vb-pulse 3.6s ease-out infinite;
}
.ae-vb-pulse span:nth-child(2) { animation-delay: 1.2s; }
.ae-vb-pulse span:nth-child(3) { animation-delay: 2.4s; }
@keyframes ae-vb-pulse {
    0%   { transform: scale(0.2); opacity: 0.8; }
    100% { transform: scale(1.6); opacity: 0; }
}

/* Yükselen parçacıklar */
.ae-vb-pt {
    position: absolute;
    bottom: -12px;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--ae-cyan);
    box-shadow: 0 0 10px var(--ae-cyan);
    opacity: 0;
    animation: ae-vb-rise 12s linear infinite;
}
.ae-vb-pt:nth-of-type(1) { left: 6%;  animation-delay: 0s; }
.ae-vb-pt:nth-of-type(2) { left: 17%; animation-delay: -4s;  animation-duration: 15s; background: var(--ae-violet); box-shadow: 0 0 10px var(--ae-violet); }
.ae-vb-pt:nth-of-type(3) { left: 29%; animation-delay: -8s; }
.ae-vb-pt:nth-of-type(4) { left: 44%; animation-delay: -2s;  animation-duration: 14s; }
.ae-vb-pt:nth-of-type(5) { left: 58%; animation-delay: -10s; background: var(--ae-blue); box-shadow: 0 0 10px var(--ae-blue); }
.ae-vb-pt:nth-of-type(6) { left: 71%; animation-delay: -6s;  animation-duration: 16s; }
.ae-vb-pt:nth-of-type(7) { left: 84%; animation-delay: -1s;  background: var(--ae-pink); box-shadow: 0 0 10px var(--ae-pink); }
.ae-vb-pt:nth-of-type(8) { left: 94%; animation-delay: -9s;  animation-duration: 13s; }
@keyframes ae-vb-rise {
    0%   { transform: translateY(0) scale(0.6); opacity: 0; }
    15%  { opacity: 0.9; }
    85%  { opacity: 0.6; }
    100% { transform: translateY(-640px) scale(1.2); opacity: 0; }
}

/* Ekran dışındayken animasyonları durdur (performans) */
.ae-vb-shapes.ae-vb-paused *,
.ae-vb-shapes.ae-vb-paused *::before { animation-play-state: paused !important; }

/* Mobil: daha sade ve hafif */
@media (max-width: 768px) {
    .ae-vb-shapes .ae-vb-hm { display: none; }
    .ae-vb-shapes { opacity: 0.85; }
    .ae-vb-vf { width: 24px; height: 24px; top: 12px; }
    .ae-vb-vf-bl, .ae-vb-vf-br { top: auto; bottom: 12px; }
    .ae-vb-vf-tl, .ae-vb-vf-bl { left: 12px; }
    .ae-vb-vf-tr, .ae-vb-vf-br { right: 12px; }
    .ae-vb-shapes svg.ae-vb-orbit { width: 340px; height: 340px; margin-left: -170px; top: -90px; }
    .ae-vb-sh-play { width: 58px; height: 58px; top: 3%; left: 3%; }
    .ae-vb-sh-ring { width: 78px; height: 78px; top: 4%; right: 3%; }
    .ae-vb-sh-hex  { width: 44px; height: 44px; }
    .ae-vb-sh-dia  { width: 40px; height: 40px; }
    .ae-vb-chev-1  { width: 62px; height: 28px; }
    .ae-vb-pt:nth-of-type(n+5) { display: none; }
}

/* Hareketi azaltmak isteyenler için */
@media (prefers-reduced-motion: reduce) {
    .ae-vb-shapes *, .ae-vb-shapes *::before { animation: none !important; }
    .ae-vb-pt { display: none; }
}

.ae-vb-container {
    position: relative;
    z-index: 5;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --------------------------------------------------------------------------
   BAŞLIK
   -------------------------------------------------------------------------- */
.ae-vb-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 42px auto;
}

.ae-vb-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 20px;
    background: rgba(2, 132, 199, 0.08);
    border: 1px solid rgba(2, 132, 199, 0.3);
    color: #0284c7;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.8px;
    margin-bottom: 12px;
    box-shadow: 0 0 15px rgba(2, 132, 199, 0.12);
}

.ae-vb-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: #00f0ff;
    box-shadow: 0 0 10px #00f0ff;
    animation: ae-vb-blink 1.5s infinite alternate;
}

@keyframes ae-vb-blink {
    0%   { opacity: 0.4; }
    100% { opacity: 1; transform: scale(1.2); }
}

.ae-vb-title {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.25;
    color: #0f172a;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.ae-vb-blue {
    color: #0284c7;
    text-shadow: 0 0 20px rgba(2, 132, 199, 0.2);
}

.ae-vb-subtitle {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* --------------------------------------------------------------------------
   SLIDER
   -------------------------------------------------------------------------- */
.ae-vb-slider {
    position: relative;
}

.ae-vb-track {
    display: flex;
    gap: 22px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding: 12px 4px 22px 4px;
    scrollbar-width: none;           /* Firefox */
    -ms-overflow-style: none;        /* IE/Edge */
    cursor: grab;
}

.ae-vb-track::-webkit-scrollbar { display: none; }

.ae-vb-track.ae-vb-dragging {
    cursor: grabbing;
    scroll-snap-type: none;
    scroll-behavior: auto;
    user-select: none;
}

/* KART: masaüstünde 4 video görünür */
.ae-vb-card {
    flex: 0 0 calc((100% - 3 * 22px) / 4);
    min-width: 0;
    scroll-snap-align: start;
    cursor: pointer;
    outline: none;
}

.ae-vb-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 9 / 16;
    border-radius: 20px;
    overflow: hidden;
    background: #0f172a;
    border: 4px solid #ffffff;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.14), 0 0 18px rgba(2, 132, 199, 0.1);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.3s ease;
}

.ae-vb-card:hover .ae-vb-thumb,
.ae-vb-card:focus-visible .ae-vb-thumb {
    transform: translateY(-8px);
    border-color: #0284c7;
    box-shadow: 0 24px 50px rgba(2, 132, 199, 0.28), 0 0 28px rgba(0, 240, 255, 0.35);
}

/* Kapak / video önizlemesi */
.ae-vb-cover {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.ae-vb-card:hover .ae-vb-cover { transform: scale(1.08); }

/* Instagram canlı önizleme (kapak yokken) */
.ae-vb-live {
    position: absolute;
    left: 0;
    top: 0;
    border: 0;
    transform-origin: 0 0;
    background: #000;
    pointer-events: none;
}

/* Yedek kapak */
.ae-vb-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.95);
    font-size: 3.4rem;
    background: linear-gradient(135deg, #1e293b, #334155);
}

.ae-vb-ph-instagram { background: linear-gradient(135deg, #833ab4 0%, #fd1d1d 55%, #fcb045 100%); }
.ae-vb-ph-youtube   { background: linear-gradient(135deg, #7f1d1d, #dc2626); }

/* Alt karartma + başlık (her zaman görünür) */
.ae-vb-thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.05) 40%, rgba(15, 23, 42, 0.88) 100%);
    pointer-events: none;
    z-index: 2;
}

.ae-vb-caption {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 16px 16px 18px 16px;
    z-index: 4;
}

.ae-vb-caption h3 {
    color: #ffffff;
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.35;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Tür rozeti */
.ae-vb-type {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 20px;
    background: rgba(225, 29, 72, 0.92);
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

/* Oynat butonu */
.ae-vb-play {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 4;
    width: 62px;
    height: 62px;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 4px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #ffffff;
    font-size: 1.25rem;
    transition: all 0.3s ease;
}

.ae-vb-card:hover .ae-vb-play {
    background: #0284c7;
    border-color: #0284c7;
    transform: translate(-50%, -50%) scale(1.12);
    box-shadow: 0 0 30px rgba(2, 132, 199, 0.65);
}

/* --------------------------------------------------------------------------
   SLIDER OKLARI
   -------------------------------------------------------------------------- */
.ae-vb-arrow {
    position: absolute;
    top: 50%;
    z-index: 10;
    width: 46px;
    height: 46px;
    margin-top: -34px;
    border-radius: 50%;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #0284c7;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.12);
    transition: all 0.25s ease;
}

.ae-vb-arrow:hover {
    background: #0284c7;
    color: #ffffff;
    border-color: #0284c7;
    box-shadow: 0 8px 22px rgba(2, 132, 199, 0.4);
}

.ae-vb-prev { left: -16px; }
.ae-vb-next { right: -16px; }

/* --------------------------------------------------------------------------
   İLERLEME ÇUBUĞU
   -------------------------------------------------------------------------- */
.ae-vb-progress {
    position: relative;
    width: 100%;
    max-width: 280px;
    height: 4px;
    margin: 4px auto 0 auto;
    border-radius: 4px;
    background: rgba(2, 132, 199, 0.14);
    overflow: hidden;
}

.ae-vb-progress span {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 30%;
    border-radius: 4px;
    background: linear-gradient(90deg, #0284c7, #00f0ff);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.6);
    transition: left 0.15s linear, width 0.15s linear;
}

/* --------------------------------------------------------------------------
   ALT BUTON
   -------------------------------------------------------------------------- */
.ae-vb-action {
    display: flex;
    justify-content: center;
    margin-top: 38px;
}

.ae-vb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 38px;
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: #ffffff;
    font-size: 0.92rem;
    font-weight: 800;
    border-radius: 12px;
    text-decoration: none;
    letter-spacing: 0.3px;
    box-shadow: 0 8px 24px rgba(2, 132, 199, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.ae-vb-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 32px rgba(2, 132, 199, 0.45);
    background: linear-gradient(135deg, #0369a1 0%, #0284c7 100%);
    color: #ffffff;
}

.ae-vb-btn i { font-size: 1rem; transition: transform 0.3s ease; }
.ae-vb-btn:hover i { transform: translateX(6px); }

/* ==========================================================================
   MODAL (body'ye taşındığı için bölüm dışında, global tanımlı)
   ========================================================================== */
.ae-vb-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

.ae-vb-modal.ae-vb-active { opacity: 1; visibility: visible; }

.ae-vb-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(3, 10, 25, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.ae-vb-modal-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 100vw;
    max-height: 100vh;
    padding: 20px;
    box-sizing: border-box;
}

.ae-vb-modal-body {
    display: flex;
    align-items: center;
    justify-content: center;
}

.ae-vb-modal-video {
    max-width: 92vw;
    max-height: 80vh;
    border-radius: 16px;
    background: #000;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
}

/* iframe çerçeveleri */
.ae-vb-frame {
    position: relative;
    background: #000;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
}

.ae-vb-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.ae-vb-frame-instagram {
    width: min(440px, 92vw);
    height: min(680px, 78vh);
}

.ae-vb-frame-portrait {
    width: min(400px, 92vw);
    height: min(720px, 78vh);
}

.ae-vb-frame-landscape {
    width: min(960px, 92vw);
    aspect-ratio: 16 / 9;
}

.ae-vb-modal-title {
    margin-top: 14px;
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 600;
    text-align: center;
    max-width: 90vw;
}

/* Kapat / gezinme (ekrana sabit) */
.ae-vb-modal-close,
.ae-vb-modal-nav {
    position: fixed;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.25s ease;
}

.ae-vb-modal-close {
    top: 18px;
    right: 18px;
    width: 44px;
    height: 44px;
    font-size: 1.15rem;
}

.ae-vb-modal-close:hover {
    background: #e11d48;
    border-color: #e11d48;
    transform: rotate(90deg);
}

.ae-vb-modal-nav {
    top: 50%;
    margin-top: -25px;
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
}

.ae-vb-modal-nav:hover {
    background: #0284c7;
    border-color: #0284c7;
    transform: scale(1.1);
}

.ae-vb-modal-prev { left: 22px; }
.ae-vb-modal-next { right: 22px; }

/* --------------------------------------------------------------------------
   RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 1200px) {
    /* Tablet: 3 video */
    .ae-vb-card { flex: 0 0 calc((100% - 2 * 18px) / 3); }
    .ae-vb-track { gap: 18px; }
    .ae-vb-prev { left: -8px; }
    .ae-vb-next { right: -8px; }
}

@media (max-width: 768px) {
    .ae-vb-section { padding: 50px 0 60px 0; }
    .ae-vb-container { padding: 0 14px; }

    .ae-vb-header { margin-bottom: 26px; }
    .ae-vb-title { font-size: 1.6rem; }
    .ae-vb-subtitle { font-size: 0.86rem; }

    /* MOBİL: tek satırda 2 video, parmakla kaydırmalı */
    .ae-vb-track { gap: 12px; padding: 8px 2px 16px 2px; }
    .ae-vb-card { flex: 0 0 calc((100% - 12px) / 2); }

    .ae-vb-thumb { border-radius: 16px; border-width: 3px; }
    .ae-vb-caption { padding: 10px 10px 12px 10px; }
    .ae-vb-caption h3 { font-size: 0.8rem; }
    .ae-vb-type { top: 8px; left: 8px; padding: 4px 9px; font-size: 0.6rem; }
    .ae-vb-play { width: 48px; height: 48px; font-size: 1rem; }
    .ae-vb-placeholder { font-size: 2.6rem; }

    /* Mobilde oklar gizli, parmakla kaydırılır */
    .ae-vb-arrow { display: none; }

    .ae-vb-action { margin-top: 28px; }
    .ae-vb-btn { padding: 12px 26px; font-size: 0.84rem; width: 100%; }

    /* Modal: gezinme okları altta */
    .ae-vb-modal-content { padding: 10px; }
    .ae-vb-modal-nav {
        top: auto;
        bottom: 18px;
        margin-top: 0;
        width: 44px;
        height: 44px;
        font-size: 1rem;
    }
    .ae-vb-modal-prev { left: 16px; }
    .ae-vb-modal-next { right: 16px; }
    .ae-vb-modal-close { top: 12px; right: 12px; }
}

@media (max-width: 380px) {
    .ae-vb-container { padding: 0 10px; }
    .ae-vb-track { gap: 8px; }
    .ae-vb-card { flex: 0 0 calc((100% - 8px) / 2); }
}