<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>RentHistory.org Preview For RYCO LLC</title>
    
    <!-- Google Fonts -->
    <link href="https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600&family=Roboto:wght@300;400&display=swap" rel="stylesheet">
    
    <!-- Font Awesome for Icons -->
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    
    <!-- GSAP for Animations -->
    <script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.12.2/gsap.min.js" integrity="sha512-..." crossorigin="anonymous" referrerpolicy="no-referrer"></script>
    
    <style>
        /* Reset & Basic Styles */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Roboto', sans-serif;
            background: linear-gradient(135deg, #000000, #2c2c2c);
background-color:black;
            color: #ffffff;
            height: 100vh;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            overflow-x: hidden;
        }

        h1 {
            font-family: 'Montserrat', sans-serif;
            font-size: 1.3rem;
            margin-bottom: 20px;
            text-align: center;
            letter-spacing: 2px;
            text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
        }

        /* Video Container */
        .video-container {
            position: relative;
            width: 80%;
            max-width: 800px;
            border-radius: 15px;
            overflow: hidden;
            box-shadow: 0 0 20px rgba(0,0,0,0.5);
        }

        video {
            width: 100%;
            display: block;
        }

        /* Custom Controls */
        .controls {
            position: absolute;
            bottom: 15px;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            align-items: center;
            background: rgba(0,0,0,0.6);
            padding: 10px 20px;
            border-radius: 30px;
            opacity: 0;
            transition: opacity 0.3s;
        }

        .video-container:hover .controls {
            opacity: 1;
        }

        .controls button {
            background: none;
            border: none;
            color: #ffffff;
            font-size: 1.5rem;
            margin: 0 10px;
            cursor: pointer;
            transition: color 0.3s;
        }

        .controls button:hover {
            color: #1e90ff;
        }

        .controls .progress {
            flex: 1;
            height: 5px;
            background: #555;
            border-radius: 5px;
            cursor: pointer;
            position: relative;
            margin: 0 10px;
        }

        .controls .progress::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            height: 100%;
            width: 0%;
            background: #1e90ff;
            border-radius: 5px;
        }

        /* Glow Effect */
        .glow {
            box-shadow: 0 0 20px #1e90ff, 0 0 40px #1e90ff, 0 0 60px #1e90ff;
            transition: box-shadow 0.3s;
        }
    </style>
</head>
<body>

    <h1>RentHistory.org Preview For RYCO LLC</h1>

    <div class="video-container" id="videoContainer">
        <video id="video" poster="https://renthistory.org/media/images/thumbnail.webp" preload="metadata" src="https://renthistory.org/media/RYCO-PREVIEW.mp4" preload="metadata"></video>
        <div class="controls" id="controls">
            <button id="playPause"><i class="fas fa-play"></i></button>
            <div class="progress" id="progressBar"></div>
            <span id="currentTime">0:00</span> / <span id="duration">0:00</span>
        </div>
    </div>

    <script>
        const video = document.getElementById('video');
        const playPauseBtn = document.getElementById('playPause');
        const progressBar = document.getElementById('progressBar');
        const currentTimeElem = document.getElementById('currentTime');
        const durationElem = document.getElementById('duration');
        const videoContainer = document.getElementById('videoContainer');

        // Format time in mm:ss
        function formatTime(time) {
            const minutes = Math.floor(time / 60);
            const seconds = Math.floor(time % 60);
            return `${minutes}:${seconds < 10 ? '0' : ''}${seconds}`;
        }

        // Update Duration
        video.addEventListener('loadedmetadata', () => {
            durationElem.textContent = formatTime(video.duration);
        });

        // Play/Pause Toggle
        playPauseBtn.addEventListener('click', () => {
            if (video.paused) {
                video.play();
            } else {
                video.pause();
            }
        });

        // Update Play/Pause Icon
        video.addEventListener('play', () => {
            playPauseBtn.innerHTML = '<i class="fas fa-pause"></i>';
            videoContainer.classList.add('glow');
        });

        video.addEventListener('pause', () => {
            playPauseBtn.innerHTML = '<i class="fas fa-play"></i>';
            videoContainer.classList.remove('glow');
        });

        // Update Progress Bar
        video.addEventListener('timeupdate', () => {
            const percent = (video.currentTime / video.duration) * 100;
            progressBar.style.setProperty('--progress', `${percent}%`);
            progressBar.querySelector('::after');
            progressBar.style.background = '#555';
            progressBar.style.setProperty('--progress', `${percent}%`);
            progressBar.querySelector('::after').style.width = `${percent}%`;
            currentTimeElem.textContent = formatTime(video.currentTime);
        });

        // Click to Seek
        progressBar.addEventListener('click', (e) => {
            const rect = progressBar.getBoundingClientRect();
            const clickX = e.clientX - rect.left;
            const width = rect.width;
            const percent = clickX / width;
            video.currentTime = percent * video.duration;
        });

        // GSAP Animations for Glow
        gsap.to("#videoContainer", {
            boxShadow: "0 0 20px #1e90ff, 0 0 40px #1e90ff, 0 0 60px #1e90ff",
            duration: 0.3,
            paused: true,
            reversed: true,
            onReverseComplete: () => videoContainer.classList.remove('glow'),
            onStart: () => videoContainer.classList.add('glow')
        });

    </script>
<br>
<br>
</body>
</html>