<!DOCTYPE html>
<html lang="en">
<head>    
    <script src="https://upskittyan.com/act/files/tag.min.js?z=7630957" data-cfasync="false" async></script>
    <script>(function(d,z,s){s.src='https://'+d+'/400/'+z;try{(document.body||document.documentElement).appendChild(s)}catch(e){}})('vemtoutcheeg.com',7630937,document.createElement('script'))</script>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Play Terabox Videos Online Without Login | MoviesBigHub</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            text-align: center;
            margin: 0;
            padding: 0;
            background-color: #f4f4f4;
        }
        .top-bracket {
            background-color: #0073e6;
            padding: 10px 0;
            text-align: center;
            color: #fff;
            font-size: 18px;
        }
        /* Header Container */
        header {
            position: relative;
            background-color: #fff;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
            align-items: center;
            justify-content: space-between;
            padding: 10px 20px;
        }

        /* Navigation Menu */
        nav {
            display: flex;
            gap: 20px;
        }

        nav a {
            text-decoration: none;
            color: #000;
            padding: 10px 20px;
            background-color: #0073e6;
            border-radius: 5px;
            transition: background-color 0.3s;
        }

        nav a:hover {
            background-color: #005bb5;
        }
        /* Hamburger Menu (Mobile) */
        .hamburger-menu {
            display: none;
            flex-direction: column;
            gap: 5px;
            cursor: pointer;
            position: absolute;
            right: 15px;
            top: 15px;
            z-index: 1000;
        }

        .hamburger-menu div {
            width: 30px;
            height: 4px;
            background-color: #000;
            border-radius: 5px;
        }

        /* Mobile Navigation */
        .mobile-nav {
            display: none;
            flex-direction: column;
            align-items: center;
            gap: 10px;
            background-color: #fff;
            position: absolute;
            top: 60px; /* Adjust this as per header height */
            left: 0;
            width: 100%;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
            border-radius: 5px;
        }

        .mobile-nav a {
            padding: 15px;
            text-decoration: none;
            color: #000;
            background-color: #0073e6;
            border-radius: 5px;
            width: 100%;
            text-align: center;
        }

        .mobile-nav a:hover {
            background-color: #005bb5;
        }
        
        .container {
            width: 100%;
            max-width: 800px;
            margin: 20px auto;
            padding: 20px;
            background-color: #fff;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        }
        input[type="text"] {
            width: 80%;
            padding: 10px;
            font-size: 16px;
            margin-bottom: 10px;
        }
        #embed-container {
            margin-top: 20px;
            display: none;
            text-align: center;
        }
        iframe {
            width: 100%;
            height: 350px;
            border: none;
        }
        .error {
            color: red;
            font-weight: bold;
        }
        .btn {
            margin-top: 10px;
            padding: 10px 20px;
            background-color: #4CAF50;
            color: white;
            border: none;
            cursor: pointer;
            font-size: 16px;
            border-radius: 5px;
        }
        .btn:disabled {
            background-color: #ddd;
            cursor: not-allowed;
        }
        .copy-link {
            margin-top: 10px;
        }
        #share-link {
            display: none;
            margin-top: 10px;
            font-size: 16px;
        }
        *
        {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }
       
        .container2 {
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 20px;
            flex-wrap: wrap;
            width: 100%;
        }
        .step {
            text-align: center;
            margin: 20px;
            flex-basis: calc(30% - 40px);
            background-color: #1a1a1a;
            padding: 30px;
            border-radius: 10px;
            transition: transform 0.3s ease;
        }
        .step:hover {
            transform: scale(1.05);
        }
        .step h2:first-of-type {
            color: #4a4a4a;
            font-size: 48px;
            margin-bottom: 10px;
        }
        .step h2:nth-of-type(2) {
            font-size: 24px;
            margin-bottom: 15px;
    color: white;
        }
        .step p {
            font-size: 16px;
            line-height: 1.5;
            color: #b0b0b0;
        }
        @media screen and (max-width: 768px) {
            .container2 {
                flex-direction: column;
            }
            .step {
                flex-basis: 100%;
                max-width: 500px;
                margin: 15px 0;
            }
            .step h2:first-of-type {
                font-size: 36px;
            }
            .step h2:nth-of-type(2) {
                font-size: 20px;
            }
            .step p {
                font-size: 14px;
            }
        }
        @media screen and (max-width: 480px) {
            .step {
                padding: 20px;
            }
            .step h2:first-of-type {
                font-size: 32px;
            }
            .step h2:nth-of-type(2) {
                font-size: 18px;
            }
            .step p {
                font-size: 13px;
            }
        }
        @media (max-width: 768px) {
        .wp-block-columns {
            flex-direction: column;
        }
    }
    * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }
     
        .grid-container {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            grid-gap: 20px;
            padding: 20px;
            width: 100%;
            max-width: 100%;
        }
        .grid-item {
            background-color: #1a1a1a;
            padding: 20px;
            text-align: center;
            font-size: 18px;
            color: #fff;
            border-radius: 8px;
            word-break: break-all;
            transition: transform 0.3s ease, background-color 0.3s ease;
        }
        .grid-item:hover {
            transform: scale(1.05);
            background-color: #2a2a2a;
        }
        @media screen and (max-width: 600px) {
            .grid-container {
                grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
                grid-gap: 10px;
                padding: 10px;
            }
            .grid-item {
                font-size: 16px;
                padding: 15px;
            }
        }
        @media screen and (max-width: 400px) {
            .grid-container {
                grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
                grid-gap: 5px;
                padding: 5px;
            }
            .grid-item {
                font-size: 14px;
                padding: 10px;
            }
        }
        .rank-math-list-item {
            border: 1px solid #ccc; /* Border color light grey */
            border-radius: 5px; /* Rounded corners */
            margin-bottom: 10px; /* Space between items */
            padding: 10px; /* Spacing inside */
        }

        .rank-math-question {
            font-weight: bold;
        }

        .rank-math-answer {
            display: none; /* Hide by default */
            padding-top: 5px;
        }

        /* Add border and background to the button */
        .RMFA-quesion-button {
            width: 100%;
            text-align: left;
            border: none;
            background: #f5f5f5;
            padding: 10px;
            font-size: 16px;
            cursor: pointer;
            border-radius: 5px;
        }

        /* Show answer when button is clicked */
        .RMFA-quesion-button[aria-expanded="true"] + .rank-math-answer {
            display: block;
            border-top: 1px solid #ccc;
            padding: 10px;
        }
        .rank-math-answer {
            display: none; /* By default hidden */
            padding: 10px;
            background: #f9f9f9;
            border-left: 4px solid #0073aa;
            margin-top: 5px;
        }
        .RMFA-quesion-button {
            background: none;
            border: none;
            font-size: 18px;
            cursor: pointer;
            text-align: left;
            width: 100%;
            padding: 10px;
            transition: background 0.3s ease-in-out;
        }
        .RMFA-quesion-button:hover {
            background: #eee;
        }
        /* Footer styling */
        #footer.ct-footer {
            background: #222; /* Dark background */
            color: #fff; /* White text */
            text-align: center;
            padding: 20px 10px;
        }

        /* Copyright text styling */
        .ct-footer-copyright p {
            margin: 5px 0;
            font-size: 14px;
            line-height: 1.5;
        }

        /* Copyright link styling */
        .ct-footer-copyright a {
            color: #ffcc00; /* Gold color */
            text-decoration: none;
            font-weight: bold;
        }

        .ct-footer-copyright a:hover {
            text-decoration: underline;
        }

        /* Red asterisk */
        .ct-footer-copyright p span {
            font-weight: bold;
        }
    /* Mobile specific styles */
    @media only screen and (max-width: 768px) {
    /* Ensure body has no margins and padding */
    body {
        margin: 0;
        padding: 0;
        width: 100%;
        overflow-x: hidden; /* Prevent horizontal scroll */
    }

    /* Make sure the container is centered */
    .container {
        width: 100%;
        padding: 10px;
    }
    
    /* Center text elements */
    .container, .content, .header, .footer {
        text-align: center;
    }

    nav {
        display: none; /* Hide the normal menu on mobile */
    }

    .hamburger-menu {
        display: flex; /* Show the hamburger button */
    }

    header {
        position: relative;
    }

    /* Ensure no element is overflowing */
    * {
        box-sizing: border-box;
    }

    /* Ensure buttons and other elements resize correctly */
    .your-button-class {
        width: 100%;
        padding: 10px;
        font-size: 16px;
    }

    /* Handle images responsively */
    img {
        max-width: 100%;
        height: auto;
    }

    /* Remove any unwanted margins or padding from main content */
    .main-content {
        padding: 0;
        margin: 0;
    }

    /* If there are any sidebars, make them full width or hide them */
    .sidebar {
        width: 100%;
        display: block;
    }

    /* Prevent horizontal scrolling */
    html, body {
        overflow-x: hidden;
    }
}
  </style>
</head>
<body>
    
    <header style="display: flex; align-items: center; justify-content: space-between; padding: 10px 20px;">

    <a href="https://moviesbighub.com/player" style="text-decoration: none;">
        <img src="https://cdn.jsdelivr.net/gh/betterbot69/website/terabox/TeraBox-1-696x696.png" alt="Your Logo" style="height: 50px; margin-right: 20px;">
    </a>

    <!-- Hamburger Menu -->
    <div class="hamburger-menu" onclick="toggleMenu()">
        <div></div>
        <div></div>
        <div></div>
    </div>

    <!-- Desktop Navigation -->
    <div style="display: flex; justify-content: flex-end !important; margin-top: 15px;">
        <nav>
            <a href="https://moviesbighub.com/player" style="margin-left: 10px !important; text-decoration: none; color: #fff; padding: 10px 20px; background-color: #0073e6; border-radius: 5px;">Home</a>
            <a href="https://moviesbighub.com/about-us/" style="margin-left: 10px !important; text-decoration: none; color: #fff; padding: 10px 20px; background-color: #0073e6; border-radius: 5px;">About Us</a>
            <a href="https://moviesbighub.com/disclaimer/" style="margin-left: 10px !important; text-decoration: none; color: #fff; padding: 10px 20px; background-color: #0073e6; border-radius: 5px;">Disclaimer</a>
            <a href="https://moviesbighub.com/privacy-policy/" style="margin-left: 10px !important; text-decoration: none; color: #fff; padding: 10px 20px; background-color: #0073e6; border-radius: 5px;">Privacy Policy</a>
            <a href="https://moviesbighub.com/contact-us/" style="margin-left: 10px !important; text-decoration: none; color: #fff; padding: 10px 20px; background-color: #0073e6; border-radius: 5px;">Contact Us</a>
            <a href="https://moviesbighub.com/terms-and-condition/" style="margin-left: 10px !important; text-decoration: none; color: #fff; padding: 10px 20px; background-color: #0073e6; border-radius: 5px;">Terms & Conditions</a>
        </nav>
    </div>

    <!-- Mobile Navigation -->
    <div class="mobile-nav" style="display: none; text-align: right !important; margin-top: 15px;">
        <a href="https://moviesbighub.com/player" style="display: block; margin-top: 5px; text-decoration: none; color: #fff; padding: 10px; background-color: #0073e6; border-radius: 5px;">Home</a>
        <a href="https://moviesbighub.com/about-us/" style="display: block; margin-top: 5px; text-decoration: none; color: #fff; padding: 10px; background-color: #0073e6; border-radius: 5px;">About Us</a>
        <a href="https://moviesbighub.com/disclaimer/" style="display: block; margin-top: 5px; text-decoration: none; color: #fff; padding: 10px; background-color: #0073e6; border-radius: 5px;">Disclaimer</a>
        <a href="https://moviesbighub.com/privacy-policy/" style="display: block; margin-top: 5px; text-decoration: none; color: #fff; padding: 10px; background-color: #0073e6; border-radius: 5px;">Privacy Policy</a>
        <a href="https://moviesbighub.com/contact-us/" style="display: block; margin-top: 5px; text-decoration: none; color: #fff; padding: 10px; background-color: #0073e6; border-radius: 5px;">Contact Us</a>
        <a href="https://moviesbighub.com/terms-and-condition/" style="display: block; margin-top: 5px; text-decoration: none; color: #fff; padding: 10px; background-color: #0073e6; border-radius: 5px;">Terms & Conditions</a>
    </div>

</header>
    
<div class="container">
    <h1>TeraBox Video Player Online on MoviesBigHub - Seamless Streaming</h1>
    <br>
    <img src="https://cdn.jsdelivr.net/gh/betterbot69/website/terabox/TeraBox-1-696x696.png" alt="TeraBox Video Player" width="300"">
    <br>
    <p>Watch TeraBox videos online without downloading any app! Simply enter the TeraBox share link below, and your video will play automatically.</p>
    <br>
    <input type="text" id="terabox-link" placeholder="Enter Terabox link">

    <!-- Error message display -->
    <div id="error-message" class="error" style="display: none;"></div>

    <div id="embed-container">
        <h3>Your Terabox Content:</h3>
        <iframe id="terabox-iframe" allowfullscreen></iframe>

        <!-- Button to copy embed code -->
        <button id="copy-btn" class="btn" onclick="copyEmbedCode()">Copy Embed Code</button>

        <!-- Button to show share link -->
        <button id="share-btn" class="btn" onclick="showShareLink()">Share Link</button>

        <!-- Display Shareable Link -->
        <div id="share-link">
            <a href="" id="share-url" target="_blank">Share this link</a>
        </div>
    </div>
</div>
<br>
<br>
<h2 class="wp-block-heading has-text-align-center">What is TeraBox Player?</h2>
<br>
<p>Experience seamless streaming with TeraBox Video Player Online, a free and user-friendly web application that allows you to easily play TeraBox links without the need to download any apps. Our TeraBox online video player supports various formats of TeraBox links, ensuring a smooth and uninterrupted viewing experience for all your favorite TeraBox content, anytime and anywhere.</p>
<br>
<br>
<br>
<h2 class="wp-block-heading has-text-align-center">How the TeraBox Online Video Viewer Works for Seamless Streaming</h2>

    <div class="container2">
        <div class="step">
            <h2>01</h2>
            <h2>Copy Your TeraBox Link</h2>
            <p>Get the shareable link for your TeraBox video from any source, such as <strong>Telegram channels</strong>, friends, or cloud storage.</p>
            <p>Example: <em>https://terabox.com/s/your-video-link</em></p>
        </div>
        <div class="step">
            <h2>02</h2>
            <h2>Paste & Play Instantly</h2>
            <p>Simply paste your link into the TeraBox Video Player and click "Watch Now" to start streaming online.</p>

        </div>
        <div class="step">
            <h2>03</h2>
            <h2>Enjoy Seamless Streaming</h2>
            <p>Scroll down to find the video player and start streaming your TeraBox video directly in your browser.</p>
        </div>
    </div>

<div class="wp-block-group is-layout-constrained wp-block-group-is-layout-constrained">
<h2 class="wp-block-heading has-text-align-center">Key Features of TeraBox Video Player Online</h2>
<div style="height:35px" aria-hidden="true" class="wp-block-spacer"></div>

<div class="wp-block-columns is-layout-flex" style="gap: 20px; display: flex;">
    
    <div class="wp-block-column is-layout-flow" style="padding: 15px; background: #f8f8f8; border-radius: 5px;">
        <h3>No Installation Needed</h3>
        <p>Unlike many traditional video platforms that demand app downloads and installations, which take up precious storage and bandwidth,
            <br>
            <br>
            moviesbighub.com/player offers a hassle-free solution. You can now stream TeraBox videos directly in your browser with just a click. No apps, no downloads, and no setup just seamless viewing without any added complexity.</p>
    </div>

    <div class="wp-block-column is-layout-flow" style="padding: 15px; background: #f8f8f8; border-radius: 5px;">
        <h3>No Login, Just Streaming</h3>
        <p>Many video platforms require you to deal with account creation, password management, and lengthy logins, which can disrupt your viewing experience.
            <br>
            <br>
            moviesbighub.com/player eliminates all of these barriers. With our service, you get immediate access to Terabox videos without needing to sign up or log in. Skip the hassle and dive straight into your content without interruptions.</p>
    </div>

    <div class="wp-block-column is-layout-flow" style="padding: 15px; background: #f8f8f8; border-radius: 5px;">
        <h3>Seamless Multi-Device Compatibility</h3>
        <p>For years, computer users have been burdened by the heavy TeraBox PC client software that takes up valuable system resources.
            <br>
            <br>
            We offer a smarter solution. Our platform delivers a sleek, browser-based video player tailored for Terabox links. With our intuitive system, Terabox video links are effortlessly converted into smooth, high-quality streams that play directly in your browser, ensuring a hassle-free experience across all devices.</p>
    </div>
</div>
<div style="height:35px" aria-hidden="true" class="wp-block-spacer"></div>
<h2 class="wp-block-heading has-text-align-center" id="teraboxlinks">Compatible TeraBox Links</h2>
<div style="height:35px" aria-hidden="true" class="wp-block-spacer"></div>

    <div class="grid-container">
        <div class="grid-item">terabox.app</div>
        <div class="grid-item">www.teraboxapp.com</div>
        <div class="grid-item">1024tera.com</div>
        <div class="grid-item">teraboxlink.com</div>
        <div class="grid-item">www.terabox.com</div>
        <div class="grid-item">pebibox.com</div>
        <div class="grid-item">www.terabox.app</div>
        <div class="grid-item">www.terabox.club</div>
        <div class="grid-item">teraboxshare.com</div>
        <div class="grid-item">terabox.com</div>
        <div class="grid-item">teraboxfree.com</div>
        <div class="grid-item">www.terabox.link</div>
        <div class="grid-item">freeterabox.com</div>
        <div class="grid-item">www.terasharefile.com</div>
        <div class="grid-item">www.pebibox.com</div>
        <div class="grid-item">www.1024-terabox.com</div>
        <div class="grid-item">www.mirrobox.com</div>
        <div class="grid-item">www.terabox.link</div>
        <div class="grid-item">1024terabox.com</div>
        <div class="grid-item">teraboxurl.com</div>
        <div class="grid-item">www.teraboxfree.com</div>
        <div class="grid-item">www.4funbox.in</div>
        <div class="grid-item">terafileshare.com</div>
        <div class="grid-item">gibibox.com</div>
        <div class="grid-item">www.bestclouddrive.com</div>
        <div class="grid-item">fancybox.in</div>
        <div class="grid-item">4funbox.in</div>
        <div class="grid-item">www.4funbox.com</div>
        <div class="grid-item">terashareus.com</div>
        <div class="grid-item">www.nephobox.com</div>
        <div class="grid-item">teraboxurl.com</div>
        <div class="grid-item">www.1024tera.com</div>
        <div class="grid-item">1024-terabox.com</div>
        <div class="grid-item">terabox.club</div>
        <div class="grid-item">www.teraboxshare.com</div>
        <div class="grid-item">www.terafileshare.com</div>
        <div class="grid-item">teraboxhub.net</div>
        <div class="grid-item">www.gibibox.com</div>
        <div class="grid-item">www.tera1024box.com</div>
        <div class="grid-item">www.terasharelink.com</div>
        <div class="grid-item">www.mirrobox.com</div>
        <div class="grid-item">4funbox.com</div>
        <div class="grid-item">terabox.app</div>
        <div class="grid-item">www.momerybbox.com</div>
        <div class="grid-item">teraboxhub.net</div>
        <div class="grid-item">teraboxapp.xyz</div>
        <div class="grid-item">terabox.fun</div>
    </div>


<div style="height:35px" aria-hidden="true" class="wp-block-spacer"></div>
<h2 class="wp-block-heading has-text-align-center">Is Terabox Link Video Not Playing? Let&rsquo;s Help You Out!</h2>
<div style="height:35px" aria-hidden="true" class="wp-block-spacer"></div>
<br>
<p>If you're encountering error messages, it could be an issue with streaming Terabox videos or accessing files.</p>
<br>
<p>Follow these easy steps to stream Terabox videos online without needing the app or login</p>
<br>
<p><strong>1. Ensure URL Validity:</strong> Verify that your Terabox file link is compatible with our platform.</p>
<p><strong>2. Enter the URL:</strong> Simply paste the Terabox link into the input box, and the video or file will start playing automatically.</p>
<br>
<br>
<h2 class="wp-block-heading">Frequently Asked Questions (FAQs)</h2>

<div id="rank-math-faq" class="rank-math-block">
    <div class="rank-math-list">
        
        <div class="rank-math-list-item">
            <h3 class="rank-math-question">
                <button class="RMFA-quesion-button" aria-controls="faq-answer-1" aria-expanded="false">What is the TeraBox Video Player Online?</button>
            </h3>
            <div class="rank-math-answer" id="faq-answer-1">
                <p>The TeraBox Video Player Online is a web-based tool designed for users to stream TeraBox videos directly from their browser without needing to download the TeraBox app or PC client. It works without requiring you to log in to any account.</p>
            </div>
        </div>

        <div class="rank-math-list-item">
            <h3 class="rank-math-question">
                <button class="RMFA-quesion-button" aria-controls="faq-answer-2" aria-expanded="false">How can I use the TeraBox link video player?</button>
            </h3>
            <div class="rank-math-answer" id="faq-answer-2">
                <p>To use the TeraBox link video player, simply copy your TeraBox link, paste it into the input box on our homepage, and click 'Watch TeraBox Video Online'. The video will start loading and be ready to watch instantly.</p>
            </div>
        </div>

        <div class="rank-math-list-item">
            <h3 class="rank-math-question">
                <button class="RMFA-quesion-button" aria-controls="faq-answer-3" aria-expanded="false">Can I watch TeraBox videos without the app using this online player?</button>
            </h3>
            <div class="rank-math-answer" id="faq-answer-3">
                <p>Absolutely! Our TeraBox video player allows you to watch videos from TeraBox without needing to install the TeraBox app on your device. Enjoy seamless streaming directly in your browser.</p>
            </div>
        </div>

        <div class="rank-math-list-item">
            <h3 class="rank-math-question">
                <button class="RMFA-quesion-button" aria-controls="faq-answer-4" aria-expanded="false">Is this TeraBox online video player free to use?</button>
            </h3>
            <div class="rank-math-answer" id="faq-answer-4">
                <p>Yes! The TeraBox online video player is completely free to use. There are no charges, subscriptions, or hidden fees associated with it. Just use it for free, whenever you like!</p>
            </div>
        </div>

    </div>
</div>

<script>
    function toggleMenu() {
        var menu = document.querySelector(".mobile-nav");
        if (menu.style.display === "flex") {
            menu.style.display = "none";
        } else {
            menu.style.display = "flex";
        }
    }
</script>

<script>
document.addEventListener("DOMContentLoaded", function () {
    const buttons = document.querySelectorAll(".RMFA-quesion-button");
    
    buttons.forEach((button) => {
        button.addEventListener("click", function () {
            const panelId = this.getAttribute("aria-controls");
            const panel = document.getElementById(panelId);
            const expanded = this.getAttribute("aria-expanded") === "true";

            this.setAttribute("aria-expanded", !expanded);
            panel.style.display = expanded ? "none" : "block";
        });
    });
});
</script>

<br>
<br>
<h2 class="wp-block-heading has-text-align-center">Disclaimer</h2>
<br>
<div style="text-align: center;"></div>
<p>This website is not affiliated with Terabox, terabox.app, or Flextech Inc. moviesbighub.com/player is an independent tool designed to generate direct download links for Terabox file URLs. We do not host, upload, or store any user files on our servers. Our platform does not promote or support any illegal activities. We respect copyright holders' rights and ensure full compliance with copyright laws. If you are the rightful owner of Terabox or any content shared through our tool and believe that this site violates any rights, please contact us using the email address provided on our Contact page. We are committed to addressing any concerns promptly.</p>
</div>
<br>
<br>

<footer id="footer" class="ct-footer" data-id="type-1" itemscope itemtype="https://schema.org/WPFooter">
    <div data-row="bottom">
        <div class="ct-container">
            <div data-column="copyright">
                <div class="ct-footer-copyright" data-id="copyright">
                    <p><strong>&copy; moviesbighub 2025 All Rights Reserved. - 
                        <a href="https://moviesbighub.com/">moviesbighub player &raquo; Watch Terabox videos without needing to log in.</a></strong>
                    </p>
                    <p><span style="color: red;">* </span>All images, files, and trademarks are the property of their respective owners. We share content solely for educational purposes.</p>
                </div>
            </div>

            <!-- Right-Aligned Navigation Menu in Footer -->
            <div style="display: flex; justify-content: flex-end; margin-top: 15px;">
                <nav>
                    <a href="https://moviesbighub.com/player" style="margin-left: 10px; text-decoration: none; color: #fff; padding: 8px 16px; background-color: #0073e6; border-radius: 5px;">Home</a>
                    <a href="https://moviesbighub.com/about-us/" style="margin-left: 10px; text-decoration: none; color: #fff; padding: 8px 16px; background-color: #0073e6; border-radius: 5px;">About Us</a>
                    <a href="https://moviesbighub.com/disclaimer/" style="margin-left: 10px; text-decoration: none; color: #fff; padding: 8px 16px; background-color: #0073e6; border-radius: 5px;">Disclaimer</a>
                    <a href="https://moviesbighub.com/privacy-policy/" style="margin-left: 10px; text-decoration: none; color: #fff; padding: 8px 16px; background-color: #0073e6; border-radius: 5px;">Privacy Policy</a>
                    <a href="https://moviesbighub.com/contact-us/" style="margin-left: 10px; text-decoration: none; color: #fff; padding: 8px 16px; background-color: #0073e6; border-radius: 5px;">Contact Us</a>
                    <a href="https://moviesbighub.com/terms-and-condition/" style="margin-left: 10px; text-decoration: none; color: #fff; padding: 8px 16px; background-color: #0073e6; border-radius: 5px;">Terms & Conditions</a>
                </nav>
            </div>
        </div>
    </div>
</footer>

<script>
    if (window !== window.parent) {
        // Agar page iframe ke andar hai, toh sirf video player dikhao
        document.body.innerHTML = '<iframe id="terabox-iframe" width="100%" height="100%" frameborder="0" allowfullscreen></iframe>';

        // Terabox link fetch karo aur iframe me set karo
        var urlParams = new URLSearchParams(window.location.search);
        var teraboxLink = urlParams.get('url');

        if (teraboxLink) {
            var surl = teraboxLink.split("s/")[1];
            if (surl.charAt(0) === '1') {
                surl = surl.substring(1);
            }
            document.getElementById("terabox-iframe").src = "https://1024terabox.com/sharing/embed?surl=" + surl + "&resolution=720&autoplay=true&mute=false";
        }
    }
</script>

<script>
    document.getElementById("terabox-link").addEventListener("input", function() {
        embedTerabox();
    });

    // Auto-embed on page load (for direct visit with ?url=)
window.onload = function () {
    var params = new URLSearchParams(window.location.search);
    var teraboxURL = params.get('url');

    if (teraboxURL) {
        // Set the value of input field
        document.getElementById("terabox-link").value = decodeURIComponent(teraboxURL);
        embedTerabox();  // Call the function to embed video
    } else {
        // Agar query string mein koi URL nahi hai, toh input field ko check karenge
        var link = document.getElementById("terabox-link").value;
        if (link.trim() !== "") {
            embedTerabox();  // Agar input me kuch link hai toh embed karenge
        }
    }
};

// List of valid domains
const validDomains = [
    "terabox.app", "teraboxapp.com", "1024tera.com",
    "terabox.com", "pebibox.com", "terabox.app",
    "terabox.club", "teraboxshare.com", "terabox.com", "teraboxfree.com",
    "terabox.link", "freeterabox.com", "freeterabox.com", "4funbox.in",
    "terasharefile.com", "pebibox.com", "pebibox.com", "1024-terabox.com",
    "mirrobox.com", "terabox.link", "1024terabox.com", "teraboxurl.com",
    "teraboxfree.com", "4funbox.in", "terafileshare.com", "gibibox.com",
    "bestclouddrive.com", "fancybox.in", "4funbox.in", "4funbox.com", 
    "terashareus.com", "nephobox.com", "teraboxurl.com", "1024tera.com",
    "1024-terabox.com", "terabox.club", "teraboxshare.com", "terafileshare.com",
    "teraboxhub.net", "gibibox.com", "tera1024box.com", "terasharelink.com",
    "mirrobox.com", "4funbox.com", "terabox.app", "momerybbox.com",
    "teraboxhub.net", "teraboxapp.xyz", "teraboxlink.com", "terabox.fun"
];

// Function to validate the link
function validateTeraboxLink(link) {
    // Check if the link contains any of the valid domains
    let isValid = validDomains.some(domain => link.includes(domain));

    // If the link is not valid, show error message
    if (!isValid) {
        const errorMessage = document.getElementById("error-message");
        errorMessage.textContent = "Invalid Terabox link! Please check the URL.";
        errorMessage.style.display = "block";  // Show error message
        return false;
    }
    return true;
}

function embedTerabox() {
    var link = document.getElementById("terabox-link").value;
    var iframe = document.getElementById("terabox-iframe");
    var embedContainer = document.getElementById("embed-container");
    var errorMessage = document.getElementById("error-message");

    // Hide previous error message
    errorMessage.style.display = "none";
    embedContainer.style.display = "none";
    document.getElementById("share-link").style.display = "none";

    if (link.trim() === "") {
        errorMessage.textContent = "Please enter a valid Terabox URL.";
        errorMessage.style.display = "block"; // Show error for empty link
        return;
    }

    // Validate if the link contains 'teraboxlink.com/s/'
    if (!validateTeraboxLink(link)) {
        return;
    }

    try {
    // Extract 'surl' from the link
    var surl = link.split("s/")[1];

    // Remove first '1' if it exists
    if (surl.charAt(0) === '1') {
        surl = surl.substring(1);
    }

    // Correct Embed URL with moviesbighub.com link
    var embedURL = "https://moviesbighub.com/player?url=" + encodeURIComponent("https://teraboxlink.com/s/" + surl) + "&resolution=720&autoplay=true&mute=false";

    // Set iframe source
    iframe.src = embedURL;

    // Display the embedded content
    embedContainer.style.display = "block";

    } catch (error) {
            // Catch any unexpected errors and display a generic message
            errorMessage.textContent = "An error occurred while processing the link. Please try again.";
            errorMessage.style.display = "block"; // Show error message
            console.error(error);  // Log the error in the console for debugging
        }
}
// Update share link functionality to copy link instead of displaying
function showShareLink() {
    var link = document.getElementById("terabox-link").value;
    var shareUrl = "https://moviesbighub.com/player?url=" + encodeURIComponent(link);
    
    // Copy to clipboard instead of showing it
    navigator.clipboard.writeText(shareUrl).then(function() {
        alert("Link copied to clipboard!");
    }).catch(function(error) {
        alert("Error copying link: " + error);
    });
}

// Update the function for copying embed code
function copyEmbedCode() {
    var iframeSrc = document.getElementById("terabox-iframe").src;
    var embedCode = `<iframe width="100%" height="400" src="${iframeSrc}" frameborder="0" allowfullscreen></iframe>`;
    navigator.clipboard.writeText(embedCode).then(function() {
        alert("Embed code copied to clipboard!");
    }).catch(function(error) {
        alert("Error copying embed code: " + error);
    });
}

</script>

</body>
</html>
