.weluca-video-tools,
.weluca-video-tools *,
.weluca-video-tools *::before,
.weluca-video-tools *::after {
	box-sizing: border-box;
}

.weluca-video-tools {
	width: 100%;
	max-width: 100%;
	margin: 18px 0;
	color: #172033;
	font-size: 16px;
	line-height: 1.55;
}

.weluca-video-tools__inner {
	width: 100%;
	padding: 22px;
	border: 1px solid #d8dee8;
	border-radius: 8px;
	background: #ffffff;
	box-shadow: 0 8px 22px rgba(23, 32, 51, 0.06);
}

.weluca-video-tools__title {
	margin: 0 0 16px;
	color: #172033;
	font-size: 1.35em;
	font-weight: 700;
	letter-spacing: 0;
	text-align: center;
}

.weluca-video-tools__lead {
	margin: 0 0 14px;
	color: #3f4654;
	font-weight: 700;
	text-align: center;
}

.weluca-video-tools__dropzone {
	padding: 18px 18px 12px;
	border: 2px dashed transparent;
	border-radius: 8px;
	background: #f7f8fd;
	text-align: center;
	transition: border-color 0.18s ease, background-color 0.18s ease;
}

.weluca-video-tools__dropzone.is-dragover {
	border-color: #ef2f2c;
	background: #fff5f5;
}

.weluca-video-tools__label {
	position: relative;
	display: inline-flex;
	width: min(100%, 620px);
	min-height: 64px;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 12px 24px;
	overflow: hidden;
	border-radius: 18px;
	background: #ef2f2c;
	box-shadow: 0 8px 18px rgba(17, 24, 39, 0.18);
	color: #ffffff;
	cursor: pointer;
	font-weight: 700;
	line-height: 1.25;
	transition: background-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.weluca-video-tools__label:hover {
	background: #e62b28;
	box-shadow: 0 10px 22px rgba(17, 24, 39, 0.22);
	transform: translateY(-1px);
}

.weluca-video-tools__label-text {
	color: #ffffff;
	font-size: clamp(22px, 3vw, 32px);
	font-weight: 700;
	letter-spacing: 0;
}

.weluca-video-tools__input {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	cursor: pointer;
	opacity: 0;
}

.weluca-video-tools__drop-hint {
	margin: 10px 0 0;
	color: #3f4654;
	font-size: clamp(16px, 2vw, 21px);
	font-weight: 700;
	letter-spacing: 0;
}

.weluca-video-tools__selected {
	margin-top: 12px;
	padding: 12px;
	border: 1px solid #e0e6ee;
	border-radius: 8px;
	background: #ffffff;
}

.weluca-video-tools__file-name {
	margin: 0 0 4px;
	overflow-wrap: anywhere;
	font-weight: 700;
}

.weluca-video-tools__file-size {
	margin: 0;
	color: #64748b;
}

.weluca-video-tools__options {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	margin: 12px 0 0;
	padding: 14px;
	border: 1px solid #e0e6ee;
	border-radius: 8px;
	background: #ffffff;
}

.weluca-video-tools__field {
	display: grid;
	gap: 6px;
	margin: 0;
	color: #334155;
	font-weight: 700;
}

.weluca-video-tools__field select,
.weluca-video-tools__field input[type="number"] {
	width: 100%;
	min-height: 44px;
	padding: 8px 12px;
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	background: #ffffff;
	color: #172033;
	font: inherit;
}

.weluca-video-tools__radio {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	color: #172033;
	font-weight: 700;
}

.weluca-video-tools__radio input {
	width: 1.1em;
	height: 1.1em;
	margin: 0;
	accent-color: #ef2f2c;
}

.weluca-video-tools__button {
	display: inline-flex;
	min-height: 44px;
	align-items: center;
	justify-content: center;
	width: auto;
	margin-top: 14px;
	padding: 0 24px;
	border: 0;
	border-radius: 6px;
	background: #172033;
	color: #ffffff;
	cursor: pointer;
	font: inherit;
	font-weight: 700;
	line-height: 1.2;
}

.weluca-video-tools__button:hover:not(:disabled) {
	filter: brightness(0.96);
}

.weluca-video-tools__button:disabled {
	cursor: not-allowed;
	opacity: 0.5;
}

.weluca-video-tools__progress {
	height: 12px;
	margin-top: 14px;
	overflow: hidden;
	border-radius: 999px;
	background: #e5eaf1;
}

.weluca-video-tools__progress-bar {
	width: 0%;
	height: 100%;
	background: #ef2f2c;
	transition: width 0.2s ease;
}

.weluca-video-tools__status {
	margin: 10px 0 0;
	font-weight: 700;
}

.weluca-video-tools__result {
	margin-top: 12px;
	padding: 12px;
	border: 1px solid #bbf7d0;
	border-radius: 8px;
	background: #ecfdf5;
	color: #166534;
}

.weluca-video-tools__download {
	display: inline-flex;
	min-height: 40px;
	align-items: center;
	justify-content: center;
	margin-top: 10px;
	padding: 0 16px;
	border-radius: 6px;
	background: #172033;
	color: #ffffff;
	font-weight: 700;
	text-decoration: none;
}

.weluca-video-tools__note {
	margin: 8px 0 0;
	color: #64748b;
	font-size: 0.9em;
}

.weluca-video-tools__page-drop-overlay {
	position: fixed;
	z-index: 999999;
	inset: 18px;
	display: none;
	place-items: center;
	border: 3px dashed #ef2f2c;
	border-radius: 18px;
	background: rgba(255, 245, 245, 0.92);
	box-shadow: 0 12px 38px rgba(23, 32, 51, 0.18);
	color: #172033;
	font-size: clamp(22px, 4vw, 40px);
	font-weight: 700;
	text-align: center;
	pointer-events: none;
}

.weluca-video-tools__page-drop-overlay.is-active {
	display: grid;
}

@media (max-width: 600px) {
	.weluca-video-tools {
		margin: 14px 0;
		font-size: 15px;
	}

	.weluca-video-tools__inner {
		padding: 14px;
	}

	.weluca-video-tools__options {
		grid-template-columns: 1fr;
	}

	.weluca-video-tools__button {
		width: 100%;
	}
}
