.mid-widget {
	max-width: 640px;
	margin: 1.5rem 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.mid-widget--interactive {
	border: 1px solid #dbe4e4;
	border-radius: 14px;
	padding: 1.25rem;
	background: #fbfdfd;
}

.mid-input {
	width: 100%;
	box-sizing: border-box;
	border: 1px solid #c6d5d5;
	border-radius: 10px;
	padding: 0.75rem;
	font-size: 1rem;
	line-height: 1.4;
	resize: vertical;
	font-family: inherit;
}

.mid-input:focus {
	outline: 3px solid #0f4c4c;
	outline-offset: 1px;
	border-color: #0f4c4c;
}

.mid-actions {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-top: 0.75rem;
	flex-wrap: wrap;
}

.mid-submit {
	background: #0f4c4c;
	color: #fff;
	border: none;
	border-radius: 8px;
	padding: 0.6rem 1.2rem;
	font-size: 0.95rem;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s ease;
}

.mid-submit:hover {
	background: #0c3d3d;
}

.mid-submit:focus-visible {
	outline: 3px solid #0f4c4c;
	outline-offset: 2px;
}

.mid-submit:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.mid-status {
	font-size: 0.9rem;
	color: #4a5a5a;
}

.mid-result {
	margin-top: 1rem;
}

.mid-result video {
	width: 100%;
	border-radius: 10px;
	background: #000;
	display: block;
}

.mid-missing {
	margin-top: 0.6rem;
	font-size: 0.85rem;
	color: #8a5a00;
	background: #fff7e6;
	border: 1px solid #ffe3a3;
	border-radius: 8px;
	padding: 0.5rem 0.75rem;
}

.mid-error-box {
	margin-top: 0.6rem;
	font-size: 0.9rem;
	color: #8a1f1f;
	background: #fdecec;
	border: 1px solid #f5c2c2;
	border-radius: 8px;
	padding: 0.5rem 0.75rem;
}

.mid-widget--static video {
	width: 100%;
	max-width: 480px;
	border-radius: 12px;
	background: #000;
	display: block;
}

.mid-widget--error {
	color: #8a1f1f;
	background: #fdecec;
	border: 1px solid #f5c2c2;
	border-radius: 10px;
	padding: 0.75rem 1rem;
}

.mid-pending-box {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	background: #f0f5f5;
	border: 1px solid #dbe4e4;
	border-radius: 10px;
	padding: 0.9rem 1rem;
	color: #35514f;
	font-size: 0.95rem;
}

.mid-spinner {
	width: 18px;
	height: 18px;
	border: 3px solid #c6d5d5;
	border-top-color: #0f4c4c;
	border-radius: 50%;
	display: inline-block;
	animation: mid-spin 0.8s linear infinite;
	flex: 0 0 auto;
}

@keyframes mid-spin {
	to {
		transform: rotate(360deg);
	}
}
