/* ==========================================================================
   ISINWHEEL GLOBAL — Homepage Product Video Showcase
   ==========================================================================
   Section ⑪: Featured video stage + thumbnail selector.
   Poster-first, play-on-demand, no autoplay carousel.
   Dark premium background, brand green accents.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Section Container
   -------------------------------------------------------------------------- */
.homepage-video-showcase {
	padding-block: clamp(80px, 8vw, 120px);
	background: #ffffff;
	color: var(--color-text-primary);
}

.homepage-video-showcase__container {
	width: min(calc(100% - 64px), 1320px);
	margin-inline: auto;
}

/* --------------------------------------------------------------------------
   Section Header
   -------------------------------------------------------------------------- */
.homepage-video-showcase__header {
	text-align: center;
	margin-bottom: clamp(40px, 5vw, 64px);
}

.homepage-video-showcase__title {
	margin: 0;
	font-size: clamp(36px, 3.4vw, 52px);
	font-weight: 750;
	line-height: 1.08;
	letter-spacing: -0.01em;
	color: var(--color-text-primary);
}

.homepage-video-showcase__desc {
	margin: 14px 0 0;
	font-size: clamp(16px, 1.1vw, 18px);
	line-height: 1.6;
	color: var(--color-text-secondary);
	max-width: 560px;
	margin-inline: auto;
}

/* --------------------------------------------------------------------------
   Featured Video Stage
   -------------------------------------------------------------------------- */
.homepage-video-showcase__stage {
	position: relative;
}

.homepage-video-showcase__featured {
	position: relative;
	overflow: hidden;
	border-radius: 12px;
	background: #0d0d0f;
}

.homepage-video-showcase__media {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #0a0a0c;
}

.homepage-video-showcase__poster {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: opacity 0.4s ease;
}

.homepage-video-showcase__video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: none;
}

.homepage-video-showcase__video.is-playing {
	display: block;
}

.homepage-video-showcase__video.is-playing + .homepage-video-showcase__play {
	display: none;
}

/* --------------------------------------------------------------------------
   Play Button
   -------------------------------------------------------------------------- */
.homepage-video-showcase__play {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 72px;
	height: 72px;
	border: none;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.58);
	color: #ffffff;
	cursor: pointer;
	transition: background 0.25s ease, transform 0.25s ease;
}

.homepage-video-showcase__play:hover {
	background: rgba(0, 0, 0, 0.78);
	transform: translate(-50%, -50%) scale(1.06);
	color: #94F250;
}

/* --------------------------------------------------------------------------
   Video Info (Product Name, Description, CTA)
   -------------------------------------------------------------------------- */
.homepage-video-showcase__info {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	padding: clamp(32px, 4vw, 48px);
	background: linear-gradient(to top, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%);
	pointer-events: none;
	z-index: 1;
}

.homepage-video-showcase__product-name {
	margin: 0;
	font-size: clamp(24px, 2.2vw, 34px);
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.01em;
	color: #ffffff;
}

.homepage-video-showcase__product-desc {
	margin: 8px 0 0;
	font-size: clamp(15px, 1vw, 17px);
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.7);
	max-width: 480px;
}

.homepage-video-showcase__cta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 16px;
	font-size: 15px;
	font-weight: 600;
	line-height: 1;
	color: #94F250;
	text-decoration: none;
	pointer-events: auto;
	transition: gap 0.25s ease, color 0.25s ease;
}

.homepage-video-showcase__cta:hover {
	gap: 12px;
	color: #b8ff6e;
}

/* --------------------------------------------------------------------------
   Navigation Arrows
   -------------------------------------------------------------------------- */
.homepage-video-showcase__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.45);
	color: #ffffff;
	cursor: pointer;
	transition: background 0.25s ease, border-color 0.25s ease;
}

.homepage-video-showcase__nav:hover {
	background: rgba(0, 0, 0, 0.68);
	border-color: rgba(255, 255, 255, 0.35);
	color: #94F250;
}

.homepage-video-showcase__nav--prev {
	left: clamp(12px, 2vw, 20px);
}

.homepage-video-showcase__nav--next {
	right: clamp(12px, 2vw, 20px);
}

/* --------------------------------------------------------------------------
   Thumbnail Navigation
   -------------------------------------------------------------------------- */
.homepage-video-showcase__thumbnails {
	display: flex;
	gap: 12px;
	margin-top: 20px;
	overflow-x: auto;
	scrollbar-width: none;
	-ms-overflow-style: none;
	padding-bottom: 4px;
}

.homepage-video-showcase__thumbnails::-webkit-scrollbar {
	display: none;
}

.homepage-video-showcase__thumb {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	flex-shrink: 0;
	width: clamp(160px, 14vw, 220px);
	padding: 0 0 12px;
	border: 1px solid rgba(17, 17, 17, 0.10);
	border-radius: 8px;
	background: #ffffff;
	color: var(--color-text-secondary);
	cursor: pointer;
	transition: border-color 0.25s ease, background 0.25s ease, color 0.25s ease;
	text-align: center;
}

.homepage-video-showcase__thumb:hover {
	border-color: rgba(17, 17, 17, 0.24);
	background: #ffffff;
	color: var(--color-text-primary);
}

.homepage-video-showcase__thumb.is-active {
	border-color: #94F250;
	background: #ffffff;
	color: var(--color-text-primary);
}

.homepage-video-showcase__thumb.is-active .homepage-video-showcase__thumb-label {
	color: var(--color-text-primary);
}

.homepage-video-showcase__thumb-media {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: 7px 7px 0 0;
	background: #eef0ec;
}

.homepage-video-showcase__thumb-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.homepage-video-showcase__thumb-label {
	font-size: 13px;
	font-weight: 600;
	line-height: 1.2;
	padding: 0 8px;
	transition: color 0.25s ease;
}

/* --------------------------------------------------------------------------
   Responsive — Tablet (≤1023px)
   -------------------------------------------------------------------------- */
@media (max-width: 1023px) {
	.homepage-video-showcase {
		padding-block: clamp(64px, 8vw, 96px);
	}

	.homepage-video-showcase__container {
		width: min(calc(100% - 48px), 960px);
	}

	.homepage-video-showcase__title {
		font-size: clamp(30px, 4vw, 42px);
	}

	.homepage-video-showcase__info {
		padding: clamp(24px, 3vw, 36px);
	}

	.homepage-video-showcase__product-name {
		font-size: clamp(20px, 2.6vw, 28px);
	}

	.homepage-video-showcase__nav {
		width: 38px;
		height: 38px;
	}

	.homepage-video-showcase__thumb {
		width: clamp(140px, 18vw, 180px);
	}
}

/* --------------------------------------------------------------------------
   Responsive — Mobile (≤767px)
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
	.homepage-video-showcase {
		padding-block: 56px 64px;
	}

	.homepage-video-showcase__container {
		width: min(calc(100% - 32px), 600px);
	}

	.homepage-video-showcase__header {
		margin-bottom: 32px;
	}

	.homepage-video-showcase__title {
		font-size: 28px;
	}

	.homepage-video-showcase__desc {
		font-size: 15px;
		margin-top: 10px;
	}

	.homepage-video-showcase__media {
		aspect-ratio: 16 / 9;
	}

	.homepage-video-showcase__info {
		padding: 24px 20px;
	}

	.homepage-video-showcase__product-name {
		font-size: 20px;
	}

	.homepage-video-showcase__product-desc {
		font-size: 14px;
	}

	.homepage-video-showcase__cta {
		font-size: 14px;
	}

	.homepage-video-showcase__play {
		width: 56px;
		height: 56px;
	}

	.homepage-video-showcase__play svg {
		width: 56px;
		height: 56px;
	}

	.homepage-video-showcase__nav {
		width: 34px;
		height: 34px;
	}

	.homepage-video-showcase__thumbnails {
		gap: 10px;
		margin-top: 16px;
	}

	.homepage-video-showcase__thumb {
		width: 140px;
	}

	.homepage-video-showcase__thumb-label {
		font-size: 12px;
	}
}

/* --------------------------------------------------------------------------
   Responsive — Small Mobile (≤390px)
   -------------------------------------------------------------------------- */
@media (max-width: 390px) {
	.homepage-video-showcase__container {
		width: min(calc(100% - 24px), 360px);
	}

	.homepage-video-showcase__title {
		font-size: 24px;
	}

	.homepage-video-showcase__thumb {
		width: 120px;
	}
}
