/*--------------------------------------------------------------
# Cartes "Françaises en live" à côté du lecteur vidéo
--------------------------------------------------------------*/
.live-cams-sidebar {
	--wpst-main-color: #e53935;
	--lcs-live: #ff1f4b;
	--lcs-border: #e5e5e5;
	text-align: left;
}

/* the theme hides .sidebar-ads below 64em : the live cards stay visible on every screen */
.sidebar-ads.live-cams-sidebar {
	display: block !important;
}

.live-cams-sidebar a {
	display: block;
	float: none;
	width: auto;
}

/* head ------------------------------------------------------- */
.live-cams-sidebar-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5em;
	margin: 0 0 0.6em;
	padding: 0 0 0.45em;
	border-bottom: 2px solid var(--wpst-main-color);
}

.live-cams-sidebar-title {
	display: inline-flex;
	align-items: center;
	gap: 0.45em;
	font-weight: bold;
	color: #333;
	white-space: nowrap;
}

.live-cams-sidebar-all {
	font-size: 0.85em;
	color: var(--wpst-main-color);
	white-space: nowrap;
}

.live-cams-sidebar-all:hover {
	text-decoration: underline;
}

/* live dot ---------------------------------------------------- */
.live-cams-sidebar .live-dot {
	position: relative;
	display: inline-block;
	width: 0.6em;
	height: 0.6em;
	border-radius: 50%;
	background: var(--lcs-live);
	flex: 0 0 auto;
}

.live-cams-sidebar .live-dot::after {
	content: "";
	position: absolute;
	top: -0.3em;
	right: -0.3em;
	bottom: -0.3em;
	left: -0.3em;
	border-radius: 50%;
	border: 2px solid var(--lcs-live);
	opacity: 0;
	animation: lcs-pulse 1.6s ease-out infinite;
}

@keyframes lcs-pulse {
	0% { transform: scale(0.5); opacity: 0.9; }
	100% { transform: scale(1.4); opacity: 0; }
}

/* grid / cards ------------------------------------------------ */
.live-cams-sidebar-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 10px;
}

.live-cams-sidebar-card {
	position: relative;
	border-radius: 8px;
	overflow: hidden;
	background: #111;
	border: 1px solid var(--lcs-border);
	transition: transform 180ms ease-out, box-shadow 180ms ease-out, border-color 180ms ease-out;
}

.live-cams-sidebar-card:hover {
	transform: translateY(-2px);
	border-color: var(--wpst-main-color);
	box-shadow: 0 10px 22px -12px rgba(0, 0, 0, 0.4);
}

.live-cams-sidebar-thumb {
	position: relative;
	display: block;
	width: 100%;
	padding-bottom: 62%;
	overflow: hidden;
}

.live-cams-sidebar-thumb img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 400ms ease-out;
}

.live-cams-sidebar-card:hover .live-cams-sidebar-thumb img {
	transform: scale(1.06);
}

.live-cams-sidebar-nothumb {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #666;
	font-size: 2em;
	background: #222;
}

/* badges */
.live-cams-sidebar .cam-badge {
	position: absolute;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	gap: 0.35em;
	padding: 0.35em 0.55em;
	border-radius: 4px;
	font-size: 0.65em;
	font-weight: bold;
	line-height: 1;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: #fff;
	background: rgba(0, 0, 0, 0.6);
	pointer-events: none;
}

.live-cams-sidebar .cam-badge.cam-live {
	top: 7px;
	left: 7px;
	background: var(--lcs-live);
	box-shadow: 0 2px 8px rgba(255, 31, 75, 0.5);
}

.live-cams-sidebar .cam-badge.cam-live .live-dot {
	width: 0.55em;
	height: 0.55em;
	background: #fff;
}

.live-cams-sidebar .cam-badge.cam-live .live-dot::after {
	border-color: #fff;
}

.live-cams-sidebar .cam-badge.cam-flag {
	top: 7px;
	right: 7px;
	padding: 0.3em;
	background: rgba(255, 255, 255, 0.92);
}

.live-cams-sidebar .flag-fr {
	display: inline-block;
	width: 1.4em;
	height: 0.95em;
	border-radius: 2px;
	background: linear-gradient(90deg, #0055a4 0 33.33%, #fff 33.33% 66.66%, #ef4135 66.66% 100%);
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
}

/* caption over the bottom of the thumbnail */
.live-cams-sidebar-caption {
	position: absolute;
	z-index: 2;
	left: 0;
	right: 0;
	bottom: 0;
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.5em;
	padding: 1.6em 0.7em 0.55em;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.45) 55%, rgba(0, 0, 0, 0) 100%);
	color: #fff;
	line-height: 1.2;
}

.live-cams-sidebar-caption strong {
	font-size: 0.95em;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

.live-cams-sidebar-caption span {
	font-size: 0.75em;
	opacity: 0.9;
	white-space: nowrap;
}

/* hover call to action */
.live-cams-sidebar-hover {
	position: absolute;
	z-index: 3;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity 180ms ease-out;
	pointer-events: none;
}

.live-cams-sidebar-hover span {
	display: inline-flex;
	align-items: center;
	gap: 0.45em;
	padding: 0.5em 0.95em;
	border-radius: 999px;
	background: var(--wpst-main-color);
	color: #fff;
	font-size: 0.8em;
	font-weight: bold;
	line-height: 1;
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
	transform: translateY(6px);
	transition: transform 180ms ease-out;
}

.live-cams-sidebar-card:hover .live-cams-sidebar-hover {
	opacity: 1;
}

.live-cams-sidebar-card:hover .live-cams-sidebar-hover span {
	transform: none;
}

/* button ------------------------------------------------------ */
.live-cams-sidebar .button.live-cams-sidebar-button {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5em;
	margin-top: 10px;
	padding: 0.7em 0.75em;
	border-radius: 6px;
	font-size: 0.82em;
	font-weight: bold;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	text-align: center;
	color: #fff;
}

/* mobile : block printed at the very top of #content ---------- */
.live-cams-mobile-top {
	width: 100%;
	margin: 0 0 1em;
	padding: 0.75em;
	background: #fff;
	border: 1px solid var(--lcs-border);
	border-radius: 8px;
}

.live-cams-mobile-top .live-cams-sidebar-grid {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.live-cams-mobile-top .live-cams-sidebar-hover {
	display: none;
}

/* responsive -------------------------------------------------- */
@media only screen and (min-width: 48.001em) and (max-width: 64em) {
	.sidebar-ads.live-cams-sidebar {
		clear: both;
		width: 100%;
		margin: 1em 0 0;
	}

	.live-cams-sidebar-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.live-cams-sidebar .button.live-cams-sidebar-button {
		display: inline-flex;
		margin-left: auto;
		margin-right: auto;
	}

	.live-cams-sidebar {
		text-align: center;
	}
}

@media only screen and (max-width: 48em) {
	.sidebar-ads.live-cams-sidebar {
		clear: both;
		width: 100%;
		margin: 1em 0 0;
	}

	.live-cams-sidebar-grid,
	.live-cams-mobile-top .live-cams-sidebar-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 8px;
	}

	.live-cams-mobile-top {
		padding: 0.6em;
		margin: 0 0 0.75em;
	}

	.live-cams-sidebar-hover {
		display: none;
	}
}
