/* Continue watching.

   Colors come from the theme's own custom properties, so the light and dark stylesheets keep
   working without a second copy of these rules.

   The watch bar sits at the bottom of the card and is a separate element from the theme's
   existing .progress-bar, which is the hover animation at the top of the thumbnail and fills
   0-100% on every hover regardless of what was watched. Reusing it would have meant losing that
   effect. */

.card-media .watched-bar {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 4px;
	background-color: rgba(0, 0, 0, 0.45);
	z-index: 2;
	pointer-events: none;
}

.card-media .watched-bar i {
	display: block;
	height: 100%;
	width: 0;
	background-color: rgb(var(--bg-rgb-active-progress-bar));
}

/* The hover preview scales the thumbnail and slides its own bar in at the top; the watch bar
   stays put so the two never read as one control. */
.card-media:hover .watched-bar {
	background-color: rgba(0, 0, 0, 0.6);
}

/* Already set by the theme; repeated so the resume prompt keeps its anchor if this file is ever
   dropped into an install whose player wrapper is not positioned. */
.player-wrap {
	position: relative;
}

.cw-resume {
	position: absolute;
	left: 12px;
	bottom: 62px;
	z-index: 5;
	display: flex;
	align-items: center;
	gap: 10px;
	max-width: calc(100% - 24px);
	padding: 8px 10px 8px 14px;
	border-radius: 10px;
	background-color: rgba(0, 0, 0, 0.82);
	color: #fff;
	font-size: 14px;
	line-height: 1.2;
}

.cw-resume-text {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.cw-resume-go {
	flex: none;
	padding: 6px 12px;
	border: 0;
	border-radius: 6px;
	background-color: rgb(var(--bg-rgb-active-progress-bar));
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}

.cw-resume-close {
	flex: none;
	width: 24px;
	height: 24px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background-color: transparent;
	color: #fff;
	font-size: 20px;
	line-height: 1;
	opacity: 0.7;
	cursor: pointer;
}

.cw-resume-close:hover {
	opacity: 1;
}

/* The control bar takes a larger share of a small player, so the prompt moves down out of its way
   and drops the padding it cannot afford. */
@media screen and (max-width: 640px) {
	.cw-resume {
		left: 8px;
		right: 8px;
		bottom: 48px;
		max-width: none;
		gap: 8px;
		padding: 6px 6px 6px 10px;
		font-size: 13px;
	}
}

.cw-clear-holder {
	display: flex;
	justify-content: center;
	margin: 10px 0 20px;
}
