/* Frontend styles for tgwv-videos archive + popup player */

.videos-section {
    padding: 32px 0 48px;
}
.videos-section .page-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 24px;
    color: #1a1a1a;
}

.videos-empty {
    color: #888;
    font-style: italic;
    padding: 24px 0;
}

.videos-grid .video-card {
    display: block;
    color: inherit;
    text-decoration: none;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.videos-grid .video-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    text-decoration: none;
}

.video-thumb {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 */
    background: #000;
    overflow: hidden;
}
.video-thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.video-card:hover .video-thumb img {
    transform: scale(1.04);
}

.video-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    background: rgba(255, 0, 0, 0.92);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    padding-left: 4px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
    transition: transform 0.18s ease, background 0.18s ease;
}
.video-card:hover .video-play {
    transform: translate(-50%, -50%) scale(1.08);
    background: rgba(255, 0, 0, 1);
}

.video-title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    margin: 12px 12px 14px;
    color: #1a1a1a;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 42px;
}

/* Pagination */
.videos-pagination .pagination .page-item .page-link {
    color: #0977c6;
}
.videos-pagination .pagination .page-item.active .page-link {
    background: #0977c6;
    border-color: #0977c6;
    color: #fff;
}

/* Modal Player — z-index Bootstrap mặc định (1040/1050) thấp hơn header sticky (1500)
   nên backdrop có thể bị che; nâng lên để luôn thấy lớp phủ mờ phía sau video */
body.modal-open .modal-backdrop {
    z-index: 10040 !important;
}
body.modal-open .modal-backdrop.fade.show {
    opacity: 0.55 !important;
}
.tgwv-video-modal.modal {
    z-index: 10050 !important;
}

.tgwv-video-modal .modal-content {
    background: #000;
    border: 0;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}
.tgwv-video-modal .tgwv-video-wrap {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background: #000;
}
.tgwv-video-modal .tgwv-video-wrap iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
.tgwv-video-modal .tgwv-video-close {
    position: absolute;
    top: -40px;
    right: 0;
    z-index: 10;
    color: #fff;
    opacity: 0.9;
    text-shadow: none;
    font-size: 28px;
    background: transparent;
    border: 0;
    cursor: pointer;
}
.tgwv-video-modal .tgwv-video-close:hover {
    opacity: 1;
}

@media (max-width: 991px) {
    .tgwv-video-modal .tgwv-video-close {
        top: 8px;
        right: 8px;
        background: rgba(0, 0, 0, 0.55);
        border-radius: 50%;
        width: 36px;
        height: 36px;
        line-height: 36px;
        padding: 0;
        font-size: 22px;
    }
}
