.vp-page {
	border-radius: 0;
	overflow: hidden;
}

.fc-player-wrap {
	position: relative;
	width: 100%;
	margin-block: var(--wp--preset--spacing--40, 2rem);
}

.fc-player-container {
	position: relative;
	width: 100%;
	padding-top: 56.25%;
	background: #000;
	border-radius: 4px;
	overflow: hidden;
}

.fc-player-iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: none;
}

.fc-player-iframe--preload {
	opacity: 0;
	pointer-events: none;
}
.fc-player-iframe--active {
	opacity: 1;
	pointer-events: auto;
}

.fc-facade {
	position: absolute;
	inset: 0;
	cursor: pointer;
	display: block;
	outline-offset: -3px;
	z-index: 1;
}
.fc-facade__thumb {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.fc-facade__btn {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	pointer-events: none;
	transition: transform 0.2s;
}
.fc-facade:hover .fc-facade__btn {
	transform: scale( 1.08 );
}
.fc-facade__btn svg circle {
	transition: fill 0.2s, stroke 0.2s;
}
.fc-facade:hover .fc-facade__btn svg circle {
	fill: rgba( 0, 0, 0, 0.75 );
	stroke: rgba( 255, 255, 255, 0.5 );
}

.fc-facade--loading {
	cursor: default;
	pointer-events: none;
}
.fc-facade--loading .fc-facade__thumb {
	opacity: 0.45;
}
.fc-facade--loading .fc-facade__btn svg {
	display: none;
}
.fc-facade--loading .fc-facade__btn::after {
	content: '';
	display: block;
	width: 52px;
	height: 52px;
	border: 3px solid rgba( 255, 255, 255, 0.3 );
	border-top-color: #fff;
	border-radius: 50%;
	animation: fc-spin 0.75s linear infinite;
}
@keyframes fc-spin {
	to { transform: rotate( 360deg ); }
}

.fc-preview-notice {
	margin-top: 1rem;
	padding: 1rem 1.25rem;
	background: #f0f4ff;
	border-left: 4px solid #3858e9;
	border-radius: 0 4px 4px 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem;
}

.fc-preview-notice__text {
	margin: 0;
	flex: 1;
}

.fc-paywall {
	position: relative;
	border-radius: 8px;
	overflow: hidden;
	background: #111111;
	color: #fff;
	margin-block: var(--wp--preset--spacing--40, 2rem);
}

.fc-paywall__thumb {
	position: relative;
}

.fc-paywall__thumb-img {
	width: 100%;
	height: auto;
	display: block;
	opacity: 0.4;
	filter: blur(2px);
}

.fc-paywall__overlay {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.fc-paywall__lock {
	font-size: 3rem;
}

.fc-paywall__content {
	padding: 1.5rem 2rem;
	text-align: center;
}

.fc-paywall__title {
	margin: 0 0 0.5rem;
	font-size: 1.25rem;
}

.fc-paywall__description {
	margin: 0 0 1.25rem;
	opacity: 0.8;
}

.fc-paywall__actions {
	display: flex;
	gap: 1rem;
	justify-content: center;
	flex-wrap: wrap;
}

.fc-paywall__login {
	margin-top: 1rem;
	text-align: center;
}

.fc-paywall__login .fc-btn--link {
	color: rgba(255, 255, 255, 0.65);
	font-size: 0.875rem;
}

.fc-paywall__login .fc-btn--link:hover {
	color: #fff;
	opacity: 1;
}

.fc-btn {
	display: inline-block;
	padding: 0.625rem 1.5rem;
	border-radius: 4px;
	text-decoration: none;
	font-weight: 600;
	font-size: 0.9375rem;
	line-height: 1.4;
	cursor: pointer;
	transition: opacity 0.15s ease;
}

.fc-btn:hover {
	opacity: 0.85;
}

.fc-btn--primary {
	background: #000000;
	color: #fff;
}

.fc-btn--secondary {
	background: #d70700;
	color: #fff;
	border: 2px solid #d70700;
}

.fc-loading-state {
	position: relative;
	border-radius: 8px;
	overflow: hidden;
	background: #1a1a2e;
	color: #fff;
	min-height: 200px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 1rem;
	padding: 2rem;
	margin-block: var(--wp--preset--spacing--40, 2rem);
	text-align: center;
}

.fc-loading-state__thumb {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0.2;
}

.fc-loading-state__message {
	position: relative;
	z-index: 1;
	margin: 0;
}

.fc-loading-state__spinner {
	width: 40px;
	height: 40px;
	border: 3px solid rgba(255, 255, 255, 0.2);
	border-top-color: #fff;
	border-radius: 50%;
	animation: fc-spin 0.8s linear infinite;
}

@keyframes fc-spin {
	to { transform: rotate(360deg); }
}

.fc-video-title {
	margin-block-end: 1rem;
}

.fc-video-block {
	container-type: inline-size;
}

.fc-comment-toggle {
	margin-top: var(--wp--preset--spacing--40, 2rem);
	border: none;
}

.fc-comment-toggle > summary {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.625rem 1.5rem;
	background: var(--wp--preset--color--primary, #d62828);
	color: #fff;
	font-weight: 600;
	font-size: 0.9375rem;
	border-radius: 4px;
	cursor: pointer;
	list-style: none;
	user-select: none;
	transition: opacity 0.15s ease;
}

.fc-comment-toggle > summary::-webkit-details-marker { display: none; }

.fc-comment-toggle > summary::before {
	content: '+';
	font-size: 1.1em;
	font-weight: 700;
	transition: transform 0.2s ease;
}

.fc-comment-toggle[open] > summary::before {
	content: '−';
}

.fc-comment-toggle > summary:hover { opacity: 0.85; }

.fc-comment-toggle[open] > summary {
	margin-bottom: var(--wp--preset--spacing--40, 2rem);
}


/* ===========================================
   VIDEO META (titolo, descrizione, like/commenti/data)
   =========================================== */

.fc-video-meta {
	margin-top: 1.25rem;
}

.fc-video-meta__title {
	font-size: 1.375rem;
	font-weight: 700;
	margin: 0 0 0.5rem;
	line-height: 1.3;
	color: #fff;
}

.fc-video-meta__description {
	margin: 0 0 1rem;
	color: rgba(255, 255, 255, 0.75);
	line-height: 1.6;
	font-size: 0.9375rem;
}

.fc-video-actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.75rem 0;
	border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.fc-video-actions__left {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.fc-like-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	background: none;
	border: none;
	cursor: pointer;
	padding: 0.3rem 0.6rem;
	border-radius: 4px;
	color: rgba(255, 255, 255, 0.75);
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1;
	transition: color 0.15s ease, background 0.15s ease;
}

.fc-like-btn:hover:not(:disabled) {
	color: #d70700;
	background: rgba(215, 7, 0, 0.06);
}

.fc-like-btn--active {
	color: #d70700;
}

.fc-like-btn:disabled {
	cursor: default;
	opacity: 0.5;
}

.fc-like-btn__icon {
	flex-shrink: 0;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linejoin: round;
	overflow: visible;
	transition: transform 0.15s ease;
}

.fc-like-btn--active .fc-like-btn__icon {
	fill: currentColor;
	stroke: none;
}

.fc-like-btn:not(:disabled):hover .fc-like-btn__icon {
	transform: scale(1.15);
}

.fc-like-btn__count,
.fc-comments-link__count {
	font-variant-numeric: tabular-nums;
}

.fc-comments-link {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	color: rgba(255, 255, 255, 0.75);
	text-decoration: none;
	font-size: 0.9375rem;
	font-weight: 600;
	padding: 0.3rem 0.6rem;
	border-radius: 4px;
	line-height: 1;
	transition: color 0.15s ease, background 0.15s ease;
}

.fc-comments-link:hover {
	color: #fff;
	background: rgba(255, 255, 255, 0.06);
	text-decoration: none;
}

.fc-comments-link__icon {
	flex-shrink: 0;
	fill: currentColor;
}

.fc-share-dropdown {
	position: relative;
}

.fc-share-btn {
	display: inline-flex;
	align-items: center;
	color: rgba(255, 255, 255, 0.75);
	cursor: pointer;
	padding: 0.3rem 0.6rem;
	border-radius: 4px;
	line-height: 1;
	transition: color 0.15s ease, background 0.15s ease;
	list-style: none;
}

.fc-share-btn::-webkit-details-marker { display: none; }

.fc-share-btn:hover {
	color: #fff;
	background: rgba(255, 255, 255, 0.06);
}

.fc-share-btn__icon {
	flex-shrink: 0;
	fill: currentColor;
}

.fc-share-menu {
	position: absolute;
	bottom: calc(100% + 6px);
	left: 0;
	background: #fff;
	border: 1px solid rgba(0, 0, 0, 0.1);
	border-radius: 8px;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
	min-width: 160px;
	overflow: hidden;
	z-index: 10;
}

.fc-share-menu__item {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	padding: 0.65rem 1rem;
	text-decoration: none;
	color: rgba(0, 0, 0, 0.75);
	font-size: 0.9rem;
	font-weight: 500;
	transition: background 0.15s;
}

.fc-share-menu__item:hover {
	background: rgba(0, 0, 0, 0.04);
	color: #000;
	text-decoration: none;
}

.fc-share-menu__item + .fc-share-menu__item {
	border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.fc-video-meta__date {
	font-size: 0.875rem;
	color: rgba(255, 255, 255, 0.6);
	white-space: nowrap;
	font-weight: 500;
}

.fc-video-meta__duration {
	color: rgba(255, 255, 255, 0.7);
}

/* ===========================================
   COMMENT LIKES
   =========================================== */

.fc-comment-like-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	background: none;
	border: none;
	cursor: pointer;
	font-size: 0.8125rem;
	font-weight: 600;
	color: rgba(0, 0, 0, 0.45);
	padding: 0;
	line-height: 1;
	transition: color 0.15s ease;
}

.fc-comment-like-btn:hover:not(:disabled) {
	color: rgba(0, 0, 0, 0.8);
}

.fc-comment-like-btn--active {
	color: #d62828;
}

.fc-comment-like-btn:disabled {
	opacity: 0.6;
	cursor: default;
}

.fc-comment-like-btn svg {
	flex-shrink: 0;
	transition: fill 0.15s ease, transform 0.15s ease;
}

.fc-comment-like-btn--active svg {
	fill: currentColor;
}

.fc-comment-like-btn:not(:disabled):hover svg {
	transform: scale(1.15);
}

.fc-comment-like-btn__count {
	font-variant-numeric: tabular-nums;
	min-width: 1ch;
}

.fc-comment-like-count {
	font-size: 0.8125rem;
	color: rgba(0, 0, 0, 0.4);
}

/* ===========================================
   PLAYLIST PLAYER
   =========================================== */

.fc-playlist-wrap {
	margin-block: var(--wp--preset--spacing--40, 2rem);
}

.fc-playlist-header {
	display: flex;
	align-items: baseline;
	gap: 1rem;
	margin-bottom: 1rem;
}

.fc-playlist-title {
	margin: 0;
	font-size: 1.25rem;
	font-weight: 700;
}

.fc-playlist-count {
	font-size: 0.8rem;
	color: rgba(255,255,255,0.45);
}

.fc-playlist-layout {
	display: grid;
	grid-template-columns: 1fr 320px;
	gap: 1.25rem;
	align-items: start;
}

/* Player */
.fc-playlist-player-area {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.fc-playlist-player-container {
	position: relative;
	width: 100%;
	padding-top: 56.25%;
	background: #000;
	border-radius: 4px;
	overflow: hidden;
}

.fc-playlist-iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: none;
}

.fc-playlist-now-playing {
	font-size: 0.85rem;
	color: rgba(255,255,255,0.55);
	margin: 0;
}

.fc-playlist-np-label {
	margin-right: 0.35rem;
}

.fc-playlist-np-title {
	color: rgba(255,255,255,0.85);
	font-weight: 600;
}

/* Sidebar */
.fc-playlist-sidebar {
	background: rgba(255,255,255,0.04);
	border: 1px solid rgba(255,255,255,0.08);
	border-radius: 6px;
	overflow: hidden;
	max-height: 450px;
	overflow-y: auto;
}

.fc-playlist-items {
	list-style: none;
	margin: 0;
	padding: 0;
}

.fc-playlist-item {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.6rem 0.75rem;
	cursor: pointer;
	border-bottom: 1px solid rgba(255,255,255,0.06);
	transition: background 0.15s;
}

.fc-playlist-item:last-child { border-bottom: none; }

.fc-playlist-item:hover {
	background: rgba(255,255,255,0.07);
}

.fc-playlist-item--active {
	background: rgba(255,255,255,0.1);
}

.fc-playlist-item__thumb {
	position: relative;
	width: 88px;
	height: 50px;
	flex-shrink: 0;
	border-radius: 3px;
	overflow: hidden;
	background: #1a1a1a;
}

.fc-playlist-item__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.fc-playlist-item__no-thumb {
	width: 100%;
	height: 100%;
	background: #2a2a2a;
}

.fc-playlist-item__num {
	position: absolute;
	bottom: 3px;
	right: 4px;
	font-size: 0.65rem;
	font-weight: 700;
	color: rgba(255,255,255,0.7);
	line-height: 1;
}

.fc-playlist-item__playing {
	position: absolute;
	inset: 0;
	background: rgba(215,7,0,0.65);
	display: flex;
	align-items: center;
	justify-content: center;
}

.fc-playlist-item__playing::after {
	content: '';
	width: 0;
	height: 0;
	border-style: solid;
	border-width: 7px 0 7px 12px;
	border-color: transparent transparent transparent #fff;
}

.fc-playlist-item__info {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	min-width: 0;
}

.fc-playlist-item__title {
	font-size: 0.8rem;
	font-weight: 600;
	color: rgba(255,255,255,0.85);
	line-height: 1.3;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.fc-playlist-item--active .fc-playlist-item__title {
	color: #fff;
}

.fc-playlist-item__duration {
	font-size: 0.72rem;
	color: rgba(255,255,255,0.4);
}

@media (max-width: 768px) {
	.fc-playlist-layout {
		grid-template-columns: 1fr;
	}
	.fc-playlist-sidebar {
		max-height: 280px;
	}
}
