/* ============================================================
   Tripianto — Video Reviews section (vertical YouTube review cards)
   Reels-style cards: thumbnail + play, title, Verified Review,
   brand watermark and share icons. Click-to-load YouTube facade.
   ============================================================ */

.tvr-section {
	padding: 30px 0 40px;
	background: #fff;
}
.tvr-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

/* ---- Heading (matches the site's reviews heading style) ---- */
.tvr-head { text-align: center; margin-bottom: 30px; }
.tvr-head .tvr-title-main {
	font-size: clamp(26px, 3.2vw, 40px);
	font-weight: 800;
	line-height: 1.2;
	color: #1a1a2e;
	margin: 0 0 10px;
}
.tvr-head .tvr-title-main .tvr-accent { color: #e4002b; }
.tvr-head .tvr-sub {
	font-size: 17px;
	color: #5a6472;
	margin: 0;
}

/* ---- Grid of cards ---- */
.tvr-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 22px;
}

/* ---- Card ---- */
.tvr-card {
	position: relative;
	aspect-ratio: 9 / 16;
	border-radius: 16px;
	overflow: hidden;
	background: #0c0c12;
	box-shadow: 0 10px 28px rgba(0, 0, 0, .18);
	display: block;
	cursor: pointer;
	isolation: isolate;
}
.tvr-card .tvr-thumb-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .5s ease;
}
.tvr-card:hover .tvr-thumb-img { transform: scale(1.06); }

/* darkening gradient so text/controls stay readable */
.tvr-card::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,0) 28%, rgba(0,0,0,0) 45%, rgba(0,0,0,.78) 100%);
	z-index: 1;
	pointer-events: none;
}

/* brand watermark (top center) */
.tvr-brand {
	position: absolute;
	top: 14px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 2;
	max-width: 120px;
}
.tvr-brand img { display: block; width: 100%; height: auto; filter: brightness(0) invert(1); opacity: .92; }

/* play button */
.tvr-play {
	position: absolute;
	top: 44%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 3;
	width: 62px;
	height: 62px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .22);
	border: 2px solid rgba(255, 255, 255, .85);
	backdrop-filter: blur(2px);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background .2s ease, transform .2s ease;
}
.tvr-card:hover .tvr-play { background: #e4002b; border-color: #e4002b; transform: translate(-50%, -50%) scale(1.08); }
.tvr-play svg { width: 24px; height: 24px; fill: #fff; margin-left: 3px; }

/* bottom overlay: title + byline */
.tvr-info {
	position: absolute;
	left: 0; right: 0; bottom: 0;
	z-index: 2;
	padding: 16px 15px 15px;
	color: #fff;
}
.tvr-section .tvr-info,
.tvr-section .tvr-info .tvr-vtitle,
.tvr-section .tvr-info .tvr-name,
.tvr-section .tvr-info .tvr-verified { color: #fff !important; }
.tvr-info .tvr-vtitle {
	font-size: 17px;
	font-weight: 700;
	line-height: 1.25;
	margin: 0 0 10px;
	text-shadow: 0 1px 6px rgba(0, 0, 0, .55);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.tvr-byline { display: flex; align-items: center; gap: 9px; }
.tvr-avatar {
	width: 34px; height: 34px;
	border-radius: 50%;
	object-fit: cover;
	background: #fff;
	border: 2px solid rgba(255,255,255,.9);
	flex: none;
}
.tvr-byline .tvr-name { display: block; font-size: 13.5px; font-weight: 700; line-height: 1.2; }
.tvr-byline .tvr-verified { display: flex; align-items: center; gap: 4px; font-size: 12px; opacity: .92; }
.tvr-byline .tvr-verified svg { width: 13px; height: 13px; fill: #3897f0; }

/* share icons (right side) */
.tvr-share {
	position: absolute;
	right: 10px;
	bottom: 78px;
	z-index: 3;
	display: flex;
	flex-direction: column;
	gap: 9px;
}
.tvr-share a {
	width: 34px; height: 34px;
	border-radius: 50%;
	background: rgba(0, 0, 0, .55);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background .2s ease, transform .2s ease;
}
.tvr-share a:hover { transform: translateY(-2px); }
.tvr-share a.tvr-fb:hover { background: #1877f2; }
.tvr-share a.tvr-x:hover  { background: #000; }
.tvr-share a.tvr-wa:hover { background: #25d366; }
.tvr-share svg { width: 16px; height: 16px; fill: #fff; }

/* active (playing) state: iframe fills the card */
.tvr-card.tvr-playing .tvr-thumb-img,
.tvr-card.tvr-playing .tvr-play,
.tvr-card.tvr-playing .tvr-brand,
.tvr-card.tvr-playing .tvr-info,
.tvr-card.tvr-playing .tvr-share,
.tvr-card.tvr-playing::after { opacity: 0; visibility: hidden; }
.tvr-card .tvr-iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	z-index: 5;
}

/* ---- Dots nav (built by JS, mobile only) ---- */
.tvr-dots { display: none; }

/* ---- Responsive ---- */
@media (max-width: 1024px) { .tvr-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
@media (max-width: 760px) {
	.tvr-section { padding: 22px 0 28px; }
	.tvr-head { margin-bottom: 20px; }

	/* one video at a time, full width, swipeable */
	.tvr-grid {
		display: flex;
		gap: 0;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
	}
	.tvr-grid::-webkit-scrollbar { height: 0; }
	.tvr-card {
		flex: 0 0 100%;
		max-width: 100%;
		scroll-snap-align: center;
		border-radius: 14px;
	}

	/* dots */
	.tvr-dots {
		display: flex;
		justify-content: center;
		align-items: center;
		gap: 8px;
		margin-top: 16px;
	}
	.tvr-dot {
		width: 8px; height: 8px;
		padding: 0;
		border: 0;
		border-radius: 50%;
		background: #cfd4da;
		cursor: pointer;
		transition: background .2s ease, width .2s ease, border-radius .2s ease;
	}
	.tvr-dot.tvr-dot-active { background: #e4002b; width: 22px; border-radius: 5px; }
}

/* RTL */
html[dir="rtl"] .tvr-share { right: auto; left: 10px; }
