/* =========================================================================
   Programme TV des corridas (template-tv.php).
   Chargé sur la page portant le template. Réutilise les tokens de main.css.
   ========================================================================= */

/* ---------- Hero sombre ---------- */
.tv-hero {
	background: var(--dark);
	color: #fff;
	padding: 44px 0 40px;
}
.tv-hero .breadcrumb { color: var(--on-dark-2); margin-bottom: 14px; }
.tv-hero .breadcrumb a { color: var(--on-dark-2); }
.tv-hero .breadcrumb a:hover { color: #fff; }
.tv-hero__title {
	font-family: var(--title-font);
	font-weight: 400;
	font-size: 52px;
	line-height: .96;
	text-transform: uppercase;
	margin: 0 0 12px;
}
.tv-hero__lead {
	font-size: 16px;
	color: var(--on-dark);
	max-width: 560px;
	margin: 0;
}

/* Bandeau « en direct » */
.tv-live {
	margin-top: 28px;
	background: var(--dark-2);
	border: 1px solid var(--pink);
	border-radius: 18px;
	padding: 24px 26px;
}
.tv-live__head {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: #fff;
	margin-bottom: 12px;
}
.tv-live__dot {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: var(--pink);
	display: inline-block;
	box-shadow: 0 0 0 0 rgba(228, 24, 124, .6);
	animation: tv-pulse 1.8s infinite;
}
@keyframes tv-pulse {
	0%   { box-shadow: 0 0 0 0 rgba(228, 24, 124, .55); }
	70%  { box-shadow: 0 0 0 8px rgba(228, 24, 124, 0); }
	100% { box-shadow: 0 0 0 0 rgba(228, 24, 124, 0); }
}
@media (prefers-reduced-motion: reduce) { .tv-live__dot { animation: none; } }
.tv-live__title {
	font-family: var(--title-font);
	font-size: 30px;
	line-height: 1;
	text-transform: uppercase;
	margin-bottom: 8px;
}
.tv-live__meta { font-size: 14px; color: var(--on-dark); margin-bottom: 4px; }
.tv-live__cartel { font-size: 13.5px; color: var(--on-dark-2); margin-bottom: 18px; }
.tv-live__channel { font-size: 13.5px; color: var(--on-dark-2); }
.tv-btn {
	display: inline-flex;
	align-items: center;
	height: 48px;
	padding: 0 24px;
	background: var(--pink);
	color: #fff;
	border-radius: 24px;
	font-weight: 700;
	font-size: 14px;
	margin-top: 8px;
}
.tv-btn:hover { background: var(--pink-dark); }

/* ---------- Corps ---------- */
.tv-page { padding: 40px 0 80px; }

.tv-day {
	display: flex;
	align-items: baseline;
	gap: 14px;
	margin: 34px 0 16px;
}
.tv-day:first-child { margin-top: 0; }
.tv-day__title {
	font-family: var(--title-font);
	font-weight: 400;
	font-size: 24px;
	text-transform: uppercase;
	margin: 0;
}
.tv-day__count { font-size: 13px; color: var(--muted-3); }

/* Lignes de diffusion */
.tv-list { display: flex; flex-direction: column; gap: 12px; }
.tv-row {
	display: flex;
	align-items: center;
	gap: 20px;
	background: #fff;
	border: 1px solid var(--border);
	border-radius: 14px;
	padding: 16px 18px;
}
.tv-row--live { border-color: var(--pink); box-shadow: 0 6px 18px rgba(228, 24, 124, .08); }
.tv-row__time {
	font-family: var(--title-font);
	font-size: 22px;
	color: var(--pink);
	width: 62px;
	flex: none;
	text-align: center;
}
.tv-row__body { flex: 1; min-width: 0; }
.tv-row__top {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	margin-bottom: 5px;
}
.tv-row__channel { font-size: 12.5px; color: var(--muted-3); }
.tv-row__title { font-weight: 700; font-size: 16px; line-height: 1.3; }
.tv-row__place { font-weight: 500; color: var(--muted); }
.tv-row__cartel { font-size: 13px; color: var(--muted-3); margin-top: 3px; }
.tv-row__cta {
	flex: none;
	align-self: center;
	font-size: 13px;
	font-weight: 700;
	color: var(--pink);
	white-space: nowrap;
}
.tv-row__cta:hover { color: var(--pink-dark); }

/* Badges */
.tv-badge {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 10.5px;
	font-weight: 800;
	letter-spacing: .05em;
	text-transform: uppercase;
	padding: 3px 8px;
	border-radius: 5px;
}
.tv-badge--free { background: #e6f6ec; color: #1c7a41; }
.tv-badge--ppv  { background: #fff2d6; color: #9a6a00; }
.tv-badge--live { background: var(--pink); color: #fff; }
.tv-badge--live .tv-live__dot { background: #fff; box-shadow: none; animation: none; }

.tv-empty {
	background: #fff;
	border: 1px solid var(--border);
	border-radius: 16px;
	padding: 40px;
	text-align: center;
	color: var(--muted);
	font-size: 16px;
}

/* ---------- Chaînes ---------- */
.tv-channels { margin-top: 56px; }
.tv-section__title {
	font-family: var(--title-font);
	font-weight: 400;
	font-size: 30px;
	text-transform: uppercase;
	margin: 0 0 6px;
}
.tv-section__lead { font-size: 15px; color: var(--muted); margin: 0 0 22px; }
.tv-channels__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 14px;
}
.tv-channel {
	display: block;
	background: #fff;
	border: 1px solid var(--border);
	border-radius: 12px;
	padding: 16px 18px;
	transition: border-color .15s ease, transform .15s ease;
}
.tv-channel:hover { border-color: var(--pink); transform: translateY(-2px); }
.tv-channel__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 5px;
}
.tv-channel__name { font-weight: 700; font-size: 15px; }
.tv-channel__zone { font-size: 12.5px; color: var(--muted-3); }
.tv-note { font-size: 12.5px; color: var(--muted-2); margin: 18px 0 0; }

.tv-editorial { margin-top: 48px; }

/* ---------- Responsive ---------- */
@media (max-width: 780px) {
	.tv-hero__title { font-size: 40px; }
	.tv-channels__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
	.tv-row { flex-wrap: wrap; gap: 10px 14px; }
	.tv-row__time { width: auto; text-align: left; font-size: 20px; }
	.tv-row__cta { width: 100%; }
	.tv-channels__grid { grid-template-columns: 1fr; }
	.tv-hero__title { font-size: 34px; }
}
