/* "Nút xem video" ([bsdh_video_btn]) and its popup player. */

.bsdh-vbtn-wrap {
	margin: 0 0 20px;
}

.bsdh-vbtn-wrap--center {
	text-align: center;
}

.bsdh-vbtn-wrap--right {
	text-align: right;
}

.bsdh-vbtn-wrap--inline {
	display: inline-block;
	margin-right: 10px;
	vertical-align: middle;
}

.bsdh-vbtn {
	--bsdh-vbtn-icon: 32px;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	max-width: 100%;
	padding: 7px 20px 7px 7px;
	border-radius: 999px;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.25;
	text-align: left;
	text-decoration: none !important;
	vertical-align: middle;
	transition: background-color .2s, color .2s, box-shadow .2s, transform .2s;
}

.bsdh-vbtn:hover {
	transform: translateY(-1px);
}

.bsdh-vbtn:focus-visible {
	outline: 2px solid #fab52c;
	outline-offset: 3px;
}

.bsdh-vbtn__icon {
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: var(--bsdh-vbtn-icon);
	height: var(--bsdh-vbtn-icon);
	border-radius: 50%;
	background: rgba(255, 255, 255, .22);
}

.bsdh-vbtn__icon svg {
	width: calc(var(--bsdh-vbtn-icon) * .45);
	height: calc(var(--bsdh-vbtn-icon) * .45);
	margin-left: 2px;
}

.bsdh-vbtn__text {
	min-width: 0;
}

.bsdh-vbtn--sm {
	--bsdh-vbtn-icon: 26px;
	gap: 8px;
	padding: 5px 16px 5px 5px;
	font-size: 14px;
}

.bsdh-vbtn--lg {
	--bsdh-vbtn-icon: 40px;
	gap: 12px;
	padding: 9px 26px 9px 9px;
	font-size: 17px;
}

.bsdh-vbtn--red {
	background: #af1f29;
	color: #fff !important;
}

.bsdh-vbtn--red:hover {
	background: #921922;
	box-shadow: 0 8px 20px -10px rgba(175, 31, 41, .7);
}

.bsdh-vbtn--gold {
	background: #fab52c;
	color: #1d1d1f !important;
}

.bsdh-vbtn--gold .bsdh-vbtn__icon {
	background: rgba(0, 0, 0, .1);
}

.bsdh-vbtn--gold:hover {
	background: #f0a812;
	box-shadow: 0 8px 20px -10px rgba(186, 128, 10, .8);
}

.bsdh-vbtn--outline {
	background: transparent;
	box-shadow: inset 0 0 0 1.5px #af1f29;
	color: #af1f29 !important;
}

.bsdh-vbtn--outline .bsdh-vbtn__icon {
	background: #af1f29;
	color: #fff;
}

.bsdh-vbtn--outline:hover {
	background: #fbf1f1;
}

.bsdh-vbtn--dark {
	background: #1d1d1f;
	color: #fff !important;
}

.bsdh-vbtn--dark:hover {
	background: #000;
}

/* Popup */

.bsdh-vmodal {
	position: fixed;
	inset: 0;
	z-index: 2147483000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 64px 16px 24px;
	animation: bsdh-vmodal-in .2s ease;
}

.bsdh-vmodal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, .85);
}

.bsdh-vmodal__box {
	position: relative;
	z-index: 1;
	width: min(960px, 100%, calc((100vh - 112px) * 16 / 9));
}

.bsdh-vmodal__box--9x16 {
	width: min(420px, 100%, calc((100vh - 112px) * 9 / 16));
}

.bsdh-vmodal__box--file {
	width: auto;
	max-width: 100%;
}

.bsdh-vmodal__frame {
	position: relative;
	overflow: hidden;
	border-radius: 10px;
	background: #000;
	box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
	aspect-ratio: 16 / 9;
}

.bsdh-vmodal__box--9x16 .bsdh-vmodal__frame {
	aspect-ratio: 9 / 16;
}

.bsdh-vmodal__box--file .bsdh-vmodal__frame {
	aspect-ratio: auto;
}

.bsdh-vmodal__frame iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.bsdh-vmodal__frame video {
	display: block;
	width: auto;
	min-width: min(320px, calc(100vw - 32px));
	max-width: min(1100px, calc(100vw - 32px));
	height: auto;
	max-height: calc(100vh - 112px);
	background: #000;
}

.bsdh-vmodal .bsdh-vmodal__close {
	position: absolute;
	top: -48px;
	right: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .14);
	color: #fff;
	box-shadow: none;
	cursor: pointer;
}

.bsdh-vmodal .bsdh-vmodal__close:hover {
	background: rgba(255, 255, 255, .28);
}

.bsdh-vmodal .bsdh-vmodal__close:focus-visible {
	outline: 2px solid #fab52c;
	outline-offset: 2px;
}

@keyframes bsdh-vmodal-in {
	from {
		opacity: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.bsdh-vbtn,
	.bsdh-vmodal {
		transition: none;
		animation: none;
	}
}
