/* Video Player — estilos base del plugin */

.video-player {
	--vp-gradient: var(--gradient1, linear-gradient(90deg, var(--gray800, #6b6b6b) 0%, var(--black300, #34373c) 100%));
	--vp-accent: #fd780f;
	--vp-date: #cfcfcf;
	background: var(--vp-gradient);
	border-radius: 10px;
	padding: 24px 16px;
	margin-bottom: 24px;
}

.video-player--text-light {
	color: #fff;
}

.video-player--text-light .video-player__title {
	color: #fff;
}

.video-player--text-dark {
	color: #000;
}

.video-player--text-dark .video-player__title {
	color: #000;
}

.video-player__inner {
	max-width: 100%;
}

.video-player__header {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 20px;
}

.video-player__header-icon {
	display: inline-flex;
	flex-shrink: 0;
	line-height: 0;
}

.video-player__title {
	margin: 0;
	font-size: 1.25rem;
	font-weight: 600;
	line-height: 1.3;
}

.video-player__stage {
	position: relative;
	width: 100%;
	background: #000;
	border-radius: 8px;
	overflow: hidden;
	aspect-ratio: 16 / 9;
}

/* YouTube Shorts — formato vertical 9:16 */
.video-player__stage--short {
	aspect-ratio: 9 / 16;
	max-width: min(360px, 100%);
	margin-left: auto;
	margin-right: auto;
}

@media (min-width: 992px) {
	.video-player__stage--short {
		max-width: 320px;
	}
}

@media (max-width: 768px) {
	.video-player__stage--short {
		max-width: 100%;
	}
}

.video-player__stage .video-js {
	position: absolute;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
}

.video-player__stage .video-js.vjs-fluid {
	padding-top: 0 !important;
}

.video-player__stage .video-js .vjs-tech,
.video-player__stage .video-js iframe {
	width: 100% !important;
	height: 100% !important;
	object-fit: contain;
}

.video-player__video.video-js {
	width: 100%;
	height: 100%;
}

.video-player__stage .video-js .vjs-big-play-button {
	display: none;
}

.video-player__overlay {
	position: absolute;
	inset: 0;
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	transition: opacity 0.2s ease;
}

.video-player__overlay svg {
	width: min(92px, 22vw);
	height: auto;
	pointer-events: none;
}

.video-player__stage.is-playing .video-player__overlay,
.video-player__stage.is-started .video-player__overlay {
	opacity: 0;
	pointer-events: none;
}

.video-player__list-wrap {
	position: relative;
	height: 100%;
	min-height: 280px;
}

.video-player__list {
	display: flex;
	flex-direction: column;
	gap: 12px;
	max-height: 420px;
	overflow-y: auto;
	padding-right: 4px;
	scrollbar-width: thin;
	scrollbar-color: rgba(255, 255, 255, 0.35) transparent;
}

.video-player--text-dark .video-player__list {
	scrollbar-color: rgba(0, 0, 0, 0.25) transparent;
}

.video-player__list-wrap::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 48px;
	pointer-events: none;
	background: linear-gradient(to bottom, transparent, rgba(52, 55, 60, 0.85));
}

.video-player--text-dark .video-player__list-wrap::after {
	background: linear-gradient(to bottom, transparent, rgba(248, 248, 248, 0.9));
}

.video-player[style*="background"] .video-player__list-wrap::after {
	display: none;
}

.video-player__item {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	width: 100%;
	padding: 0;
	border: 0;
	background: transparent;
	text-align: left;
	cursor: pointer;
	color: inherit;
	transition: opacity 0.15s ease;
}

.video-player__item:hover,
.video-player__item:focus-visible {
	opacity: 0.9;
	outline: none;
}

.video-player__item.is-active .video-player__item-title {
	color: var(--vp-accent);
}

.video-player__thumb-wrap {
	flex: 0 0 72px;
	width: 72px;
}

.video-player__thumb {
	display: block;
	width: 72px;
	height: 48px;
	object-fit: cover;
	border-radius: 4px;
	background: #222;
}

.video-player__item-body {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.video-player__item-title {
	font-size: 0.9375rem;
	font-weight: 500;
	line-height: 1.35;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.video-player__item-date {
	font-size: 0.8125rem;
	color: var(--vp-date);
	line-height: 1.2;
}

.video-player__empty {
	margin: 0;
	padding: 12px 0;
	opacity: 0.85;
}

@media (max-width: 991.98px) {
	.video-player {
		padding: 20px 14px;
	}

	.video-player__list {
		max-height: 280px;
	}

	.video-player__list-wrap {
		min-height: 0;
		margin-top: 8px;
	}
}

@media (max-width: 575.98px) {
	.video-player__thumb-wrap {
		flex-basis: 64px;
		width: 64px;
	}

	.video-player__thumb {
		width: 64px;
		height: 42px;
	}
}
