/* =========================================================
 * Video Hero Banner Section
 * ========================================================= */

.tv-video-banner {
    position: relative;
    width: 100%;
    /* Fix: Let video define height to prevent cropping on desktop */
    height: auto;
    min-height: 0;
    background-color: #000;
    overflow: hidden;
    display: block;
}

.tv-video-banner__media {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center;
    z-index: 1;
    display: block;
}

/* --- Responsive Video Switching --- */

/* Mặc định hiển thị Desktop video, ẩn Mobile video */
.tv-video-banner__media--desktop {
    display: block;
    /* Giữ chỗ đúng tỉ lệ 16:9 để không bị giật layout trong lúc video đang tải nền (lazy load) */
    aspect-ratio: 16 / 9;
}
.tv-video-banner__media--mobile {
    display: none;
}

/* Lớp phủ tuỳ chọn nếu muốn chèn text lên trên video */
.tv-video-banner__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2); /* Chỉnh độ mờ tại đây */
    z-index: 2;
    pointer-events: none;
}

.tv-video-banner__content {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
    /* Styles for inner content if needed */
}

@media (max-width: 850px) {
    .tv-video-banner {
        height: auto !important;
        min-height: 0 !important;
        display: block !important;
        padding: 0 !important;
    }
    
    .tv-video-banner__media--desktop {
        display: none !important;
    }
    
    .tv-video-banner__media--mobile {
        display: block !important;
        position: relative !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        /* Giữ chỗ đúng tỉ lệ 3:4 để không bị giật layout trong lúc video đang tải nền (lazy load) */
        aspect-ratio: 3 / 4 !important;
        object-fit: cover !important;
        object-position: center !important;
        left: 0 !important;
        top: 0 !important;
        margin: 0 !important;
    }
}
