/* NB Videos – hub + single page styling */

:root {
	--nb-videos-primary: var(--e-global-color-primary, #5881A1);
	--nb-videos-dark: #3F5C73;
	--nb-videos-radius: 8px;
}

/* ---------- Plyr brand accent ---------- */
.sn-video-player .plyr {
	--plyr-color-main: var(--nb-videos-primary);
	border-radius: var(--nb-videos-radius);
	overflow: hidden;
}

/* Hello Elementor's reset.css skins every <button> with a #c36 (purple/pink)
   border, color and hover background. Undo that inside the Plyr player and
   render the controls in the brand colour. The extra .plyr qualifier raises
   specificity above the reset's [type="button"] / :hover selectors. */
.sn-video-player .plyr .plyr__control {
	border: 0;
	color: #fff;
}

.sn-video-player .plyr .plyr__control--overlaid {
	border-radius: 100%;
	color: #fff;
}

.sn-video-player .plyr .plyr__controls .plyr__control:hover,
.sn-video-player .plyr .plyr__controls .plyr__control:focus,
.sn-video-player .plyr .plyr__control--overlaid:hover {
	background: var(--nb-videos-primary);
	color: #fff;
}

/* Keep the settings menu popup text readable (dark on light). */
.sn-video-player .plyr .plyr__menu__container .plyr__control {
	color: #4a5464;
}

/* ---------- Hub: table of contents ---------- */
.sn-videos__toc {
	margin: 0 0 2.5rem;
}

.sn-videos__toc-title {
	margin: 0 0 1rem;
	font-size: 1.25rem;
}

.sn-videos__toc-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1rem;
}

.sn-videos__toc-list a {
	display: inline-block;
	padding: 0.4rem 1rem;
	background: #f4f4f4;
	border-radius: 999px;
	text-decoration: none;
	color: var(--nb-videos-dark);
	font-weight: 600;
	font-size: 0.95rem;
	transition: background 0.15s ease, color 0.15s ease;
}

.sn-videos__toc-list a:hover {
	background: var(--nb-videos-primary);
	color: #fff;
}

/* ---------- Hub: sections + grid ---------- */
.sn-videos__section {
	margin: 0 0 3rem;
	scroll-margin-top: 100px;
}

.sn-videos__section-title {
	margin: 0 0 0.5rem;
}

.sn-videos__section-intro {
	margin: 0 0 1.5rem;
	color: #54595F;
}

.sn-videos__grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 1.5rem;
	grid-template-columns: repeat(3, 1fr);
}

.sn-videos__grid--cols-2 { grid-template-columns: repeat(2, 1fr); }
.sn-videos__grid--cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
	.sn-videos__grid,
	.sn-videos__grid--cols-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
	.sn-videos__grid,
	.sn-videos__grid--cols-2,
	.sn-videos__grid--cols-4 { grid-template-columns: 1fr; }
}

/* ---------- Hub: cards ---------- */
.sn-videos__card {
	margin: 0;
}

.sn-videos__card-link {
	display: block;
	text-decoration: none;
	color: inherit;
}

.sn-videos__card-thumb {
	position: relative;
	display: block;
	aspect-ratio: 16 / 9;
	background: #000;
	border-radius: var(--nb-videos-radius);
	overflow: hidden;
}

/* The extra .sn-videos__card-link qualifier raises specificity above
   Elementor frontend.css's `.elementor img { height: auto }`, which loads
   after this file and otherwise collapses the 16:9 thumb fill. */
.sn-videos__card-link .sn-videos__card-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.3s ease;
}

.sn-videos__card-link:hover .sn-videos__card-thumb img {
	transform: scale(1.04);
}

/* Play button overlay (shared shape used on hub + single facade) */
.sn-videos__card-play,
.sn-video-facade__play {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.55);
	transition: background 0.15s ease, transform 0.15s ease;
	pointer-events: none;
}

.sn-videos__card-play::before,
.sn-video-facade__play::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 54%;
	transform: translate(-50%, -50%);
	border-style: solid;
	border-width: 11px 0 11px 19px;
	border-color: transparent transparent transparent #fff;
}

.sn-videos__card-link:hover .sn-videos__card-play,
.sn-video-facade:hover .sn-video-facade__play {
	background: var(--nb-videos-primary);
	transform: translate(-50%, -50%) scale(1.08);
}

/* Duration badge, inset in the thumb's bottom-right corner with a small gap
   from the rounded wrapper edges. */
.sn-videos__card-duration {
	position: absolute;
	right: 6px;
	bottom: 6px;
	padding: 3px 7px;
	background: rgba(0, 0, 0, 0.25);
	color: #fff;
	font-size: 0.8rem;
	font-weight: 600;
	line-height: 1.2;
	border-radius: 4px;
}

.sn-videos__card-title {
	display: block;
	margin-top: 0.75rem;
	font-weight: 600;
	font-size: 1.05rem;
	line-height: 1.3;
	color: var(--nb-videos-dark);
}

/* ---------- Single video page ---------- */
.sn-video {
	max-width: 1300px;
	margin: 0 auto;
	padding: 2rem 10px 3rem;
}

/* YouTube-style two-column layout: player + sidebar */
.sn-video__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 360px;
	gap: 2.5rem;
	align-items: start;
}

@media (max-width: 1024px) {
	.sn-video__layout {
		grid-template-columns: 1fr;
		gap: 2rem;
	}
}

.sn-video__main {
	min-width: 0;
}

.sn-video__title {
	margin: 0 0 1.25rem;
}

.sn-video__player {
	margin: 0 0 1.75rem;
}

/* Click-to-load facade. Higher specificity overrides the theme's global
   [type="button"] border reset. */
.sn-video .sn-video-facade {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	border: 0;
	padding: 0;
	margin: 0;
	cursor: pointer;
	background: #000;
	border-radius: var(--nb-videos-radius);
	overflow: hidden;
}

.sn-video .sn-video-facade img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* ---------- Single video: related sidebar ---------- */
.sn-video__sidebar {
	min-width: 0;
}

.sn-video__sidebar-title {
	margin: 0 0 1rem;
	font-size: 1.25rem;
}

.sn-video__related-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
}

.sn-video__related-item a {
	display: grid;
	grid-template-columns: 168px 1fr;
	gap: 0.75rem;
	align-items: start;
	text-decoration: none;
	color: var(--nb-videos-dark);
}

.sn-video__related-thumb {
	position: relative;
	display: block;
	aspect-ratio: 16 / 9;
	background: #000;
	border-radius: 6px;
	overflow: hidden;
}

.sn-video__related-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Smaller play badge on sidebar thumbs */
.sn-video__related-thumb .sn-videos__card-play {
	width: 38px;
	height: 38px;
}

.sn-video__related-thumb .sn-videos__card-play::before {
	border-width: 7px 0 7px 12px;
}

.sn-video__related-meta {
	display: block;
	padding-top: 0.1rem;
}

.sn-video__related-item .sn-video__related-title {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	font-weight: 600;
	font-size: 0.98rem;
	line-height: 1.35;
}

.sn-video__related-item a:hover .sn-video__related-title {
	color: var(--nb-videos-primary);
}

/* Play badge reacts on card hover, matching the hub cards. */
.sn-video__related-item a:hover .sn-videos__card-play {
	background: var(--nb-videos-primary);
	transform: translate(-50%, -50%) scale(1.08);
}

.sn-video__related-item a:hover .sn-video__related-thumb img {
	transform: scale(1.04);
}

.sn-video__related-thumb img {
	transition: transform 0.3s ease;
}

/* "Bekijk alle video's" link below the related list. */
.sn-video__related-all {
	display: inline-block;
	margin-top: 1.25rem;
	color: var(--nb-videos-primary);
	font-weight: 600;
	text-decoration: none;
}

.sn-video__related-all:hover {
	text-decoration: underline;
}

@media (max-width: 1024px) {
	/* On stacked layout, show related as a responsive grid instead of a column */
	.sn-video__related-list {
		display: grid;
		grid-template-columns: repeat(2, 1fr);
		gap: 1.25rem;
	}
	.sn-video__related-item a {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 600px) {
	.sn-video__related-list {
		grid-template-columns: 1fr;
	}
}

.sn-video__body {
	font-size: 1.05rem;
	line-height: 1.7;
}

.sn-video__body a {
	color: var(--nb-videos-primary);
}

/* Transcript */
.sn-video__transcript {
	margin: 2rem 0 0;
	border-top: 1px solid #e5e5e5;
	padding-top: 1rem;
}

.sn-video__transcript summary {
	cursor: pointer;
	font-weight: 600;
	color: var(--nb-videos-dark);
}

.sn-video__transcript-body {
	margin-top: 1rem;
	color: #54595F;
}

/* ---------- Related blocks ---------- */
.sn-video__related {
	margin: 3rem auto 0;
	max-width: 1300px;
	padding: 0 10px;
}

.sn-video__related-title {
	margin: 0 0 1.5rem;
}

.sn-video__products {
	list-style: none;
	margin: 0 0 2.5rem;
	padding: 0;
	display: grid;
	gap: 1.5rem;
	grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1024px) {
	.sn-video__products { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
	.sn-video__products { grid-template-columns: 1fr; }
}

.sn-video__product {
	margin: 0;
}

.sn-video__product a {
	display: block;
	text-decoration: none;
	color: var(--nb-videos-dark);
}

.sn-video__product-thumb {
	border-radius: var(--nb-videos-radius);
	overflow: hidden;
	aspect-ratio: 1 / 1;
	background: #f4f4f4;
}

.sn-video__product-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.sn-video__product-title {
	margin-top: 0.6rem;
	font-weight: 600;
	font-size: 0.98rem;
}

.sn-video__product-price {
	display: block;
	margin-top: 0.25rem;
	color: var(--nb-videos-primary);
	font-weight: 700;
}

.sn-video__product-price del {
	color: #999;
	font-weight: 400;
	margin-right: 0.35rem;
}

/* Yoast breadcrumb (replaces the back-to-hub link) */
.sn-video__breadcrumb {
	margin-bottom: 1.25rem;
	font-size: 0.9rem;
	color: #6b7280;
}

.sn-video__breadcrumb a {
	color: var(--nb-videos-primary);
	text-decoration: none;
}

.sn-video__breadcrumb a:hover {
	text-decoration: underline;
}

.sn-video__breadcrumb .breadcrumb_last {
	color: #6b7280;
	font-weight: 600;
}
