/* PXNetwork Media EPG Cocon : gabarits des pages programme TV / programme TNT (library/render.php) */

.pxn-epgc {
	--pxn-epgc-line: #e3e6ea;
	--pxn-epgc-muted: #5f6b78;
	--pxn-epgc-accent: #0b5cad;
	--pxn-epgc-bg: #f6f8fa;
	font-variant-numeric: tabular-nums;
}

.pxn-epgc h2 {
	margin: 2em 0 .6em;
	padding-bottom: .3em;
	border-bottom: 2px solid var(--pxn-epgc-line);
}

.pxn-epgc h3 {
	margin: 1.4em 0 .5em;
}

.pxn-epgc-intro {
	margin: 0 0 1em;
	font-size: 1.05em;
	line-height: 1.6;
}

.pxn-epgc-update {
	margin: 0 0 1.2em;
	font-size: .9em;
	color: var(--pxn-epgc-muted);
}

/* Listes de programmes : heure | chaine | titre | genre */
.pxn-epgc-list {
	list-style: none;
	margin: 0 0 1em;
	padding: 0;
	border-top: 1px solid var(--pxn-epgc-line);
}

.pxn-epgc-row {
	display: grid;
	grid-template-columns: 5.2em 9em minmax(0, 1fr) auto;
	gap: .2em .8em;
	align-items: baseline;
	margin: 0;
	padding: .45em .2em;
	border-bottom: 1px solid var(--pxn-epgc-line);
}

.pxn-epgc-h {
	font-weight: 700;
	white-space: nowrap;
}

.pxn-epgc-c {
	color: var(--pxn-epgc-muted);
	overflow-wrap: anywhere;
}

.pxn-epgc-c a,
.pxn-epgc-channels a,
.pxn-epgc-table a,
.pxn-epgc-links a {
	color: var(--pxn-epgc-accent);
}

.pxn-epgc-t {
	overflow-wrap: anywhere;
}

.pxn-epgc-g,
.pxn-epgc-i {
	justify-self: end;
	padding: .1em .5em;
	border-radius: 999px;
	font-size: .78em;
	white-space: nowrap;
	background: var(--pxn-epgc-bg);
	color: var(--pxn-epgc-muted);
}

.pxn-epgc-i {
	background: #fff4d6;
	color: #7a5800;
}

/* Listes de chaines (numero, nom, temps fort du soir) */
.pxn-epgc-channels {
	list-style: none;
	margin: 0 0 1em;
	padding: 0;
}

.pxn-epgc-channels li {
	margin: 0;
	padding: .4em 0;
	border-bottom: 1px solid var(--pxn-epgc-line);
}

.pxn-epgc-n {
	display: inline-block;
	min-width: 2.2em;
	padding: .05em .4em;
	margin-right: .3em;
	border-radius: 4px;
	text-align: center;
	font-weight: 700;
	background: var(--pxn-epgc-bg);
}

.pxn-epgc-s {
	color: var(--pxn-epgc-muted);
}

/* Liens du cocon */
.pxn-epgc-links {
	margin: 0 0 1em 1.2em;
}

.pxn-epgc-others {
	color: var(--pxn-epgc-muted);
}

/* Tableau des numeros */
.pxn-epgc-table {
	width: 100%;
	border-collapse: collapse;
	margin: 0 0 1em;
}

.pxn-epgc-table th,
.pxn-epgc-table td {
	padding: .45em .5em;
	border-bottom: 1px solid var(--pxn-epgc-line);
	text-align: left;
}

.pxn-epgc-table th {
	background: var(--pxn-epgc-bg);
}

/* Mobile : heure et genre sur la premiere ligne, chaine et titre dessous */
@media (max-width: 600px) {
	.pxn-epgc-row {
		grid-template-columns: auto minmax(0, 1fr) auto;
	}
	.pxn-epgc-c {
		grid-column: 2;
		grid-row: 1;
	}
	.pxn-epgc-t {
		grid-column: 1 / -1;
		grid-row: 2;
	}
	.pxn-epgc-i {
		grid-row: 1;
	}
}
