/* PF7 Stage 3 - Continue Watching rail + resume toast. */

/* Continue Watching rail: YouTube-style horizontal 16:9 cards with a red
   progress bar. Same full-width responsive behaviour as the binge rail (the JS
   sets card widths; space-between removes any right gap). */
.castv-cw-rail { margin: 16px 0 8px; }
.castv-cw-head {
	margin: 0 0 12px;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.2;
	color: #e6e8ec;
}
.castv-cw-track {
	display: flex;
	flex-wrap: nowrap;
	justify-content: space-between;
	gap: 12px;
}
.castv-cw-card {
	flex: 0 0 auto; /* width set inline by the layout */
	display: block;
	text-decoration: none;
	color: #e6e8ec;
}
.castv-cw-card:hover .castv-cw-title { color: #fff; }
.castv-cw-thumb-wrap {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: 6px;
	background: #15171c;
}
.castv-cw-thumb {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.12s ease;
}
.castv-cw-card:hover .castv-cw-thumb { transform: scale(1.03); }
.castv-cw-progress {
	position: absolute;
	left: 0;
	bottom: 0;
	height: 4px;
	background: #e50914;
}
.castv-cw-title {
	margin-top: 8px;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Resume toast: inside the player, lower-left, above the control bar. */
.castv-resume-toast {
	position: absolute;
	left: 12px;
	bottom: 3.5em;
	z-index: 30;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 12px;
	border-radius: 8px;
	background: rgba(21, 23, 28, 0.92);
	color: #fff;
	font-size: 13px;
	box-shadow: 0 8px 28px rgba(0, 0, 0, 0.55);
	pointer-events: auto;
}
.castv-resume-restart {
	border: 0;
	border-radius: 5px;
	padding: 5px 10px;
	background: #e50914;
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
}
@media (max-width: 640px) {
	.castv-resume-toast { left: 8px; bottom: 3em; font-size: 12px; }
}
