<!DOCTYPE html>
<html lang="en">

	<head>
		<meta charset="UTF-8">
		<meta name="viewport" content="width=device-width, initial-scale=1.0">
		<title>sidon</title>

		<!-- External Libraries -->
		<script src="https://cdn.jsdelivr.net/npm/hls.js@latest"></script>
		<script src="https://cdn.jsdelivr.net/npm/shaka-player@latest/dist/shaka-player.compiled.js"></script>

		
			  #topButton {
    position: fixed;
    bottom: 40px;
    right: 40px;
    display: none; /* Hidden by default */
    background-color: #555;
    color: white;
    border: none;
    padding: 12px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    z-index: 1000;
    opacity: 0.7;
    transition: opacity 0.3s;
  }

  #topButton:hover {
    opacity: 1;
  }
			* {
				margin: 0;
				padding: 0;
				box-sizing: border-box;
			}

			:root {
				--primary-bg: #1a1a1a;
				--secondary-bg: #2d2d2d;
				--text-primary: #ffffff;
				--text-secondary: #b3b3b3;
				--accent-color: #e50914;
				--border-color: #404040;
				--hover-bg: #404040;
				--card-bg: #2d2d2d;
				--input-bg: #333333;
			}

			[data-theme="light"] {
				--primary-bg: #ffffff;
				--secondary-bg: #f5f5f5;
				--text-primary: #000000;
				--text-secondary: #666666;
				--accent-color: #e50914;
				--border-color: #ddd;
				--hover-bg: #f0f0f0;
				--card-bg: #ffffff;
				--input-bg: #f8f8f8;
			}

			body {
				font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
				background: var(--primary-bg);
				color: var(--text-primary);
				transition: all 0.3s ease;
				line-height: 1.6;
			}

			/* Header Styles */
			.header {
				position: fixed;
				top: 0;
				left: 0;
				right: 0;
				background: var(--secondary-bg);
				padding: 1rem;
				box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
				z-index: 1000;
				display: flex;
				justify-content: space-between;
				align-items: center;
				border-bottom: 2px solid var(--accent-color);
			}

			.logo {
				display: flex;
				align-items: center;
				gap: 1rem;
			}

			.logo img {
				height: 40px;
				width: auto;
				border-radius: 8px;
			}

			.logo h1 {
				font-size: 1.5rem;
				color: var(--accent-color);
				font-weight: bold;
			}

			.header-controls {
				display: flex;
				align-items: center;
				gap: 1rem;
			}

			.theme-toggle,
			.contact-btn {
				background: var(--accent-color);
				color: white;
				border: none;
				padding: 0.5rem 1rem;
				border-radius: 6px;
				cursor: pointer;
				font-size: 0.9rem;
				transition: all 0.3s ease;
			}

			.theme-toggle:hover,
			.contact-btn:hover {
				background: #d40812;
				transform: translateY(-2px);
			}

			/* Main Content */
			.main-content {
				margin-top: 80px;
				padding: 2rem;
				max-width: 1400px;
				margin-left: auto;
				margin-right: auto;
			}

			/* Playlist Input Section */
			.playlist-section {
				background: var(--card-bg);
				padding: 2rem;
				border-radius: 12px;
				margin-bottom: 2rem;
				box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
				border: 1px solid var(--border-color);
			}

			.playlist-section h2 {
				margin-bottom: 1rem;
				color: var(--accent-color);
				font-size: 1.3rem;
			}

			.input-group {
				display: flex;
				gap: 1rem;
				margin-bottom: 1rem;
				flex-wrap: wrap;
			}

			.playlist-input {
				flex: 1;
				min-width: 300px;
				padding: 0.75rem;
				background: var(--input-bg);
				border: 2px solid var(--border-color);
				border-radius: 8px;
				color: var(--text-primary);
				font-size: 1rem;
			}

			.playlist-input:focus {
				outline: none;
				border-color: var(--accent-color);
				box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.1);
			}

			.load-btn {
				background: var(--accent-color);
				color: white;
				border: none;
				padding: 0.75rem 2rem;
				border-radius: 8px;
				cursor: pointer;
				font-size: 1rem;
				font-weight: 600;
				transition: all 0.3s ease;
			}

			.load-btn:hover {
				background: #d40812;
				transform: translateY(-2px);
			}

			/* Search Section */
			.search-section {
				margin-bottom: 2rem;
			}

			.search-input {
				width: 100%;
				padding: 1rem;
				background: var(--input-bg);
				border: 2px solid var(--border-color);
				border-radius: 12px;
				color: var(--text-primary);
				font-size: 1.1rem;
				background-image: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" fill="%23666" viewBox="0 0 24 24"><path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"/></svg>');
				background-repeat: no-repeat;
				background-position: 15px center;
				background-size: 20px;
				padding-left: 50px;
			}

			.search-input:focus {
				outline: none;
				border-color: var(--accent-color);
				box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.1);
			}

			/* Channel Grid */
			.channels-grid {
				display: inline;
				grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
				gap: 1.5rem;
				padding: 1rem 0;
			}

			.channel-card {
				background: var(--card-bg);
				border-radius: 12px;
				overflow: hidden;
				cursor: pointer;
				transition: all 0.3s ease;
				border: 1px solid var(--border-color);
				box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
			}

			.channel-card:hover {
				transform: translateY(-5px);
				box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
				border-color: var(--accent-color);
			}

			.channel-logo {
				width: 100%;
				height: 180px;
				object-fit: cover;
				background: var(--secondary-bg);
			}

			.channel-info {
				padding: 1rem;
			}

			.channel-name {
				font-size: 1.1rem;
				font-weight: 600;
				margin-bottom: 0.5rem;
				color: var(--text-primary);
			}

			.channel-type {
				display: inline-block;
				background: var(--accent-color);
				color: white;
				padding: 0.25rem 0.75rem;
				border-radius: 20px;
				font-size: 0.8rem;
				font-weight: 600;
				text-transform: uppercase;
			}

			/* Video Modal */
			.video-modal {
				display: none;
				position: fixed;
				top: 0;
				left: 0;
				width: 100%;
				height: 100%;
				background: rgba(0, 0, 0, 0.9);
				z-index: 2000;
				animation: fadeIn 0.3s ease;
			}

			.video-modal.active {
				display: flex;
				align-items: center;
				justify-content: center;
			}

			.video-container {
				position: relative;
				max-width: 90vw;
				max-height: 90vh;
				background: #000;
				border-radius: 12px;
				overflow: hidden;
			}

			.video-player {
				width: 100%;
				height: auto;
				max-height: 80vh;
				min-height: 400px;
			}

			.close-btn {
				position: absolute;
				top: 15px;
				right: 15px;
				background: rgba(0, 0, 0, 0.7);
				color: white;
				border: none;
				width: 40px;
				height: 40px;
				border-radius: 50%;
				cursor: pointer;
				font-size: 1.5rem;
				z-index: 2001;
				transition: all 0.3s ease;
			}

			.close-btn:hover {
				background: var(--accent-color);
				transform: scale(1.1);
			}

			/* Popup Ad */
			.popup-ad {
				display: none;
				position: fixed;
				top: 0;
				left: 0;
				width: 100%;
				height: 100%;
				background: rgba(0, 0, 0, 0.8);
				z-index: 3000;
				animation: slideInUp 0.5s ease;
			}

			.popup-ad.active {
				display: flex;
				align-items: center;
				justify-content: center;
			}

			.popup-content {
				background: var(--card-bg);
				padding: 2rem;
				border-radius: 15px;
				text-align: center;
				max-width: 400px;
				width: 90%;
				position: relative;
				border: 2px solid var(--accent-color);
				box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
			}

			.popup-close {
				position: absolute;
				top: 10px;
				right: 15px;
				background: none;
				border: none;
				color: var(--text-primary);
				font-size: 1.5rem;
				cursor: pointer;
			}

			.visit-site-btn {
				background: var(--accent-color);
				color: white;
				border: none;
				padding: 1rem 2rem;
				border-radius: 8px;
				cursor: pointer;
				font-size: 1rem;
				font-weight: 600;
				margin-top: 1rem;
				transition: all 0.3s ease;
			}

			.visit-site-btn:hover {
				background: #d40812;
				transform: translateY(-2px);
			}

			/* Animations */
			@keyframes fadeIn {
				from {
					opacity: 0;
				}

				to {
					opacity: 1;
				}
			}

			@keyframes slideInUp {
				from {
					opacity: 0;
					transform: translateY(100px);
				}

				to {
					opacity: 1;
					transform: translateY(0);
				}
			}

			/* Loading Spinner */
			.loading {
				display: none;
				text-align: center;
				padding: 2rem;
			}

			.spinner {
				display: inline-block;
				width: 40px;
				height: 40px;
				border: 4px solid var(--border-color);
				border-top: 4px solid var(--accent-color);
				border-radius: 50%;
				animation: spin 1s linear infinite;
			}

			@keyframes spin {
				0% {
					transform: rotate(0deg);
				}

				100% {
					transform: rotate(360deg);
				}
			}

			/* Responsive Design */
			@media (max-width: 768px) {
				.header {
					flex-direction: column;
					gap: 1rem;
					padding: 1rem 0.5rem;
				}

				.header-controls {
					width: 100%;
					justify-content: center;
				}

				.main-content {
					margin-top: 120px;
					padding: 1rem;
				}

				.input-group {
					flex-direction: column;
				}

				.channels-grid {
					grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
					gap: 1rem;
				}

				.video-container {
					max-width: 95vw;
					max-height: 85vh;
				}

				.video-player {
					min-height: 250px;
				}
			}

			@media (max-width: 480px) {
				.channels-grid {
					grid-template-columns: 1fr;
				}

				.logo h1 {
					font-size: 1.2rem;
				}

				.playlist-section {
					padding: 1rem;
				}
			}

			/* Error Message */
			.error-message {
				background: #dc3545;
				color: white;
				padding: 1rem;
				border-radius: 8px;
				margin: 1rem 0;
				display: none;
			}

			/* Success Message */
			.success-message {
				background: #28a745;
				color: white;
				padding: 1rem;
				border-radius: 8px;
				margin: 1rem 0;
				display: none;
			}
		
	</head>

	<body data-theme="dark">
		<!-- Header -->
		<header class="header">
			<div class="logo">
				<img src="https://i.imgur.com/gbnErPx.gif" alt="Logo" onerror="this.style.display='none'">
				<h1></h1>
			</div>
			<div class="header-controls">
				<button class="theme-toggle" onclick="toggleTheme()"> Dark</button>
				<button id="topButton" title="Go to top">Top</button>
				<button class="contact-btn" onclick="sendMail()"> Contact</button>
			</div>
		</header>

		<!-- Main Content -->
		<main class="main-content">
			<!-- Playlist Input Section -->
			<section class="playlist-section">
				<h2>Load M3U Playlist</h2>
				<div class="input-group">
					<input type="text" class="playlist-input" id="playlistUrl" placeholder="Enter M3U playlist URL (supports raw.githubusercontent.com)">
					<button class="load-btn" onclick="loadPlaylist()">Load Playlist</button>
				</div>
				<div class="error-message" id="errorMessage"></div>
				<div class="success-message" id="successMessage"></div>
			</section>

			<!-- Search Section -->
			<section class="search-section">
				<input type="text" class="search-input" id="searchInput" placeholder="Search channels..." onkeyup="searchChannels()">
			</section>

			<!-- Loading Indicator -->
			<div class="loading" id="loadingIndicator">
				<div class="spinner"></div>
				<p>Loading channels...</p>
			</div>

			<!-- Channels Grid -->
			<section class="channels-grid" id="channelsGrid">
				<!-- Channels will be populated here -->
			</section>
		</main>

		<!-- Video Modal -->
		<div class="video-modal" id="videoModal">
			<div class="video-container">
				<button class="close-btn" onclick="closeVideoModal()">&times;</button>
				<video class="video-player" id="videoPlayer" controls autoplay></video>
			</div>
		</div>

		<!-- Popup Ad -->
		<div class="popup-ad" id="popupAd">
			<div class="popup-content">
				<button class="popup-close" onclick="closePopupAd()">&times;</button>
				<h3>Discover More!</h3>
				<p>Want to support my shopee affiliate? Click this pop up message</p>
				<button class="visit-site-btn" onclick="visitSite()">Visit Site</button>
			</div>
		</div>

		<script>
			// Global variables
			let channels = [{
					type: "hls",
					url: "https://d1bail49udbz1k.cloudfront.net/out/v1/78e282e04f0944f3ad0aa1db7a1be645/index_3.m3u8",
					name: "CineMo",
					logo: "https://i.imgur.com/lPtiupB.png"
				},
				{
					type: "mpd",
					url: "https://qp-pldt-live-grp-02-prod.akamaized.net/out/u/tv5_hd.mpd",
					name: "TV 5 HD",
					logo: "https://cms.cignal.tv/Upload/Thumbnails/TV5%20HD%20logo%20(1).png",
					drm: {
						// Example ClearKey (replace with your own)
						keys: {
							"2615129ef2c846a9bbd43a641c7303ef": "07c7f996b1734ea288641a68e1cfdc4d"
						}
					}
				},
				{
					type: "hls",
					url: "https://customer-ksrwu2hvu2ipx2fb.cloudflarestream.com/121fd4c01c7ed1c0b1d2c6699e52309a/manifest/video.m3u8?parentOrigin=https%3A%2F%2Fwww.manilatimes.net",
					name: "The manila times",
					logo: "https://i.imgur.com/nKdSuTF.png"
				},
				{
					type: "mpd",
					url: "https://cdn-ue1-prod.tsv2.amagi.tv/linear/amg01006-abs-cbn-kapcha-dash-abscbnono/index.mpd",
					name: "KAPAMILYA CH",
					logo: "https://i.ibb.co/nzPQS7S/download-54.png",
					drm: {
						keys: {
							"bd17afb5dc9648a39be79ee3634dd4b8": "3ecf305d54a7729299b93a3d69c02ea5"
						}
					}
				},
				{
					type: "mpd",
					url: "https://olsp.live.dash.c4assets.com/dash_iso_sp_tl/live/channel(f4)/manifest.mpd",
					name: "Film 4",
					logo: "https://i.imgur.com/YvDSQpt.jpeg",
					drm: {
						keys: {
							"0000000000000000000000000066340a": "627bcdc9e9556a74b05c5d311d8d2a61"
						}
					}
				},
				{
					type: "mpd",
					url: "https://qp-pldt-live-grp-08-prod.akamaized.net/out/u/truefm_tv.mpd",
					name: "True Tv FM",
					logo: "https://i.imgur.com/V0Kv3Vs.jpeg",
					drm: {
						keys: {
							"0559c95496d44fadb94105b9176c3579": "40d8bb2a46ffd03540e0c6210ece57ce"
						}
					}
				},
				{
					type: "mpd",
					url: "https://qp-pldt-live-grp-03-prod.akamaized.net/out/u/cnn_rptv_prod_hd.mpd",
					name: "RPTV",
					logo: "https://i.imgur.com/Qh9pMXc.png",
					drm: {
						keys: {
							"1917f4caf2364e6d9b1507326a85ead6": "a1340a251a5aa63a9b0ea5d9d7f67595"
						}
					}
				},
				{
					type: "mpd",
					url: "https://qp-pldt-live-grp-05-prod.akamaized.net/out/u/bilyonaryoch.mpd",
					name: "SARI SARI",
					logo: "https://i.imgur.com/2QH3rE2.png",
					drm: {
						keys: {
							"227ffaf09bec4a889e0e0988704d52a2": "b2d0dce5c486891997c1c92ddaca2cd2"
						}
					}
				},
				{
					type: "mpd",
					url: "https://qp-pldt-live-grp-02-prod.akamaized.net/out/u/cg_a2z.mpd",
					name: "A2Z",
					logo: "https://i.imgur.com/dmcG9DD.jpeg",
					drm: {
						keys: {
							"f703e4c8ec9041eeb5028ab4248fa094": "c22f2162e176eee6273a5d0b68d19530"
						}
					}
				},
				{
					type: "mpd",
					url: "https://qp-pldt-live-grp-04-prod.akamaized.net/out/u/pbo_sd.mpd",
					name: "PBO",
					logo: "https://i.imgur.com/fYSXspv.png",
					drm: {
						keys: {
							"dcbdaaa6662d4188bdf97f9f0ca5e830": "31e752b441bd2972f2b98a4b1bc1c7a1"
						}
					}
				},
				{
					type: "mpd",
					url: "https://qp-pldt-live-grp-06-prod.akamaized.net/out/u/viva_sd.mpd",
					name: "VIVACINEMA",
					logo: "https://i.imgur.com/FCmcWOK.jpeg",
					drm: {
						keys: {
							"07aa813bf2c147748046edd930f7736e": "3bd6688b8b44e96201e753224adfc8fb"
						}
					}
				},
				{
					type: "mpd",
					url: "https://cdn-ue1-prod.tsv2.amagi.tv/linear/amg01006-abs-cbn-teleradyo-dash-abscbnono/index.mpd",
					name: "TELERADYO SERBISYO",
					logo: "https://i.imgur.com/CF0Hcnv.png",
					drm: {
						keys: {
							"47c093e0c9fd4f80839a0337da3dd876": "50547394045b3d047dc7d92f57b5fb33"
						}
					}
				},
				{
					type: "mpd",
					url: "https://qp-pldt-live-grp-01-prod.akamaized.net/out/u/cg_pbarush_hd1.mpd",
					name: "PBA rush",
					logo: "https://i.imgur.com/Z0YHuYc.jpeg",
					drm: {
						keys: {
							"76dc29dd87a244aeab9e8b7c5da1e5f3": "95b2f2ffd4e14073620506213b62ac82"
						}
					}
				},
				{
					type: "mpd",
					url: "https://qp-pldt-live-grp-02-prod.akamaized.net/out/u/pl_nba.mpd",
					name: "NBA TV PH",
					logo: "https://i.imgur.com/mjEVnlD.png",
					drm: {
						keys: {
							"f36eed9e95f140fabbc88a08abbeafff": "0125600d0eb13359c28bdab4a2ebe75a"
						}
					}
				},
				{
					type: "mpd",
					url: "https://cdn-ue1-prod.tsv2.amagi.tv/linear/amg01006-abs-cbn-tfcasia-dash-abscbnono/index.mpd",
					name: "TFC ASIA",
					logo: "https://i.imgur.com/vXBJhm2.jpeg",
					drm: {
						keys: {
							"9568cc84e1d944f38eac304517eab6fd": "f12142af8f39b3bab79d3679d3665ebe"
						}
					}
				},
				{
					type: "mpd",
					url: "https://qp-pldt-live-grp-06-prod.akamaized.net/out/u/cg_buko_sd.mpd",
					name: "BUKO",
					logo: "https://i.imgur.com/Ceu4zlR.jpeg",
					drm: {
						keys: {
							"d273c085f2ab4a248e7bfc375229007d": "7932354c3a84f7fc1b80efa6bcea0615"
						}
					}
				},
				{
					type: "mpd",
					url: "https://cdn-uw2-prod.tsv2.amagi.tv/linear/amg01006-abs-cbn-abscbn-gma-x7-dash-abscbnono/7c693236-e0c1-40a3-8bd0-bb25e43f5bfc/index.mpd",
					name: "GMA PINOY TV",
					logo: "https://i.imgur.com/hyCmQH9.png",
					drm: {
						keys: {
							"c95ed4c44b0b4f7fa1c6ebbbbaab21a1": "47635b8e885e19f2ccbdff078c207058"
						}
					}
				},

				{
					type: "hls",
					url: "https://live.cltv36.tv:5443/LiveApp/streams/cltvlive.m3u8",
					name: "cltv 36",
					logo: "https://i.imgur.com/IUcTFQ2.png"
				},

				{
					type: "hls",
					url: "https://live20.bozztv.com/giatv/giatv-ATBSGLOBAL/ATBSGLOBAL/playlist.m3u8",
					name: "ATBS",
					logo: "https://i.imgur.com/gbnErPx.gif"
				},
				{
					type: "mpd",
					url: "https://cdn-ue1-prod.tsv2.amagi.tv/linear/amg01006-abs-cbn-anc-global-dash-abscbnono/index.mpd",
					name: "ANC NEWS CH",
					logo: "https://i.imgur.com/W8OFucM.png",
					drm: {
						keys: {
							"4bbdc78024a54662854b412d01fafa16": "6039ec9b213aca913821677a28bd78ae"
						}
					}
				},
				{
					type: "mpd",
					url: "https://qp-pldt-live-grp-10-prod.akamaized.net/out/u/dr_abc_aus.mp",
					name: "ABC AU",
					logo: "https://i.imgur.com/y3XiG2B.png",
					drm: {
						keys: {
							"389497f9f8584a57b234e27e430e04b7": "3b85594c7f88604adf004e45c03511c0"
						}
					}
				},
				{
					type: "mpd",
					url: "https://qp-pldt-live-grp-12-prod.akamaized.net/out/u/dr_hitsmovies.mpd",
					name: "HITS MOVIES",
					logo: "https://i.imgur.com/zzdj40q.png",
					drm: {
						keys: {
							"f56b57b32d7e4b2cb21748c0b56761a7": "3df06a89aa01b32655a77d93e09e266f"
						}
					}
				},
				{
					type: "mpd",
					url: "https://qp-pldt-live-grp-02-prod.akamaized.net/out/u/cg_animal_planet_sd.mpd",
					name: "ANIMAL PLANET",
					logo: "https://i.imgur.com/6DfPawY.jpeg",
					drm: {
						keys: {
							"436b69f987924fcbbc06d40a69c2799a": "c63d5b0d7e52335b61aeba4f6537d54d"
						}
					}
				},
				{
					type: "mpd",
					url: "https://qp-pldt-live-grp-07-prod.akamaized.net/out/u/asianfoodnetwork_sd.mpd",
					name: "AFN",
					logo: "https://i.ibb.co/HdxyfTR/download-1.jpg",
					drm: {
						keys: {
							"1619db30b9ed42019abb760a0a3b5e7f": "5921e47fb290ae263291b851c0b4b6e4"
						}
					}
				},
				{
					type: "mpd",
					url: "https://qp-pldt-live-grp-06-prod.akamaized.net/out/u/cg_axn_sd.mpd",
					name: "AXN",
					logo: "https://i.imgur.com/Blyfjb5.png",
					drm: {
						keys: {
							"fd5d928f5d974ca4983f6e9295dfe410": "3aaa001ddc142fedbb9d5557be43792f"
						}
					}
				},
				{
					type: "mpd",
					url: "https://qp-pldt-live-grp-03-prod.akamaized.net/out/u/cg_bbcearth_hd1.mpd",
					name: "BBC earth",
					logo: "https://i.imgur.com/IU5hXkb.jpeg",
					drm: {
						keys: {
							"34ce95b60c424e169619816c5181aded": "0e2a2117d705613542618f58bf26fc8e"
						}
					}
				},
				{
					type: "mpd",
					url: "https://qp-pldt-live-grp-01-prod.akamaized.net/out/u/cg_cinemax.mpd",
					name: "CINEMAX",
					logo: "https://i.ibb.co/b6LYqnh/download-2024-06-02-T125553-006.png",
					drm: {
						keys: {
							"b207c44332844523a3a3b0469e5652d7": "fe71aea346db08f8c6fbf0592209f955"
						}
					}
				},
				{
					type: "mpd",
					url: "https://qp-pldt-live-grp-13-prod.akamaized.net/out/u/dr_rockextreme.mpd",
					name: "Rock Action",
					logo: "https://i.ibb.co/pWC2KPG/download-19.png",
					drm: {
						keys: {
							"0f852fb8412b11edb8780242ac120002": "4cbc004d8c444f9f996db42059ce8178"
						}
					}
				},
				{
					type: "mpd",
					url: "https://qp-pldt-live-grp-03-prod.akamaized.net/out/u/cg_hbohd.mpd",
					name: "HBO HD",
					logo: "https://i.imgur.com/v0xN2Qq.jpeg",
					drm: {
						keys: {
							"d47ebabf7a21430b83a8c4b82d9ef6b1": "54c213b2b5f885f1e0290ee4131d425b"
						}
					}
				},
				{
					type: "mpd",
					url: "https://qp-pldt-live-grp-03-prod.akamaized.net/out/u/cg_hbofam.mpd",
					name: "HBO FAMILY",
					logo: "https://i.imgur.com/2RakiAU.png",
					drm: {
						keys: {
							"872910c843294319800d85f9a0940607": "f79fd895b79c590708cf5e8b5c6263be"
						}
					}
				},
				{
					type: "mpd",
					url: "https://qp-pldt-live-grp-09-prod.akamaized.net/out/u/cg_hbohits.mpd",
					name: "HBO HITS",
					logo: "https://i.imgur.com/epcDY1h.jpeg",
					drm: {
						keys: {
							"b04ae8017b5b4601a5a0c9060f6d5b7d": "a8795f3bdb8a4778b7e888ee484cc7a1"
						}
					}
				},
				{
					type: "mpd",
					url: "https://qp-pldt-live-grp-01-prod.akamaized.net/out/u/cg_hbosign.mpd",
					name: "HBO SIGNATURE",
					logo: "https://i.imgur.com/ryBV5UP.png",
					drm: {
						keys: {
							"a06ca6c275744151895762e0346380f5": "559da1b63eec77b5a942018f14d3f56f"
						}
					}
				},
				{
					type: "mpd",
					url: "https://qp-pldt-live-grp-09-prod.akamaized.net/out/u/cg_hitsnow.mpd",
					name: "HITS NOW",
					logo: "https://i.ibb.co/x5sxW5k/download-2024-08-22-T154047-454.png",
					drm: {
						keys: {
							"14439a1b7afc4527bb0ebc51cf11cbc1": "92b0287c7042f271b266cc11ab7541f1"
						}
					}
				},
				{
					type: "mpd",
					url: "https://qp-pldt-live-grp-04-prod.akamaized.net/out/u/hits_hd1.mpd",
					name: "HITS",
					logo: "https://i.imgur.com/jghDgUJ.png",
					drm: {
						keys: {
							"dac605bc197e442c93f4f08595a95100": "975e27ffc1b7949721ee3ccb4b7fd3e5"
						}
					}
				},
				{
					type: "mpd",
					url: "https://qp-pldt-live-grp-06-prod.akamaized.net/out/u/cg_tapactionflix_hd1.mpd",
					name: "tap action Flix",
					logo: "https://i.ibb.co/Ykg0KWW/download-2024-08-22-T160415-788.jpg",
					drm: {
						keys: {
							"bee1066160c0424696d9bf99ca0645e3": "f5b72bf3b89b9848de5616f37de040b7"
						}
					}
				},
				{
					type: "mpd",
					url: "https://qp-pldt-live-grp-06-prod.akamaized.net/out/u/cg_thrill_sd.mpd",
					name: "THRILL",
					logo: "https://i.ibb.co/KDF7kkT/download-24.png",
					drm: {
						keys: {
							"928114ffb2394d14b5585258f70ed183": "a82edc340bc73447bac16cdfed0a4c62"
						}
					}
				},
				{
					type: "mpd",
					url: "https://qp-pldt-live-grp-07-prod.akamaized.net/out/u/cg_tvnmovie.mpd",
					name: "TVN MOVIES",
					logo: "https://i.ibb.co/S5MBSLj/download-82.jpg",
					drm: {
						keys: {
							"2e53f8d8a5e94bca8f9a1e16ce67df33": "3471b2464b5c7b033a03bb8307d9fa35"
						}
					}
				},
				{
					type: "mpd",
					url: "https://qp-pldt-live-grp-07-prod.akamaized.net/out/u/lotusmacau_prd.mpd",
					name: "Lotus Macau",
					logo: "https://i.imgur.com/AethGKq.jpeg",
					drm: {
						keys: {
							"60dc692e64ea443a8fb5ac186c865a9b": "01bdbe22d59b2a4504b53adc2f606cc1"
						}
					}
				},
				{
					type: "mpd",
					url: "https://qp-pldt-live-grp-07-prod.akamaized.net/out/u/cg_tagalogmovie.mpd",
					name: "TMC",
					logo: "https://i.imgur.com/5OYghSV.jpeg",
					drm: {
						keys: {
							"96701d297d1241e492d41c397631d857": "ca2931211c1a261f082a3a2c4fd9f91b"
						}
					}
				},
				{
					type: "mpd",
					url: "https://qp-pldt-live-grp-02-prod.akamaized.net/out/u/cg_dreamworks_hd1.mpd",
					name: "DreamWorks HD",
					logo: "https://i.ibb.co/S60h9jd/download-82.png'",
					drm: {
						keys: {
							"4ab9645a2a0a47edbd65e8479c2b9669": "8cb209f1828431ce9b50b593d1f44079"
						}
					}
				},
				{
					type: "mpd",
					url: "https://qp-pldt-live-grp-07-prod.akamaized.net/out/u/cg_dreamworktag.mpd",
					name: "DreamWorks Tagalog",
					logo: "https://i.ibb.co/Lpx4BHB/download-83.png",
					drm: {
						keys: {
							"564b3b1c781043c19242c66e348699c5": "d3ad27d7fe1f14fb1a2cd5688549fbab"
						}
					}
				},
				{
					type: "mpd",
					url: "https://qp-pldt-live-grp-11-prod.akamaized.net/out/u/dr_fashiontvhd.mpd",
					name: "FASHION TV",
					logo: "https://i.imgur.com/61wlhHI.jpeg",
					drm: {
						keys: {
							"971ebbe2d887476398e97c37e0c5c591": "472aa631b1e671070a4bf198f43da0c7"
						}
					}
				},
				{
					type: "mpd",
					url: "https://qp-pldt-live-grp-09-prod.akamaized.net/out/u/cg_foodnetwork_hd1.mpd",
					name: "FOOD NETWORK HD",
					logo: "https://i.imgur.com/Fb8r3Au.jpeg",
					drm: {
						keys: {
							"b7299ea0af8945479cd2f287ee7d530e": "b8ae7679cf18e7261303313b18ba7a14"
						}
					}
				},
				{
					type: "mpd",
					url: "https://qp-pldt-live-grp-13-prod.akamaized.net/out/u/dr_discovery.mpd",
					name: "DISCOVERY CHANNEL",
					logo: "https://i.imgur.com/tQqntpZ.jpeg",
					drm: {
						keys: {
							"d9ac48f5131641a789328257e778ad3a": "b6e67c37239901980c6e37e0607ceee6"
						}
					}
				},
				{
					type: "mpd",
					url: "https://qp-pldt-live-grp-08-prod.akamaized.net/out/u/hgtv_hd1.mpd",
					name: "HGTV",
					logo: "https://i.ibb.co/TvHvdY5/download-9.png",
					drm: {
						keys: {
							"f0e3ab943318471abc8b47027f384f5a": "13802a79b19cc3485d2257165a7ef62a"
						}
					}
				},
				{
					type: "mpd",
					url: "https://qp-pldt-live-grp-11-prod.akamaized.net/out/u/dr_historyhd.mpd",
					name: "HISTORY HD",
					logo: "https://i.imgur.com/4QIy8Rl.jpeg",
					drm: {
						keys: {
							"a7724b7ca2604c33bb2e963a0319968a": "6f97e3e2eb2bade626e0281ec01d3675"
						}
					}
				},
				{
					type: "mpd",
					url: "https://qp-pldt-live-grp-12-prod.akamaized.net/out/u/dr_kbsworld.mpd",
					name: "KBS WORLD",
					logo: "https://i.ibb.co/7RYPgdh/download-15.png",
					drm: {
						keys: {
							"22ff2347107e4871aa423bea9c2bd363": "c6e7ba2f48b3a3b8269e8bc360e60404"
						}
					}
				},
				{
					type: "mpd",
					url: "https://qp-pldt-live-grp-06-prod.akamaized.net/out/u/kix_hd1.mpd",
					name: "KiX HD",
					logo: "https://i.imgur.com/ufitQ4s.png",
					drm: {
						keys: {
							"a8d5712967cd495ca80fdc425bc61d6b": "f248c29525ed4c40cc39baeee9634735"
						}
					}
				},
				{
					type: "mpd",
					url: "https://qp-pldt-live-grp-13-prod.akamaized.net/out/u/dr_knowledgechannel.mpd",
					name: "knowledge ch",
					logo: "https://i.ibb.co/vvr06hW/download-98.png",
					drm: {
						keys: {
							"0f856fa0412b11edb8780242ac120002": "783374273ef97ad3bc992c1d63e091e7"
						}
					}
				},
				{
					type: "mpd",
					url: "https://qp-pldt-live-grp-11-prod.akamaized.net/out/u/dr_lifetime.mpd",
					name: "LIFETIME",
					logo: "https://i.ibb.co/rvFNRd0/download-2024-05-26-T150933-107.png",
					drm: {
						keys: {
							"cf861d26e7834166807c324d57df5119": "64a81e30f6e5b7547e3516bbf8c647d0"
						}
					}
				},
				{
					type: "mpd",
					url: "https://qp-pldt-live-grp-09-prod.akamaized.net/out/u/cg_mptv.mpd",
					name: "MPTV",
					logo: "https://i.imgur.com/8Zp3QiD.png",
					drm: {
						keys: {
							"6aab8f40536f4ea98e7c97b8f3aa7d4e": "139aa5a55ade471faaddacc4f4de8807"
						}
					}
				},
				{
					type: "mpd",
					url: "https://qp-pldt-live-grp-12-prod.akamaized.net/out/u/dr_cartoonnetworkhd.mpd",
					name: "CARTOON NETWORK",
					logo: "https://i.imgur.com/WPFM9JZ.jpeg",
					drm: {
						keys: {
							"a2d1f552ff9541558b3296b5a932136b": "cdd48fa884dc0c3a3f85aeebca13d444"
						}
					}
				},
				{
					type: "mpd",
					url: "https://qp-pldt-live-grp-12-prod.akamaized.net/out/u/dr_nickjr.mpd",
					name: "NICK JR",
					logo: "https://i.imgur.com/FVC5RFr.jpeg",
					drm: {
						keys: {
							"bab5c11178b646749fbae87962bf5113": "0ac679aad3b9d619ac39ad634ec76bc8"
						}
					}
				},
				{
					type: "mpd",
					url: "https://qp-pldt-live-grp-11-prod.akamaized.net/out/u/dr_nickelodeon.mpd",
					name: "NICKELODEON",
					logo: "https://i.ibb.co/yFRPcCx/download-47.png",
					drm: {
						keys: {
							"9ce58f37576b416381b6514a809bfd8b": "f0fbb758cdeeaddfa3eae538856b4d72"
						}
					}
				},
				{
					type: "mpd",
					url: "https://qp-pldt-live-grp-04-prod.akamaized.net/out/u/onenews_hd1.mpd",
					name: "ONE NEWS HD",
					logo: "https://i.ibb.co/80j8DqP/download-99.png",
					drm: {
						keys: {
							"d39eb201ae494a0b98583df4d110e8dd": "6797066880d344422abd3f5eda41f45f"
						}
					}
				},
				{
					type: "mpd",
					url: "https://qp-pldt-live-grp-04-prod.akamaized.net/out/u/oneph_sd.mpd",
					name: "ONE PH",
					logo: "https://i.ibb.co/vxKWtcx/download-94.png",
					drm: {
						keys: {
							"92834ab4a7e1499b90886c5d49220e46": "a7108d9a6cfcc1b7939eb111daf09ab3"
						}
					}
				},
				{
					type: "mpd",
					url: "https://qp-pldt-live-grp-07-prod.akamaized.net/out/u/cg_onesports_hd.mpd",
					name: "ONE sports",
					logo: "https://i.imgur.com/hD1R0Wo.png",
					drm: {
						keys: {
							"53c3bf2eba574f639aa21f2d4409ff11": "3de28411cf08a64ea935b9578f6d0edd"
						}
					}
				},
				{
					type: "mpd",
					url: "https://qp-pldt-live-grp-03-prod.akamaized.net/out/u/cg_onesportsplus_hd1.mpd",
					name: "ONE SPORTS PLUS HD",
					logo: "https://i.ibb.co/vw1zh9r/download-96.png",
					drm: {
						keys: {
							"322d06e9326f4753a7ec0908030c13d8": "1e3e0ca32d421fbfec86feced0efefda"
						}
					}
				},
				{
					type: "mpd",
					url: "https://qp-pldt-live-grp-13-prod.akamaized.net/out/u/dr_premiertennishd.mpd'",
					name: "PREMIER TENNIS",
					logo: "https://i.imgur.com/5toae3j.jpeg",
					drm: {
						keys: {
							"59454adb530b4e0784eae62735f9d850": "61100d0b8c4dd13e4eb8b4851ba192cc"
						}
					}
				},
				{
					type: "mpd",
					url: "https://qp-pldt-live-grp-02-prod.akamaized.net/out/u/cg_ptv4_sd.mpd",
					name: "PTV 4",
					logo: "https://i.ibb.co/9GdChGD/download-2024-05-18-T154113-666.png",
					drm: {
						keys: {
							"71a130a851b9484bb47141c8966fb4a3": "ad1f003b4f0b31b75ea4593844435600"
						}
					}
				},
				{
					type: "mpd",
					url: "https://qp-pldt-live-grp-11-prod.akamaized.net/out/u/dr_warnertvhd.mpd",
					name: "WARNER TV",
					logo: "https://i.imgur.com/ccD2lED.jpeg",
					drm: {
						keys: {
							"4503cf86bca3494ab95a77ed913619a0": "afc9c8f627fb3fb255dee8e3b0fe1d71"
						}
					}
				},
				{
					type: "mpd",
					url: "https://qp-pldt-live-grp-06-prod.akamaized.net/out/u/cg_moonbug_kids_sd.mpd",
					name: "MOONBUG",
					logo: "https://i.imgur.com/UQHtaPo.jpeg",
					drm: {
						keys: {
							"0bf00921bec94a65a124fba1ef52b1cd": "0f1488487cbe05e2badc3db53ae0f29f"
						}
					}
				},
				{
					type: "mpd",
					url: "https://qp-pldt-live-grp-11-prod.akamaized.net/out/u/dr_spotvhd.mpd",
					name: "SPOTV",
					logo: "https://i.imgur.com/1Cps0aq.png",
					drm: {
						keys: {
							"ec7ee27d83764e4b845c48cca31c8eef": "9c0e4191203fccb0fde34ee29999129e"
						}
					}
				},
				{
					type: "mpd",
					url: "https://qp-pldt-live-grp-13-prod.akamaized.net/out/u/dr_spotv2hd.mpd'",
					name: "SPOTV2",
					logo: "https://i.imgur.com/soxhm26.png",
					drm: {
						keys: {
							"7eea72d6075245a99ee3255603d58853": "6848ef60575579bf4d415db1032153ed"
						}
					}
				},
				{
					type: "mpd",
					url: "https://qp-pldt-live-grp-11-prod.akamaized.net/out/u/dr_cgtn.mpd",
					name: "CGTN",
					logo: "https://i.imgur.com/OHQjKDf.jpeg",
					drm: {
						keys: {
							"0f854ee4412b11edb8780242ac120002": "9f2c82a74e727deadbda389e18798d55"
						}
					}
				},
				{
					type: "mpd",
					url: "https://qp-pldt-live-grp-11-prod.akamaized.net/out/u/dr_tapsports.mpd",
					name: "Tap Sports",
					logo: "http://logo.protv.cc/picons/logos/ASIA/TAP-SPORTS.png",
					drm: {
						keys: {
							"eabd2d95c89e42f2b0b0b40ce4179ea0": "0e7e35a07e2c12822316c0dc4873903f"
						}
					}
				},
				{
					type: "mpd",
					url: "https://qp-pldt-live-grp-06-prod.akamaized.net/out/u/cg_taptv_sd.mpd",
					name: "Tap TV",
					logo: "http://logo.protv.cc/picons/logos/ASIA/TAP-TV.png",
					drm: {
						keys: {
							"f6804251e90b4966889b7df94fdc621e": "55c3c014f2bd12d6bd62349658f24566"
						}
					}
				},
				{
					type: "mpd",
					url: "https://fsly.stream.peacocktv.com/Content/CMAF_CTR-4s/Live/channel(lc107a1ddy)/master.mpd",
					name: "Sports NFL",
					logo: "https://i.imgur.com/3xGcxl9.png",
					drm: {
						keys: {
							"002007110c69a23803173b50eab05f23": "590d6e8f4ca81319f9bb29104f571990"
						}
					}
				},
				{
					type: "mpd",
					url: "https://qp-pldt-live-grp-08-prod.akamaized.net/out/u/travel_channel_sd.mpd",
					name: "Travel CH",
					logo: "https://i.imgur.com/qqFA36q.png",
					drm: {
						keys: {
							"f3047fc13d454dacb6db4207ee79d3d3": "bdbd38748f51fc26932e96c9a2020839"
						}
					}
				},
				{
					type: "mpd",
					url: "https://qp-pldt-live-grp-12-prod.akamaized.net/out/u/dr_crime_invest.mpd",
					name: "CRIME investigation",
					logo: "https://i.imgur.com/MXG0xt0.jpeg",
					drm: {
						keys: {
							"21e2843b561c4248b8ea487986a16d33": "db6bb638ccdfc1ad1a3e98d728486801"
						}
					}
				},
				{
					type: "mpd",
					url: "https://qp-pldt-live-grp-09-prod.akamaized.net/out/u/cg_tvnpre.mpd",
					name: "TVN PREMIUM",
					logo: "https://i.imgur.com/nUshU9g.png",
					drm: {
						keys: {
							"e1bde543e8a140b38d3f84ace746553e": "b712c4ec307300043333a6899a402c10"
						}
					}
				},
				{
					type: "mpd",
					url: "https://qp-pldt-live-grp-04-prod.akamaized.net/out/u/cg_uaap_cplay_sd.mpd",
					name: "UAAP Varsity",
					logo: "https://filipinolive.com/wp-content/uploads/2021/09/UAAP-NwFIGB-696x330.jpeg",
					drm: {
						keys: {
							"95588338ee37423e99358a6d431324b9": "6e0f50a12f36599a55073868f814e81e"
						}
					}
				},
				{
					type: "mpd",
					url: "https://qp-pldt-live-grp-09-prod.akamaized.net/out/u/tvup_prd.mpd",
					name: "TVUP",
					logo: "https://i.imgur.com/E4swhJa.jpeg",
					drm: {
						keys: {
							"83e813ccd4ca4837afd611037af02f63": "a97c515dbcb5dcbc432bbd09d15afd41"
						}
					}
				},
				{
					type: "mpd",
					url: "https://qp-pldt-live-grp-07-prod.akamaized.net/out/u/tvmaria_prd.mpd",
					name: "TV MARIA",
					logo: "https://i.imgur.com/MfIMQML.jpeg",
					drm: {
						keys: {
							"fa3998b9a4de40659725ebc5151250d6": "998f1294b122bbf1a96c1ddc0cbb229f"
						}
					}
				},
				{
					type: "mpd",
					url: "https://qp-pldt-live-grp-11-prod.akamaized.net/out/u/dr_tv5_monde.mpd",
					name: "TV5 MONDE",
					logo: "https://i.imgur.com/FRsRXRR.png",
					drm: {
						keys: {
							"fba5a720b4a541b286552899ba86e38b": "f63fa50423148bfcbaa58c91dfcffd0e"
						}
					}
				},
				{
					type: "mpd",
					url: "https://qp-pldt-live-grp-11-prod.akamaized.net/out/u/dr_tech_storm.mpd",
					name: "Tech Storm",
					logo: "https://i.ibb.co/C86S2Tw/download-2024-05-25-T075330-972.png",
					drm: {
						keys: {
							"5675d85ce6754ba6aa8f6acc4660f76f": "140bfb365cf143c349f68699238a610c"
						}
					}
				},
				{
					type: "hls",
					url: "https://dminnvllta.cdn.mgmlcdn.com/dubaione/smil:dubaione.stream.smil/chunklist_b1300000.m3u8",
					name: "Dubai One",
					logo: "https://en.wikipedia.org/wiki/File:Dubaione-logo.png"
				},
				{
					type: "hls",
					url: "https://net25.fflame143.workers.dev/master.m3u8",
					name: "Net25",
					logo: "https://i.imgur.com/gbnErPx.gif"
				},
				{
					type: "hls",
					url: "https://mhz-samsung-linear-ca.samsung.wurl.tv/playlist.m3u8",
					name: "MHZ",
					logo: "https://i.imgur.com/gbnErPx.gif"
				},
				{
					type: "hls",
					url: "https://7732c5436342497882363a8cd14ceff4.mediatailor.us-east-1.amazonaws.com/v1/master/04fd913bb278d8775298c26fdca9d9841f37601f/Plex_NewMovies/playlist.m3u8",
					name: "REDBOX MOVIES",
					logo: "https://i.imgur.com/gbnErPx.gif"
				},
				{
					type: "hls",
					url: "https://fxtvhls.wns.live/hls/stream.m3u8?_=1",
					name: "FX ONE",
					logo: "https://i.imgur.com/gbnErPx.gif"
				},
				{
					type: "hls",
					url: "https://toonixhls.wns.live/hls/stream.m3u8",
					name: "FX 2",
					logo: "https://i.imgur.com/gbnErPx.gif"
				},

				{
					type: "hls",
					url: "https://84e619480232400a842ce499d053458a.mediatailor.us-east-1.amazonaws.com/v1/manifest/04fd913bb278d8775298c26fdca9d9841f37601f/ONO_LoveStoriesTV/f512431a-8ffb-4a80-b8a4-e06c99400c29/3.m3u8",
					name: "LoveStoriesTV",
					logo: "https://i.imgur.com/gbnErPx.gif"
				},
				{
					type: "hls",
					url: "https://d4whmvwm0rdvi.cloudfront.net/10007/99991621/hls/master.m3u8?ads.xumo_channelId=99991621&ads.asnw=169843&ads.afid=158702674&ads.sfid=16926435&ads.csid=xumo_desktopweb_rottentomatoesrttv_ssaicro&ads._fw_is_lat=0&ads._fw_us_privacy=1YNN&ads._fw_coppa=0&ads._fw_did=413d7e29-b63e-b34e-b143-bf0efe32f394&ads._fw_vcid2=512116:413d7e29-b63e-b34e-b143-bf0efe32f394&ads._fw_app_bundle=&ads._fw_app_store_url=&ads._fw_content_category=IAB1-5&ads._fw_content_genre=Movies&ads._fw_content_language=en&ads._fw_content_rating=TV-PG&ads._fw_deviceMake=&ads._fw_device_model=&ads._fw_deviceType=2-Personal_Computer&ads.appVersion=2.18.0&ads.appName=xumo&ads.xumo_contentId=2659&ads.xumo_contentName=RottenTomatoesRTTV&ads.xumo_providerId=2659&ads.xumo_providerName=RottenTomatoesRTTV&ads.channelId=99991621&ads._fw_ifa_type=dpid&ads.site_name=XumoPlay&ads.site_page=https%253A%252F%252Fplay.xumo.com",
					name: "UNIVERSAL MOVIES",
					logo: "https://i.imgur.com/gbnErPx.gif"
				},
				{
					type: "hls",
					url: "https://dbrb49pjoymg4.cloudfront.net/10001/99991348/hls/master.m3u8?includeAssetTags=true&ads.xumo_channelId=99991348&ads._fw_ifa_type=dpid&ads._fw_did=413d7e29-b63e-b34e-b143-bf0efe32f394&ads.amznappId=[AMZN_APP_ID]&ads.lat=[LAT]&ads.lon=[LON]&ads.os=[OS]&ads.osv=[OS_VERSION]&ads.asnw=&ads.caid=Kocowa&ads.csid=xumo_desktopweb_Kocowa_ssai&ads._fw_is_lat=0&ads._fw_us_privacy=1YNN&ads._fw_coppa=0&ads.genre=Action%2CAdventure%2CComedy%2CCrime%2CDrama%2CFamily%2CFantasy%2CHorror%2CMystery%2CRomance%2CSci-Fi%2CThriller%2CWar%2CWestern%2CSuperhero&ads._fw_content_category=IAB1-7&ads._fw_content_language=undefined&ads._fw_content_genre=International&ads._fw_content_rating=TV-14&ads.xumo_contentId=285&ads.xumo_contentName=Kocowa&ads.xumo_providerId=285&ads.xumo_providerName=Kocowa&ads._fw_deviceMake=&ads._fw_device_model=&ads.channelId=99991348&ads.xumo_platform=desktopweb&ads.site_id=26840&ads.appName=xumo&ads.appVersion=2.18.0&ads._fw_app_bundle=&ads._fw_app_store_url=&ads.site_name=XumoPlay&ads.site_page=https%253A%252F%252Fplay.xumo.com",
					name: "KOCOWA",
					logo: "https://i.imgur.com/gbnErPx.gif"
				},
				{
					type: "hls",
					url: "https://dbrb49pjoymg4.cloudfront.net/10001/99991386/hls/master.m3u8?includeAssetTags=true&ads.xumo_channelId=99991386&ads._fw_ifa_type=dpid&ads._fw_did=413d7e29-b63e-b34e-b143-bf0efe32f394&ads.amznappId=[AMZN_APP_ID]&ads.lat=[LAT]&ads.lon=[LON]&ads.os=[OS]&ads.osv=[OS_VERSION]&ads.asnw=&ads.caid=NewKoreanMoviesandSeries&ads.csid=xumo_desktopweb_NewKoreanMoviesandSeries_ssai&ads._fw_is_lat=0&ads._fw_us_privacy=1YNN&ads._fw_coppa=0&ads.genre=Action%2CAdventure%2CComedy%2CCrime%2CDrama%2CFamily%2CFantasy%2CHorror%2CMystery%2CRomance%2CSci-Fi%2CThriller%2CWar%2CWestern%2CSuperhero&ads._fw_content_category=IAB1-7&ads._fw_content_language=undefined&ads._fw_content_genre=International&ads._fw_content_rating=TV-14&ads.xumo_contentId=1825&ads.xumo_contentName=NEWK.ID&ads.xumo_providerId=1825&ads.xumo_providerName=NEWK.ID&ads._fw_deviceMake=&ads._fw_device_model=&ads.channelId=99991386&ads.xumo_platform=desktopweb&ads.site_id=26840&ads.appName=xumo&ads.appVersion=2.18.0&ads._fw_app_bundle=&ads._fw_app_store_url=&ads.site_name=XumoPlay&ads.site_page=https%253A%252F%252Fplay.xumo.com",
					name: "New Korean Movies & Series",
					logo: "https://i.imgur.com/gbnErPx.gif"
				},
				{
					type: "hls",
					url: "https://dbrb49pjoymg4.cloudfront.net/10001/99991779/hls/master.m3u8?includeAssetTags=true&ads.xumo_channelId=99991779&ads._fw_ifa_type=dpid&ads._fw_did=413d7e29-b63e-b34e-b143-bf0efe32f394&ads.amznappId=[AMZN_APP_ID]&ads.lat=[LAT]&ads.lon=[LON]&ads.os=[OS]&ads.osv=[OS_VERSION]&ads.asnw=&ads.caid=NBCUJubao&ads.csid=xumo_desktopweb_NBCUJubao_ssai&ads._fw_is_lat=0&ads._fw_us_privacy=1YNN&ads._fw_coppa=0&ads.genre=Action%2CAdventure%2CComedy%2CCrime%2CDrama%2CFamily%2CFantasy%2CHorror%2CMystery%2CRomance%2CSci-Fi%2CThriller%2CWar%2CWestern%2CSuperhero&ads._fw_content_category=IAB1-7&ads._fw_content_language=undefined&ads._fw_content_genre=International&ads._fw_content_rating=TV-PG&ads.xumo_contentId=2643&ads.xumo_contentName=NBCUJubao&ads.xumo_providerId=2643&ads.xumo_providerName=NBCUJubao&ads._fw_deviceMake=&ads._fw_device_model=&ads.channelId=99991779&ads.xumo_platform=desktopweb&ads.site_id=26840&ads.appName=xumo&ads.appVersion=2.18.0&ads._fw_app_bundle=&ads._fw_app_store_url=&ads.site_name=XumoPlay&ads.site_page=https%253A%252F%252Fplay.xumo.com",
					name: "JUBAO",
					logo: "https://i.imgur.com/gbnErPx.gif"
				},
				{
					type: "hls",
					url: "https://bcovlive-a.akamaihd.net/ba853de442c140b7b3dc020001597c0a/us-east-1/6245817279001/profile_0/chunklist.m3u8",
					name: "amz",
					logo: "https://i.imgur.com/gbnErPx.gif"
				},
				{
					type: "hls",
					url: "https://jungotvstream.chanall.tv/jungotv/jungopinoytv/stream.m3u8",
					name: "JUNGO PINOY",
					logo: "https://i.imgur.com/gbnErPx.gif"
				},
				{
					type: "hls",
					url: "https://cdn-apse1-prod.tsv2.amagi.tv/linear/amg00718-outdoorchannela-outdoortvnz-samsungnz/playlist.m3u8",
					name: "OUTDOOR CHANNEL",
					logo: "https://i.imgur.com/gbnErPx.gif"
				},

				{
					type: "hls",
					url: "https://brandusa-gousa-1-in.samsung.wurl.tv/playlist.m3u8",
					name: "GO USA",
					logo: "https://i.imgur.com/lSQUzkh.png"
				},
				{
					type: "hls",
					url: "https://kidoodletv-kdtv-1-us.samsung.wurl.tv/playlist.m3u8",
					name: "KIDooDLE TV",
					logo: "https://i.imgur.com/gbnErPx.gif"
				},
				{
					type: "hls",
					url: "https://apollo.production-public.tubi.io/live/ac-ion.m3u8",
					name: "ION",
					logo: "https://i.imgur.com/gbnErPx.gif"
				},
				{
					type: "hls",
					url: "https://shls-live-ak.akamaized.net/out/v1/46079e838e65490c8299f902a7731168/index.m3u8",
					name: "MOVIES ACTION",
					logo: "https://i.imgur.com/gbnErPx.gif"
				},
				{
					type: "hls",
					url: "https://fl5.moveonjoy.com/DISNEY_XD/index.m3u8",
					name: "DISNEY XD",
					logo: "https://i.imgur.com/gbnErPx.gif"
				},
				{
					type: "hls",
					url: "https://newidco-rakutenviki-2-eu.xiaomi.wurl.tv/4300.m3u8",
					name: "Rakuten VIKI",
					logo: "https://i.imgur.com/gbnErPx.gif"
				},
				{
					type: "hls",
					url: "https://stream-us-east-1.getpublica.com/playlist.m3u8?network_id=50&live=1&app_bundle=com.plexapp.desktop&checkedby:iptvcat.com",
					name: "FAMILY FLiX",
					logo: "https://i.imgur.com/gbnErPx.gif"
				},
				{
					type: "hls",
					url: "https://7732c5436342497882363a8cd14ceff4.mediatailor.us-east-1.amazonaws.com/v1/master/04fd913bb278d8775298c26fdca9d9841f37601f/Plex_NewMovies/playlist.m3u8",
					name: "K-MOVIES",
					logo: "https://i.imgur.com/gbnErPx.gif"
				},
				{
					type: "hls",
					url: "https://gcinemahls.wns.live/hls/stream.m3u8",
					name: "GRAND CINEMA",
					logo: "https://i.imgur.com/gbnErPx.gif"
				},
				{
					type: "hls",
					url: "https://jungotvstream.chanall.tv/jungotv/screamflix/stream.m3u8",
					name: "SCREAMfliX",
					logo: "https://i.imgur.com/gbnErPx.gif"
				},
				{
					type: "hls",
					url: "https://fl5.moveonjoy.com/SYFY/index.m3u8",
					name: "SYFY",
					logo: "https://i.imgur.com/gbnErPx.gif"
				},
				{
					type: "hls",
					url: "https://appletree-mytime-samsungbrazil.amagi.tv/playlist.m3u8",
					name: "MT MOVIE NET",
					logo: "https://i.imgur.com/gbnErPx.gif"
				},
				{
					type: "hls",
					url: "https://magnoliaa-cinelife-oando-n6z8u.amagi.tv/playlist/magnoliaA-cinelife-oando/playlist.m3u8",
					name: "cine life",
					logo: "https://i.imgur.com/gbnErPx.gif"
				},
				{
					type: "hls",
					url: "https://moviesphereuk-samsunguk.amagi.tv/playlist.m3u8",
					name: "movie sphere",
					logo: "https://i.imgur.com/gbnErPx.gif"
				},
				{
					type: "hls",
					url: "https://origin3.afxp.telemedia.co.za/PremiumFree/romanza/playlist.m3u8",
					name: "ROMANZA",
					logo: "https://i.imgur.com/gbnErPx.gif"
				},
				{
					type: "hls",
					url: "https://jungotvstream.chanall.tv/jungotv/hallypop/stream.m3u8",
					name: "hallyPOP TV",
					logo: "https://i.imgur.com/gbnErPx.gif"
				},
				{
					type: "hls",
					url: "https://xite-hitsuk-lg.amagi.tv/playlist.m3u8",
					name: "XITE TV",
					logo: "https://i.imgur.com/gbnErPx.gif"
				},
				{
					type: "hls",
					url: "https://streams2.sofast.tv/ptnr-stirr/genre-Travel/lang-English/ctgr-Travel/title-4K-TRAVEL-TV-ENG/sofastplayout/33c31ac4-51fa-46ae-afd0-0d1fe5e60a80_0_HLS/master.m3u8",
					name: "4K TRAVEL",
					logo: "https://i.imgur.com/gbnErPx.gif"
				},
				{
					type: "hls",
					url: "https://bbc-impossible-1-us.xumo.wurl.tv/4300.m3u8",
					name: "BBC IMPOSSIBLE",
					logo: "https://i.imgur.com/gbnErPx.gif"
				},
				{
					type: "hls",
					url: "https://495c5a85d9074f29acffeaea9e0215eb.msvdn.net/super/super_main/super_main_hbbtv/playlist.m3u8",
					name: "SUPER",
					logo: "https://i.imgur.com/gbnErPx.gif"
				},
				{
					type: "hls",
					url: "https://kk.fluid.stream/KKMulti/smil:KissKissTV.smil/playlist.m3u8",
					name: "KISS KISS",
					logo: "https://i.imgur.com/gbnErPx.gif"
				},
				{
					type: "hls",
					url: "https://jukin-peopleareawesome-2-es.samsung.wurl.tv/playlist.m3u8",
					name: "people are awesome",
					logo: "https://i.imgur.com/gbnErPx.gif"
				},
				{
					type: "hls",
					url: "https://the-pet-collective-international-es.samsung.wurl.tv/playlist.m3u8",
					name: "the pet collective",
					logo: "https://i.imgur.com/gbnErPx.gif"
				},
				{
					type: "hls",
					url: "https://bloomberg-quicktake-1-no.samsung.wurl.tv/manifest/playlist.m3u8",
					name: "bloomberg",
					logo: "https://i.imgur.com/gbnErPx.gif"
				},
				{
					type: "hls",
					url: "https://drybar-drybarcomedy-1-ca.samsung.wurl.tv/playlist.m3u8",
					name: "dry bar comedy",
					logo: "https://i.imgur.com/gbnErPx.gif"
				},
				{
					type: "hls",
					url: "https://failarmy-international-in.samsung.wurl.tv/playlist.m3u8",
					name: "fail army",
					logo: "https://i.imgur.com/gbnErPx.gif"
				},
				{
					type: "hls",
					url: "https://streams2.sofast.tv/sofastplayout/4c727f82-d2ec-4a07-870c-49a6f22ee6f9_0_HLS/master.m3u8",
					name: "JFL GAGS",
					logo: "https://i.imgur.com/gbnErPx.gif"
				},
				{
					type: "hls",
					url: "https://linear-12.frequency.stream/dist/glewedtv/12/hls/master/playlist.m3u8",
					name: "always funny videos",
					logo: "https://i.imgur.com/gbnErPx.gif"
				},
				{
					type: "hls",
					url: "https://amc-anime-x-hidive-1-us.tablo.wurl.tv/playlist.m3u8",
					name: "Anime x Hidlve",
					logo: "https://i.imgur.com/rZdImAt.png"
				},
				{
					type: "mpd",
					url: "https://tglmp01.akamaized.net/out/v1/de55fad9216e4fe7ad8d2eed456ba1ec/manifest.mpd",
					name: "Animax",
					logo: "https://i.imgur.com/MiUDLVa.png",
					drm: {
						keys: {
							"edf1a715de9748638dd2fad75a419af2": "2f5a3199b26e9b693ae881af7ff864cf"
						}
					}
				},
				{
					type: "hls",
					url: "https://linear-893.frequency.stream/dist/xumo/893/hls/master/playlist.m3u8",
					name: "UFC Sports",
					logo: "https://i.imgur.com/vlKPZHR.png"
				},

				{
					type: "hls",
					url: "https://1180885077.rsc.cdn77.org/HLS/BOXINGTV.m3u8",
					name: "Boxing tv",
					logo: "https://i.imgur.com/udpJM7Q.png"
				},

				{
					type: "hls",
					url: "https://linear-253.frequency.stream/dist/xumo/253/hls/master/playlist.m3u8",
					name: "swerved combat sports",
					logo: "https://i.imgur.com/gbnErPx.gif"
				},

				{
					type: "hls",
					url: "https://livetv-fa.tubi.video/racing-america/playlist.m3u8",
					name: "racing america",
					logo: "https://i.imgur.com/Eufk8rl.png"
				},
				{
					type: "hls",
					url: "https://amg13231-actve-amg13231c1-rakuten-us-5604.playouts.now.amagi.tv/playlist.m3u8",
					name: "nitro circus",
					logo: "https://upload.wikimedia.org/wikipedia/commons/thumb/8/87/Nitro_Logo.svg/512px-Nitro_Logo.svg.png"
				},
				{
					type: "hls",
					url: "https://fl3.moveonjoy.com/PAC_12/index.m3u8",
					name: "FAN DUEL",
					logo: "https://upload.wikimedia.org/wikipedia/commons/thumb/9/94/FanDuel_Sports_Network_logo.svg/330px-FanDuel_Sports_Network_logo.svg.png"
				},

				{
					type: "hls",
					url: "https://rightsboosterltd-scl-1-se.samsung.wurl.tv/playlist.m3u8",
					name: "SKY SPORTS",
					logo: "https://upload.wikimedia.org/wikipedia/commons/thumb/7/77/Sky_Sport_-_Logo_2020.svg/512px-Sky_Sport_-_Logo_2020.svg.png"
				},

				{
					type: "hls",
					url: "https://rbmn-live.akamaized.net/hls/live/590964/BoRB-AT/master_3360.m3u8",
					name: "REDBULL TV",
					logo: "https://i.imgur.com/gbnErPx.gif"
				},
				{
					type: "hls",
					url: "https://7732c5436342497882363a8cd14ceff4.mediatailor.us-east-1.amazonaws.com/v1/master/04fd913bb278d8775298c26fdca9d9841f37601f/Plex_NewMovies/playlist.m3u8",
					name: "REDBOX MOVIES",
					logo: "https://i.imgur.com/OrGCnPg.jpg"
				},
				{
					type: "mpd",
					url: "https://abslive.akamaized.net/dash/live/2028189/kc/manifest.mpd",
					name: "KNOWLEDGE CHANNEL",
					logo: "https://i.imgur.com/YrmMWXD.png",
					drm: {
						keys: {
							"141288d93b0f4f89a3f614a365671411": "ccd2e8162c5fe3f6d5207fb941c09686"
						}
					}
				},
				{
					type: "mpd",
					url: "https://qp-pldt-live-grp-07-prod.akamaized.net/out/u/depedch_sd.mpd",
					name: "DEPED TV",
					logo: "https://i.imgur.com/3BiY6mI.png",
					drm: {
						keys: {
							"0f853706412b11edb8780242ac120002": "2157d6529d80a760f60a8b5350dbc4df"
						}
					}
				},

				{
					type: "mpd",
					url: "https://d24xfhmhdb6r0q.cloudfront.net/out/v1/e897a7b6414a46019818ee9f2c081c4f/index.mpd",
					name: "myx",
					logo: "https://i.imgur.com/pbHuUuV.png",
					drm: {
						keys: {
							"f40a52a3ac9b4702bdd5b735d910fd2f": "5ce1bc7f06b494c276252b4d13c90e51"
						}
					}
				},

				{
					type: "mpd",
					url: "https://d9rpesrrg1bdi.cloudfront.net/out/v1/93b9db7b231d45f28f64f29b86dc6c65/index.mpd",
					name: "CINEMAONE",
					logo: "https://upload.wikimedia.org/wikipedia/en/thumb/6/6d/Cinema_One_2013_logo.svg/512px-Cinema_One_2013_logo.svg.png",
					drm: {
						keys: {
							"58d0e56991194043b8fb82feb4db7276": "d68f41b59649676788889e19fb10d22c"
						}
					}
				},
				{
					type: "hls",
					url: "https://d35j504z0x2vu2.cloudfront.net/v1/master/0bc8e8376bd8417a1b6761138aa41c26c7309312/bollywood-hd/manifest.m3u8",
					name: "BollywooD ᴴᴰ",
					logo: "https://i.imgur.com/gbnErPx.gif"
				},
				{
					type: "hls",
					url: "https://d35j504z0x2vu2.cloudfront.net/v1/master/0bc8e8376bd8417a1b6761138aa41c26c7309312/bollywood-classic/manifest.m3u8",
					name: "BollywooD Classic ᴴᴰ",
					logo: "https://i.imgur.com/gbnErPx.gif"
				},
				{
					type: "hls",
					url: "https://32tech0steam0dp01.org/live/SkySportTopEventFHD/chunks.m3u8",
					name: "SkySportTopEvent",
					logo: "https://i.imgur.com/gbnErPx.gif"
				},

				{
					type: "hls",
					url: "https://32tech0steam0dp01.org/live/UK_SkySportF1FHD/chunks.m3u8",
					name: "SkySportF1",
					logo: "https://i.imgur.com/gbnErPx.gif"
				},
				{
					type: "hls",
					url: "https://cors-proxy.cooks.fyi/https://streamer1.nexgen.bz/HISTORY2/index.m3u8",
					name: "HISTORY 2",
					logo: "https://i.imgur.com/gbnErPx.gif"
				},
				{
					type: "hls",
					url: "https://amc-rushbyamc-1-us.vizio.wurl.tv/playlist.m3u8",
					name: "Thrillers",
					logo: "https://i.imgur.com/gbnErPx.gif"
				},
				{
					type: "hls",
					url: "ggggggggggg",
					name: "COMING SOON",
					logo: "https://i.imgur.com/gbnErPx.gif"
				}
			];

			let filteredChannels = [...channels];
			let currentPlayer = null;

			// Initialize the application
			document.addEventListener('DOMContentLoaded', function() {
				renderChannels();
				checkPopupAd();
				setupKeyboardShortcuts();
			});
			const topButton = document.getElementById("topButton");

  // Show the button when scrolled down 100px
  window.onscroll = function() {
    if (document.body.scrollTop > 100 || document.documentElement.scrollTop > 100) {
      topButton.style.display = "block";
    } else {
      topButton.style.display = "none";
    }
  };

  // Smooth scroll to top when button is clicked
  topButton.onclick = function() {
    window.scrollTo({ top: 0, behavior: 'smooth' });
  };

			// Theme toggle functionality
			function toggleTheme() {
				const body = document.body;
				const themeBtn = document.querySelector('.theme-toggle');

				if (body.getAttribute('data-theme') === 'dark') {
					body.setAttribute('data-theme', 'light');
					themeBtn.innerHTML = ' Light';
					localStorage.setItem('theme', 'light');
				} else {
					body.setAttribute('data-theme', 'dark');
					themeBtn.innerHTML = ' Dark';
					localStorage.setItem('theme', 'dark');
				}
			}

			// Load saved theme
			const savedTheme = localStorage.getItem('theme');
			if (savedTheme) {
				document.body.setAttribute('data-theme', savedTheme);
				const themeBtn = document.querySelector('.theme-toggle');
				themeBtn.innerHTML = savedTheme === 'dark' ? ' Dark' : ' Light';
			}

			// Email functionality
			function sendMail() {
				const subject = encodeURIComponent('sidonIpTV - Contact');
				const body = encodeURIComponent('Hello,\n\nI would like to get in touch regarding StreamHub Pro.\n\nBest regards');
				window.open(`mailto:contact@streamhub.com?subject=${subject}&body=${body}`);
			}

			// M3U Playlist parsing functionality
			async function loadPlaylist() {
				const url = document.getElementById('playlistUrl').value.trim();
				const errorMsg = document.getElementById('errorMessage');
				const successMsg = document.getElementById('successMessage');
				const loading = document.getElementById('loadingIndicator');

				if (!url) {
					showError('Please enter a valid M3U playlist URL');
					return;
				}

				loading.style.display = 'block';
				errorMsg.style.display = 'none';
				successMsg.style.display = 'none';

				try {
					const response = await fetch(url);
					if (!response.ok) {
						throw new Error(`HTTP error! status: ${response.status}`);
					}

					const playlistContent = await response.text();
					const parsedChannels = parseM3U(playlistContent);

					if (parsedChannels.length > 0) {
						channels = [...channels, ...parsedChannels];
						filteredChannels = [...channels];
						renderChannels();
						showSuccess(`Successfully loaded ${parsedChannels.length} channels from playlist`);
					} else {
						showError('No valid channels found in the playlist');
					}
				} catch (error) {
					console.error('Error loading playlist:', error);
					showError('Failed to load playlist. Please check the URL and try again.');
				} finally {
					loading.style.display = 'none';
				}
			}

			// M3U Parser function
			function parseM3U(content) {
				const lines = content.split('\n').map(line => line.trim()).filter(line => line);
				const parsedChannels = [];
				let currentChannel = null;

				for (let i = 0; i < lines.length; i++) {
					const line = lines[i];

					if (line.startsWith('#EXTINF:')) {
						currentChannel = {
							type: "hls", // Default to HLS
							name: "",
							logo: "",
							url: ""
						};

						// Extract channel name
						const nameMatch = line.match(/,(.+)$/);
						if (nameMatch) {
							currentChannel.name = nameMatch[1].trim();
						}

						// Extract logo
						const logoMatch = line.match(/tvg-logo="([^"]+)"/);
						if (logoMatch) {
							currentChannel.logo = logoMatch[1];
						}

					} else if (line && !line.startsWith('#') && currentChannel) {
						currentChannel.url = line;

						// Determine type based on URL extension
						if (line.includes('.mpd')) {
							currentChannel.type = "mpd";
						} else if (line.includes('.m3u8') || line.includes('hls')) {
							currentChannel.type = "hls";
						}

						// Use placeholder logo if none provided
						if (!currentChannel.logo) {
							currentChannel.logo = `https://via.placeholder.com/300x180/${currentChannel.type === 'hls' ? 'e50914' : '1976d2'}/ffffff?text=${currentChannel.type.toUpperCase()}`;
						}

						parsedChannels.push(currentChannel);
						currentChannel = null;
					}
				}

				return parsedChannels;
			}

			// Search functionality
			function searchChannels() {
				const searchTerm = document.getElementById('searchInput').value.toLowerCase();
				filteredChannels = channels.filter(channel =>
					channel.name.toLowerCase().includes(searchTerm) ||
					channel.type.toLowerCase().includes(searchTerm)
				);
				renderChannels();
			}

			// Render channels in grid
			function renderChannels() {
				const grid = document.getElementById('channelsGrid');

				if (filteredChannels.length === 0) {
					grid.innerHTML = '<div style="grid-column: 1/-1; text-align: center; padding: 2rem; color: var(--text-secondary);">No channels found. Try loading a playlist or adjusting your search.</div>';
					return;
				}

				grid.innerHTML = filteredChannels.map((channel, index) => `
                <div class="channel-card" onclick="playChannel(${index})">
                    <img class="channel-logo" 
                         src="${channel.logo}" 
                         alt="${channel.name}"
                         onerror="this.src='https://pngfre.com/wp-content/uploads/tv-43.png'">
                    <div class="channel-info">
                        <div class="channel-name">${channel.name}</div>
                        <span class="channel-type">${channel.type.toUpperCase()}</span>
                    </div>
                </div>
            `).join('');
			}

			// Play channel functionality
			function playChannel(index) {
				const channel = filteredChannels[index];
				const modal = document.getElementById('videoModal');
				const video = document.getElementById('videoPlayer');

				// Clean up previous player
				if (currentPlayer) {
					if (currentPlayer.destroy) {
						currentPlayer.destroy();
					} else if (currentPlayer.detachMedia) {
						currentPlayer.detachMedia();
					}
					currentPlayer = null;
				}

				// Reset video element
				video.src = '';
				video.load();

				modal.classList.add('active');

				if (channel.type === 'hls') {
					playHLS(channel, video);
				} else if (channel.type === 'mpd') {
					playMPD(channel, video);
				}
			}

			// HLS Player setup
			function playHLS(channel, video) {
				if (Hls.isSupported()) {
					const hls = new Hls({
						debug: false,
						enableWorker: true,
						lowLatencyMode: true,
						backBufferLength: 90
					});

					hls.loadSource(channel.url);
					hls.attachMedia(video);

					hls.on(Hls.Events.MANIFEST_PARSED, function() {
						video.play().catch(e => console.log('Autoplay prevented:', e));
					});

					hls.on(Hls.Events.ERROR, function(event, data) {
						if (data.fatal) {
							switch (data.type) {
								case Hls.ErrorTypes.NETWORK_ERROR:
									console.log('Network error encountered, trying to recover...');
									hls.startLoad();
									break;
								case Hls.ErrorTypes.MEDIA_ERROR:
									console.log('Media error encountered, trying to recover...');
									hls.recoverMediaError();
									break;
								default:
									console.log('Fatal error encountered:', data);
									hls.destroy();
									break;
							}
						}
					});

					currentPlayer = hls;
				} else if (video.canPlayType('application/vnd.apple.mpegurl')) {
					video.src = channel.url;
					video.addEventListener('loadedmetadata', function() {
						video.play().catch(e => console.log('Autoplay prevented:', e));
					});
				} else {
					showError('HLS is not supported on this browser');
				}
			}

			// MPD Player setup using Shaka Player
			async function playMPD(channel, video) {
				if (shaka.Player.isBrowserSupported()) {
					const player = new shaka.Player(video);

					// Configure DRM if provided
					if (channel.drm && channel.drm.keys) {
						player.configure({
							drm: {
								clearKeys: channel.drm.keys
							}
						});
					}

					player.addEventListener('error', function(event) {
						console.error('Shaka Player error:', event.detail);
						showError('Error loading MPD stream: ' + event.detail.message);
					});

					try {
						await player.load(channel.url);
						video.play().catch(e => console.log('Autoplay prevented:', e));
						currentPlayer = player;
					} catch (error) {
						console.error('Error loading MPD:', error);
						showError('Failed to load MPD stream');
					}
				} else {
					showError('MPD playback is not supported on this browser');
				}
			}

			// Close video modal
			function closeVideoModal() {
				const modal = document.getElementById('videoModal');
				const video = document.getElementById('videoPlayer');

				modal.classList.remove('active');
				video.pause();
				video.src = '';

				// Clean up player
				if (currentPlayer) {
					if (currentPlayer.destroy) {
						currentPlayer.destroy();
					} else if (currentPlayer.detachMedia) {
						currentPlayer.detachMedia();
					}
					currentPlayer = null;
				}
			}

			// Popup ad functionality
			function checkPopupAd() {
				const lastShown = localStorage.getItem('lastPopupShown');
				const now = new Date().getTime();
				const oneDayInMs = 24 * 60 * 60 * 1000;

				if (!lastShown || (now - parseInt(lastShown)) > oneDayInMs) {
					setTimeout(() => {
						document.getElementById('popupAd').classList.add('active');
					}, 3000); // Show after 3 seconds
				}
			}

			function closePopupAd() {
				document.getElementById('popupAd').classList.remove('active');
				localStorage.setItem('lastPopupShown', new Date().getTime().toString());
			}

			function visitSite() {
				window.open('https://your-premium-site.com', '_blank');
				closePopupAd();
			}

			// Utility functions
			function showError(message) {
				const errorMsg = document.getElementById('errorMessage');
				errorMsg.textContent = message;
				errorMsg.style.display = 'block';
				setTimeout(() => {
					errorMsg.style.display = 'none';
				}, 5000);
			}

			function showSuccess(message) {
				const successMsg = document.getElementById('successMessage');
				successMsg.textContent = message;
				successMsg.style.display = 'block';
				setTimeout(() => {
					successMsg.style.display = 'none';
				}, 3000);
			}

			// Keyboard shortcuts
			function setupKeyboardShortcuts() {
				document.addEventListener('keydown', function(e) {
					if (e.key === 'Escape') {
						const modal = document.getElementById('videoModal');
						const popup = document.getElementById('popupAd');

						if (modal.classList.contains('active')) {
							closeVideoModal();
						} else if (popup.classList.contains('active')) {
							closePopupAd();
						}
					}

					if (e.key === '/' && e.target.tagName !== 'INPUT') {
						e.preventDefault();
						document.getElementById('searchInput').focus();
					}
				});
			}

			// Click outside modal to close
			document.getElementById('videoModal').addEventListener('click', function(e) {
				if (e.target === this) {
					closeVideoModal();
				}
			});

			document.getElementById('popupAd').addEventListener('click', function(e) {
				if (e.target === this) {
					closePopupAd();
				}
			});
			document.addEventListener('DOMContentLoaded', () => {
				const observer = new IntersectionObserver((entries) => {
					entries.forEach(entry => {
						if (entry.isIntersecting) {
							const img = entry.target;
							img.src = img.dataset.src;
							observer.unobserve(img);
						}
					});
				});

				document.querySelectorAll('img[loading="lazy"]').forEach(img => {
					observer.observe(img);
				});
			});
		</script>
<script src='https://cdn.jsdelivr.net/npm/disable-devtool'></script>
<script>
    DisableDevtool({
        // The parameters are the same as in 3.1
    })
</script>




<script>
var message="pls dont sale this-donski";
var shouldAlert=1;
document.oncontextmenu=function(){
 if(shouldAlert==1){
  alert(message);
 }
 return false;
};
	</body>

</html>