/**
 * ytpe.css — পাবলিক UI।
 */

/* ===== সাধারণ ===== */
.ytpe-watch-page,
.ytpe-promote-page,
.ytpe-wallet-page {
	max-width: 960px;
	margin: 0 auto;
	font-size: 15px;
}

.ytpe-watch-header,
.ytpe-promote-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 14px;
}

.ytpe-balance {
	background: #1e73be;
	color: #fff;
	padding: 8px 16px;
	border-radius: 20px;
	font-weight: 600;
}

.ytpe-notice {
	padding: 10px 14px;
	border-radius: 6px;
	margin-bottom: 12px;
}

.ytpe-notice-review {
	background: #fff3cd;
	border: 1px solid #ffe08a;
	color: #664d03;
}

/* ===== ডেইলি বোনাস ===== */
.ytpe-daily-bonus {
	background: #f8f9fa;
	border: 1px solid #e2e4e8;
	border-radius: 8px;
	padding: 12px 16px;
	margin-bottom: 16px;
}

.ytpe-bonus-info {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 8px;
	gap: 10px;
	flex-wrap: wrap;
}

.ytpe-progress-track {
	height: 10px;
	background: #e4e6eb;
	border-radius: 6px;
	overflow: hidden;
}

.ytpe-progress-fill {
	height: 100%;
	background: linear-gradient(90deg, #2ecc71, #27ae60);
	border-radius: 6px;
	transition: width 0.4s ease;
}

/* ===== ফিল্টার ===== */
.ytpe-filters {
	display: flex;
	gap: 8px;
	align-items: center;
	margin-bottom: 16px;
	flex-wrap: wrap;
}

.ytpe-filter {
	padding: 6px 16px;
	border: 1px solid #ccd0d4;
	background: #fff;
	border-radius: 16px;
	cursor: pointer;
}

.ytpe-filter.active {
	background: #1e73be;
	border-color: #1e73be;
	color: #fff;
}

.ytpe-continuous {
	margin-left: auto;
	font-size: 13px;
	color: #555;
}

/* ===== প্লেয়ার ===== */
.ytpe-player-box {
	position: relative;
	background: #000;
	border-radius: 10px;
	overflow: hidden;
}

#ytpe-player,
#ytpe-player iframe {
	width: 100%;
	aspect-ratio: 16 / 9;
	min-height: 320px;
}

.ytpe-watch-status {
	padding: 10px 14px;
	background: #111;
	color: #eee;
}

.ytpe-watch-status .ytpe-progress-track {
	background: #333;
	margin-bottom: 8px;
}

.ytpe-watch-counter {
	margin: 4px 0 0;
	font-size: 13px;
	opacity: 0.85;
}

/* ===== ক্যাপচা মডাল ===== */
.ytpe-captcha-modal {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.82);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 5;
}

.ytpe-captcha-modal[hidden] {
	display: none;
}

.ytpe-captcha-inner {
	background: #fff;
	color: #222;
	padding: 24px 28px;
	border-radius: 12px;
	text-align: center;
	min-width: 260px;
}

.ytpe-captcha-inner h3 {
	margin-top: 0;
}

.ytpe-captcha-question {
	font-size: 28px;
	font-weight: 700;
	margin: 12px 0;
}

.ytpe-captcha-inner input {
	font-size: 22px;
	width: 140px;
	text-align: center;
	padding: 6px;
	margin-bottom: 8px;
}

.ytpe-captcha-attempts {
	color: #c0392b;
	font-size: 13px;
	min-height: 18px;
}

/* ===== রিওয়ার্ড টোস্ট ===== */
.ytpe-reward-toast {
	position: absolute;
	top: 16px;
	left: 50%;
	transform: translateX(-50%);
	background: #27ae60;
	color: #fff;
	font-size: 22px;
	font-weight: 700;
	padding: 10px 24px;
	border-radius: 24px;
	z-index: 6;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.ytpe-reward-toast[hidden] {
	display: none;
}

.ytpe-player-actions {
	display: flex;
	gap: 8px;
	justify-content: flex-end;
	padding: 10px;
	background: #1a1a1a;
}

/* ===== ভিডিও কার্ড ===== */
.ytpe-video-card {
	display: flex;
	gap: 16px;
	border: 1px solid #e2e4e8;
	border-radius: 10px;
	overflow: hidden;
	background: #fff;
	margin-bottom: 16px;
}

.ytpe-card-thumb {
	position: relative;
	width: 300px;
	min-height: 170px;
	flex-shrink: 0;
	background: #000;
}

.ytpe-card-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.ytpe-card-duration {
	position: absolute;
	bottom: 6px;
	right: 6px;
	background: rgba(0, 0, 0, 0.8);
	color: #fff;
	font-size: 12px;
	padding: 2px 6px;
	border-radius: 3px;
}

.ytpe-card-body {
	padding: 14px 16px 14px 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.ytpe-card-body h3 {
	margin: 0;
	font-size: 17px;
}

.ytpe-card-points {
	color: #27ae60;
	font-weight: 700;
	font-size: 18px;
	margin: 0;
}

.ytpe-card-actions {
	display: flex;
	gap: 8px;
	margin-top: auto;
}

.ytpe-empty {
	text-align: center;
	padding: 40px;
	color: #777;
}

/* ===== লগ ===== */
.ytpe-log {
	position: fixed;
	bottom: 16px;
	right: 16px;
	z-index: 999;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.ytpe-log-ok,
.ytpe-log-error {
	padding: 8px 14px;
	border-radius: 6px;
	color: #fff;
	font-size: 14px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.ytpe-log-ok { background: #27ae60; }
.ytpe-log-error { background: #c0392b; }

/* ===== Promote ===== */
.ytpe-add-video,
.ytpe-my-videos {
	margin-bottom: 28px;
}

.ytpe-form-row {
	margin-bottom: 10px;
}

.ytpe-form-row label {
	display: block;
	font-weight: 600;
	margin-bottom: 4px;
}

.ytpe-form-row input,
.ytpe-form-row textarea,
.ytpe-bulk textarea {
	width: 100%;
	max-width: 480px;
	padding: 8px 10px;
	border: 1px solid #ccd0d4;
	border-radius: 6px;
}

.ytpe-form-inline {
	display: flex;
	gap: 14px;
	flex-wrap: wrap;
	align-items: flex-end;
}

.ytpe-form-msg {
	min-height: 20px;
	font-size: 14px;
	margin: 6px 0;
}

.ytpe-form-msg.ytpe-err { color: #c0392b; }
.ytpe-form-msg.ytpe-ok { color: #27ae60; }

.ytpe-bulk {
	margin-top: 16px;
	border: 1px dashed #ccd0d4;
	padding: 12px;
	border-radius: 8px;
}

.ytpe-bulk summary {
	cursor: pointer;
	font-weight: 600;
}

.ytpe-bulk textarea {
	margin-top: 10px;
}

.ytpe-status {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 10px;
	font-size: 12px;
	text-transform: uppercase;
}

.ytpe-status-active { background: #d4efdf; color: #1e8449; }
.ytpe-status-paused { background: #fdebd0; color: #b9770e; }
.ytpe-status-pending { background: #d6eaf8; color: #1a5276; }
.ytpe-status-completed { background: #eaecee; color: #566573; }
.ytpe-status-rejected { background: #f5b7b1; color: #922b21; }

/* ===== Wallet ===== */
.ytpe-wallet-header {
	display: flex;
	gap: 16px;
	margin-bottom: 24px;
	flex-wrap: wrap;
}

.ytpe-wallet-stat {
	background: #f8f9fa;
	border: 1px solid #e2e4e8;
	border-radius: 10px;
	padding: 14px 22px;
	min-width: 160px;
}

.ytpe-stat-label {
	display: block;
	font-size: 13px;
	color: #777;
	margin-bottom: 4px;
}

.ytpe-wallet-stat strong {
	font-size: 26px;
	color: #1e73be;
}

.ytpe-stat-unit {
	font-size: 13px;
	color: #999;
	margin-left: 4px;
}

.ytpe-packages {
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
	margin: 14px 0;
}

.ytpe-package {
	border: 1px solid #e2e4e8;
	border-radius: 10px;
	padding: 18px;
	min-width: 180px;
	text-align: center;
	background: #fff;
}

.ytpe-package h3 {
	margin: 0 0 8px;
	font-size: 16px;
}

.ytpe-pkg-cost {
	font-weight: 700;
	color: #1e73be;
	margin: 4px 0;
}

.ytpe-pkg-credit {
	color: #27ae60;
	font-weight: 600;
	margin: 4px 0 12px;
}

.ytpe-plus { color: #27ae60; font-weight: 700; }
.ytpe-minus { color: #c0392b; font-weight: 700; }

.ytpe-history {
	margin-top: 30px;
}

.ytpe-points-price {
	color: #1e73be;
	font-weight: 600;
}

/* ===== মোবাইল ===== */
@media (max-width: 700px) {
	.ytpe-video-card {
		flex-direction: column;
	}

	.ytpe-card-thumb {
		width: 100%;
		min-height: 200px;
	}

	.ytpe-card-body {
		padding: 14px;
	}

	#ytpe-player,
	#ytpe-player iframe {
		min-height: 220px;
	}

	.ytpe-wallet-stat {
		min-width: 130px;
		padding: 10px 14px;
	}
}
