<!DOCTYPE html>
<html>
<head>
    <title>watchmedyin</title>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css">
    <style>
        body, html {
            margin: 0;
            padding: 0;
            width: 100%;
            height: 100%;
            background-color: #000000;
            font-family: Arial, sans-serif;
            overflow: hidden;
            color: white;
        }

        .overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: #000000;
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 9999;
            cursor: pointer;
            opacity: 1;
            visibility: visible;
            transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
        }

        .enter-text {
            color: white;
            font-size: 24px;
            text-transform: lowercase;
            letter-spacing: 2px;
        }

        .hidden {
            opacity: 0;
            visibility: hidden;
        }

        .video-background {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            z-index: 1;
            background: #000000;
            opacity: 0;
            transition: opacity 1s ease-in-out;
            -webkit-user-select: none;
            user-select: none;
        }

        video::-webkit-media-controls,
        video::-webkit-media-controls-overlay-play-button,
        video::-webkit-media-controls-play-button,
        video::-webkit-media-controls-timeline,
        video::-webkit-media-controls-current-time-display,
        video::-webkit-media-controls-time-remaining-display,
        video::-webkit-media-controls-time-remaining-display,
        video::-webkit-media-controls-mute-button,
        video::-webkit-media-controls-toggle-closed-captions-button,
        video::-webkit-media-controls-volume-slider,
        video::-webkit-media-controls-fullscreen-button {
            display: none !important;
        }

        .video-background.visible {
            opacity: 1;
        }

        .profile-container {
            position: fixed;
            z-index: 2;
            color: white;
            text-align: center;
            opacity: 0;
            visibility: hidden;
            padding: 20px;
            max-width: 400px;
            left: 50%;
            top: 50%;
            transform: translate(-50%, -50%);
            background: rgba(0, 0, 0, 0.5);
            border-radius: 10px;
            backdrop-filter: blur(5px);
            transition: opacity 1s ease-in-out, visibility 1s ease-in-out;
        }

        .profile-container.visible {
            opacity: 1;
            visibility: visible;
        }

        .profile-pic {
            width: 120px;
            height: 120px;
            border-radius: 50%;
            margin: 20px auto;
            border: 3px solid #fff;
            display: block;
        }

        .username {
            font-size: 32px;
            margin: 10px 0;
            color: white;
        }

        .status-dot {
            width: 10px;
            height: 10px;
            border-radius: 50%;
            display: inline-block;
            margin-right: 5px;
        }

        .status-dot.online { background-color: #43b581; }
        .status-dot.idle { background-color: #faa61a; }
        .status-dot.dnd { background-color: #f04747; }
        .status-dot.offline { background-color: #747f8d; }

        .status {
            font-size: 14px;
            color: #999;
            margin: 10px 0;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 5px;
        }

        .activity {
            font-size: 12px;
            color: #999;
            margin-bottom: 20px;
        }

        .social-links {
            display: flex;
            justify-content: center;
            gap: 15px;
            margin-top: 20px;
        }

        .social-links a {
            color: #fff;
            text-decoration: none;
            font-size: 24px;
        }

        .social-links a:hover {
            color: #7289da;
        }
    </style>
</head>
<body>
    <div class="overlay" id="enterOverlay">
        <div class="enter-text">click to enter...</div>
    </div>

    <video class="video-background" id="videoBackground" loop playsinline>
        <source src="https://files.catbox.moe/nh7ajk.mp4" type="video/mp4">
    </video>

    <div class="profile-container" id="profileContainer">
        <img id="profilePicture" alt="Profile Picture" class="profile-pic">
        <h1 class="username" id="discordUsername"></h1>
        <div class="status">
            <span class="status-dot" id="statusDot"></span>
            <span id="statusText">Updating status...</span>
        </div>
        <div class="activity" id="activityText"></div>
        <div class="social-links">
            <a href="https://discord.gg/yruzgp67Cn" target="_blank">
                <i class="fab fa-discord"></i>
            </a>
            <a href="https://www.tiktok.com/@mypasttruineedme" target="_blank">
                <i class="fab fa-tiktok"></i>
            </a>
            <a href="https://www.instagram.com/watchmebleeds" target="_blank">
                <i class="fab fa-instagram"></i>
            </a>
        </div>
    </div>

    <script>
    const DISCORD_ID = "619684857689407535";

    
    document.getElementById('videoBackground').load();

    
    updateDiscordStatus();

    document.getElementById('enterOverlay').addEventListener('click', async function() {
        const overlay = document.getElementById("enterOverlay");
        const profileContainer = document.getElementById("profileContainer");
        const video = document.getElementById("videoBackground");
        
        
        await updateDiscordStatus();
        
        
        overlay.classList.add("hidden");
        
        
        setTimeout(() => {
            video.classList.add("visible");
            profileContainer.classList.add("visible");
            
            
            video.play().catch(function(error) {
                console.log("Video play failed:", error);
            });
            
            
            setInterval(updateDiscordStatus, 30000);
        }, 500);
    });

    async function updateDiscordStatus() {
        try {
            const response = await fetch("https://api.lanyard.rest/v1/users/" + DISCORD_ID);
            if (!response.ok) throw new Error("HTTP error! status: " + response.status);
            const data = await response.json();
            
            if (data.success) {
                const { discord_status, discord_user, activities } = data.data;
                
                document.getElementById("profilePicture").src = "https://cdn.discordapp.com/avatars/" + discord_user.id + "/" + discord_user.avatar + ".png?size=512";
                document.getElementById("discordUsername").textContent = discord_user.username;
                document.getElementById("statusDot").className = "status-dot " + discord_status;
                document.getElementById("statusText").textContent = discord_status.charAt(0).toUpperCase() + discord_status.slice(1);
                
                const activityText = document.getElementById("activityText");
                if (activities && activities.length > 0) {
                    const activity = activities[0];
                    activityText.textContent = (activity.type === "PLAYING" ? "Playing " : "Doing ") + activity.name;
                } else {
                    activityText.textContent = "";
                }
            }
        } catch (error) {
            console.error("Error:", error);
            document.getElementById("statusText").textContent = "Status Unavailable";
        }
    }
</script>
</body>
</html>
