/* YTPlayer - custom YouTube-style player skin (youplay theme) */

.ytp-wrap {
	position: relative;
	width: 100%;
	height: 100%;
	background: #000;
	overflow: hidden;
	font-family: 'Roboto', Arial, sans-serif;
	user-select: none;
	-webkit-tap-highlight-color: transparent;
}
.ytp-wrap video {
	width: 100%;
	height: 100%;
	display: block;
	background: #000;
}

/* center play/pause button */
.ytp-center-btn {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 64px;
	height: 64px;
	transform: translate(-50%, -50%);
	background: rgba(0, 0, 0, 0.55);
	border: none;
	border-radius: 50%;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	opacity: 0;
	pointer-events: none;
	transition: opacity .15s ease;
	z-index: 5;
}
.ytp-center-btn svg { width: 32px; height: 32px; }
.ytp-wrap.is-paused .ytp-center-btn { opacity: 1; pointer-events: auto; }

/* spinner */
.ytp-spinner {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 42px;
	height: 42px;
	margin: -21px 0 0 -21px;
	border: 3px solid rgba(255, 255, 255, 0.25);
	border-top-color: #fff;
	border-radius: 50%;
	opacity: 0;
	pointer-events: none;
	z-index: 4;
}
.ytp-spinner.show { opacity: 1; animation: ytp-spin .8s linear infinite; }
@keyframes ytp-spin { to { transform: rotate(360deg); } }

/* seek bezel */
.ytp-bezel {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background: rgba(0, 0, 0, 0.6);
	color: #fff;
	padding: 10px 18px;
	border-radius: 6px;
	font-size: 15px;
	font-weight: 500;
	opacity: 0;
	transition: opacity .15s ease;
	pointer-events: none;
	z-index: 6;
}
.ytp-bezel.show { opacity: 1; }
.ytp-bezel-left { left: 25%; }
.ytp-bezel-right { left: 75%; }

/* control bar */
.ytp-controlbar {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 10;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%);
	padding-top: 18px;
	opacity: 1;
	transition: opacity .2s ease, transform .2s ease;
}
.ytp-wrap.hide-controls .ytp-controlbar,
.ytp-wrap.hide-controls .ytp-center-btn { opacity: 0; pointer-events: none; }
.ytp-wrap.hide-controls { cursor: none; }

.ytp-controls-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 2px 10px 8px;
}
.ytp-controls-left, .ytp-controls-right {
	display: flex;
	align-items: center;
}
.ytp-btn {
	background: transparent;
	border: none;
	color: #fff;
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	opacity: 0.9;
	padding: 0;
}
.ytp-btn:hover { opacity: 1; }
.ytp-btn svg { width: 22px; height: 22px; }

.ytp-volume { display: flex; align-items: center; }
.ytp-vol-slider {
	width: 0;
	opacity: 0;
	transition: width .15s ease, opacity .15s ease, margin .15s ease;
	margin-left: 0;
	-webkit-appearance: none;
	appearance: none;
	height: 3px;
	background: rgba(255, 255, 255, 0.35);
	border-radius: 2px;
	outline: none;
}
.ytp-volume:hover .ytp-vol-slider,
.ytp-vol-slider:focus { width: 60px; opacity: 1; margin-left: 6px; }
.ytp-vol-slider::-webkit-slider-thumb {
	-webkit-appearance: none;
	width: 11px; height: 11px;
	border-radius: 50%;
	background: #fff;
	cursor: pointer;
}
.ytp-vol-slider::-moz-range-thumb {
	width: 11px; height: 11px;
	border: none; border-radius: 50%;
	background: #fff;
	cursor: pointer;
}

.ytp-time {
	color: #fff;
	font-size: 13px;
	margin-left: 8px;
	opacity: .95;
	white-space: nowrap;
}

/* progress bar */
.ytp-progress {
	position: relative;
	padding: 0 10px;
	margin-bottom: 2px;
}
.ytp-progress-track {
	position: relative;
	height: 4px;
	background: rgba(255, 255, 255, 0.25);
	border-radius: 2px;
	cursor: pointer;
	transition: height .1s ease;
}
.ytp-progress:hover .ytp-progress-track,
.ytp-wrap.is-dragging .ytp-progress-track { height: 6px; }
.ytp-progress-buffered {
	position: absolute;
	top: 0; left: 0; height: 100%;
	width: 0;
	background: rgba(255, 255, 255, 0.4);
	border-radius: 2px;
}
.ytp-progress-played {
	position: absolute;
	top: 0; left: 0; height: 100%;
	width: 0;
	background: #ff0000;
	border-radius: 2px;
}
.ytp-progress-handle {
	position: absolute;
	right: -6px; top: 50%;
	width: 12px; height: 12px;
	background: #ff0000;
	border-radius: 50%;
	transform: translateY(-50%) scale(0);
	transition: transform .1s ease;
}
.ytp-progress:hover .ytp-progress-handle { transform: translateY(-50%) scale(1); }
.ytp-progress-tooltip {
	position: absolute;
	bottom: 16px;
	transform: translateX(-50%);
	background: rgba(0, 0, 0, 0.8);
	color: #fff;
	font-size: 12px;
	padding: 3px 7px;
	border-radius: 3px;
	opacity: 0;
	pointer-events: none;
	white-space: nowrap;
}
.ytp-progress-tooltip.show { opacity: 1; }

/* settings menu */
.ytp-menu-wrap { position: relative; }
.ytp-menu {
	position: absolute;
	bottom: 44px;
	right: 0;
	min-width: 220px;
	max-height: 300px;
	overflow-y: auto;
	background: rgba(28, 28, 28, 0.96);
	border-radius: 6px;
	color: #fff;
	font-size: 13px;
	display: none;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}
.ytp-menu.open { display: block; }
.ytp-menu-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 14px;
	cursor: pointer;
	gap: 8px;
}
.ytp-menu-item:hover { background: rgba(255, 255, 255, 0.1); }
.ytp-menu-item svg { width: 16px; height: 16px; opacity: .8; flex-shrink: 0; }
.ytp-menu-value { color: #aaa; margin-left: auto; margin-right: 4px; }
.ytp-menu-radio { justify-content: flex-start; }
.ytp-menu-radio svg { color: #3ea6ff; }
.ytp-menu-check-spacer { display: inline-block; width: 16px; }
.ytp-menu-header {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 14px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.15);
	cursor: pointer;
	font-weight: 500;
}
.ytp-menu-header svg { width: 18px; height: 18px; }

/* fullscreen */
.ytp-wrap.is-fullscreen {
	width: 100vw !important;
	height: 100vh !important;
}
.ytp-wrap:-webkit-full-screen { width: 100%; height: 100%; }
.ytp-wrap:fullscreen { width: 100%; height: 100%; }

/* theater mode */
.video-player-page.theater-mode .player-video {
	width: 100% !important;
	max-width: 100% !important;
}
.video-player-page.theater-mode .col-md-4.desktop {
	display: none !important;
}
.video-player-page.theater-mode .pt_video_player {
	max-height: 80vh !important;
}

/* mini player */
.ytp-wrap.ytp-mini {
	position: fixed !important;
	right: 16px;
	bottom: 16px;
	width: 320px;
	height: 180px;
	z-index: 9999;
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
	border-radius: 4px;
}
.ytp-mini-close {
	display: none;
	position: absolute;
	top: 6px;
	right: 6px;
	width: 28px;
	height: 28px;
	background: rgba(0, 0, 0, 0.6);
	border: none;
	border-radius: 50%;
	color: #fff;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	z-index: 12;
}
.ytp-wrap.ytp-mini .ytp-mini-close { display: flex; }
.ytp-wrap.ytp-mini .ytp-center-btn { width: 44px; height: 44px; }
.ytp-wrap.ytp-mini .ytp-center-btn svg { width: 22px; height: 22px; }
.ytp-wrap.ytp-mini .ytp-controls-right .ytp-settings-wrap,
.ytp-wrap.ytp-mini .ytp-controls-right .ytp-theater,
.ytp-wrap.ytp-mini .ytp-controls-right .ytp-pip { display: none; }
.ytp-wrap.ytp-mini .ytp-time { display: none; }

@media (max-width: 767px) {
	.ytp-menu { min-width: 180px; }
	.ytp-wrap.ytp-mini { width: 220px; height: 124px; right: 8px; bottom: 8px; }
}
