/*
 * RTV4 Televisiemanager – frontend.
 * Volgt standaard het actieve thema: geen reset, geen eigen lettertype, kleuren via
 * inherit/currentColor. Alle selectors zijn gescopet met .rtv4-tv-.
 * Optionele custom properties (Instellingen → Vormgeving):
 *   --rtv4-tv-accent, --rtv4-tv-background, --rtv4-tv-text,
 *   --rtv4-tv-card-background, --rtv4-tv-border, --rtv4-tv-radius
 */

.rtv4-tv {
	--rtv4-tv-_accent: var(--rtv4-tv-station-accent, var(--rtv4-tv-accent, var(--wp--preset--color--primary, currentColor)));
	--rtv4-tv-_border: var(--rtv4-tv-border, rgba(127, 127, 127, 0.3));
	--rtv4-tv-_radius: var(--rtv4-tv-radius, 6px);
	--rtv4-tv-_card: var(--rtv4-tv-card-background, transparent);
	--rtv4-tv-_muted: rgba(127, 127, 127, 0.12);
	box-sizing: border-box;
	color: var(--rtv4-tv-text);
	background: var(--rtv4-tv-background);
	max-width: var(--rtv4-tv-max-width, 100%);
	min-width: 0;
	margin-inline: auto;
	margin-block: 0 1.5em;
	overflow-wrap: anywhere;
}
.rtv4-tv *,
.rtv4-tv *::before,
.rtv4-tv *::after { box-sizing: inherit; }
.rtv4-tv img { max-width: 100%; height: auto; }
.rtv4-tv .rtv4-tv { margin-block-end: 2em; max-width: 100%; }

.rtv4-tv-visually-hidden {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.rtv4-tv-js .rtv4-tv-js-hide { display: none; }
.rtv4-tv [hidden] { display: none !important; }

.rtv4-tv-heading { margin: 0 0 .5em; }
.rtv4-tv-section-title { margin: 0 0 .35em; font-size: 1em; }
.rtv4-tv-empty, .rtv4-tv-notice p { margin: 1em 0; opacity: .85; }
.rtv4-tv-subtle-notice { font-size: .875em; opacity: .75; margin: 0 0 1em; }
.rtv4-tv-description { margin: .35em 0 0; font-size: .925em; opacity: .85; }
.rtv4-tv-presenters { margin: .2em 0 0; font-size: .925em; opacity: .85; }
.rtv4-tv-program-title { margin: .1em 0 0; font-weight: 700; }
.rtv4-tv-meta { margin: 0; display: flex; flex-wrap: wrap; gap: .5em; align-items: center; font-size: .875em; }

/* Labels LIVE / HERHALING / PREMIÈRE */
.rtv4-tv-badge {
	display: inline-block; padding: .1em .5em; border-radius: 3px; font-size: .75em;
	font-weight: 700; letter-spacing: .03em; line-height: 1.5; border: 1px solid currentColor;
}
.rtv4-tv-badge--live { background: var(--rtv4-tv-_accent); border-color: var(--rtv4-tv-_accent); color: #fff; }
.rtv4-tv-badge--repeat { opacity: .75; }
.rtv4-tv-badge--premiere { color: var(--rtv4-tv-_accent); }
.rtv4-tv-now-flag { font-weight: 700; color: var(--rtv4-tv-_accent); }

.rtv4-tv-button,
.rtv4-tv button.rtv4-tv-button {
	display: inline-block; padding: .5em 1em; border: 1px solid var(--rtv4-tv-_border);
	border-radius: var(--rtv4-tv-_radius); background: var(--rtv4-tv-_card); color: inherit;
	font: inherit; cursor: pointer; text-decoration: none;
}
.rtv4-tv-button:hover { border-color: currentColor; }
.rtv4-tv :focus-visible { outline: 2px solid var(--rtv4-tv-_accent); outline-offset: 2px; }
.rtv4-tv-field select,
.rtv4-tv-field input { font: inherit; max-width: 100%; }

/* ---------- Player ---------- */
.rtv4-tv-selector { display: flex; gap: .5em; overflow-x: auto; padding-bottom: .25em; margin-bottom: .75em; scrollbar-width: thin; }
.rtv4-tv-selector__btn {
	display: inline-flex; align-items: center; gap: .4em; flex: 0 0 auto; padding: .4em .8em;
	border: 1px solid var(--rtv4-tv-_border); border-radius: var(--rtv4-tv-_radius);
	background: var(--rtv4-tv-_card); color: inherit; font: inherit; cursor: pointer;
}
.rtv4-tv-selector__btn[aria-pressed="true"] { border-color: var(--rtv4-tv-_accent); box-shadow: inset 0 -3px 0 var(--rtv4-tv-_accent); font-weight: 700; }
.rtv4-tv-selector__logo { width: 24px; height: 24px; object-fit: contain; }

.rtv4-tv-player__head { display: flex; align-items: center; gap: .75em; margin-bottom: .6em; min-width: 0; }
.rtv4-tv-player__logo { width: 44px; height: 44px; object-fit: contain; flex: 0 0 auto; }
.rtv4-tv-player__title { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; }
.rtv4-tv-player__name { font-weight: 700; font-size: 1.1em; }
.rtv4-tv-player__slogan { font-size: .875em; opacity: .75; }
.rtv4-tv-live-label { display: inline-flex; align-items: center; gap: .35em; font-weight: 700; font-size: .8em; letter-spacing: .05em; color: var(--rtv4-tv-_accent); flex: 0 0 auto; }
.rtv4-tv-live-dot { width: .6em; height: .6em; border-radius: 50%; background: currentColor; }

.rtv4-tv-stage {
	position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; color: #fff;
	border-radius: var(--rtv4-tv-_radius); overflow: hidden; box-shadow: var(--rtv4-tv-shadow, none);
}
@supports not (aspect-ratio: 16 / 9) {
	.rtv4-tv-stage { height: 0; padding-top: 56.25%; }
}
.rtv4-tv-stage__media,
.rtv4-tv-stage__poster,
.rtv4-tv-stage__status { position: absolute; inset: 0; }
.rtv4-tv-stage__media iframe,
.rtv4-tv-stage__media video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.rtv4-tv-stage__poster { display: flex; align-items: center; justify-content: center; }
.rtv4-tv-stage__poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .7; }
.rtv4-tv-stage__status {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .75em;
	padding: 1em; text-align: center; background: rgba(0, 0, 0, .55); pointer-events: none;
}
.rtv4-tv-stage__status a, .rtv4-tv-stage__status button { pointer-events: auto; color: #fff; }
.rtv4-tv-stage__status.is-error { background: rgba(0, 0, 0, .78); }
.rtv4-tv-stage__status .rtv4-tv-fallback-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .35; z-index: -1; }
.rtv4-tv-stage__noscript { position: absolute; inset: auto 0 0 0; margin: 0; padding: .75em; background: rgba(0,0,0,.7); }
.rtv4-tv-spinner { width: 2.25em; height: 2.25em; border: 3px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: rtv4-tv-spin .9s linear infinite; }
@keyframes rtv4-tv-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .rtv4-tv-spinner { animation-duration: 3s; } }

.rtv4-tv-play,
.rtv4-tv button.rtv4-tv-play {
	position: relative; display: inline-flex; align-items: center; gap: .5em; padding: .75em 1.25em;
	border: 0; border-radius: 999px; color: #fff;
	/* Altijd een zichtbare knop op het zwarte beeld: zender-, ingestelde of RTV4-kleur. */
	background: var(--rtv4-tv-station-accent, var(--rtv4-tv-accent, #ee20a7));
	font: inherit; font-weight: 700; cursor: pointer; box-shadow: 0 2px 10px rgba(0,0,0,.35);
}
.rtv4-tv-play:hover { filter: brightness(1.08); }

/* ---------- Nu op TV / Hierna ---------- */
.rtv4-tv-nownext { display: grid; gap: 1em; margin-top: 1em; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 768px) {
	.rtv4-tv-nownext:has(.rtv4-tv-next) { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
}
.rtv4-tv-now, .rtv4-tv-next {
	padding: 1em; border: 1px solid var(--rtv4-tv-_border); border-radius: var(--rtv4-tv-_radius);
	background: var(--rtv4-tv-_card); box-shadow: var(--rtv4-tv-shadow, none); min-width: 0;
}
.rtv4-tv-now { border-inline-start: 4px solid var(--rtv4-tv-_accent); }
.rtv4-tv-now__station { margin: 0 0 .4em; font-size: .875em; opacity: .8; }
.rtv4-tv-now__body { display: flex; gap: 1em; align-items: flex-start; }
.rtv4-tv-now__image { width: 34%; max-width: 220px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: calc(var(--rtv4-tv-_radius) / 2); flex: 0 0 auto; }
.rtv4-tv-now__text { min-width: 0; }
.rtv4-tv-next__line { margin: 0; display: flex; gap: .5em; flex-wrap: wrap; align-items: baseline; }
.rtv4-tv-next__line time { font-variant-numeric: tabular-nums; opacity: .85; }
@media (max-width: 480px) {
	.rtv4-tv-now__body { flex-direction: column; }
	.rtv4-tv-now__image { width: 100%; max-width: none; }
}

/* ---------- Programmagids (layout gelijk aan RTV4 Radiomanager) ----------
 * Twee stijlen (Instellingen → Vormgeving → Stijl programmagids):
 *  .rtv4-tv--style-rtv4  : RTV4-huisstijl – witte kaarten, Barlow, roze accent (#ee20a7).
 *  .rtv4-tv--style-theme : minimale opmaak die kleuren en lettertype van het thema volgt.
 * Accentkleur: zender → --rtv4-tv-accent → #ee20a7. Layout reageert op de breedte van de
 * component zelf (container queries). Geen dark mode, geen reset buiten de component.
 */

.rtv4-tv-schedule {
	--_accent: var(--rtv4-tv-station-accent, var(--rtv4-tv-accent, #ee20a7));
	--_ink: var(--rtv4-tv-text, #180f1e);
	--_ink-2: color-mix(in srgb, var(--_ink) 74%, #fff);
	--_ink-3: color-mix(in srgb, var(--_ink) 50%, #fff);
	--_bg: var(--rtv4-tv-background, transparent);
	--_card: var(--rtv4-tv-card-background, #fff);
	--_soft: color-mix(in srgb, var(--_ink) 3%, var(--_card));
	--_line: var(--rtv4-tv-border, rgba(24, 15, 30, 0.1));
	--_line-2: color-mix(in srgb, var(--_line) 60%, transparent);
	--_r-lg: var(--rtv4-tv-radius, 24px);
	--_r-md: calc(var(--_r-lg) * 0.67);
	--_r-sm: calc(var(--_r-lg) * 0.5);
	--_shadow: var(--rtv4-tv-shadow, 0 1px 2px rgba(24, 15, 30, 0.04), 0 12px 32px -22px rgba(24, 15, 30, 0.45));
	--_font: var(--rtv4-tv-font, "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif);
	--_on-accent: #fff;
	box-sizing: border-box;
	container-type: inline-size;
	container-name: rtv4-tv-schedule;
	margin-block: 1.5em;
	font-family: var(--_font);
	color: var(--_ink);
	background: var(--_bg);
	line-height: 1.45;
	overflow-wrap: break-word;
}

.rtv4-tv-schedule.rtv4-tv--style-theme {
	--_accent: var(--rtv4-tv-station-accent, var(--rtv4-tv-accent, currentColor));
	--_ink: var(--rtv4-tv-text, currentColor);
	--_ink-2: var(--rtv4-tv-text, inherit);
	--_ink-3: var(--rtv4-tv-text, inherit);
	--_card: var(--rtv4-tv-card-background, transparent);
	--_soft: transparent;
	--_line: var(--rtv4-tv-border, rgba(127, 127, 127, 0.35));
	--_line-2: var(--_line);
	--_r-lg: var(--rtv4-tv-radius, 8px);
	--_shadow: var(--rtv4-tv-shadow, none);
	--_font: var(--rtv4-tv-font, inherit);
	--_on-accent: var(--rtv4-tv-card-background, #fff);
}

.rtv4-tv-schedule :where(h2, h3, h4, p, ul, ol, li) {
	margin: 0;
	font-family: inherit;
	letter-spacing: normal;
	text-transform: none;
}

.rtv4-tv-schedule :where(ul, ol) {
	padding: 0;
	list-style: none;
}

.rtv4-tv-schedule :focus-visible {
	outline: 2px solid var(--_accent);
	outline-offset: 3px;
	border-radius: 6px;
}

.rtv4-tv-schedule .rtv4-tv-link {
	color: inherit;
	text-decoration: none;
	background-image: linear-gradient(currentColor, currentColor);
	background-size: 0 2px;
	background-position: 0 100%;
	background-repeat: no-repeat;
	transition: background-size 0.2s ease, color 0.15s ease;
}

.rtv4-tv-schedule .rtv4-tv-link:hover {
	color: var(--_accent);
	background-size: 100% 2px;
}

.rtv4-tv-schedule .rtv4-tv-notice {
	color: var(--_ink-2);
	font-size: 14px;
}

/* Badges */
.rtv4-tv-schedule .rtv4-tv-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 3px 10px;
	border: 1px solid var(--_line-2);
	border-radius: 999px;
	background: var(--_soft);
	color: var(--_ink-2);
	font-size: 11px;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	white-space: nowrap;
}

.rtv4-tv-schedule .rtv4-tv-badge--now {
	background: var(--_accent);
	border-color: var(--_accent);
	color: var(--_on-accent);
}

.rtv4-tv-schedule .rtv4-tv-badge--now::before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: currentColor;
	animation: rtv4-tv-pulse 2.4s ease-out infinite;
}

@keyframes rtv4-tv-pulse {
	0% { box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 60%, transparent); }
	100% { box-shadow: 0 0 0 6px transparent; }
}

/* Uitzendingstype (TV): LIVE / HERHALING / PREMIÈRE */
.rtv4-tv-schedule .rtv4-tv-item__type {
	margin-bottom: 4px;
}

.rtv4-tv-schedule .rtv4-tv-type {
	display: inline-block;
	padding: 1px 8px;
	border: 1px solid currentColor;
	border-radius: 999px;
	font-size: 10.5px;
	font-weight: 700;
	line-height: 1.5;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--_ink-3);
}

.rtv4-tv-schedule .rtv4-tv-type--live {
	background: var(--_accent);
	border-color: var(--_accent);
	color: var(--_on-accent);
}

.rtv4-tv-schedule .rtv4-tv-type--premiere {
	color: var(--_accent);
}

/* Kop met titel en zenderkeuze */
.rtv4-tv-schedule__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 16px;
	margin-bottom: 16px;
}

.rtv4-tv-schedule .rtv4-tv-schedule__title {
	font-size: clamp(26px, 5vw, 36px);
	font-weight: 900;
	line-height: 1.05;
	letter-spacing: -0.025em;
	color: var(--_ink);
}

.rtv4-tv-station {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
}

.rtv4-tv-schedule .rtv4-tv-station__label {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--_ink-3);
}

.rtv4-tv-station__pick {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 44px;
	padding: 9px 16px 9px 18px;
	background: var(--_card);
	border: 1px solid var(--_line);
	border-radius: 999px;
	box-shadow: var(--_shadow);
	transition: border-color 0.15s ease;
}

.rtv4-tv-station__pick:hover {
	border-color: color-mix(in srgb, var(--_accent) 45%, transparent);
}

.rtv4-tv-station__pick:focus-within {
	outline: 2px solid var(--_accent);
	outline-offset: 3px;
}

.rtv4-tv-station__current {
	font-size: 15px;
	font-weight: 700;
	white-space: nowrap;
}

.rtv4-tv-station__chevron {
	flex: 0 0 auto;
	color: var(--_accent);
}

.rtv4-tv-schedule .rtv4-tv-station__select {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	opacity: 0;
	cursor: pointer;
	font: inherit;
	font-size: 16px; /* voorkomt inzoomen op iOS */
	appearance: auto;
}

.rtv4-tv-schedule .rtv4-tv-station__submit {
	min-height: 44px;
	padding: 9px 18px;
	border: 0;
	border-radius: 999px;
	background: var(--_accent);
	color: var(--_on-accent);
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

/* Dagselectie: segmentbalk */
.rtv4-tv-schedule__nav {
	display: flex;
	align-items: stretch;
	gap: 8px;
	margin-bottom: 16px;
}

.rtv4-tv-days {
	display: flex;
	flex: 1 1 auto;
	gap: 4px;
	min-width: 0;
	padding: 4px;
	background: var(--_soft);
	border: 1px solid var(--_line-2);
	border-radius: var(--_r-md);
	overflow-x: auto;
	scroll-snap-type: x proximity;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}

.rtv4-tv-days::-webkit-scrollbar {
	display: none;
}

.rtv4-tv-days__item {
	flex: 0 0 auto;
	scroll-snap-align: start;
}

.rtv4-tv-schedule .rtv4-tv-days__btn,
.rtv4-tv-schedule .rtv4-tv-cal-toggle,
.rtv4-tv-schedule .rtv4-tv-cal__cell,
.rtv4-tv-schedule .rtv4-tv-toggle {
	appearance: none;
	margin: 0;
	font: inherit;
	color: inherit;
	letter-spacing: normal;
	text-transform: none;
	text-decoration: none;
	cursor: pointer;
	box-shadow: none;
}

.rtv4-tv-schedule .rtv4-tv-days__btn {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 1px;
	width: 100%;
	min-width: 84px;
	min-height: 48px;
	padding: 7px 12px;
	background: transparent;
	border: 0;
	border-radius: calc(var(--_r-md) - 5px);
	color: var(--_ink-2);
	text-align: start;
	line-height: 1.2;
	transition: background 0.15s ease, color 0.15s ease;
}

.rtv4-tv-schedule .rtv4-tv-days__btn:hover {
	background: color-mix(in srgb, var(--_ink) 6%, transparent);
	color: var(--_ink);
}

.rtv4-tv-days__name {
	font-size: 14px;
	font-weight: 700;
}

.rtv4-tv-days__date {
	font-size: 12px;
	font-variant-numeric: tabular-nums;
	opacity: 0.8;
}

.rtv4-tv-schedule .rtv4-tv-days__btn[aria-pressed="true"] {
	background: var(--_accent);
	color: var(--_on-accent);
	box-shadow: 0 6px 16px -8px color-mix(in srgb, var(--_accent) 80%, transparent);
}

.rtv4-tv-schedule .rtv4-tv-days__btn[aria-pressed="true"] .rtv4-tv-days__date {
	opacity: 1;
}

.rtv4-tv-schedule .rtv4-tv-cal-toggle {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	gap: 8px;
	min-height: 48px;
	padding: 0 16px;
	background: var(--_card);
	border: 1px solid var(--_line);
	border-radius: 999px;
	color: var(--_ink-2);
	font-size: 14px;
	font-weight: 600;
	transition: border-color 0.15s ease, color 0.15s ease;
}

.rtv4-tv-schedule .rtv4-tv-cal-toggle:hover,
.rtv4-tv-schedule .rtv4-tv-cal-toggle[aria-expanded="true"] {
	border-color: color-mix(in srgb, var(--_accent) 45%, transparent);
	color: var(--_accent);
}

.rtv4-tv-icon {
	flex: 0 0 auto;
}

/* Zonder JavaScript: geen kalenderknop, wel het datumformulier. */
.rtv4-tv-schedule .rtv4-tv-cal-toggle { display: none; }
.rtv4-tv-js .rtv4-tv-schedule .rtv4-tv-cal-toggle { display: inline-flex; }
.rtv4-tv-cal-fallback { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 16px; }

@container rtv4-tv-schedule (min-width: 820px) {
	.rtv4-tv-days__item {
		flex: 1 1 0;
	}

	.rtv4-tv-schedule .rtv4-tv-days__btn {
		min-width: 0;
	}
}

@container rtv4-tv-schedule (max-width: 460px) {
	.rtv4-tv-cal-toggle span {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
		white-space: nowrap;
	}

	.rtv4-tv-js .rtv4-tv-schedule .rtv4-tv-cal-toggle {
		width: 48px;
		padding: 0;
		justify-content: center;
		border-radius: 50%;
	}

	.rtv4-tv-schedule__head {
		flex-direction: column;
		align-items: stretch;
	}

	.rtv4-tv-station {
		flex-direction: column;
		align-items: stretch;
		gap: 6px;
	}

	.rtv4-tv-station__pick {
		justify-content: space-between;
	}
}

/* Kalender */
.rtv4-tv-cal {
	margin-bottom: 16px;
	padding: 16px;
	background: var(--_card);
	border: 1px solid var(--_line);
	border-radius: var(--_r-lg);
	box-shadow: var(--_shadow);
}

.rtv4-tv-schedule .rtv4-tv-cal[hidden] {
	display: none !important;
}

.rtv4-tv-schedule .rtv4-tv-cal__hint {
	margin-bottom: 12px;
	font-size: 13px;
	color: var(--_ink-2);
}

.rtv4-tv-cal__grid {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	gap: 4px;
	max-width: 420px;
}

.rtv4-tv-cal__head {
	padding-block: 4px;
	font-size: 10.5px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	text-align: center;
	color: var(--_ink-3);
}

.rtv4-tv-schedule .rtv4-tv-cal__cell {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 2px;
	background: transparent;
	border: 1px solid transparent;
	border-radius: var(--_r-sm);
	color: var(--_ink);
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	line-height: 1.1;
	transition: background 0.15s ease;
}

.rtv4-tv-schedule .rtv4-tv-cal__cell:hover {
	background: color-mix(in srgb, var(--_ink) 6%, transparent);
}

.rtv4-tv-schedule .rtv4-tv-cal__cell.is-disabled {
	color: var(--_ink-3);
	font-weight: 400;
	opacity: 0.45;
	cursor: default;
}

.rtv4-tv-schedule .rtv4-tv-cal__cell.is-disabled:hover {
	background: transparent;
}

.rtv4-tv-cal__month {
	font-size: 9.5px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--_accent);
}

.rtv4-tv-schedule .rtv4-tv-cal__cell.is-today {
	border-color: color-mix(in srgb, var(--_accent) 45%, transparent);
}

.rtv4-tv-schedule .rtv4-tv-cal__cell[aria-pressed="true"] {
	background: var(--_accent);
	border-color: var(--_accent);
	color: var(--_on-accent);
}

.rtv4-tv-schedule .rtv4-tv-cal__cell[aria-pressed="true"] .rtv4-tv-cal__month {
	color: inherit;
}

/* Dag */
.rtv4-tv-schedule__panel {
	transition: opacity 0.15s ease;
}

.rtv4-tv-schedule.is-loading .rtv4-tv-schedule__panel {
	opacity: 0.45;
}

.rtv4-tv-schedule .rtv4-tv-day__title {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 12px;
	margin-bottom: 14px;
	font-size: 20px;
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -0.015em;
	color: var(--_ink);
}

.rtv4-tv-day__title:focus {
	outline: none;
}

.rtv4-tv-day__title:focus-visible {
	outline: 2px solid var(--_accent);
}

.rtv4-tv-day__title .rtv4-tv-badge {
	font-size: 10.5px;
}

.rtv4-tv-schedule .rtv4-tv-day > .rtv4-tv-notice {
	padding: 18px;
	background: var(--_soft);
	border: 1px dashed var(--_line);
	border-radius: var(--_r-md);
	text-align: center;
}

.rtv4-tv-list {
	display: grid;
	gap: 10px;
}

/* Programmakaart: op smalle schermen tijd boven de titel, afbeelding rechts */
.rtv4-tv-schedule .rtv4-tv-item {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	grid-template-areas:
		"time  media"
		"body  media";
	gap: 4px 14px;
	align-items: start;
	margin: 0;
	padding: 14px;
	background: var(--_card);
	border: 1px solid var(--_line);
	border-radius: var(--_r-md);
	box-shadow: var(--_shadow);
	transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.rtv4-tv-schedule .rtv4-tv-item.is-current {
	border-color: color-mix(in srgb, var(--_accent) 45%, transparent);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--_accent) 16%, transparent), var(--_shadow);
}

.rtv4-tv-schedule .rtv4-tv-item.is-current::before {
	content: "";
	position: absolute;
	top: 14px;
	bottom: 14px;
	left: -1px;
	width: 3px;
	border-radius: 0 3px 3px 0;
	background: var(--_accent);
}

.rtv4-tv-schedule .rtv4-tv-item__time {
	grid-area: time;
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 2px 8px;
	font-variant-numeric: tabular-nums;
}

.rtv4-tv-item__start {
	font-size: 18px;
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -0.01em;
	color: var(--_ink);
}

.rtv4-tv-item__end {
	font-size: 12.5px;
	font-weight: 500;
	color: var(--_ink-3);
	white-space: nowrap;
}

.rtv4-tv-item__time .rtv4-tv-badge {
	align-self: center;
	padding: 2px 8px;
	font-size: 10px;
}

.rtv4-tv-item__body {
	grid-area: body;
	min-width: 0;
	align-self: start;
}

.rtv4-tv-schedule .rtv4-tv-item__title {
	font-size: 17px;
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: -0.01em;
	color: var(--_ink);
}

.rtv4-tv-names {
	display: flex;
	flex-wrap: wrap;
	gap: 0 0.3em;
	margin-top: 3px;
	font-size: 14px;
	color: var(--_ink-2);
}

.rtv4-tv-names li:not(:last-child)::after {
	content: ",";
}

.rtv4-tv-schedule .rtv4-tv-item__desc {
	margin-top: 6px;
	font-size: 14px;
	color: var(--_ink-2);
}

.rtv4-tv-item__media {
	grid-area: media;
	width: 60px;
}

.rtv4-tv-schedule .rtv4-tv-image {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: var(--_r-sm);
}

@container rtv4-tv-schedule (min-width: 560px) {
	.rtv4-tv-schedule .rtv4-tv-item {
		grid-template-columns: 88px minmax(0, 1fr) auto;
		grid-template-areas: "time body media";
		gap: 4px 20px;
		padding: 16px 18px;
	}

	.rtv4-tv-schedule .rtv4-tv-item:hover {
		transform: translateY(-1px);
	}

	.rtv4-tv-schedule .rtv4-tv-item__time {
		flex-direction: column;
		align-items: flex-start;
	}

	.rtv4-tv-item__time .rtv4-tv-badge {
		align-self: flex-start;
		margin-top: 6px;
	}

	.rtv4-tv-item__start {
		font-size: 22px;
	}

	.rtv4-tv-schedule .rtv4-tv-item__title {
		font-size: 19px;
	}

	.rtv4-tv-item__media {
		width: 132px;
	}

	.rtv4-tv-schedule .rtv4-tv-image {
		aspect-ratio: 16 / 9;
	}
}

@container rtv4-tv-schedule (min-width: 820px) {
	.rtv4-tv-schedule .rtv4-tv-item {
		grid-template-columns: 104px minmax(0, 1fr) auto;
		padding: 18px 22px;
	}

	.rtv4-tv-item__media {
		width: 176px;
	}
}

/* Uitklapbare presentatorinformatie */
.rtv4-tv-schedule .rtv4-tv-toggle {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 36px;
	margin-top: 10px;
	padding: 6px 14px;
	background: var(--_card);
	border: 1px solid var(--_line);
	border-radius: 999px;
	color: var(--_ink-2);
	font-size: 13px;
	font-weight: 600;
	white-space: nowrap;
	transition: border-color 0.15s ease, color 0.15s ease;
}

.rtv4-tv-schedule .rtv4-tv-toggle:hover,
.rtv4-tv-schedule .rtv4-tv-toggle[aria-expanded="true"] {
	border-color: color-mix(in srgb, var(--_accent) 45%, transparent);
	color: var(--_ink);
}

.rtv4-tv-toggle__icon {
	width: 7px;
	height: 7px;
	border-right: 2px solid var(--_accent);
	border-bottom: 2px solid var(--_accent);
	transform: rotate(45deg) translate(-1px, -1px);
	transition: transform 0.2s ease;
}

.rtv4-tv-toggle[aria-expanded="true"] .rtv4-tv-toggle__icon {
	transform: rotate(-135deg) translate(-1px, -1px);
}

.rtv4-tv-details {
	margin-top: 12px;
	padding: 12px;
	background: var(--_soft);
	border: 1px solid var(--_line-2);
	border-radius: var(--_r-md);
}

.rtv4-tv-schedule .rtv4-tv-details[hidden] {
	display: none !important;
}

.rtv4-tv-profiles {
	display: grid;
	gap: 12px;
}

.rtv4-tv-profile {
	display: grid;
	grid-template-columns: 64px minmax(0, 1fr);
	gap: 12px;
	align-items: start;
}

.rtv4-tv-schedule .rtv4-tv-profile__photo {
	display: block;
	width: 64px;
	height: 64px;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: var(--_r-sm);
}

.rtv4-tv-profile__text {
	min-width: 0;
	grid-column: 2;
}

.rtv4-tv-profile > .rtv4-tv-profile__text:only-child {
	grid-column: 1 / -1;
}

.rtv4-tv-schedule .rtv4-tv-profile__name {
	font-size: 15px;
	font-weight: 700;
}

.rtv4-tv-schedule .rtv4-tv-profile__role {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--_accent);
}

.rtv4-tv-profile__bio {
	margin-top: 6px;
	font-size: 14px;
	color: var(--_ink-2);
}

.rtv4-tv-profile__bio p + p {
	margin-top: 0.5em;
}

/* Thema-stijl: minder decoratie */
.rtv4-tv--style-theme .rtv4-tv-item.is-current::before {
	display: none;
}

.rtv4-tv--style-theme .rtv4-tv-days__btn[aria-pressed="true"] {
	box-shadow: inset 0 -3px 0 var(--_accent);
	background: transparent;
	color: inherit;
}

.rtv4-tv--style-theme .rtv4-tv-badge--now,
.rtv4-tv--style-theme .rtv4-tv-type--live {
	background: transparent;
	color: inherit;
}

@media (prefers-reduced-motion: reduce) {
	.rtv4-tv-schedule *,
	.rtv4-tv-schedule *::before {
		animation: none !important;
		transition: none !important;
	}
}

/* ---------- TV Gemist ---------- */
.rtv4-tv-gemist__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5em 1em; margin-bottom: 1em; }
.rtv4-tv-gemist__head .rtv4-tv-heading { margin: 0; }
.rtv4-tv-gemist__filters { display: flex; flex-wrap: wrap; gap: .5em; flex: 1 1 320px; justify-content: flex-end; margin: 0; }
.rtv4-tv-field--grow { flex: 1 1 200px; }
.rtv4-tv-field--grow input { width: 100%; }

.rtv4-tv-grid { display: grid; gap: 1.25em 1em; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
@media (min-width: 400px) and (max-width: 560px) {
	.rtv4-tv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1em .75em; }
}
.rtv4-tv-card { min-width: 0; border-radius: var(--rtv4-tv-_radius); background: var(--rtv4-tv-_card); }
.rtv4-tv-card.is-featured .rtv4-tv-card__thumb { outline: 3px solid var(--rtv4-tv-_accent); outline-offset: -3px; }
.rtv4-tv-card__link { display: block; color: inherit; text-decoration: none; }
.rtv4-tv-card__link:hover .rtv4-tv-card__title { text-decoration: underline; }
.rtv4-tv-card__thumb { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--rtv4-tv-_radius); background: var(--rtv4-tv-_muted); }
.rtv4-tv-card__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rtv4-tv-card__play {
	position: absolute; inset-inline-start: .5em; inset-block-end: .5em; display: grid; place-items: center;
	width: 2.25em; height: 2.25em; border-radius: 50%; background: rgba(0,0,0,.65); color: #fff;
}
.rtv4-tv-card__duration { position: absolute; inset-inline-end: .5em; inset-block-end: .5em; padding: .05em .35em; border-radius: 3px; background: rgba(0,0,0,.75); color: #fff; font-size: .75em; }
.rtv4-tv-card__body { display: block; padding: .5em .1em 0; }
.rtv4-tv-card__title { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-weight: 700; line-height: 1.3; }
.rtv4-tv-card__meta { display: flex; flex-wrap: wrap; gap: .1em .6em; margin-top: .3em; font-size: .825em; opacity: .8; }
.rtv4-tv-more { text-align: center; margin: 1.25em 0 0; }

/* ---------- Videodetail ---------- */
.rtv4-tv-back { margin: 0 0 .75em; }
.rtv4-tv-ytplayer { position: relative; aspect-ratio: 16 / 9; background: #000; color: #fff; border-radius: var(--rtv4-tv-_radius); overflow: hidden; }
.rtv4-tv-ytplayer__thumb { position: absolute; inset: 0; width: 100%; height: 100% !important; object-fit: cover; opacity: .75; }
.rtv4-tv-ytplayer__overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .75em; padding: 1em; text-align: center; }
.rtv4-tv-ytplayer__consent { max-width: 34em; margin: 0; padding: .35em .7em; font-size: .8em; background: rgba(0,0,0,.6); border-radius: 4px; }
.rtv4-tv-ytplayer iframe, .rtv4-tv-ytplayer .rtv4-tv-ytplayer__frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.rtv4-tv-ytplayer__error { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .75em; padding: 1em; text-align: center; background: rgba(0,0,0,.85); }
.rtv4-tv-ytplayer__error a { color: #fff; }
.rtv4-tv-video__header { margin: 1em 0 .5em; }
.rtv4-tv-video__title { margin: 0 0 .25em; }
.rtv4-tv-video__meta { display: flex; flex-wrap: wrap; gap: .25em 1em; margin: 0; opacity: .8; font-size: .925em; }
.rtv4-tv-video__description { margin: 1em 0; }
.rtv4-tv-video__related { margin-top: 2em; }
