/* Bookim — Video Galeri sinematik UI (yalnızca görsel) */

.video-gallery-page {
    --vg-theme: #ff3b3b;
    --vg-theme-soft: var(--theme, #ff7b6b);
    --vg-cinema-dark: #0b1026;
    --vg-cinema-mid: #111827;
    --vg-cinema-panel-from: #101322;
    --vg-cinema-panel-to: #252b3f;
    --vg-header: var(--header, #11112c);
    --vg-text: var(--text, #797979);
    --vg-border: var(--border, #e6e6e6);
    --vg-shadow: 0 8px 32px rgba(11, 16, 38, 0.12);
    background: linear-gradient(180deg, #fffaf8 0%, #fff 28%, #f8fafc 100%);
    overflow: hidden;
}

.video-gallery-page__bg-dots {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.28;
    background-image: radial-gradient(circle at 1px 1px, rgba(11, 16, 38, 0.07) 1px, transparent 0);
    background-size: 24px 24px;
}

.video-gallery-page__bg-reel {
    position: absolute;
    right: -3rem;
    top: 28%;
    width: 220px;
    height: 220px;
    border: 14px solid rgba(11, 16, 38, 0.05);
    border-radius: 50%;
    pointer-events: none;
    opacity: 0.65;
}

.video-gallery-page__bg-reel::before {
    content: "";
    position: absolute;
    inset: 22%;
    border: 3px dashed rgba(11, 16, 38, 0.07);
    border-radius: 50%;
}

/* ── Hero ── */

.video-gallery-hero {
    position: relative;
    padding: 3.25rem 0 2.25rem;
}

.video-gallery-hero__blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(68px);
    pointer-events: none;
    opacity: 0.55;
}

.video-gallery-hero__blob--1 {
    width: 320px;
    height: 320px;
    top: -80px;
    left: -60px;
    background: linear-gradient(135deg, rgba(255, 59, 59, 0.22), rgba(255, 200, 190, 0.14));
}

.video-gallery-hero__blob--2 {
    width: 280px;
    height: 280px;
    top: 20px;
    right: 4%;
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.12), rgba(255, 138, 0, 0.1));
}

.video-gallery-hero__inner {
    position: relative;
    z-index: 1;
}

.video-gallery-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.85rem;
    border-radius: 100px;
    background: rgba(255, 59, 59, 0.1);
    color: var(--vg-theme);
    font-size: 0.8125rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.video-gallery-hero__title {
    font-size: clamp(1.9rem, 4.2vw, 3rem);
    font-weight: 800;
    color: var(--vg-header);
    line-height: 1.15;
    margin-bottom: 0.85rem;
}

.video-gallery-hero__title::after {
    content: "";
    display: block;
    width: 76px;
    height: 4px;
    margin-top: 0.85rem;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--vg-theme), var(--vg-theme-soft));
}

.video-gallery-hero__lead {
    font-size: 1.02rem;
    line-height: 1.7;
    color: var(--vg-text);
    max-width: 34rem;
    margin: 0;
}

/* Hero sinematik illüstrasyon */

.video-gallery-illustration {
    position: relative;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-gallery-illustration__stage {
    position: relative;
    width: min(100%, 400px);
    height: 280px;
}

.video-gallery-illustration__screen {
    position: absolute;
    left: 50%;
    top: 52%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 118px;
    border-radius: 14px;
    background: linear-gradient(145deg, #ff3b3b 0%, #e11d2e 100%);
    box-shadow: 0 16px 40px rgba(255, 59, 59, 0.35);
    border: 3px solid #fff;
    z-index: 2;
}

.video-gallery-illustration__screen-play {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: var(--vg-theme);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.video-gallery-illustration__reel {
    position: absolute;
    left: 0;
    top: 18%;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #475569, #1e293b);
    border: 6px solid #334155;
    box-shadow: inset 0 0 0 6px rgba(0, 0, 0, 0.25);
    z-index: 1;
}

.video-gallery-illustration__reel::before {
    content: "";
    position: absolute;
    inset: 18%;
    border-radius: 50%;
    background: repeating-conic-gradient(
        from 0deg,
        rgba(255, 255, 255, 0.08) 0deg 30deg,
        transparent 30deg 60deg
    );
}

.video-gallery-illustration__reel-strip {
    position: absolute;
    left: 58px;
    top: 48px;
    width: 90px;
    height: 28px;
    background: repeating-linear-gradient(
        90deg,
        #1e293b 0 10px,
        #334155 10px 20px
    );
    border-radius: 4px;
    transform: rotate(-8deg);
    opacity: 0.85;
    z-index: 0;
}

.video-gallery-illustration__clapper {
    position: absolute;
    right: 8px;
    bottom: 12%;
    width: 78px;
    height: 62px;
    z-index: 3;
}

.video-gallery-illustration__clapper-top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 18px;
    border-radius: 4px 4px 0 0;
    background: repeating-linear-gradient(
        115deg,
        #fff 0 8px,
        #111827 8px 16px
    );
    transform: rotate(-12deg);
    transform-origin: left bottom;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
}

.video-gallery-illustration__clapper-body {
    position: absolute;
    bottom: 0;
    left: 4px;
    right: 0;
    height: 44px;
    border-radius: 6px;
    background: #111827;
    border: 2px solid #334155;
}

.video-gallery-illustration__bubble {
    position: absolute;
    top: 0;
    right: 12px;
    padding: 0.5rem 0.8rem;
    border-radius: 12px;
    background: #fff;
    border: 1px solid var(--vg-border);
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--vg-header);
    box-shadow: var(--vg-shadow);
    z-index: 4;
}

/* ── Film şeridi çerçeve ── */

.video-gallery-film-frame {
    position: relative;
    background: var(--vg-cinema-dark);
    padding: 10px 22px;
}

.video-gallery-film-frame::before,
.video-gallery-film-frame::after {
    content: "";
    position: absolute;
    top: 8px;
    bottom: 8px;
    width: 12px;
    z-index: 4;
    pointer-events: none;
    background: repeating-linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.28) 0 5px,
        transparent 5px 11px
    );
    border-radius: 2px;
    opacity: 0.75;
}

.video-gallery-film-frame::before {
    left: 5px;
}

.video-gallery-film-frame::after {
    right: 5px;
}

.video-gallery-film-frame--card {
    padding: 8px 18px;
    border-radius: 18px 18px 0 0;
}

.video-gallery-film-frame--card::before,
.video-gallery-film-frame--card::after {
    width: 10px;
    top: 6px;
    bottom: 6px;
}

.video-gallery-film-frame--featured {
    border-radius: 14px;
    padding: 12px 24px;
    flex: 1;
    min-width: 0;
}

/* ── Bölüm başlığı ── */

.video-gallery-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.75rem;
}

.video-gallery-section-head h2 {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 800;
    color: var(--vg-header);
    margin-bottom: 0.35rem;
}

.video-gallery-section-head p {
    color: var(--vg-text);
    margin: 0;
    font-size: 0.9375rem;
}

/* ── Öne çıkan video (sinema paneli) ── */

.video-gallery-featured {
    margin-bottom: 2.75rem;
}

.video-gallery-featured__card {
    display: flex;
    align-items: stretch;
    border-radius: 26px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--vg-cinema-panel-from) 0%, var(--vg-cinema-panel-to) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 22px 48px rgba(11, 16, 38, 0.28);
}

.video-gallery-cinema-panel__strip {
    width: 24px;
    flex-shrink: 0;
    background: #070b1a;
    position: relative;
}

.video-gallery-cinema-panel__strip::before {
    content: "";
    position: absolute;
    top: 14px;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    background: repeating-linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.24) 0 6px,
        transparent 6px 13px
    );
    border-radius: 2px;
}

.video-gallery-featured__inner {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 1.5rem;
    align-items: center;
    padding: 1.35rem 1.25rem;
    flex: 1;
    min-width: 0;
}

.video-gallery-featured__media {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #000;
}

.video-gallery-featured__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.video-gallery-featured__play-trigger {
    position: absolute;
    inset: 0;
    z-index: 2;
    border: none;
    padding: 0;
    background: transparent;
    cursor: pointer;
}

.video-gallery-featured__play-trigger .video-gallery-card__overlay {
    position: absolute;
    inset: 0;
}

.video-gallery-featured__play-trigger .video-gallery-card__play--lg {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.video-gallery-featured__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding-right: 0.5rem;
}

.video-gallery-featured__label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #ff8a00;
    margin-bottom: 0.7rem;
}

.video-gallery-featured__title {
    font-size: clamp(1.3rem, 2.2vw, 1.8rem);
    font-weight: 800;
    color: #f8fafc;
    line-height: 1.28;
    margin-bottom: 0.75rem;
}

.video-gallery-featured__desc {
    font-size: 0.9375rem;
    line-height: 1.65;
    color: #94a3b8;
    margin-bottom: 1.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── Video grid kartları ── */

.video-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.video-gallery-card {
    --vg-accent: #ff7b6b;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, var(--vg-cinema-panel-from) 0%, var(--vg-cinema-panel-to) 100%);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: var(--vg-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    animation: videoGalleryFadeUp 0.48s ease both;
}

.video-gallery-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 42px rgba(11, 16, 38, 0.22);
}

.video-gallery-card__media {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000;
    border: none;
    padding: 0;
    width: 100%;
    cursor: pointer;
    text-align: left;
    display: block;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
}

.video-gallery-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.video-gallery-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(11, 16, 38, 0.15) 0%, rgba(11, 16, 38, 0.62) 100%);
    transition: opacity 0.2s ease;
    z-index: 1;
}

.video-gallery-card:hover .video-gallery-card__overlay {
    opacity: 0.95;
}

.video-gallery-card__badge {
    position: absolute;
    top: 0.7rem;
    left: 0.7rem;
    z-index: 3;
    font-size: 0.625rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.22rem 0.55rem;
    border-radius: 6px;
    background: color-mix(in srgb, var(--vg-accent) 22%, rgba(11, 16, 38, 0.85));
    color: #fff;
    border: 1px solid color-mix(in srgb, var(--vg-accent) 45%, transparent);
}

.video-gallery-card__play {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: var(--vg-theme);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: 0 8px 24px rgba(255, 59, 59, 0.45);
    border: 2px solid rgba(255, 255, 255, 0.9);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.video-gallery-card__play--lg {
    width: 72px;
    height: 72px;
    font-size: 1.35rem;
    box-shadow: 0 12px 32px rgba(255, 59, 59, 0.5);
}

.video-gallery-card:hover .video-gallery-card__play {
    transform: translate(-50%, -50%) scale(1.08);
}

.video-gallery-card__duration {
    position: absolute;
    right: 0.65rem;
    bottom: 0.65rem;
    z-index: 3;
    font-size: 0.6875rem;
    font-weight: 700;
    padding: 0.2rem 0.45rem;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.72);
    color: #f8fafc;
}

.video-gallery-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 2rem;
    background: linear-gradient(135deg, #1e293b, #0f172a);
}

.video-gallery-card__body {
    padding: 1rem 1.1rem 1.15rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    background: linear-gradient(180deg, rgba(16, 19, 34, 0.6) 0%, rgba(37, 43, 63, 0.95) 100%);
}

.video-gallery-card__title {
    font-size: 1.02rem;
    font-weight: 700;
    color: #f1f5f9;
    line-height: 1.35;
    margin: 0 0 0.45rem;
}

.video-gallery-card__title a {
    color: inherit;
    text-decoration: none;
}

.video-gallery-card__title a:hover {
    color: var(--vg-accent);
}

.video-gallery-card__desc {
    font-size: 0.84rem;
    line-height: 1.55;
    color: #94a3b8;
    margin: 0 0 0.85rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.video-gallery-card__action {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    align-self: flex-start;
    border: none;
    background: transparent;
    color: var(--vg-accent);
    font-size: 0.875rem;
    font-weight: 700;
    padding: 0;
    cursor: pointer;
    transition: gap 0.18s ease, color 0.18s ease;
}

.video-gallery-card__action:hover {
    gap: 0.55rem;
    color: #fff;
}

.video-gallery-section-card__count {
    font-size: 0.8125rem;
    color: #94a3b8;
    margin-bottom: 0.85rem;
}

.video-gallery-section-card__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin-top: auto;
    padding: 0.65rem 1rem;
    border-radius: 100px;
    border: 1px solid rgba(255, 59, 59, 0.35);
    color: #f8fafc;
    font-size: 0.875rem;
    font-weight: 700;
    text-decoration: none;
    background: rgba(255, 59, 59, 0.12);
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.video-gallery-section-card__btn:hover {
    background: var(--vg-theme);
    border-color: var(--vg-theme);
    color: #fff;
}

/* ── Boş durum ── */

.video-gallery-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3.5rem 1.5rem;
    border-radius: 24px;
    background: linear-gradient(135deg, var(--vg-cinema-panel-from) 0%, var(--vg-cinema-panel-to) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--vg-shadow);
}

.video-gallery-empty__icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 1rem;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 59, 59, 0.14);
    color: #ff8a00;
    font-size: 1.75rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.video-gallery-empty__title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 0.35rem;
}

.video-gallery-empty__text {
    font-size: 0.9375rem;
    color: #94a3b8;
    margin: 0;
}

/* ── Modal ── */

.video-gallery-modal .modal-content {
    border: none;
    border-radius: 18px;
    overflow: hidden;
    background: var(--vg-cinema-dark);
}

.video-gallery-modal .modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1rem 1.25rem;
    background: var(--vg-cinema-panel-from);
}

.video-gallery-modal .modal-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #f8fafc;
}

.video-gallery-modal .modal-header .btn-close {
    filter: invert(1);
    opacity: 0.7;
}

.video-gallery-modal .modal-body {
    padding: 0;
    background: #000;
}

.video-gallery-modal .ratio iframe,
.video-gallery-modal .ratio video {
    width: 100%;
    height: 100%;
    border: 0;
}

@keyframes videoGalleryFadeUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 991.98px) {
    .video-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .video-gallery-featured__inner {
        grid-template-columns: 1fr;
    }

    .video-gallery-cinema-panel__strip {
        width: 16px;
    }

    .video-gallery-film-frame--featured {
        padding: 10px 18px;
    }

    .video-gallery-illustration {
        margin-top: 1.5rem;
        min-height: 260px;
    }
}

@media (max-width: 767.98px) {
    .video-gallery-grid {
        grid-template-columns: 1fr;
    }

    .video-gallery-hero {
        padding-top: 2.25rem;
    }

    .video-gallery-cinema-panel__strip {
        width: 12px;
    }

    .video-gallery-cinema-panel__strip::before {
        width: 7px;
    }

    .video-gallery-film-frame {
        padding: 8px 14px;
    }

    .video-gallery-film-frame::before,
    .video-gallery-film-frame::after {
        width: 8px;
    }

    .video-gallery-featured__card {
        border-radius: 20px;
    }

    .video-gallery-page__bg-reel {
        display: none;
    }
}
