.bufan-dub-player {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #080808;
	color: #fff;
	isolation: isolate;
}

.bufan-dub-player iframe,
.bufan-dub-video {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

.bufan-dub-youtube-audio-source {
	position: absolute;
	top: 0;
	left: -10000px;
	width: 200px;
	height: 200px;
	overflow: hidden;
	pointer-events: none;
}

.bufan-dub-youtube-audio-source iframe {
	width: 200px;
	height: 200px;
}

.bufan-dub-start {
	position: absolute;
	inset: 0;
	z-index: 4;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	width: 100%;
	height: 100%;
	padding: 24px;
	border: 0;
	background:
		radial-gradient(circle at 72% 18%, rgba(255, 77, 61, 0.3), transparent 36%),
		linear-gradient(145deg, rgba(16, 16, 16, 0.9), rgba(0, 0, 0, 0.72));
	color: #fff;
	cursor: pointer;
	text-align: left;
	transition: background-color 0.18s ease;
}

.bufan-dub-start[hidden] {
	display: none;
}

.bufan-dub-start:hover {
	background-color: rgba(0, 0, 0, 0.82);
}

.bufan-dub-start-icon {
	display: grid;
	width: 84px;
	height: 60px;
	flex: 0 0 auto;
	place-items: center;
	border-radius: 18px;
	background: #ff4d3d;
	box-shadow: 0 16px 40px rgba(255, 77, 61, 0.3);
	font-size: 25px;
}

.bufan-dub-start > span:last-child {
	display: grid;
	gap: 5px;
}

.bufan-dub-start strong {
	font-size: clamp(18px, 2.3vw, 30px);
	letter-spacing: -0.035em;
}

.bufan-dub-start small {
	color: #ccc6bd;
	font-size: 13px;
}

.bufan-dub-badge {
	position: absolute;
	top: 14px;
	left: 14px;
	z-index: 5;
	display: flex;
	align-items: center;
	gap: 7px;
	max-width: calc(100% - 28px);
	padding: 7px 10px;
	border-radius: 999px;
	background: rgba(15, 15, 15, 0.82);
	box-shadow: 0 7px 24px rgba(0, 0, 0, 0.2);
	font: 800 11px/1.2 system-ui, sans-serif;
	letter-spacing: 0.025em;
	pointer-events: none;
	backdrop-filter: blur(8px);
}

.bufan-dub-badge > span:first-child {
	color: #9bd319;
	font-size: 10px;
}

.bufan-dub-audio-controls {
	position: absolute;
	right: 14px;
	bottom: 54px;
	z-index: 5;
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 6px 9px;
	border-radius: 999px;
	background: rgba(15, 15, 15, 0.82);
	opacity: 0;
	transform: translateY(5px);
	transition: opacity 0.18s ease, transform 0.18s ease;
	backdrop-filter: blur(8px);
}

.bufan-dub-player:hover .bufan-dub-audio-controls,
.bufan-dub-audio-controls:focus-within {
	opacity: 1;
	transform: translateY(0);
}

.bufan-dub-mute {
	display: grid;
	width: 30px;
	height: 30px;
	place-items: center;
	padding: 0;
	border: 0;
	background: transparent;
	color: #fff;
	cursor: pointer;
	font-size: 16px;
}

.bufan-dub-volume {
	width: 92px;
	accent-color: #ff4d3d;
}

.bufan-dub-player.has-error .bufan-dub-badge > span:first-child {
	color: #ff4d3d;
}

.bufan-dub-player.has-warning .bufan-dub-badge > span:first-child {
	color: #ffb020;
}

.bufan-dub-error {
	padding: 14px 16px;
	border-left: 4px solid #d63638;
	background: #fff3f3;
}

@media (max-width: 600px) {
	.bufan-dub-start {
		flex-direction: column;
		text-align: center;
	}

	.bufan-dub-start-icon {
		width: 70px;
		height: 50px;
	}

	.bufan-dub-audio-controls {
		right: 8px;
		bottom: 48px;
		opacity: 1;
		transform: none;
	}

	.bufan-dub-volume {
		width: 70px;
	}
}
