/* B-CLOSE videobibliotheek (Comith) — videopagina + video-rij op het mediacenter.
   Stijl volgens mock-up "B-CLOSE Videohub". Lettertype erft van het theme (Open Sans).
   Let op: style.css van het theme zet 'section, section div { overflow: visible !important }' en
   algemene knopstijlen met !important ('[type=button]:not(:disabled)' e.a.). Daarom staan overflow,
   knoppen en velden hier op !important met een hogere specificiteit. */

.bcv, .bcv-lb, .bcv-pagehead {
	--bcv-navy: #002E59;
	--bcv-ink: #13243A;
	--bcv-muted: #5B6878;
	--bcv-line: #DCE3EB;
	--bcv-red: #C0392B;
	--bcv-chip: #EEF2F6;
	--bcv-focus: #6FA8DC;
}
.bcv *, .bcv-lb * { box-sizing: border-box; }
.bcv-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- paginakop ---------- */
/* De themakop (header.php) toont op categoriepagina's de categorienaam als H1. Op de videopagina
   staat de titel al in de eigen paginakop, dus die in de themakop verbergen (geen dubbele titel). */
.bcv-library-page .hero.standard h1 { display: none !important; }
.bcv-pagehead { padding-top: 4px; }
.bcv-crumb { font-size: 12px; color: var(--bcv-muted); padding: 12px 0; }
.bcv-crumb a { color: inherit; text-decoration: none; }
.bcv-crumb a:hover { text-decoration: underline; }
.bcv-pagehead h1 { font-size: clamp(28px, 4vw, 38px); line-height: 1.15; color: var(--bcv-navy); margin: 6px 0; text-wrap: balance; }
.bcv-pagehead .bcv-intro { color: var(--bcv-muted); max-width: 62ch; margin: 0 0 22px; }

/* ---------- kaart ---------- */
.bcv-card {
	position: relative; display: flex; flex-direction: column; min-width: 0;
	background: #fff; border: 1px solid var(--bcv-line); border-radius: 8px; overflow: hidden !important;
}

/* Thumbnail = de enige link die de video opent */
.bcv-thumb {
	position: relative; display: block; aspect-ratio: 16 / 9; max-width: 100%; overflow: hidden !important; flex: none;
	background: #1D3B5C; text-decoration: none; cursor: pointer;
}
.bcv-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; margin: 0; max-width: none; }
.bcv-trigger:focus-visible { outline: 3px solid var(--bcv-focus); outline-offset: -3px; }

/* Externe-link-icoon van het theme niet tonen (YouTube-video's zonder bericht) */
a.bcv-trigger[href*="//"]:not([href*="b-close"])::after,
.bcv a[href*="//"]:not([href*="b-close"])::after { display: none !important; }

.bcv-play {
	position: absolute; inset: 0; margin: auto; width: 46px; height: 46px; border-radius: 50%;
	background: rgba(255, 255, 255, .92); display: grid; place-items: center;
	box-shadow: 0 4px 18px rgba(0, 0, 0, .25); transition: transform .2s;
}
.bcv-play::after {
	content: ""; margin-left: 4px;
	border-left: 14px solid var(--bcv-navy); border-top: 9px solid transparent; border-bottom: 9px solid transparent;
}
.bcv-trigger:hover .bcv-play, .bcv-trigger:focus-visible .bcv-play { transform: scale(1.08); }

.bcv-dur {
	position: absolute; right: 10px; bottom: 10px; padding: 2px 7px; border-radius: 4px;
	background: rgba(0, 0, 0, .75); color: #fff; font-size: 11.5px; font-weight: 600; line-height: 1.5;
	font-variant-numeric: tabular-nums;
}

.bcv-body { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px 14px; flex: 1; min-width: 0; }
.bcv .bcv-title { margin: 0; font-size: 14.5px; line-height: 1.35; font-weight: 700; color: var(--bcv-navy); }
.bcv-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12px; color: var(--bcv-muted); }
.bcv-tag {
	display: inline-block; background: var(--bcv-chip); color: var(--bcv-navy); border-radius: 4px;
	font-size: 10.5px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; padding: 2px 7px; line-height: 1.5;
}
.bcv a.bcv-brand { color: inherit; text-decoration: none; }
.bcv a.bcv-brand:hover { color: var(--bcv-navy); text-decoration: underline; }
.bcv .bcv-desc {
	margin: 2px 0 0; font-size: 13px; line-height: 1.5; color: var(--bcv-muted);
	display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden !important;
}
.bcv a.bcv-artlink {
	align-self: flex-start; margin-top: auto; padding-top: 4px;
	font-size: 12.5px; font-weight: 600; color: var(--bcv-red); text-decoration: none;
}
.bcv a.bcv-artlink:hover, .bcv a.bcv-artlink:focus { color: var(--bcv-red); text-decoration: underline; }

/* ---------- uitgelichte video (videopagina) ---------- */
.bcv-top { display: block; }
/* Uitgelichte video over de volle breedte: beeld links, tekst rechts (op gsm eronder) */
.bcv-card--big {
	display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
	border-radius: 10px; box-shadow: 0 6px 24px rgba(0, 46, 89, .07);
}
.bcv-card--big .bcv-thumb { height: 100%; }
.bcv-card--big .bcv-thumb { background: #0D2238; }
.bcv-card--big .bcv-play { width: 66px; height: 66px; }
.bcv-card--big .bcv-play::after { border-left-width: 20px; border-top-width: 12px; border-bottom-width: 12px; margin-left: 6px; }
.bcv-cap { display: grid; gap: 8px; padding: 16px 20px 18px; }
/* Tekstkolom: labels bovenaan, titel + datum in het midden, links onderaan */
.bcv-card--big .bcv-cap { grid-template-rows: auto 1fr auto; gap: 16px; padding: 24px 28px; }
.bcv-cap__main { display: grid; gap: 10px; align-content: center; }
.bcv-card--big .bcv-capfoot { padding-top: 14px; border-top: 1px solid var(--bcv-line); }
.bcv a.bcv-lnk--brand { margin-left: auto; }
.bcv-eyebrow { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.bcv-eyebrow .bcv-tag { font-size: 11.5px; letter-spacing: .6px; padding: 3px 9px; }
.bcv-eyebrow .bcv-tag--new { background: var(--bcv-red); color: #fff; }
.bcv .bcv-card--big .bcv-title { font-size: 24px; line-height: 1.25; text-wrap: balance; }
.bcv .bcv-card--big .bcv-desc { font-size: 14px; -webkit-line-clamp: 6; max-width: 70ch; }
.bcv-capfoot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.bcv-meta { font-size: 12.5px; color: var(--bcv-muted); }
.bcv a.bcv-lnk { font-size: 13.5px; font-weight: 600; color: var(--bcv-navy); text-decoration: none; }
.bcv a.bcv-lnk:hover { text-decoration: underline; }

/* ---------- filterbalk ---------- */
.bcv-filters { display: grid; gap: 14px; margin: 40px 0 18px; }
.bcv-filters[hidden] { display: none !important; }
.bcv-filters__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.bcv .bcv-filters__title {
	margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: var(--bcv-muted);
}
.bcv-tools { display: flex; gap: 10px; flex-wrap: wrap; }
.bcv .bcv-tools .bcv-select, .bcv .bcv-tools .bcv-search {
	font: inherit; font-size: 14px !important; color: var(--bcv-ink) !important; background-color: #fff !important;
	border: 1px solid var(--bcv-line) !important; border-radius: 8px !important; padding: 8px 12px !important;
	height: auto !important; min-width: 0; margin: 0 !important; box-shadow: none !important; line-height: 1.4;
}
/* Eigen pijltje met ruimte rechts (het theme zet zijn pijltje tegen de rand) */
.bcv .bcv-tools .bcv-select {
	-webkit-appearance: none !important; -moz-appearance: none !important; appearance: none !important;
	padding-right: 36px !important; cursor: pointer;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23002E59' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
	background-repeat: no-repeat !important; background-position: right 12px center !important; background-size: 12px 8px !important;
}
.bcv .bcv-tools .bcv-select::-ms-expand { display: none; }
.bcv .bcv-tools .bcv-search { width: 220px; max-width: 100%; }
.bcv .bcv-tools .bcv-select:focus-visible, .bcv .bcv-tools .bcv-search:focus-visible { outline: 3px solid var(--bcv-focus); outline-offset: 2px; }

.bcv-chips-scroll { overflow-x: auto !important; scrollbar-width: thin; margin-inline: -4px; padding: 4px; }
.bcv-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.bcv .bcv-chips .bcv-chip {
	display: inline-flex !important; align-items: center; gap: 8px; flex: none; white-space: nowrap;
	width: auto !important; height: auto !important; min-width: 0 !important; min-height: 0 !important;
	margin: 0 !important; padding: 8px 14px !important; border: 1.5px solid var(--bcv-line) !important; border-radius: 999px !important;
	background: #fff !important; color: var(--bcv-ink) !important; box-shadow: none !important;
	font: inherit; font-size: 14px !important; font-weight: 600 !important; line-height: 1.3 !important; cursor: pointer;
}
.bcv .bcv-chips .bcv-chip::before, .bcv .bcv-chips .bcv-chip::after { content: none !important; display: none !important; }
.bcv .bcv-chips .bcv-chip:hover { border-color: var(--bcv-navy) !important; }
.bcv .bcv-chips .bcv-chip[aria-pressed="true"] { background: var(--bcv-navy) !important; border-color: var(--bcv-navy) !important; color: #fff !important; }
.bcv .bcv-chips .bcv-chip:focus-visible { outline: 3px solid var(--bcv-focus) !important; outline-offset: 2px; }
.bcv-chip__n {
	font-size: 12px; font-weight: 700; color: var(--bcv-muted); background: var(--bcv-chip);
	border-radius: 999px; padding: 1px 7px; font-variant-numeric: tabular-nums;
}
.bcv-chip[aria-pressed="true"] .bcv-chip__n { background: rgba(255, 255, 255, .18); color: #fff; }
.bcv .bcv-result { margin: 0; font-size: 13px; color: var(--bcv-muted); }

/* ---------- raster ---------- */
.bcv-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.bcv-grid > [data-bcv-hidden], .bcv-grid > [data-bcv-out] { display: none !important; }
.bcv .bcv-noresult { padding: 40px; text-align: center; color: var(--bcv-muted); border: 1px dashed var(--bcv-line); border-radius: 8px; margin: 0; }
.bcv .bcv-noresult[hidden] { display: none !important; }
.bcv-library { margin-bottom: 60px; }
.bcv .bcv-loadmore {
	display: block !important; width: auto !important; height: auto !important; margin: 26px auto 0 !important;
	padding: 9px 22px !important; border: 1.5px solid var(--bcv-navy) !important; border-radius: 999px !important;
	background: #fff !important; color: var(--bcv-navy) !important; box-shadow: none !important;
	font: inherit; font-size: 14px !important; font-weight: 600 !important; line-height: 1.4 !important; cursor: pointer;
}
.bcv .bcv-loadmore[hidden] { display: none !important; }
.bcv .bcv-loadmore:hover { background: var(--bcv-navy) !important; color: #fff !important; }
.bcv .bcv-loadmore:focus-visible { outline: 3px solid var(--bcv-focus) !important; outline-offset: 2px; }
.bcv-empty { color: var(--bcv-muted); }

/* ---------- video-rij (mediacenter) ---------- */
/* Binnen de container blijven: min-width 0 voor flex-/grid-ouders van het theme, overflow hidden als vangnet. */
.bcv-rows { margin-top: 18px; max-width: 100%; min-width: 0; }
.bcv.bcv-rows { overflow: hidden !important; }
.bcv-row { min-width: 0; margin-bottom: 30px; }
.bcv-rowhead { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.bcv-rowhead:empty { display: none; }
.bcv .bcv-rowtitle { margin: 0; font-size: 20px; color: var(--bcv-navy); }
.bcv-cnt { font-size: 12.5px; color: var(--bcv-muted); }
.bcv-scroller {
	display: grid; grid-auto-flow: column; grid-auto-columns: min(300px, 78vw); gap: 16px;
	width: 100%; max-width: 100%; min-width: 0; margin: 0;
	overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: 4px;
	padding: 4px 4px 14px; scrollbar-width: thin;
}
.bcv .bcv-scroller { overflow-x: auto !important; overflow-y: hidden !important; }
.bcv-scroller > .bcv-card { scroll-snap-align: start; }

.bcv-arrows { margin-left: auto; display: flex; gap: 6px; }
.bcv-arrows.is-off { display: none !important; }
.bcv .bcv-arrows .bcv-arrow {
	display: flex !important; align-items: center; justify-content: center; flex: none;
	width: 34px !important; height: 34px !important; min-width: 0 !important; min-height: 0 !important;
	margin: 0 !important; padding: 0 !important; border: 1.5px solid var(--bcv-line) !important; border-radius: 50% !important;
	background: #fff !important; color: var(--bcv-navy) !important; box-shadow: none !important;
	font-size: 0 !important; line-height: 0 !important; cursor: pointer; transition: border-color .15s, opacity .15s;
}
.bcv .bcv-arrows .bcv-arrow::before, .bcv .bcv-arrows .bcv-arrow::after { content: none !important; display: none !important; }
.bcv .bcv-arrows .bcv-arrow svg { display: block; width: 16px; height: 16px; flex: none; }
.bcv .bcv-arrows .bcv-arrow:hover:not(:disabled) { border-color: var(--bcv-navy) !important; }
.bcv .bcv-arrows .bcv-arrow:disabled { opacity: .35; cursor: default; }
.bcv .bcv-arrows .bcv-arrow:focus-visible { outline: 3px solid var(--bcv-focus) !important; outline-offset: 2px; }
@media (hover: none) { .bcv-arrows { display: none !important; } } /* touchscreens swipen */

/* ---------- responsive ---------- */
@media (max-width: 900px) {
	.bcv-card--big { grid-template-columns: 1fr; }
	.bcv-card--big .bcv-thumb { height: auto; }
	.bcv-card--big .bcv-cap { padding: 16px 20px 18px; gap: 10px; grid-template-rows: none; }
	.bcv-card--big .bcv-capfoot { padding-top: 10px; }
	.bcv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
	.bcv-grid { grid-template-columns: 1fr; }
	.bcv-chips { flex-wrap: nowrap; width: max-content; }
	.bcv-tools { width: 100%; }
	.bcv .bcv-tools .bcv-search { width: 100%; }
	.bcv .bcv-tools .bcv-select { flex: 1; }
	.bcv-card--big .bcv-cap { padding: 14px 16px 16px; }
	.bcv .bcv-card--big .bcv-title { font-size: 19px; }
}

/* ---------- lightbox ---------- */
html.bcv-lock, html.bcv-lock body { overflow: hidden; }
.bcv-lb {
	position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center;
	padding: 24px; background: rgba(2, 16, 36, .88);
}
.bcv-lb[hidden] { display: none !important; }
.bcv-lb__inner { position: relative; width: min(960px, 100%); }
.bcv-lb__player { aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden !important; background: #0A1E3A; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.bcv-lb__player iframe { display: block; width: 100%; height: 100%; border: 0; }
.bcv-lb__bar { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-top: 14px; flex-wrap: wrap; }
.bcv-lb__text { flex: 1 1 420px; min-width: 0; }
.bcv-lb .bcv-lb__title { margin: 0; color: #fff; font-size: 17px; line-height: 1.35; }
.bcv-lb .bcv-lb__desc { margin: 6px 0 0; color: rgba(255, 255, 255, .78); font-size: 14px; line-height: 1.55; max-width: 70ch; }
.bcv-lb .bcv-lb__desc[hidden], .bcv-lb .bcv-artlink[hidden] { display: none !important; }
.bcv-lb .bcv-artlink { font-size: 13.5px; font-weight: 600; color: #FFB38A; text-decoration: none; }
.bcv-lb .bcv-artlink:hover, .bcv-lb .bcv-artlink:focus { color: #FFB38A; text-decoration: underline; }
.bcv-lb .bcv-lb__close[type="button"] {
	position: absolute; top: -48px; right: -6px; width: 44px !important; height: 44px !important; min-width: 0 !important;
	margin: 0 !important; padding: 0 !important; background: none !important; border: 0 !important; box-shadow: none !important;
	color: #fff !important; font-size: 34px !important; line-height: 1 !important; cursor: pointer;
}
.bcv-lb .bcv-lb__close:focus-visible { outline: 3px solid #fff; outline-offset: 2px; border-radius: 6px; }

@media (prefers-reduced-motion: reduce) {
	.bcv-play, .bcv .bcv-arrows .bcv-arrow { transition: none; }
}
