/* Video Pro widget — structural styles. Colors/sizes come from the widget's
   style controls (compiled per-instance); this file only carries layout,
   the facade chrome and sane visual defaults so a freshly dropped widget
   already looks designed. */

.ractro-vp {
	width: 100%;
}

.ractro-vp--playlist {
	display: flex;
	gap: 16px;
}

.ractro-vp--playlist.ractro-vp--position-bottom {
	flex-direction: column;
}

.ractro-vp-stage-wrap {
	min-width: 0;
	flex: 1 1 auto;
}

.ractro-vp--playlist.ractro-vp--position-right .ractro-vp-stage-wrap {
	flex: 1 1 auto;
}

.ractro-vp--playlist.ractro-vp--position-right .ractro-vp-list {
	flex: 0 0 var(--ractro-vp-list-width, 300px);
	width: var(--ractro-vp-list-width, 300px);
	max-height: 100%;
	overflow-y: auto;
}

.ractro-vp--playlist.ractro-vp--position-bottom .ractro-vp-list {
	display: flex;
	flex-direction: row;
	overflow-x: auto;
	gap: 8px;
}

.ractro-vp-list {
	background: #0f172a;
	border-radius: 12px;
	padding: 6px;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.ractro-vp-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px;
	border: 0;
	border-radius: 8px;
	background: transparent;
	cursor: pointer;
	text-align: left;
	appearance: none;
	flex-shrink: 0;
}

.ractro-vp--position-bottom .ractro-vp-item {
	min-width: 180px;
}

.ractro-vp-item:hover,
.ractro-vp-item.is-active {
	background: rgba(255, 255, 255, 0.1);
}

.ractro-vp-item-thumb {
	width: 64px;
	aspect-ratio: 16/9;
	object-fit: cover;
	border-radius: 6px;
	flex: 0 0 auto;
	background: #1e293b;
}

.ractro-vp-item-thumb--noimg {
	display: block;
}

.ractro-vp-item-title {
	font-size: 13px;
	font-weight: 500;
	color: #e2e8f0;
	line-height: 1.35;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.ractro-vp-stage {
	position: relative;
	width: 100%;
	aspect-ratio: 16/9;
	background: #0f172a;
	border-radius: 12px;
	overflow: hidden;
}

.ractro-vp-stage-wrap.is-docked {
	position: fixed;
	width: 320px;
	max-width: calc(100vw - 24px);
	z-index: 100000;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
	border-radius: 12px;
}

.ractro-vp-stage-wrap.is-docked .ractro-vp-stage {
	border-radius: 12px;
}

.ractro-vp-stage-wrap--br.is-docked { right: 16px; bottom: 16px; }
.ractro-vp-stage-wrap--bl.is-docked { left: 16px; bottom: 16px; }
.ractro-vp-stage-wrap--tr.is-docked { right: 16px; top: 16px; }
.ractro-vp-stage-wrap--tl.is-docked { left: 16px; top: 16px; }

.ractro-vp-dock-close {
	display: none;
	position: absolute;
	top: -12px;
	right: -12px;
	z-index: 2;
	width: 26px;
	height: 26px;
	border: 0;
	border-radius: 50%;
	background: #111827;
	color: #fff;
	font-size: 16px;
	line-height: 1;
	cursor: pointer;
}

.ractro-vp-stage-wrap.is-docked .ractro-vp-dock-close {
	display: block;
}

.ractro-vp-download {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: rgba(15, 23, 42, 0.72);
	color: #fff;
	cursor: pointer;
}

.ractro-vp-download svg {
	fill: currentColor;
}

.ractro-vp-facade {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	padding: 0;
	margin: 0;
	border: 0;
	background: #0f172a;
	cursor: pointer;
	appearance: none;
}

.ractro-vp-facade::after {
	content: '';
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.15);
	pointer-events: none;
}

.ractro-vp-facade--noimg {
	background: linear-gradient(135deg, #1e293b, #0f172a);
}

.ractro-vp-thumb {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ractro-vp-play {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 72px;
	height: 72px;
	border-radius: 50%;
	background: rgba(220, 38, 38, 0.92);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
	transition: transform 0.2s ease, background 0.2s ease;
}

.ractro-vp-facade:hover .ractro-vp-play {
	transform: scale(1.06);
}

.ractro-vp-play svg {
	fill: #ffffff;
	margin-left: 3px; /* optically center the play triangle */
}

.ractro-vp-title {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 1;
	padding: 28px 16px 12px;
	background: linear-gradient(transparent, var(--ractro-vp-title-bg, rgba(0, 0, 0, 0.65)));
	color: #ffffff;
	font-size: 15px;
	font-weight: 600;
	text-align: left;
	line-height: 1.4;
}

.ractro-vp-player {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	background: #000;
}

.ractro-vp-empty {
	padding: 18px;
	border: 1px dashed #cbd5e1;
	border-radius: 10px;
	color: #94a3b8;
	font-size: 13px;
	text-align: center;
}

/* Lightbox overlay — created once per page by the front-end handler. */
.ractro-vp-lightbox {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background: rgba(0, 0, 0, 0.9);
}

.ractro-vp-lightbox.is-open {
	display: flex;
}

.ractro-vp-lightbox-inner {
	position: relative;
	width: 100%;
	max-width: 1100px;
	aspect-ratio: 16/9;
}

.ractro-vp-lightbox-body {
	width: 100%;
	height: 100%;
}

.ractro-vp-lightbox-body .ractro-vp-player {
	position: absolute;
}

.ractro-vp-lightbox-close {
	position: absolute;
	top: -44px;
	right: 0;
	width: 36px;
	height: 36px;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.12);
	color: #ffffff;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}

.ractro-vp-lightbox-close:hover {
	background: rgba(255, 255, 255, 0.24);
}
