.ayazrao-video-upload-file {
	display: none;
}

/* All upload progress now lives in the blocking popup, so the inline
   status/progress under the Video field is hidden to avoid duplication. */
.ayazrao-video-upload-status {
	display: none !important;
}

.ayazrao-video-upload-status__progress {
	display: none;
	margin-top: 6px;
	height: 8px;
	border-radius: 999px;
	background: #e2e8f0;
	overflow: hidden;
}

.ayazrao-video-upload-status__progress-bar {
	height: 100%;
	width: 0;
	border-radius: 999px;
	background: linear-gradient(90deg, #2563eb, #7c3aed);
	transition: width 0.35s ease;
}

.ayazrao-upload-video--disabled {
	opacity: 0.5;
	cursor: not-allowed !important;
	pointer-events: none;
}

.ayazrao-upload-video-hint {
	margin: 6px 0 0;
	font-size: 12px;
	color: #64748b;
	line-height: 1.4;
}

.ayazrao-video-upload-status__text {
	font-size: 12px;
	color: #334155;
}

.ayazrao-video-upload-status__text--ready {
	color: #15803d;
}

.ayazrao-video-upload-status__text--processing {
	color: #b45309;
}

.ayazrao-video-upload-status__text--error {
	color: #b91c1c;
}

.ayazrao-bunny-video-card[hidden] {
	display: none !important;
}

.ayazrao-bunny-video-card {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 10px;
	padding: 10px 12px;
	border: 1px solid #dbe3ef;
	border-radius: 10px;
	background: #f8fafc;
}

.ayazrao-bunny-video-card.is-processing {
	border-color: #fcd34d;
	background: #fffbeb;
}

.ayazrao-bunny-video-card.is-ready {
	border-color: #86efac;
	background: #f0fdf4;
}

.ayazrao-bunny-video-card__thumb {
	flex: 0 0 72px;
	width: 72px;
	height: 48px;
	border-radius: 6px;
	overflow: hidden;
	background: #0f172a;
}

.ayazrao-bunny-video-card__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ayazrao-bunny-video-card__placeholder {
	display: block;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #1e293b, #334155);
}

.ayazrao-bunny-video-card.is-processing .ayazrao-bunny-video-card__placeholder {
	background: linear-gradient(135deg, #92400e, #b45309);
}

.ayazrao-bunny-video-card__body {
	min-width: 0;
	flex: 1 1 auto;
}

.ayazrao-bunny-video-card__title {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: #0f172a;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.ayazrao-bunny-video-card__meta {
	display: block;
	margin-top: 2px;
	font-size: 12px;
	color: #64748b;
	line-height: 1.35;
}

.ayazrao-has-bunny-video .ayazrao-upload-video-hint {
	margin-top: 8px;
}

.ayazrao-bunny-processing {
	display: flex;
	align-items: center;
	justify-content: center;
	background: #0f172a;
	min-height: 200px;
}

.ayazrao-bunny-processing__message {
	margin: 0;
	color: #f8fafc;
	font-size: clamp(18px, 3vw, 28px);
	font-weight: 700;
	text-align: center;
	line-height: 1.3;
}

.ayazrao-lesson-modal-lock-host {
	position: relative;
	isolation: isolate;
	background: #fff;
}

.ayazrao-lesson-modal-lock {
	display: none;
	position: absolute;
	inset: 0;
	z-index: 10050;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background: rgba(255, 255, 255, 0.98);
	backdrop-filter: blur(3px);
}

.ayazrao-lesson-modal-lock.is-active {
	display: flex;
}

.ayazrao-lesson-modal-lock__card {
	max-width: 360px;
	padding: 24px 28px;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 10px 40px rgba(15, 23, 42, 0.12);
	text-align: center;
}

.ayazrao-lesson-modal-lock__spinner {
	width: 36px;
	height: 36px;
	margin: 0 auto 16px;
	border: 3px solid #e2e8f0;
	border-top-color: #2563eb;
	border-radius: 50%;
	animation: ayazrao-lesson-modal-lock-spin 0.8s linear infinite;
}

@keyframes ayazrao-lesson-modal-lock-spin {
	to {
		transform: rotate(360deg);
	}
}

.ayazrao-lesson-modal-lock__message {
	margin: 0 0 12px;
	font-size: 15px;
	font-weight: 600;
	color: #0f172a;
	line-height: 1.4;
}

.ayazrao-lesson-modal-lock__progress {
	height: 8px;
	border-radius: 999px;
	background: #e2e8f0;
	overflow: hidden;
}

.ayazrao-lesson-modal-lock__progress-bar {
	height: 100%;
	width: 0;
	border-radius: 999px;
	background: linear-gradient(90deg, #2563eb, #7c3aed);
	transition: width 0.35s ease;
}

/* ---- Blocking upload popup ------------------------------------------- */
html.ayazrao-upload-popup-open {
	overflow: hidden;
}

.ayazrao-upload-popup {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 100000;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background: rgba(15, 23, 42, 0.72);
	backdrop-filter: blur(4px);
}

.ayazrao-upload-popup.is-active {
	display: flex;
}

.ayazrao-upload-popup__card {
	width: 100%;
	max-width: 420px;
	padding: 32px 32px 28px;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 24px 60px rgba(15, 23, 42, 0.35);
	text-align: center;
	animation: ayazrao-upload-popup-in 0.2s ease;
}

@keyframes ayazrao-upload-popup-in {
	from {
		opacity: 0;
		transform: translateY(8px) scale(0.98);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

.ayazrao-upload-popup__spinner {
	width: 46px;
	height: 46px;
	margin: 0 auto 18px;
	border: 4px solid #e2e8f0;
	border-top-color: #2563eb;
	border-radius: 50%;
	animation: ayazrao-lesson-modal-lock-spin 0.8s linear infinite;
}

.ayazrao-upload-popup[data-state="done"] .ayazrao-upload-popup__spinner {
	border-color: #86efac;
	border-top-color: #16a34a;
	animation: none;
	position: relative;
}

.ayazrao-upload-popup[data-state="done"] .ayazrao-upload-popup__spinner::after {
	content: "";
	position: absolute;
	top: 8px;
	left: 16px;
	width: 10px;
	height: 20px;
	border: solid #16a34a;
	border-width: 0 4px 4px 0;
	transform: rotate(45deg);
}

.ayazrao-upload-popup[data-state="error"] .ayazrao-upload-popup__spinner {
	border-color: #fecaca;
	border-top-color: #dc2626;
	animation: none;
	position: relative;
}

.ayazrao-upload-popup[data-state="error"] .ayazrao-upload-popup__spinner::after {
	content: "!";
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 26px;
	font-weight: 800;
	color: #dc2626;
}

.ayazrao-upload-popup__title {
	margin: 0 0 6px;
	font-size: 18px;
	font-weight: 700;
	color: #0f172a;
	line-height: 1.3;
}

.ayazrao-upload-popup__phase {
	margin: 0 0 14px;
	font-size: 14px;
	color: #475569;
	line-height: 1.4;
}

.ayazrao-upload-popup__progress {
	height: 10px;
	border-radius: 999px;
	background: #e2e8f0;
	overflow: hidden;
}

.ayazrao-upload-popup__progress-bar {
	height: 100%;
	width: 0;
	border-radius: 999px;
	background: linear-gradient(90deg, #2563eb, #7c3aed);
	transition: width 0.35s ease;
}

.ayazrao-upload-popup__percent {
	margin: 8px 0 0;
	font-size: 22px;
	font-weight: 700;
	color: #1e293b;
	font-variant-numeric: tabular-nums;
}

.ayazrao-upload-popup__hint {
	margin: 12px 0 0;
	font-size: 12px;
	color: #64748b;
	line-height: 1.45;
}

.ayazrao-upload-popup__actions {
	display: flex;
	gap: 10px;
	justify-content: center;
	margin-top: 22px;
}

.ayazrao-upload-popup__btn {
	appearance: none;
	border: 0;
	border-radius: 8px;
	padding: 10px 18px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s ease, opacity 0.15s ease;
}

.ayazrao-upload-popup__cancel {
	background: #fef2f2;
	color: #b91c1c;
}

.ayazrao-upload-popup__cancel:hover {
	background: #fee2e2;
}

.ayazrao-upload-popup__cancel:disabled {
	opacity: 0.6;
	cursor: default;
}

.ayazrao-upload-popup__retry {
	background: #2563eb;
	color: #fff;
}

.ayazrao-upload-popup__retry:hover {
	background: #1d4ed8;
}

.ayazrao-upload-popup__close {
	background: #e2e8f0;
	color: #1e293b;
}

.ayazrao-upload-popup__close:hover {
	background: #cbd5e1;
}
