.root {
	display: flex;
	flex-direction: column;
	flex: 1;
	overflow: hidden;
	min-height: 0;
}

.layout {
	display: grid;
	grid-template-columns: 1fr 320px;
	gap: 24px;
	flex: 1;
	padding: 24px;
	min-height: 0;
	overflow: hidden;
}

.playerWrapper {
	position: relative;
	border-radius: variables.$radius-md;
	overflow: hidden;
	background: #000;
	min-height: 0;
	height: 100%;

	:global([data-media-player]) {
		width: 100% !important;
		height: 100% !important;
	}

	:global(.vds-video-layout) {
		width: 100%;
		height: 100%;
	}

	video {
		width: 100%;
		height: 100%;
		object-fit: contain;
		display: block;
	}
}

.placeholder {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	height: 100%;
	min-height: 300px;
	color: variables.$text-tertiary;
}

.sidebar {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.statusRow {
	display: flex;
	align-items: center;
}

.infoCards {
	display: grid;
	gap: 8px;
}

.infoCard {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 10px 12px;
	background: variables.$bg-surface;
	border: 1px solid variables.$border-subtle;
	border-radius: variables.$radius-sm;
}

.infoIcon {
	color: variables.$text-tertiary;
	flex-shrink: 0;
	margin-top: 2px;
}

.infoContent {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.infoLabel {
	@include typography.font-caption-m;
	font-weight: 500;
	color: variables.$text-tertiary;
}

.infoValue {
	@include typography.font-body-14(500);
	color: variables.$text-primary;
	word-break: break-all;
}

.sidebarActions {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-top: auto;
}

.convertErrorText {
	font-size: 13px;
	color: variables.$color-danger;
	margin: 0;
}

.placeholderHint {
	@include typography.font-body-14(400);
	color: variables.$text-tertiary;
	margin: 0;
}

/* Converting view */

.convertingContent {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 24px;
	flex: 1;
	padding: 40px;
	max-width: 400px;
	margin: 0 auto;
	text-align: center;
}

.progressWrapper {
	position: relative;
	width: 200px;
	height: 200px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.circle {
	position: absolute;
	inset: 0;
}

.circleBg {
	stroke: variables.$border-subtle;
}

.circleValue {
	transition: stroke-dashoffset 0.4s ease;
}

.progressInner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	z-index: 1;
}

.percentage {
	font-weight: 700;
	font-size: 28px;
	line-height: 36px;
	color: variables.$text-primary;
	font-variant-numeric: tabular-nums;
}

.statusLabel {
	font-weight: 600;
	font-size: 12px;
	line-height: 18px;
	color: variables.$text-tertiary;
	letter-spacing: 0.5px;
	text-transform: uppercase;
}

.convertDescription {
	@include typography.font-body-14(400);
	color: variables.$text-secondary;
	margin: 0;
}

.convertInfoCard {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 12px 16px;
	background: variables.$bg-hover;
	border-radius: variables.$radius-md;
	font-weight: 400;
	font-size: 13px;
	line-height: 18px;
	color: variables.$text-secondary;
	text-align: left;
}

.convertInfoIcon {
	color: variables.$text-tertiary;
	flex-shrink: 0;
	margin-top: 1px;
}

.footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 16px 24px;
	border-top: 1px solid variables.$border-subtle;
	background: variables.$bg-surface;
}
