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

.mediaPlayer {
	display: flex !important;
	flex-direction: column !important;
	flex: 1;
	width: 100%;
	max-width: 100%;
	height: auto;
	min-height: 0;
	min-width: 0;
	overflow: hidden;

	// Reset vidstack player defaults
	aspect-ratio: unset !important;
}

.workspaceShell {
	display: flex;
	flex-direction: column;
	flex: 1;
	width: 100%;
	max-width: 100%;
	min-height: 0;
	min-width: 0;
	border: 1px solid variables.$border-default;
	border-radius: 10px;
	background: variables.$bg-default;
	overflow: hidden;
}

.mainGrid {
	display: grid;
	grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.95fr);
	gap: 16px;
	flex: 1;
	width: 100%;
	max-width: 100%;
	padding: 16px;
	overflow: hidden;
	min-height: 0;
	min-width: 0;
	align-self: stretch;

	@media (max-width: 1120px) {
		grid-template-columns: 1fr;
		align-content: start;
		overflow-y: auto;
	}
}

.panel {
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: 100%;
	min-height: 0;
	min-width: 0;
	border: 1px solid variables.$border-default;
	border-radius: 8px;
	background: variables.$bg-default;
	overflow: hidden;

	@media (max-width: 1120px) {
		min-height: auto;
	}
}

.panelHeader {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 16px;
	border-bottom: 1px solid variables.$border-default;
	flex-shrink: 0;
	background: variables.$bg-default;
}

.panelTitle {
	margin: 0;
	color: variables.$text-primary;
	@include typography.font-body-16(600);
}

.editorPanel {
	min-height: 0;

	@media (max-width: 1120px) {
		min-height: 420px;
	}
}

.playerPanel {
	min-height: 0;

	@media (max-width: 1120px) {
		min-height: 260px;
	}
}

.playerColumn {
	display: flex;
	flex-direction: column;
	flex: 1;
	position: relative;
	width: 100%;
	max-width: 100%;
	overflow: hidden;
	background: #000;
	min-height: 280px;
	min-width: 0;

	: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;
	}
}

.editorColumn {
	display: flex;
	flex-direction: column;
	flex: 1;
	width: 100%;
	max-width: 100%;
	overflow: hidden;
	min-height: 0;
	min-width: 0;
	background: variables.$bg-default;
}

.placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	padding: 24px;
	color: variables.$text-tertiary;
	@include typography.font-body-14(500);
}

.timelineWrapper {
	width: 100%;
	max-width: 100%;
	min-width: 0;
	padding: 0 16px 16px;
	align-self: stretch;
	overflow: hidden;
}

.timeline {
	width: 100%;
	max-width: 100%;
	min-width: 0;
}

.footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	width: 100%;
	max-width: 100%;
	padding: 0 16px 16px;
	background: transparent;
	align-self: stretch;
	flex-shrink: 0;
	min-width: 0;

	@media (max-width: 720px) {
		flex-direction: column-reverse;
		align-items: stretch;
		gap: 10px;
	}
}
