/* ==========================================================================
   Scheduler — Programme Radio Anar
   Cohérent avec header/footer/article : papier, encre, rouge signal
   ========================================================================== */

:root {
	--sched-paper: #ede6d6;
	--sched-paper-raised: #e3dac4;
	--sched-ink: #191712;
	--sched-muted: #5b5648;
	--sched-accent: #e8432c;
	--sched-blue: #2f5d8a;
	--sched-line: rgba(25, 23, 18, 0.16);

	--sched-font-display: "Space Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
	--sched-font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

.programme-title {
	font-family: var(--sched-font-display);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--sched-ink);
	font-size: 22px;
	margin: 32px 0 20px;
}

/* ---- Barre de jours ----------------------------------------------------- */

.sched-tabs {
	display: flex;
	align-items: center;
	gap: 8px;
	border-bottom: 3px solid var(--sched-ink);
	padding-bottom: 0;
	margin-bottom: 24px;
}

.sched-nav {
	flex-shrink: 0;
	width: 32px;
	height: 32px;
	border: 1px solid var(--sched-ink);
	background: var(--sched-paper);
	color: var(--sched-ink);
	font-size: 16px;
	cursor: pointer;
	border-radius: 50%;
}

.sched-nav:hover {
	background: var(--sched-accent);
	color: var(--sched-paper);
	border-color: var(--sched-accent);
}

.sched-tabs-list {
	display: flex;
	overflow-x: auto;
	gap: 4px;
	flex: 1;
}

.sched-tab {
	font-family: var(--sched-font-display);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.04em;
	color: var(--sched-muted);
	background: transparent;
	border: none;
	padding: 10px 14px;
	cursor: pointer;
	white-space: nowrap;
	border-bottom: 3px solid transparent;
	margin-bottom: -3px;
}

.sched-tab-date {
	opacity: 0.6;
	margin-left: 2px;
}

.sched-tab.is-today {
	color: var(--sched-blue);
}

.sched-tab.is-active {
	color: var(--sched-accent);
	border-bottom-color: var(--sched-accent);
}

.sched-tab:hover {
	color: var(--sched-ink);
}

/* ---- Liste ---------------------------------------------------------------- */

.sched-list {
	display: flex;
	flex-direction: column;
}

.sched-row {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	padding: 14px 4px;
	border-bottom: 1px solid var(--sched-line);
	text-decoration: none;
	color: inherit;
}

.sched-row--show:hover {
	background: var(--sched-paper-raised);
}

.sched-time {
	flex-shrink: 0;
	width: 52px;
	font-family: var(--sched-font-display);
	font-weight: 700;
	font-size: 13px;
	color: var(--sched-ink);
	padding-top: 2px;
}

.sched-row--filler .sched-time,
.sched-row--filler .sched-title {
	color: var(--sched-muted);
	font-weight: 400;
}

.sched-row--filler {
	padding: 8px 4px;
}

.sched-thumb {
	flex-shrink: 0;
	width: 44px;
	height: 44px;
	object-fit: cover;
	border: 1px solid var(--sched-line);
}

.sched-body {
	flex: 1;
	min-width: 0;
}

.sched-title-line {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 8px;
}

.sched-title {
	font-family: var(--sched-font-body);
	font-weight: 700;
	font-size: 15px;
	color: var(--sched-ink);
}

.sched-row--filler .sched-title-line {
	font-size: 13px;
}

.sched-genre {
	font-family: var(--sched-font-display);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--sched-accent);
}

.sched-desc {
	font-family: var(--sched-font-body);
	font-size: 13.5px;
	color: var(--sched-muted);
	margin: 4px 0 0;
	line-height: 1.5;
}

.sched-empty {
	color: var(--sched-muted);
	font-style: italic;
	padding: 24px 4px;
}

/* ---- Responsive ----------------------------------------------------------- */

@media (max-width: 560px) {
	.sched-thumb {
		display: none;
	}

	.sched-time {
		width: 42px;
		font-size: 12px;
	}
}