.screenshot-card {
    position: relative;
    cursor: pointer;
}

/* ── Thumbnail wrapper: image + play badge ekshathe ── */
.screenshot-card .thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 277 / 200;
    overflow: hidden;
    background: #0b1d38;
}

.screenshot-card .thumb img {
    width: 100%;
    max-width: none;          /* purano max-width:277px override */
    height: 100%;
    object-fit: fill;
    display: block;
    transition: transform .3s ease;
}

.screenshot-card:hover .thumb img,
.screenshot-card:focus-visible .thumb img {
    transform: scale(1.04);
}

/* ── Play badge: thumbnail er thik majhkhane ── */
.screenshot-card .play-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 66px;
    height: 40px;
    border-radius: 20%;
    background: rgba(0, 0, 0, .65);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    padding-left: 3px;
    pointer-events: none;
    transition: background .2s, transform .2s;
}

.screenshot-card:hover .play-badge,
.screenshot-card:focus-visible .play-badge {
    background: #ff0000;
    transform: translate(-50%, -50%) scale(1.1);
}

.screenshot-card:focus-visible {
    outline: 2px solid #4a90e2;
    outline-offset: 3px;
}

/* Mobile / iPad mini: ektu choto badge */
@media (max-width: 768px) {
    .screenshot-card .play-badge {
        width: 46px;
        height: 46px;
        font-size: 16px;
    }
}

/* ── Modal ── */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;            /* iOS Safari address bar fix */
    z-index: 100000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
    overflow: hidden;
}

.video-modal.open {
    display: flex;
}

.video-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .9);
}

.video-modal-dialog {
    position: relative;
    z-index: 1;
    margin: auto;
    width: min(960px, 100%);
    /* landscape e video viewport er bhitore thakbe */
    max-width: min(960px, calc((100dvh - 120px) * 16 / 9));
}

.video-modal-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 10px;
    overflow: hidden;
}

.video-modal-frame iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-modal-close {
    position: absolute;
    top: -46px;
    right: 0;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .15);
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: background .2s;
}

.video-modal-close:hover {
    background: rgba(255, 90, 90, .6);
}

body.video-modal-open {
    overflow: hidden;
}
/* ── Video gallery (homepage) ── */
.video-gallery-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 18px;
  /*  max-width: 860px;  */     /* card choto korar jonno */
    margin: 0 auto;
}
@media (max-width: 991px) { .video-gallery-grid { grid-template-columns: repeat(2, 1fr); max-width: 560px; } }
@media (max-width: 576px) { .video-gallery-grid { grid-template-columns: 1fr; max-width: 340px; } }

/* Card design (PDF Builder page theke) */
.screenshot-card {
    background: #08152b;
    border: 1px solid rgba(0, 229, 255, .20);
    border-radius: 14px;
    overflow: hidden;
    transition: all .3s ease;
    box-shadow: 0 0 15px rgba(0, 229, 255, .05);
}
.screenshot-card:hover {
    transform: translateY(-6px);
    border-color: #00e5ff;
    box-shadow: 0 0 20px rgba(0, 229, 255, .20);
}
.screenshot-title {
    padding: 10px;
    text-align: center;
    color: #dffcff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .5px;
    border-top: 1px solid rgba(255, 255, 255, .08);
    background: #08152b;
}