/* Custom Category Icons Styles */
.item__meta-item i.fal,
.item__meta-item i.fab,
.item__meta-item i.fa-hdd,
.item__meta-item i.fa-calendar {
  color: #4cd137;
  font-size: 14px;
}

/* Hide YouTube Title and Channel Info */
.page__trailer iframe {
	pointer-events: auto;
}

.page__trailer {
	position: relative;
}

/* Cover the top area where title appears */
.page__trailer::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 50px;
	background: transparent;
	z-index: 1;
	pointer-events: none;
}

/* Download Modal Styles */
.download-overlay {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.8);
	z-index: 9999;
	overflow-y: auto;
	padding: 20px;
	backdrop-filter: blur(5px);
}

.download-modal {
	max-width: 900px;
	width: 100%;
	background: #fff;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
	margin: 50px auto;
	animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
	from {
		opacity: 0;
		transform: translateY(-50px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.download-modal-header {
	background: linear-gradient(135deg, #36d1dc 0%, #5b86e5 100%);
	padding: 30px;
	color: #fff;
	position: relative;
	display: flex;
	align-items: center;
	gap: 20px;
	flex-wrap: wrap;
}

.download-logo-section {
	display: flex;
	align-items: center;
	gap: 15px;
}

.download-logo {
	width: 60px;
	height: 60px;
	background: #4caf50;
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.download-logo img {
	width: 40px;
	height: 40px;
	filter: brightness(0) invert(1);
}

.download-logo-text {
	text-align: left;
}

.download-logo-text .logo__title {
	font-size: 18px;
	font-weight: 700;
	letter-spacing: 1px;
}

.download-logo-text .logo__subtitle {
	font-size: 24px;
	font-weight: 700;
	letter-spacing: 3px;
	color: #ffd700;
}

.download-tagline {
	flex: 1;
	font-size: 13px;
	line-height: 1.5;
	opacity: 0.95;
	padding-left: 20px;
	border-left: 1px solid rgba(255, 255, 255, 0.3);
	min-width: 200px;
}

.download-close {
	position: absolute;
	top: 15px;
	right: 15px;
	width: 40px;
	height: 40px;
	border: none;
	background: rgba(0, 0, 0, 0.2);
	color: #fff;
	border-radius: 50%;
	cursor: pointer;
	font-size: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s ease;
}

.download-close:hover {
	background: rgba(0, 0, 0, 0.4);
	transform: rotate(90deg);
}

.download-ad-section {
	background: #fff;
	padding: 20px 30px;
	border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.download-ad-placeholder {
	width: 100%;
	max-width: 100%;
	margin: 0 auto;
	overflow: hidden;
}

.download-ad-placeholder > * {
	max-width: 100%;
	margin: 0 auto;
	display: block;
}

.download-modal-main {
	padding: 40px 30px;
	background: #f8f9fa;
}

.download-controls {
	display: flex;
	gap: 20px;
	margin-bottom: 30px;
}

.download-btn-go-back {
	background: #fff;
	color: #667eea;
	border: 2px solid #667eea;
	padding: 15px 30px;
	border-radius: 5px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 10px;
	white-space: nowrap;
	transition: all 0.3s ease;
}

.download-btn-go-back:hover {
	background: #667eea;
	color: #fff;
}

.download-btn-main-wrapper {
	flex: 1;
}

.download-btn-main {
	width: 100%;
	background: linear-gradient(135deg, #36d1dc 0%, #5b86e5 100%);
	color: #fff;
	border: none;
	padding: 15px 30px;
	border-radius: 5px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	transition: all 0.3s ease;
}

.download-btn-text {
	flex: 1;
	text-align: center;
}

.download-countdown-badge {
	position: absolute;
	right: 15px;
	top: 50%;
	transform: translateY(-50%);
	min-width: 50px;
	height: 50px;
	background: rgba(255, 255, 255, 0.25);
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 24px;
	font-weight: 700;
	padding: 0 15px;
	backdrop-filter: blur(10px);
	border: 2px solid rgba(255, 255, 255, 0.4);
	animation: countdownPulse 1s ease-in-out infinite;
}

@keyframes countdownPulse {
	0%, 100% {
		transform: translateY(-50%) scale(1);
		box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
	}
	50% {
		transform: translateY(-50%) scale(1.05);
		box-shadow: 0 0 0 8px rgba(255, 255, 255, 0);
	}
}

.download-countdown-badge.hidden {
	display: none;
}

.download-btn-main.disabled {
	opacity: 0.7;
	cursor: not-allowed;
}

.download-btn-main.active {
	background: linear-gradient(135deg, #4caf50 0%, #8bc34a 100%);
	cursor: pointer;
	animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
	0%, 100% {
		box-shadow: 0 0 20px rgba(76, 175, 80, 0.5);
	}
	50% {
		box-shadow: 0 0 30px rgba(76, 175, 80, 0.8);
	}
}

.download-progress-wrapper {
	width: 100%;
	height: 6px;
	background: #e0e0e0;
	border-radius: 3px;
	overflow: hidden;
}

.download-progress-bar {
	height: 100%;
	background: linear-gradient(90deg, #4caf50 0%, #8bc34a 100%);
	width: 0%;
	transition: width 0.1s linear;
}

.download-modal-info {
	padding: 30px;
	background: #fff;
	display: flex;
	align-items: center;
	gap: 20px;
	border-top: 1px solid #e0e0e0;
}

.download-info-icon {
	width: 80px;
	height: 80px;
	flex-shrink: 0;
}

.download-info-icon img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 50%;
	border: 5px solid #f8f9fa;
	box-shadow: 0 0 0 2px #e0e0e0;
}

.download-info-content {
	flex: 1;
}

.download-info-title {
	font-size: 20px;
	font-weight: 700;
	margin: 0 0 8px 0;
	color: #333;
}

.download-info-meta {
	font-size: 13px;
	color: #666;
}

.download-modal-bottom {
	padding: 30px;
	background: #f8f9fa;
	text-align: center;
	border-top: 1px solid #e0e0e0;
}

.download-btn-green {
	background: linear-gradient(135deg, #4caf50 0%, #8bc34a 100%);
	color: #fff;
	border: none;
	padding: 15px 60px;
	font-size: 16px;
	font-weight: 700;
	border-radius: 5px;
	cursor: pointer;
	transition: all 0.3s ease;
	display: inline-flex;
	align-items: center;
	gap: 10px;
}

.download-btn-green:hover:not(.disabled) {
	transform: translateY(-2px);
	box-shadow: 0 10px 25px rgba(76, 175, 80, 0.3);
}

.download-btn-green.disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

/* Responsive Design for Download Modal */
@media screen and (max-width: 768px) {
	.download-modal-header {
		flex-direction: column;
		text-align: center;
	}
	
	.download-logo-section {
		flex-direction: column;
	}
	
	.download-logo-text {
		text-align: center;
	}
	
	.download-tagline {
		border-left: none;
		border-top: 1px solid rgba(255, 255, 255, 0.3);
		padding-left: 0;
		padding-top: 15px;
		text-align: center;
	}
	
	.download-controls {
		flex-direction: column;
	}
	
	.download-countdown-badge {
		position: static;
		transform: none;
		margin-left: auto;
		min-width: 60px;
	}
	
	.download-btn-main {
		padding-right: 15px;
	}
	
	.download-modal-info {
		flex-direction: column;
		text-align: center;
	}
}
