.ds-home-pv {
	box-sizing: border-box;
	width: 100%;
	max-width: var(--wd-container-w, 1220px);
	margin: 0 auto;
	padding: 48px 15px 56px;
	text-align: center;
}

.ds-home-pv__head {
	margin-bottom: 28px;
}

.ds-home-pv__title {
	margin: 0;
	font-size: clamp(20px, 2vw, 26px);
	font-weight: 800;
	letter-spacing: 0.04em;
	color: #111;
	text-transform: uppercase;
}

.ds-home-pv__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px 22px;
	margin: 0;
	padding: 0;
	list-style: none;
	width: 100%;
	max-width: 980px;
	margin-inline: auto;
	justify-items: center;
}

.ds-home-pv__item {
	margin: 0;
	padding: 0;
	min-width: 0;
	width: 100%;
	max-width: 200px;
}

.ds-home-pv__thumb {
	display: block;
	width: 100%;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
	text-align: center;
	font: inherit;
}

.ds-home-pv__thumb-media {
	position: relative;
	display: block;
	/* Douyin / TikTok portrait frame */
	aspect-ratio: 9 / 16;
	width: 100%;
	height: auto;
	border-radius: 12px;
	overflow: hidden;
	background: #f0f0f0;
	margin-inline: auto;
}

.ds-home-pv__thumb-media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.12);
	transition: background 0.25s ease;
	pointer-events: none;
}

.ds-home-pv__thumb:hover .ds-home-pv__thumb-media::after,
.ds-home-pv__thumb:focus-visible .ds-home-pv__thumb-media::after {
	background: rgba(0, 0, 0, 0.28);
}

.ds-home-pv__thumb img,
.ds-home-pv__thumb-video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	pointer-events: none;
}

.ds-home-pv__play {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	z-index: 1;
	line-height: 0;
	pointer-events: none;
}

.ds-home-pv__play svg {
	width: 44px;
	height: 44px;
}

.ds-home-pv__caption {
	margin: 8px 0 0;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #111;
	line-height: 1.25;
}

.ds-home-pv-modal[hidden] {
	display: none !important;
}

.ds-home-pv-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px 16px;
}

.ds-home-pv-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.72);
}

.ds-home-pv-modal__dialog {
	position: relative;
	z-index: 1;
	width: min(1280px, 96vw);
	background: #111;
	border-radius: 12px;
	padding: 24px;
	box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
}

.ds-home-pv-modal__close {
	position: absolute;
	top: 10px;
	right: 12px;
	z-index: 2;
	width: 36px;
	height: 36px;
	border: 0;
	background: transparent;
	color: #fff;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
}

.ds-home-pv-modal__layout {
	display: grid;
	grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.9fr);
	gap: 28px;
	align-items: stretch;
}

.ds-home-pv-modal__media {
	min-width: 0;
}

.ds-home-pv-modal__player {
	display: block;
	width: 100%;
	max-height: min(78vh, 720px);
	background: #000;
	border-radius: 8px;
}

.ds-home-pv-modal__product {
	display: flex;
	flex-direction: column;
	min-width: 0;
	padding: 8px 32px 8px 4px;
	color: #fff;
	text-align: left;
}

.ds-home-pv-modal__product-image-wrap {
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	margin-bottom: 18px;
	border-radius: 10px;
	background: #1a1a1a;
	aspect-ratio: 1 / 1;
	max-height: 300px;
}

.ds-home-pv-modal__product-image-wrap[hidden] {
	display: none !important;
}

.ds-home-pv-modal__product-image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center;
}

.ds-home-pv-modal__title {
	margin: 0 0 12px;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.35;
	color: #fff;
	text-align: left;
}

.ds-home-pv-modal__desc {
	margin: 0 0 22px;
	flex: 1 1 auto;
	color: rgba(255, 255, 255, 0.78);
	font-size: 15px;
	line-height: 1.55;
}

.ds-home-pv-modal__desc[hidden] {
	display: none !important;
}

.ds-home-pv-modal__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	align-self: flex-start;
	min-height: 42px;
	padding: 0 22px;
	border-radius: 6px;
	background: #3A8DFF;
	color: #fff !important;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-decoration: none !important;
	text-transform: uppercase;
	transition: background-color .2s ease, transform .2s ease;
}

.ds-home-pv-modal__btn:hover,
.ds-home-pv-modal__btn:focus-visible {
	background: #2f7ae0;
	color: #fff !important;
	transform: translateY(-1px);
}

.ds-home-pv-modal__btn[hidden] {
	display: none !important;
}

html.ds-home-pv-modal-open {
	overflow: hidden;
}

@media (max-width: 991px) {
	.ds-home-pv {
		padding: 40px 15px;
	}

	.ds-home-pv__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		max-width: 420px;
	}

	.ds-home-pv__item {
		max-width: 180px;
	}

	.ds-home-pv-modal__layout {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.ds-home-pv-modal__product {
		padding: 0 24px 4px 0;
	}

	.ds-home-pv-modal__product-image-wrap {
		max-width: 220px;
		max-height: 220px;
	}

	.ds-home-pv-modal__player {
		max-height: min(52vh, 480px);
	}
}

@media (max-width: 575px) {
	.ds-home-pv__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 14px 12px;
		max-width: none;
	}

	.ds-home-pv__item {
		max-width: none;
	}
}
