/**
 * Grille archive & lecteur responsive (TELEMA YouTube Sync).
 */

.telema-video__ratio,
.telema-video--embed .telema-video__ratio {
	position: relative;
	width: 100%;
	max-width: 960px;
	margin: 0 auto 1.5rem;
	padding-bottom: 56.25%;
	height: 0;
	overflow: hidden;
	background: #0a0a0a;
	border-radius: 8px;
}

.telema-video__ratio iframe,
.telema-video--embed .telema-video__ratio iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.telema-video--single .telema-video__header {
	margin-bottom: 1rem;
}

.telema-video__title {
	margin: 0 0 0.25rem;
	font-size: clamp(1.5rem, 2.5vw, 2rem);
}

.telema-video__meta {
	margin: 0;
	color: #555;
	font-size: 0.95rem;
}

.telema-video__content {
	max-width: 72ch;
	margin-top: 1.5rem;
}

.telema-video__cta {
	margin-top: 1.5rem;
}

.telema-video-archive__header {
	margin-bottom: 2rem;
}

.telema-video-archive__title {
	margin: 0 0 0.5rem;
}

.telema-video-archive__intro {
	max-width: 65ch;
	color: #444;
}

.telema-video-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 1.25rem;
}

.telema-video-card {
	margin: 0;
	background: #111;
	color: #f5f5f5;
	border-radius: 10px;
	overflow: hidden;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.telema-video-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.telema-video-card__link {
	display: block;
	color: inherit;
	text-decoration: none;
	padding: 0 0 1rem;
}

.telema-video-card__thumb {
	position: relative;
	aspect-ratio: 16 / 9;
	background: #222;
	overflow: hidden;
}

.telema-video-card__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.telema-video-card__duration {
	position: absolute;
	right: 8px;
	bottom: 8px;
	padding: 2px 8px;
	font-size: 0.8rem;
	background: rgba(0, 0, 0, 0.75);
	border-radius: 4px;
}

.telema-video-card__title {
	margin: 0.75rem 1rem 0.35rem;
	font-size: 1rem;
	line-height: 1.3;
}

.telema-video-card__excerpt {
	margin: 0 1rem;
	font-size: 0.85rem;
	color: #bbb;
	line-height: 1.4;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.telema-video-archive__nav {
	margin-top: 2rem;
}
