.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
}

.video-tile {
    position: relative;
    aspect-ratio: 9 / 16;
    cursor: pointer;
    border-radius: 14px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .12);
    transition: transform .25s ease, box-shadow .25s ease;
}

.video-tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, .2);
}

.video-tile .video-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

.video-tile .video-thumb-iframe {
    background: #1f2d3d;
    color: rgba(255, 255, 255, .85);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 56px;
}

.video-tile-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(180deg, rgba(0, 0, 0, .05) 0%, rgba(0, 0, 0, .45) 100%);
    transition: background .25s ease;
}

.video-tile:hover .video-tile-play {
    background: linear-gradient(180deg, rgba(0, 0, 0, .1) 0%, rgba(0, 0, 0, .55) 100%);
}

.video-tile-play span {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .95);
    color: #01d0cc;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
    transition: transform .25s ease;
}

.video-tile:hover .video-tile-play span {
    transform: scale(1.08);
}

.video-tile-title {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    color: #fff;
    padding: 14px 14px 12px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, .7) 100%);
    font-weight: 600;
    text-align: center;
    font-size: 14px;
    letter-spacing: .2px;
}

.video-modal .modal-content {
    background: #000;
    border: 0;
    border-radius: 12px;
    overflow: hidden;
}

.video-modal .modal-header {
    border: 0;
    padding: 10px 14px;
}

.video-modal .modal-title {
    color: #fff;
    font-size: 15px;
    opacity: .85;
}

.video-modal .close {
    color: #fff;
    opacity: .9;
    text-shadow: none;
    font-size: 26px;
}

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

.video-modal #videoModalPlayer {
    width: 100%;
    max-height: 80vh;
    display: block;
    background: #000;
}

.video-modal .modal-iframe-wrap {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background: #000;
}

.video-modal .modal-iframe-wrap iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

@media (max-width: 575px) {
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .video-tile-play span {
        width: 48px;
        height: 48px;
        font-size: 16px;
    }

    .video-tile-title {
        font-size: 12px;
        padding: 10px 10px 8px;
    }
}
