.cvp {
	--cvp-bg: #222222;
	--cvp-accent: #fff053;
	--cvp-text: #ffffff;
	--cvp-muted: rgba(255, 255, 255, 0.72);
	--cvp-track: rgba(255, 255, 255, 0.22);
	position: relative;
	width: 100%;
	background: var(--cvp-bg);
	border-radius: 16px;
	overflow: hidden;
	color: var(--cvp-text);
	user-select: none;
}

.cvp__video {
	display: block;
	width: 100%;
	height: auto;
	vertical-align: middle;
	background: #000;
	cursor: pointer;
}

.cvp__poster {
	position: absolute;
	inset: 0;
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	pointer-events: none;
	transition: opacity 0.2s ease;
	z-index: 1;
}

.cvp.is-playing .cvp__poster {
	opacity: 0;
}

.cvp__overlay {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	pointer-events: none;
	transition: opacity 0.2s ease;
	z-index: 2;
}

.cvp.is-playing .cvp__overlay {
	opacity: 0;
}

.cvp__big-play {
	width: 72px;
	height: 72px;
	border: 0;
	border-radius: 50%;
	background: var(--cvp-accent);
	color: var(--cvp-bg);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	pointer-events: auto;
	cursor: pointer;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
	transition: transform 0.2s ease, background-color 0.2s ease;
}

.cvp__big-play:hover {
	transform: scale(1.06);
}

.cvp__big-play svg {
	width: 28px;
	height: 28px;
	margin-left: 3px;
	fill: currentColor;
}

.cvp__controls {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 8px;
	padding: 14px 16px 16px;
	background: linear-gradient(180deg, transparent 0%, rgba(34, 34, 34, 0.88) 55%, var(--cvp-bg) 100%);
	opacity: 0;
	transform: translateY(8px);
	transition: opacity 0.2s ease, transform 0.2s ease;
	white-space: nowrap;
	min-width: 0;
}

.cvp:hover .cvp__controls,
.cvp:focus-within .cvp__controls,
.cvp.is-paused .cvp__controls,
.cvp.is-seeking .cvp__controls {
	opacity: 1;
	transform: translateY(0);
}

.cvp__btn {
	width: 36px;
	height: 36px;
	flex: 0 0 36px;
	border: 0;
	border-radius: 10px;
	background: transparent;
	color: var(--cvp-text);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.cvp__btn:hover,
.cvp__btn:focus-visible {
	background: rgba(255, 240, 83, 0.16);
	color: var(--cvp-accent);
	outline: none;
}

.cvp__btn svg {
	width: 20px;
	height: 20px;
	fill: currentColor;
}

.cvp__time {
	flex: 0 0 auto;
	font-size: 12px;
	line-height: 1;
	color: var(--cvp-muted);
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}

.cvp__progress {
	position: relative;
	flex: 1 1 auto;
	min-width: 48px;
	height: 36px;
	display: flex;
	align-items: center;
	cursor: pointer;
}

.cvp__progress-track {
	position: relative;
	width: 100%;
	height: 6px;
	border-radius: 999px;
	background: var(--cvp-track);
	overflow: hidden;
}

.cvp__progress-played {
	position: absolute;
	inset: 0 auto 0 0;
	width: 0%;
	background: var(--cvp-accent);
	border-radius: inherit;
}

.cvp__progress-input {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	cursor: pointer;
}

.cvp__volume {
	display: flex;
	flex: 0 0 auto;
	flex-wrap: nowrap;
	align-items: center;
	gap: 6px;
	min-width: 36px;
}

.cvp__volume-range {
	width: 0;
	min-width: 0;
	max-width: 72px;
	flex: 0 0 auto;
	opacity: 0;
	transition: width 0.2s ease, opacity 0.2s ease;
	accent-color: var(--cvp-accent);
}

.cvp__volume:hover .cvp__volume-range,
.cvp__volume:focus-within .cvp__volume-range {
	width: 72px;
	opacity: 1;
}

@media (max-width: 640px) {
	.cvp__controls {
		padding: 12px;
		gap: 6px;
	}

	.cvp__time {
		font-size: 11px;
	}

	.cvp__volume-range,
	.cvp__volume:hover .cvp__volume-range,
	.cvp__volume:focus-within .cvp__volume-range {
		display: none;
		width: 0;
	}

	.cvp__big-play {
		width: 60px;
		height: 60px;
	}
}
