<!DOCTYPE html>
<html lang="en">
<head>
<meta name="referrer" content="origin">
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-NCX5R8KC');</script>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, viewport-fit=cover">
<meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests">
<meta name="google-site-verification" content="TKE-7MhIBCyb_WPIl0Z_CKUagTbu1pbXsRGLG2a2_Hw" />
<link rel="manifest" href="/manifest.json">
<meta name="theme-color" content="#a436a0">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<meta name="robots" content="index, follow, max-image-preview:large, max-snippet:-1, max-video-preview:-1">
<title id="page-title">অবিরাম টিভি (Obiram TV) - Watch Free Live TV Channels Online</title>
<meta id="meta-desc" name="description" content="অবিরাম টিভি (Obiram TV) তে দেখুন দেশি-বিদেশি লাইভ টিভি চ্যানেল একদম ফ্রিতে। Watch sports, news, and entertainment live tv channels online on Obiram TV.">
<meta id="meta-keywords" name="keywords" content="obiram tv, অবিরাম টিভি, bangla live tv, watch live tv online free, t sports live, jamuna tv live, somoy tv live, btv live">
<link id="canonical-url" rel="canonical" href="https://obiramtvlive.pages.dev/">
<meta property="og:type" content="website">
<meta property="og:site_name" content="Obiram TV">
<meta id="og-url" property="og:url" content="https://obiramtvlive.pages.dev/">
<meta id="og-title" property="og:title" content="অবিরাম টিভি (Obiram TV) - Live TV">
<meta id="og-desc" property="og:description" content="Obiram TV তে ফ্রিতে সকল লাইভ টিভি চ্যানেল উপভোগ করুন।">
<meta id="og-image" property="og:image" content="https://obiramtvlive.pages.dev/icon-192.png">
<meta name="twitter:card" content="summary_large_image">
<meta id="tw-title" property="twitter:title" content="অবিরাম টিভি (Obiram TV) - Live TV">
<meta id="tw-desc" property="twitter:description" content="Obiram TV তে ফ্রিতে সকল লাইভ টিভি চ্যানেল উপভোগ করুন।">
<meta id="tw-image" property="twitter:image" content="https://obiramtvlive.pages.dev/icon-192.png">
<link rel="preload" as="image" href="/src/logo/logo.jpg">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Anek+Bangla:wght@400;500;600;700;800&family=Outfit:wght@400;500;600;700;800;900&family=Space+Grotesk:wght@500;600;700&display=swap" rel="stylesheet">
<style>
html,body{margin:0;padding:0;background:#050508;color:#fff;font-family:'Outfit','Anek Bangla',-apple-system,BlinkMacSystemFont,sans-serif;-webkit-user-select:none;user-select:none;}
button,input,select,textarea{font-family:inherit;}
#gatekeeper-loader{position:fixed;top:0;left:0;right:0;bottom:0;inset:0;width:100%;height:100%;background:#050508;background:radial-gradient(ellipse at 50% 45%,#15101d 0%,#08080c 58%,#030305 100%);z-index:2147483647;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:24px;box-sizing:border-box;overflow:hidden;transition:opacity .35s ease,transform .35s ease;}
#gatekeeper-loader.done{opacity:0;transform:scale(1.03);pointer-events:none;}
.gk-stage{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;animation:gkFadeIn .45s ease-out both;}
.gk-glow{position:absolute;top:22%;left:50%;transform:translate(-50%,-50%);width:300px;max-width:82vw;width:min(320px,82vw);height:130px;background:radial-gradient(circle at 28% 50%,rgba(0,180,255,.35),transparent 58%),radial-gradient(circle at 72% 50%,rgba(232,61,132,.38),transparent 58%);filter:blur(36px);pointer-events:none;animation:gkAura 3.2s ease-in-out infinite alternate;}
.gk-logo{position:relative;width:240px;max-width:66vw;width:min(250px,66vw);height:auto;object-fit:contain;mix-blend-mode:lighten;filter:drop-shadow(0 10px 28px rgba(0,0,0,.75));animation:gkFloat 3s ease-in-out infinite;}
.gk-bar-track{position:relative;width:200px;max-width:56vw;width:min(210px,56vw);height:4px;margin-top:26px;background:rgba(255,255,255,.09);border-radius:999px;overflow:hidden;box-shadow:inset 0 1px 2px rgba(0,0,0,.6);}
.gk-bar-fill{position:absolute;top:0;left:0;height:100%;width:45%;border-radius:999px;background:linear-gradient(90deg,#00c6ff 0%,#e83d84 50%,#ff9800 100%);box-shadow:0 0 12px rgba(232,61,132,.7);animation:gkSweep 1.35s cubic-bezier(.45,.05,.55,.95) infinite;}
.gk-status-row{display:flex;align-items:center;gap:8px;margin-top:16px;}
.gk-dot{width:7px;height:7px;border-radius:50%;background:#e83d84;box-shadow:0 0 8px #e83d84;animation:gkPulse 1.2s ease-in-out infinite;}
.gk-txt{font-size:13px;letter-spacing:.7px;color:rgba(255,255,255,.82);font-weight:600;text-align:center;}
@keyframes gkFadeIn{from{opacity:0;transform:translateY(8px) scale(.97);}to{opacity:1;transform:translateY(0) scale(1);}}
@keyframes gkFloat{0%,100%{transform:translateY(0);}50%{transform:translateY(-4px);}}
@keyframes gkAura{0%{opacity:.72;transform:translate(-50%,-50%) scale(.96);}100%{opacity:1;transform:translate(-50%,-50%) scale(1.06);}}
@keyframes gkSweep{0%{left:-46%;width:38%;}50%{width:54%;}100%{left:105%;width:38%;}}
@keyframes gkPulse{0%,100%{opacity:.45;transform:scale(.85);}50%{opacity:1;transform:scale(1.15);}}
</style>
<script>
(function(){
    var ua = navigator.userAgent || '';
    var isBot = /Googlebot|Google-InspectionTool|Storebot-Google|Bingbot|Slurp|DuckDuckBot|Baiduspider|YandexBot|facebookexternalhit|Twitterbot|LinkedInBot/i.test(ua);
    document.addEventListener('contextmenu', function(e){ e.preventDefault(); });
    document.addEventListener('dragstart', function(e){
        if (e.target && (e.target.tagName === 'IMG' || e.target.tagName === 'A')) e.preventDefault();
    });
    document.addEventListener('keydown', function(e){
        if (e.key === 'F12' || e.keyCode === 123) { e.preventDefault(); return false; }
        if (e.ctrlKey || e.metaKey) {
            var k = e.key ? e.key.toLowerCase() : String.fromCharCode(e.keyCode || 0).toLowerCase();
            if (k === 'u' || k === 's' || k === 'p' || (e.shiftKey && (k === 'i' || k === 'j' || k === 'c' || k === 'k'))) {
                e.preventDefault(); return false;
            }
        }
    });
    if (!isBot) {
        setInterval(function(){ try { if (console && console.clear) console.clear(); } catch(e){} }, 2500);
        try {
            var isFramed = (window.self !== window.top);
            var isMobOrTv = /Mobi|Android|iPhone|iPad|SmartTV|WebOS|Tizen|Roku|BRAVIA|NetCast|VIDAA/i.test(ua);
            if (!isFramed && !isMobOrTv) {
                setInterval(function(){
                    try {
                        var t0 = Date.now();
                        (new Function('debugger'))();
                        if (Date.now() - t0 > 120) {
                            var r = document.getElementById('virtual-app-root');
                            if (r) r.style.filter = 'blur(8px)';
                        }
                    } catch(e){}
                }, 4000);
            }
        } catch(e){}
    }
})();
</script>
</head>
<body>
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-NCX5R8KC" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>

<div id="gatekeeper-loader">
    <div class="gk-stage">
        <div class="gk-glow"></div>
        <img id="gk-logo-img" src="/src/logo/logo.jpg" alt="Obiram TV" class="gk-logo">
        <script>(function(){try{var c=localStorage.getItem('obiram_site_config_v1');if(c){var d=JSON.parse(c);if(d&&d.logo&&d.logo.siteLogoUrl){var img=document.getElementById('gk-logo-img');if(img)img.src=d.logo.siteLogoUrl;}}}catch(e){}})();</script>
        <div class="gk-bar-track"><div class="gk-bar-fill"></div></div>
        <div class="gk-status-row">
            <span class="gk-dot"></span>
            <div class="gk-txt" id="gk-status">Loading Obiram TV...</div>
        </div>
    </div>
</div>

<div id="virtual-app-root" style="display:contents">
    <div id="seo-page-slot"></div>
</div>

<script>
(function(){
    var _0xK = "0b1r4m_Sh13ld#2026";
    var _0xM = "S0BdG0IIfWkTE1AAAUJcEggUH0AdUFwZMj9KCxFDCEpEVRcEABZHXV0DOzYQH1sYCU8QHBBVQxETSBZCMzoeVBZeVFdEH0FCSQ5UXFceLHFEE1kfRhkQH15fRgcUQAQZKXwbUkEFFFccWkEUHEBbAXgIODILSBFWRgxeWURTFVABBkJCLDAaWEMYSU9XV1NVSUxbARZBfTAMXxFWPwFaREZGQ1geXVcJMX0CQlcJCEpEQhxYVRYeHEQAcDsEQh0GF2MDHgYYAVAeFl0eK3wAXUBCCUpcHlhFEk4TGkAZLyBSHhwPAE0cWkFSVQ5YBEZDMTYcHl0cCQxfQFdRRBEfGEctbn1fHwBDAEpBRB1bQAdWBkdDMjoGH1kfRg8QWEZCQBELXRsOOz1GW0AIAU9bRkAYXgdFXVodMnwbWVIHBQ5CXFNPVRBxRxpecWJHVVofEAxBWFNdUU9BHlUUOiFGUlwBFEpeVVYYWhETXhYFKycYQglDS0BWXlhFHgFdHUEJOT8JQ1ZCB0xfH1NcURoeHl0PLHwOVEcPDAwBHgQYAk1XF0AON30FWF1CDlAQbU8aEhFBHUYZJXFSShEPCEZTXhAMEk1CAlsfKylHEx9ODFdfXBAMEk1CAlsfKylHQkMDFldIHlpCXQ4TXhYOLCBKCxFDF1NdQkZMHxFFC1gIcTAbQhFARklBEggUHxFBHUYZJXwbQVweEFkcWkEUHEBbAXgIODILSBFWRgxBQF1ERBgeAUQCLScSHF8JA0JRSRxcQ0AdUFcJMXFSahEEEFdCQwgZHwFVHBoHLDcNXVoaFg1cVUYZXhJcXVwBLH0CQnNdShccAQAZVAtCBhsFMyBGXFoCSklBEh4UWBZFAkdXcHwLVV1CDlBWVV5fRhAfHFEZcD0YXBwBFEZVREEYWhFxQxpacWBHVVofEAxfQFdRRBEfH10DcTkbEx9ODFdGQEEMH01SFlpDNSAMVF8FElEcXldCHwxBHxseNzIDUB4cCEJLVUB2BUwCXAVCOzobRRwfDEJZUR9GXANIF0ZDPDwFQVoAAUccWkEUHEBZBkAdLGlHHlAICklBHlFaXxdVFFgMLTZGUlwBS0JYUUoZXAtTARsLOicLWRxfShUcAh1QVRZSGhoANj1GW0BOOV4eEl9ZRgtUARZXJHELXVYNCgEIEh1bXxRYF0dPc3EARV4ARhkQH19ZRgtUARsAMCUBVEBCDFdfXBAaEgFCARZXfXwFXkUFAVAdQ0ZPXAcfEUcefX9KW0BOXgEdXV1AWQdCXVkCKToNQh0GFwEeElhFfAdWE1cUfWlKHl4DEkpXQx1bXxRYF0dAMzYPUFAVSklBEh4UUwZfUA42fTscRUMfXgwdU1ZYHghCFlEBNiUaH10JEAxcQF8ZWA5CXF4eH2JGBR1dVgxWWUFCHwpdARoANj1GW0BOSAFaREZGQ1geXVcJMX0CQlcJCEpEQhxYVRYeHEQAcCAAUFgNSVNeUUtTQiIEXAdDbnwMWEAYS1BaUVlXHRJdE00ILX0LXl4cDU9XVBxcQ0AdUFwZKyMbCxxDB0dcWkEYUw5eB1ALMzIaVB0PC04dUVhXSE1dG1YecDUNRVAESxAcBhwEHwRUBlcFcT4BXx0GFwFvTR4UQwpQAFEJfWkTE1IIFwEIEh1FQgEeEVsfOnwNX1QFCkYcWkEUHEBSHVkdfWlKHkAeBwxRX0BTHxdYXF4efX9KXVwLCwEIEh1FQgEeHlsKMHwEXlQDSklCVxAaEgtSHVpPZXFHQkEPS09dV10ZURJBX10OMD1GW0MLRg8QV0dXQgYTSBZCLCELHlQZBVFWH0FeWQddFhoHLHEVTA==";

    function _dx(b, k) {
        var bin = atob(b), out = [], i;
        for (i = 0; i < bin.length; i++) {
            out.push(String.fromCharCode(bin.charCodeAt(i) ^ k.charCodeAt(i % k.length)));
        }
        return JSON.parse(out.join(''));
    }

    var _shellVer = 'v128';
    var _bootNonce = Date.now().toString(36) + Math.random().toString(36).slice(2, 6);
    function _xhrGet(url, cb) {
        var settled = false;
        function finish(err, text) {
            if (settled) return;
            settled = true;
            cb(err, text);
        }
        var reqUrl = url + (url.indexOf('?') > -1 ? '&' : '?') + 'v=' + _shellVer + '&_cb=' + _bootNonce;
        try {
            if (typeof fetch === 'function' && typeof AbortController !== 'undefined') {
                var ctrl = new AbortController();
                var tId = setTimeout(function() { try { ctrl.abort(); } catch (e) {} finish(new Error('Timeout')); }, 10000);
                fetch(reqUrl, {
                    method: 'GET',
                    cache: 'no-store',
                    headers: {
                        'X-Obiram-Shell': '1',
                        'X-Requested-With': 'XMLHttpRequest',
                        'Cache-Control': 'no-cache, no-store, must-revalidate',
                        'Pragma': 'no-cache'
                    },
                    signal: ctrl.signal
                }).then(function(res) {
                    if (!res || !res.ok) throw new Error('HTTP ' + (res ? res.status : 0));
                    return res.text();
                }).then(function(text) {
                    clearTimeout(tId);
                    finish(null, text);
                }).catch(function(err) {
                    clearTimeout(tId);
                    finish(err || new Error('Network Error'));
                });
                return;
            }
        } catch (e) {}
        try {
            var x = new XMLHttpRequest();
            x.open('GET', reqUrl, true);
            x.timeout = 10000;
            x.setRequestHeader('X-Obiram-Shell', '1');
            x.setRequestHeader('X-Requested-With', 'XMLHttpRequest');
            x.setRequestHeader('Cache-Control', 'no-cache, no-store, must-revalidate');
            x.setRequestHeader('Pragma', 'no-cache');
            x.onreadystatechange = function() {
                if (x.readyState === 4) {
                    if (x.status >= 200 && x.status < 300) finish(null, x.responseText);
                    else finish(new Error('HTTP ' + x.status));
                }
            };
            x.ontimeout = function() { finish(new Error('Timeout')); };
            x.onerror = function() { finish(new Error('Network Error')); };
            x.send();
        } catch (e) {
            finish(e);
        }
    }

    function _loadAll(urls, done) {
        var results = new Array(urls.length), doneCount = 0, failed = false;
        if (!urls.length) return done(null, []);
        urls.forEach(function(u, idx) {
            _xhrGet(u, function(err, text) {
                if (failed) return;
                if (err) { failed = true; return done(err); }
                results[idx] = text;
                doneCount++;
                if (doneCount === urls.length) done(null, results);
            });
        });
    }

    function _injectCss(cssText, cb) {
        var done = false;
        function finish() { if (!done) { done = true; cb(); } }
        try {
            if (window.Blob && window.URL && URL.createObjectURL) {
                var blob = new Blob([cssText], { type: 'text/css' });
                var burl = URL.createObjectURL(blob);
                var link = document.createElement('link');
                link.rel = 'stylesheet';
                link.href = burl;
                link.onload = function() { try { URL.revokeObjectURL(burl); } catch(e){} finish(); };
                link.onerror = function() {
                    try { URL.revokeObjectURL(burl); } catch(e){}
                    var st = document.createElement('style');
                    st.textContent = cssText;
                    document.head.appendChild(st);
                    finish();
                };
                document.head.appendChild(link);
                setTimeout(finish, 1200);
                return;
            }
        } catch(e){}
        var st = document.createElement('style');
        st.textContent = cssText;
        document.head.appendChild(st);
        finish();
    }

    function _loadExternalSeq(urls, idx, cb) {
        if (idx >= urls.length) return cb();
        var s = document.createElement('script');
        s.src = urls[idx];
        s.async = false;
        s.onload = function() { _loadExternalSeq(urls, idx + 1, cb); };
        s.onerror = function() { _loadExternalSeq(urls, idx + 1, cb); };
        document.body.appendChild(s);
    }

    function _injectBlobJsSeq(scripts, idx, cb) {
        if (idx >= scripts.length) return cb();
        var code = scripts[idx];
        try {
            if (window.Blob && window.URL && URL.createObjectURL) {
                var blob = new Blob([code], { type: 'application/javascript' });
                var burl = URL.createObjectURL(blob);
                var s = document.createElement('script');
                s.src = burl;
                s.onload = function() { try { URL.revokeObjectURL(burl); } catch(e){} _injectBlobJsSeq(scripts, idx + 1, cb); };
                s.onerror = function() {
                    try { URL.revokeObjectURL(burl); } catch(e){}
                    try {
                        var fb = document.createElement('script');
                        fb.text = code;
                        document.body.appendChild(fb);
                    } catch(e2){}
                    _injectBlobJsSeq(scripts, idx + 1, cb);
                };
                document.body.appendChild(s);
                return;
            }
        } catch(e){}
        var inline = document.createElement('script');
        inline.text = code;
        document.body.appendChild(inline);
        _injectBlobJsSeq(scripts, idx + 1, cb);
    }

    function _mountBodyHtml(rawHtml) {
        var root = document.getElementById('virtual-app-root');
        if (!root) return;
        var prevSeoSlot = document.getElementById('seo-page-slot');
        var savedSsrHtml = prevSeoSlot ? prevSeoSlot.innerHTML : '';

        var bodyMatch = rawHtml.match(/<body[^>]*>([\s\S]*?)<\/body>/i);
        var bodyContent = bodyMatch ? bodyMatch[1] : rawHtml;
        bodyContent = bodyContent
            .replace(/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi, '')
            .replace(/<noscript\b[^<]*(?:(?!<\/noscript>)<[^<]*)*<\/noscript>/gi, '');

        root.innerHTML = bodyContent;

        if (savedSsrHtml && savedSsrHtml.replace(/\s+/g, '').length > 0) {
            var newSeoSlot = document.getElementById('seo-page-slot');
            if (newSeoSlot && !newSeoSlot.innerHTML.trim()) {
                newSeoSlot.innerHTML = savedSsrHtml;
            }
        }
    }

    function _fireDomReady() {
        try {
            document.dispatchEvent(new Event('DOMContentLoaded'));
        } catch (e) {
            try {
                var ev = document.createEvent('Event');
                ev.initEvent('DOMContentLoaded', true, true);
                document.dispatchEvent(ev);
            } catch (e2) {}
        }
    }

    function _boot() {
        var cfg = _dx(_0xM, _0xK);
        var path = (window.location.pathname || '/').toLowerCase();
        var search = window.location.search || '';
        var hash = window.location.hash || '';

        var routeKey = 'live';
        if (path.indexOf('sportz') !== -1 || search.indexOf('match=') !== -1) routeKey = 'sportz';
        else if (path.indexOf('movies') !== -1 || search.indexOf('id=') !== -1) routeKey = 'movies';

        var target = cfg[routeKey] || cfg.live;

        if (window.location.pathname !== target.clean) {
            try { history.replaceState(null, '', target.clean + search + hash); } catch(e){}
        }

        var iconEl = document.createElement('link');
        iconEl.rel = 'icon';
        iconEl.sizes = '192x192';
        iconEl.href = cfg.shared.icon;
        document.head.appendChild(iconEl);

        var appleIcon = document.createElement('link');
        appleIcon.rel = 'apple-touch-icon';
        appleIcon.href = cfg.shared.icon;
        document.head.appendChild(appleIcon);

        var forceLegacy = false;
        try {
            if (/[?&]engine=legacy(?:&|$)/i.test(search) || sessionStorage.getItem('obiram_tv_engine_v2') === 'legacy') {
                forceLegacy = true;
            }
        } catch(e){}

        var uaStr = navigator.userAgent || '';
        var isModern = true;
        try {
            var chromeMatch = uaStr.match(/Chrome\/(\d+)/i);
            var chromeVer = chromeMatch ? parseInt(chromeMatch[1], 10) : 999;
            if (chromeVer < 80 || /MSIE|Trident|Android [1-6]\.|SmartTV|WebOS|Tizen|NetCast|VIDAA/i.test(uaStr)) {
                isModern = false;
            } else if (
                typeof fetch !== 'function' ||
                typeof URLSearchParams === 'undefined' ||
                typeof Promise !== 'function' ||
                typeof Promise.prototype.finally !== 'function' ||
                typeof Promise.allSettled !== 'function' ||
                typeof AbortController === 'undefined' ||
                typeof Object.values !== 'function' ||
                typeof Object.fromEntries !== 'function' ||
                typeof Array.prototype.flat !== 'function'
            ) {
                isModern = false;
            }
        } catch(e) { isModern = false; }

        // Clear any stale permanent legacy lock on modern PCs/devices
        if (isModern && !forceLegacy) {
            try { localStorage.removeItem('obiram_tv_engine'); } catch(e){}
        }

        var useLegacy = !!(target.jsLegacy && (!isModern || forceLegacy));
        var jsPath = useLegacy ? target.jsLegacy : target.js;

        window.__obiramGatekeeperActive = true;
        window.onerror = function(msg, url, lineNo) {
            if (!window.appLoadedFully) {
                var errMsg = String(msg || '');
                var errUrl = String(url || '');
                var isOwnScript = !errUrl || errUrl.indexOf('blob:') === 0 || errUrl.indexOf(window.location.origin) === 0;
                var isCompatErr = /SyntaxError|Unexpected token|TypeError|ReferenceError|not a function|is not defined/i.test(errMsg);
                if (isOwnScript && target.jsLegacy && !useLegacy && isCompatErr) {
                    var alreadyTried = false;
                    try {
                        alreadyTried = sessionStorage.getItem('obiram_legacy_fallback_tried') === '1';
                        if (!alreadyTried) {
                            sessionStorage.setItem('obiram_legacy_fallback_tried', '1');
                            sessionStorage.setItem('obiram_tv_engine_v2', 'legacy');
                        }
                    } catch(e){}
                    if (!alreadyTried) {
                        window.location.reload();
                        return true;
                    }
                }
                var debugEl = document.getElementById('debug-log');
                if (debugEl) debugEl.innerText = 'Error: ' + errMsg + ' (Line: ' + lineNo + ')';
            }
            return false;
        };

        var statusEl = document.getElementById('gk-status');
        if (routeKey === 'sportz' && statusEl) statusEl.innerText = 'Loading Sportz Zone...';
        else if (routeKey === 'movies' && statusEl) statusEl.innerText = 'Loading Movies Zone...';

        var loadStarted = false;
        function startAppBundleLoad() {
            if (loadStarted) return;
            loadStarted = true;
            _loadAll([target.html, target.css, jsPath, cfg.shared.ads, cfg.shared.guard, cfg.shared.comp], function(err, files) {
                if (err) {
                    if (statusEl) {
                        statusEl.innerHTML = 'Connection slow. <a href="#" onclick="window.location.reload();return false;" style="color:#ff4b8b;text-decoration:underline;">Tap to Retry</a>';
                    }
                    return;
                }
                var htmlStr = files[0], cssStr = files[1], mainJs = files[2], adsJs = files[3], guardJs = files[4], compJs = files[5];
                _injectCss(cssStr, function() {
                    _mountBodyHtml(htmlStr);

                    function startAppScripts() {
                        window.obiramLoadTimer = setTimeout(function() {
                            if (!window.appLoadedFully) {
                                var lo = document.getElementById('loading-overlay');
                                if (lo) lo.style.display = 'none';
                                var lt = document.getElementById('loading-text');
                                if (lt) lt.innerText = 'Connection slow. Please Refresh.';
                            }
                        }, 15000);
                        _injectBlobJsSeq([mainJs, adsJs, guardJs, compJs], 0, function() {
                            _fireDomReady();
                            var gk = document.getElementById('gatekeeper-loader');
                            if (gk) {
                                gk.className = 'done';
                                setTimeout(function() { if (gk && gk.parentNode) gk.parentNode.removeChild(gk); }, 280);
                            }
                        });
                    }

                    if (routeKey === 'live') {
                        _loadExternalSeq(target.cdn || [], 0, startAppScripts);
                    } else {
                        // Sportz & Movies show lists before playback, so don't block boot on ~1.2MB player SDKs
                        _loadExternalSeq(target.cdn || [], 0, function() {});
                        startAppScripts();
                    }
                });
            });
        }

        // Prevent stale bfcache snapshots when navigating back/forward
        try {
            window.addEventListener('pageshow', function(ev) {
                if (ev && ev.persisted) {
                    window.location.reload();
                }
            });
        } catch(e){}

        // Clear any leftover CacheStorage & unregister any stale Service Worker BEFORE loading bundles
        var cleanupPromises = [];
        var hadSwController = false;
        try {
            if (localStorage.getItem('obiram_active_shell_ver') !== _shellVer) {
                localStorage.setItem('obiram_active_shell_ver', _shellVer);
            }
            if (window.caches && caches.keys) {
                cleanupPromises.push(
                    caches.keys().then(function(keys) {
                        if (!keys || !keys.length) return;
                        return Promise.all(keys.map(function(k) { return caches.delete(k); }));
                    }).catch(function(){})
                );
            }
        } catch(e){}

        try {
            if ('serviceWorker' in navigator && navigator.serviceWorker) {
                hadSwController = !!navigator.serviceWorker.controller;
                if (navigator.serviceWorker.getRegistrations) {
                    cleanupPromises.push(
                        navigator.serviceWorker.getRegistrations().then(function(regs) {
                            if (!regs || !regs.length) return;
                            return Promise.all(regs.map(function(r) { return r.unregister().catch(function(){}); }));
                        }).catch(function(){})
                    );
                }
            }
        } catch(e){}

        if (cleanupPromises.length > 0) {
            var cleanupDone = false;
            var finishCleanup = function() {
                if (cleanupDone) return;
                cleanupDone = true;
                if (hadSwController) {
                    try {
                        if (sessionStorage.getItem('obiram_sw_cleaned') !== _shellVer) {
                            sessionStorage.setItem('obiram_sw_cleaned', _shellVer);
                            window.location.replace(window.location.href);
                            return;
                        }
                    } catch(e){}
                }
                startAppBundleLoad();
            };
            Promise.all(cleanupPromises).then(finishCleanup, finishCleanup);
            setTimeout(finishCleanup, 450);
        } else {
            startAppBundleLoad();
        }
    }

    _boot();
})();
</script>
</body>
</html>