/* ========== 自定义视频播放器控件 ========== */
.nf-cc {
	position: absolute;
	left: 0; right: 0; bottom: 0;
	background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
	padding: 0 16px 12px;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s;
	z-index: 20;
	color: #fff;
}
/* 显隐完全由 JS 用内联 opacity/pointerEvents 控制（优先级最高），不依赖 hover/fullscreen 类规则 */
/* 全屏下用 contain 保留字幕，避免 cover 裁剪 */
.nf-player-wrap.fullscreen video { object-fit: contain !important; }

/* 进度条 */
.nf-cc-progress {
	position: relative;
	height: 16px;
	display: flex;
	align-items: center;
	cursor: pointer;
	margin-bottom: 4px;
	outline: none;
	touch-action: none;
}
.nf-cc-progress-bg,
.nf-cc-progress-buffer,
.nf-cc-progress-played,
.nf-cc-progress-thumb {
	position: absolute;
	left: 0;
	border-radius: 3px;
}
.nf-cc-progress-bg {
	width: 100%;
	height: 4px;
	background: rgba(255,255,255,0.25);
}
.nf-cc-progress-buffer {
	height: 4px;
	background: rgba(255,255,255,0.4);
	width: 0;
}
.nf-cc-progress-played {
	height: 4px;
	background: #e50914;
	width: 0;
}
.nf-cc-progress-thumb {
	width: 14px; height: 14px;
	background: #fff;
	border-radius: 50%;
	transform: translate(-50%, -50%) scale(0);
	top: 50%;
	left: 0;
	transition: transform 0.15s;
	box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}
.nf-cc-progress:hover .nf-cc-progress-thumb { transform: translate(-50%, -50%) scale(1); }
.nf-cc-progress:hover .nf-cc-progress-played,
.nf-cc-progress:hover .nf-cc-progress-bg,
.nf-cc-progress:hover .nf-cc-progress-buffer { height: 6px; }

/* 控件栏 */
.nf-cc-bar {
	display: flex;
	align-items: center;
	height: 32px;
	gap: 8px;
}
.nf-cc-btn {
	background: transparent;
	border: none;
	color: #fff;
	cursor: pointer;
	padding: 4px 6px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 4px;
	transition: background 0.2s;
	outline: none;
	-webkit-tap-highlight-color: transparent;
}
.nf-cc-btn:focus,
.nf-cc-btn:focus-visible { outline: none; box-shadow: none; }
.nf-cc-btn:hover { background: rgba(255,255,255,0.15); }
.nf-cc-btn svg { width: 22px; height: 22px; }

.nf-cc-time {
	font-size: 13px;
	font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
	min-width: 100px;
	color: rgba(255,255,255,0.85);
	user-select: none;
}
.nf-cc-spacer { flex: 1; }

/* 手机/平板：音量键直接控制系统音量，隐藏自定义音量条 */
.touch-device .nf-cc-volume,
.touch-device #ccVolumeBtn { display: none !important; }

/* 音量条 */
.nf-cc-volume {
	position: relative;
	width: 80px;
	height: 16px;
	display: flex;
	align-items: center;
	cursor: pointer;
	outline: none;
}
.nf-cc-volume-bg,
.nf-cc-volume-fill {
	position: absolute;
	left: 0;
	height: 3px;
	border-radius: 2px;
}
.nf-cc-volume-bg {
	width: 100%;
	background: rgba(255,255,255,0.25);
}
.nf-cc-volume-fill {
	background: #fff;
	width: 100%;
}
.nf-cc-volume-thumb {
	position: absolute;
	width: 10px; height: 10px;
	background: #fff;
	border-radius: 50%;
	transform: translate(-50%, -50%);
	top: 50%;
	left: 100%;
	box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

/* 中央播放按钮 */
.nf-cc-center {
	position: absolute;
	top: 50%; left: 50%;
	transform: translate(-50%, -50%);
	width: 80px; height: 80px;
	border-radius: 50%;
	background: linear-gradient(135deg, #e50914, #ff232d);
	box-shadow: 0 4px 20px rgba(229,9,20,0.4);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	z-index: 15;
	transition: all 0.3s;
	border: 2px solid rgba(255,255,255,0.4);
	opacity: 0;
	pointer-events: none;
}
.nf-cc-center.show { opacity: 1; pointer-events: auto; }
.nf-cc-center:hover { background: linear-gradient(135deg, #b20710, #e50914); transform: translate(-50%, -50%) scale(1.05); box-shadow: 0 6px 24px rgba(229,9,20,0.55); }
.nf-cc-center svg { width: 36px; height: 36px; margin-left: 4px; }

/* 倍速菜单 */
.nf-cc-rate-menu {
	position: absolute;
	right: 60px;
	bottom: 50px;
	background: rgba(0,0,0,0.85);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border-radius: 8px;
	padding: 6px 0;
	z-index: 30;
	min-width: 80px;
}
.nf-cc-rate-menu div {
	padding: 6px 16px;
	color: rgba(255,255,255,0.7);
	font-size: 13px;
	cursor: pointer;
	text-align: center;
	transition: all 0.15s;
}
.nf-cc-rate-menu div:hover { background: rgba(255,255,255,0.1); color: #fff; }
.nf-cc-rate-menu div.active { color: #e50914; }

/* 手势提示：滑动快进/音量 */
#touchHint {
	position: absolute;
	top: 50%; left: 50%;
	transform: translate(-50%, -50%);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	pointer-events: none;
	z-index: 25;
	opacity: 0;
	transition: opacity 0.2s;
}
#touchHint.th-show { opacity: 1; }
#touchHint .th-icon {
	font-size: 40px;
	line-height: 1;
}
#touchHint .th-text {
	font-size: 15px;
	color: #fff;
	font-weight: 600;
	background: rgba(0,0,0,0.65);
	padding: 6px 14px;
	border-radius: 6px;
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
}
