/* HLS Netflix Player PRO — subtitles menu, resume banner, next-episode card, cast */

.hnp-cc-menu {
	right: 0;
}

.hnp-resume {
	position: absolute;
	left: 24px;
	bottom: 96px;
	z-index: 26;
	display: none;
	align-items: center;
	gap: 14px;
	padding: 12px 14px;
	border-radius: 12px;
	background: rgba(12, 12, 14, 0.88);
	backdrop-filter: blur(14px);
	border: 1px solid rgba(255, 255, 255, 0.09);
	box-shadow: 0 18px 46px rgba(0, 0, 0, 0.55);
	color: #fff;
	font-size: 13px;
	max-width: calc(100% - 48px);
}

.hnp-resume.hnp-show {
	display: flex;
}

.hnp-resume-text {
	line-height: 1.35;
	color: rgba(255, 255, 255, 0.8);
}

.hnp-resume-time {
	font-weight: 700;
	color: #fff;
}

.hnp-resume-actions {
	display: flex;
	gap: 8px;
	flex-shrink: 0;
}

.hnp-pill {
	border: 0;
	cursor: pointer;
	font: inherit;
	font-weight: 600;
	padding: 7px 14px;
	border-radius: 999px;
	transition: transform 0.15s ease, background 0.15s ease;
}

.hnp-pill:hover {
	transform: translateY(-1px);
}

.hnp-pill-primary {
	background: var(--hnp-accent, #e50914);
	color: #fff;
}

.hnp-pill-ghost {
	background: rgba(255, 255, 255, 0.12);
	color: rgba(255, 255, 255, 0.86);
}

.hnp-next-card {
	position: absolute;
	right: 24px;
	bottom: 96px;
	z-index: 26;
	display: none;
	width: 300px;
	padding: 14px 16px;
	border-radius: 14px;
	background: rgba(12, 12, 14, 0.9);
	backdrop-filter: blur(16px);
	border: 1px solid rgba(255, 255, 255, 0.09);
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
	color: #fff;
	animation: hnp-next-in 0.28s ease;
}

.hnp-next-card.hnp-show {
	display: block;
}

@keyframes hnp-next-in {
	from { opacity: 0; transform: translateY(10px); }
	to { opacity: 1; transform: none; }
}

.hnp-next-label {
	font-size: 10.5px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.55);
}

.hnp-next-title {
	margin-top: 5px;
	font-size: 14.5px;
	font-weight: 700;
	line-height: 1.35;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.hnp-next-actions {
	margin-top: 12px;
	display: flex;
	gap: 8px;
	align-items: center;
}

.hnp-next-go {
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 7px;
}

.hnp-next-close {
	background: none;
	border: 0;
	color: rgba(255, 255, 255, 0.55);
	cursor: pointer;
	font-size: 12.5px;
	font: inherit;
	padding: 7px 6px;
}

.hnp-video::cue {
	background: rgba(0, 0, 0, 0.62);
	color: #fff;
	font-size: 1em;
	line-height: 1.35;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

@media (max-width: 640px) {
	.hnp-resume, .hnp-next-card {
		left: 12px;
		right: 12px;
		bottom: 84px;
		width: auto;
	}
	.hnp-resume {
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;
	}
}

/* ---------- Cast: ტელევიზორზე გადაცემის რეჟიმი (YouTube-ის მსგავსად) ----------
   პოსტერი + „უკრავს: <ტელევიზორი>"; ქვედა მართვა ტელევიზორს მართავს (player-pro.js). */
.hnp-cast-overlay {
	position: absolute;
	inset: 0;
	z-index: 5;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 16px 16px 64px;
	text-align: center;
	color: #fff;
	background: rgba(0, 0, 0, 0.55);
	cursor: pointer;
}
.hnp-cast-overlay svg { color: var(--hnp-accent); }
.hnp-cast-text { font-size: 16px; font-weight: 600; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6); }
.hnp-cast-sub { font-size: 13px; opacity: 0.8; min-height: 1em; }
.hnp-casting .hnp-big-play,
.hnp-casting .hnp-spinner,
.hnp-casting .hnp-unmute { display: none !important; }
.hnp-casting .hnp-controls { opacity: 1 !important; visibility: visible !important; }
@media (max-width: 768px) {
	.hnp-cast-overlay { padding-bottom: 52px; }
	.hnp-cast-overlay svg { width: 34px; height: 34px; }
	.hnp-cast-text { font-size: 14px; }
}
