/* ============================================
   Video Reviews Widget
   ============================================ */

.bjvr-wrap {
	width: 100%;
	overflow: hidden;
}

.bjvr-section-title {
	font-size: 24px;
	font-weight: 700;
	margin: 0 0 20px 0;
	padding: 0;
	line-height: 1.3;
}

/* --- Scroll Container --- */
.bjvr-scroll-container {
	overflow-x: auto;
	overflow-y: hidden;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
	scrollbar-color: #ccc transparent;
	padding-bottom: 8px;
}

.bjvr-scroll-container::-webkit-scrollbar {
	height: 6px;
}

.bjvr-scroll-container::-webkit-scrollbar-track {
	background: transparent;
}

.bjvr-scroll-container::-webkit-scrollbar-thumb {
	background: #ccc;
	border-radius: 3px;
}

.bjvr-track {
	display: flex;
	gap: 16px;
}

/* --- Card --- */
.bjvr-card {
	flex: 0 0 calc((100% - 16px * 3) / 3.2);
	cursor: pointer;
	border-radius: 12px;
	overflow: hidden;
	background: #fff;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bjvr-card:hover {
	transform: none;
	box-shadow: none;
}

/* --- Thumbnail --- */
.bjvr-card-thumb {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #000;
	border-radius: 12px;
}

.bjvr-card-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.3s ease;
}

.bjvr-card:hover .bjvr-card-thumb img {
	transform: scale(1.05);
}

/* --- Play Button --- */
.bjvr-play-btn {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	pointer-events: none;
	opacity: 0.85;
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.bjvr-play-btn svg {
	width: 56px;
	height: 40px;
	filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.bjvr-card:hover .bjvr-play-btn {
	opacity: 1;
	transform: translate(-50%, -50%) scale(1.1);
}

/* --- Card Info --- */
.bjvr-card-info {
	padding: 10px 4px 6px;
}

.bjvr-card-title {
	font-size: 13px;
	font-weight: 500;
	line-height: 1.4;
	color: #222;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	margin-bottom: 4px;
}

.bjvr-card-channel {
	font-size: 12px;
	color: #888;
	line-height: 1.3;
}

/* ============================================
   Lightbox
   ============================================ */

.bjvr-lightbox {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
}

.bjvr-lightbox-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.85);
}

.bjvr-lightbox-content {
	position: relative;
	width: 90vw;
	max-width: 900px;
	aspect-ratio: 16 / 9;
	z-index: 1;
}

.bjvr-lightbox-close {
	position: absolute;
	top: -40px;
	right: 0;
	width: 36px;
	height: 36px;
	background: none;
	border: none;
	color: #fff;
	font-size: 32px;
	line-height: 1;
	cursor: pointer;
	opacity: 0.8;
	transition: opacity 0.2s;
	z-index: 2;
}

.bjvr-lightbox-close:hover {
	opacity: 1;
}

.bjvr-lightbox-video {
	width: 100%;
	height: 100%;
	border-radius: 8px;
	overflow: hidden;
	background: #000;
}

.bjvr-lightbox-video iframe {
	width: 100%;
	height: 100%;
	border: none;
}

/* --- Lightbox animation --- */
.bjvr-lightbox.bjvr-active {
	display: flex;
	animation: bjvrFadeIn 0.25s ease;
}

.bjvr-lightbox.bjvr-closing {
	animation: bjvrFadeOut 0.2s ease forwards;
}

@keyframes bjvrFadeIn {
	from { opacity: 0; }
	to { opacity: 1; }
}

@keyframes bjvrFadeOut {
	from { opacity: 1; }
	to { opacity: 0; }
}

/* --- Responsive --- */
@media (max-width: 768px) {
	.bjvr-card {
		flex: 0 0 calc((100% - 16px * 2) / 2.2);
	}

	.bjvr-section-title {
		font-size: 20px;
	}

	.bjvr-lightbox-content {
		width: 95vw;
	}

	.bjvr-lightbox-close {
		top: -36px;
	}
}

@media (max-width: 480px) {
	.bjvr-card {
		flex: 0 0 calc((100% - 16px) / 1.2);
	}

	.bjvr-play-btn svg {
		width: 44px;
		height: 32px;
	}
}
