/* Reserve the title space before JavaScript adds the control, preventing CLS. */
.thumb-block.type-post > a > .entry-header {
	padding-right: 32px !important;
	padding-left: 32px !important;
	box-sizing: border-box;
}

.thumb-block.type-post {
	position: relative;
}

/* Reserve the bookmark's final footprint before the footer script inserts it. */
.thumb-block.type-post .wpst-video-card-save-slot {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	flex: 0 0 24px !important;
	width: 24px;
	min-width: 24px;
	height: 24px;
	box-sizing: border-box;
}

.pcpf-preview-save {
	position: absolute;
	right: 5px;
	bottom: 25px;
	z-index: 6;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	margin: 0;
	padding: 0;
	border: 1px solid rgba(143, 35, 83, .16) !important;
	border-radius: 7px;
	background: rgba(255, 255, 255, .92) !important;
	box-shadow: none !important;
	color: #8f2353 !important;
	font-size: 12px;
	line-height: 1;
	cursor: pointer;
}

.pcpf-preview-save:hover,
.pcpf-preview-save:focus-visible,
.pcpf-preview-save.is-saved {
	border-color: #7a1b46 !important;
	background: linear-gradient(135deg, #8f2353, #651535) !important;
	color: #fff !important;
}

.pcpf-preview-save:focus-visible,
.pcpf-single-save:focus-visible {
	outline: 2px solid rgba(231, 43, 136, .42);
	outline-offset: 2px;
}

.pcpf-preview-save > i,
.pcpf-single-save > i {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1em;
	height: 1em;
	margin: 0 !important;
	padding: 0 !important;
	line-height: 1 !important;
	text-align: center;
	transform: none !important;
}

.pcpf-preview-save > i::before,
.pcpf-single-save > i::before {
	display: block;
	line-height: 1;
}

/* New theme cards provide a stable slot beside the relative post date. */
.thumb-block.type-post > .wpst-video-card-title-link > .entry-header {
	padding-right: 0 !important;
	padding-left: 0 !important;
}

.wpst-video-card-save-slot > .pcpf-preview-save {
	position: static !important;
	right: auto !important;
	bottom: auto !important;
	flex: 0 0 auto;
}

/* The single-video button joins the existing row below the player. */
.video-infos-right.pcpf-has-single-save {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 8px;
}

.pcpf-single-save-slot {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	float: none;
	height: 34px;
	margin: 0;
}

#rating.pcpf-rating-has-save {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 34px;
	line-height: 1;
}

#rating.pcpf-rating-has-save #video-rate,
#rating.pcpf-rating-has-save #video-rate > .post-like,
#rating.pcpf-rating-has-save #video-rate a.button {
	display: inline-flex;
	align-items: center;
}

#rating.pcpf-rating-has-save #video-rate a.button {
	min-height: 34px;
	box-sizing: border-box;
	line-height: 1 !important;
}

.pcpf-single-save {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	margin: 0;
	padding: 0;
	border: 1px solid rgba(122, 27, 70, .3) !important;
	border-radius: 7px;
	background: #fff !important;
	box-shadow: none !important;
	color: #7a1b46 !important;
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
	white-space: nowrap;
	cursor: pointer;
}

.video-infos-right.pcpf-has-single-save #rating,
.video-infos-right.pcpf-has-single-save .video-share {
	float: none;
}

.video-infos-right.pcpf-has-single-save #rating {
	margin: 0;
	padding: 0;
}

.pcpf-single-save:hover,
.pcpf-single-save:focus-visible,
.pcpf-single-save.is-saved {
	border-color: #7a1b46 !important;
	background: linear-gradient(135deg, #8f2353, #651535) !important;
	color: #fff !important;
}

@media (max-width: 767px) {
	.video-infos-right.pcpf-has-single-save {
		flex-wrap: wrap;
	}

	.video-infos-right.pcpf-has-single-save .pcpf-single-save-slot {
		height: 34px;
		margin: 0;
	}

	.video-infos-right.pcpf-has-single-save #rating {
		display: inline-flex;
		width: auto;
		margin: 0;
		padding: 0;
		line-height: 1;
	}
}
