/* Video frontend. Loaded only on video/channel pages (or when a player is rendered). */

/* ---- Player ---- */
.video-player {
	width: 100%;
	max-width: 100%;
	margin: 0 0 1.5rem;
}

.video-frame {
	position: relative;
	width: 100%;
	background: #000;
	overflow: hidden;
	border-radius: 4px;
}

/* 16:9 for iframes / oEmbed */
.video-frame--ratio {
	aspect-ratio: 16 / 9;
}

.video-frame--ratio iframe,
.video-frame--ratio object,
.video-frame--ratio embed {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

@supports not (aspect-ratio: 16 / 9) {
	.video-frame--ratio {
		height: 0;
		padding-bottom: 56.25%;
	}
}

/* HTML5 video: fluid, keeps its own ratio */
.video-player__video {
	display: block;
	width: 100%;
	height: auto;
	max-height: 85vh;
	background: #000;
}

.video-player__fallback {
	padding: 1rem;
	color: #fff;
}

.video-player__fallback a {
	color: inherit;
	text-decoration: underline;
}

/* Link-out fallback */
.video-player__link {
	position: relative;
	display: block;
	color: #fff;
	text-decoration: none;
	aspect-ratio: 16 / 9;
}

.video-player__link img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: .75;
	display: block;
}

.video-player__link-label {
	position: absolute;
	inset: auto 0 0 0;
	padding: 1rem;
	font-weight: 600;
	background: linear-gradient(transparent, rgba(0, 0, 0, .8));
}

/* ---- Channel box ---- */
.video-channel-box {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin: 1rem 0;
}

.video-channel-box__img {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	object-fit: cover;
	display: block;
}

.video-channel-box__info {
	display: flex;
	flex-direction: column;
	gap: .25rem;
}

.video-channel-box__name {
	font-weight: 600;
	text-decoration: none;
}

.video-channel-box__visit {
	font-size: .875rem;
}

/* ---- Cards / archive grid ---- */
.video-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 1.5rem;
	margin: 1.5rem 0;
	align-items: start;
}

.video-card__thumb {
	position: relative;
	display: block;
	aspect-ratio: 16 / 9;
	background: #111;
	border-radius: 4px;
	overflow: hidden;
}

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

.video-card__duration {
	position: absolute;
	/* right: 6px; */
	left: 6px;
	bottom: 6px;
	padding: 1px 6px;
	font-size: .75rem;
	color: #fff;
	background: rgba(0, 0, 0, .8);
	border-radius: 3px;
}

.video-card__title {
	font-size: 1rem;
	line-height: 1.3;
	margin: .6rem 0 .2rem;
}

.video-card__meta {
	font-size: .8125rem;
	opacity: .75;
}

.video-badge {
	display: inline-block;
	padding: 1px 8px;
	font-size: .75rem;
	border-radius: 3px;
	background: #f0b429;
	color: #111;
}

/* =====================================================================
   /videos/ landing page (archive-videos.php): dark layout
   Full-width bleed (optional): add to .video-home
   width:100vw; margin-left:calc(50% - 50vw); padding-inline:max(1.5rem, calc(50vw - 640px));
   ===================================================================== */
/* .video-home {
	--video-bg: #121212;
	--video-text: #f2f2f2;
	--video-muted: #9a9a9a;
	--video-line: #333;
	--video-accent: #f5c518;
	background: var(--video-bg);
	color: var(--video-text);
	padding: 2rem 1.5rem 3rem;
	box-sizing: border-box;
} */

.video-home a {
	color: inherit;
	text-decoration: none;
}

.video-home a:hover,
.video-home a:focus-visible {
	color: #f89219;
}

.video-home .video-card__meta {
	color: var(--video-muted);
}

.video-section-title {
	margin: 12px 0 1rem;
    text-transform: uppercase;
    color: var(--video-text);
    font-family: "Noto Sans";
    font-size: 20px;
    font-style: normal;
    font-weight: 600;
	line-height: normal;
	letter-spacing: 0.04em;
}

.video-section-title span {
	color: var(--video-accent);
}

/* ---- Recent: hero + Up Next ---- */
.video-recent {
    padding-bottom: 2rem;
    border-bottom: 1px solid #0d579b;
}

.video-recent__grid {
	display: grid;
	grid-template-columns: minmax(0, 2.3fr) minmax(0, 1fr);
	gap: 2.5rem;
}

.video-hero__thumb {
	position: relative;
	display: block;
	aspect-ratio: 16 / 9;
	background: #000;
	overflow: hidden;
	border-radius: 2px;
}

.video-hero__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .3s ease;
}

.video-hero__thumb:hover img {
	transform: scale(1.02);
}

.video-hero__title {
	margin: 1.25rem 0 .5rem;
	font-size: clamp(1.4rem, 2.4vw, 1.9rem);
	line-height: 1.2;
	font-weight: 700;
	text-align: center;
}

.video-hero__excerpt {
	margin: 0 auto .75rem;
	max-width: 62ch;
	font-size: .875rem;
	line-height: 1.55;
	color: var(--video-muted);
	text-align: center;
}

.video-hero__time {
	display: block;
	font-size: .75rem;
	color: var(--video-muted);
	text-align: center;
}

.video-play {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 64px;
	height: 64px;
	margin: -32px 0 0 -32px;
	border-radius: 50%;
	background: rgba(0, 0, 0, .55);
	border: 2px solid rgba(255, 255, 255, .85);
	opacity: 0;
	transition: opacity .2s ease;
}

.video-play::after {
	content: "";
	position: absolute;
	left: 26px;
	top: 20px;
	border-style: solid;
	border-width: 12px 0 12px 20px;
	border-color: transparent transparent transparent #fff;
}

.video-hero__thumb:hover .video-play,
.video-hero__thumb:focus-visible .video-play {
	opacity: 1;
}

.video-upnext__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.video-upnext__item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 140px;
    gap: 1rem;
    align-items: start;
    padding: 1rem 0 1rem;
    border-bottom: 1px solid #0d579b;
}

.video-upnext__list:nth-child(2) {
	padding-top: 0px;
}

.video-upnext__item:last-child {
	border-bottom: 0;
}

.video-upnext__item[hidden] {
	display: none;
}

.video-upnext__title {
	line-height: 1.35;
	font-size: .8125rem;
	font-weight: 700;
}

.video-upnext__thumb {
	position: relative;
	display: block;
	aspect-ratio: 16 / 9;
	background: #000;
	overflow: hidden;
	border-radius: 10px;
}

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

.video-upnext__thumb .video-card__duration {
	font-size: .625rem;
	left: 4px;
	bottom: 4px;
	display: flex;
    align-items: center;
}
span.video-play-icon {
    height: 20px;
}
span.video-play-icon svg {
    width: 11px;
    margin-right: 6px;
}
/* ---- Category sections ---- */
.video-category-section {
    padding: 0 0 0rem;
    border-bottom: 1px solid #0d579b;
}

.video-category-section:last-child {
	border-bottom: 0;
}

.video-category-section .video-section-title a {
	display: inline-block;
}

.video-grid--4 {
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1.25rem;
	margin: 0 0 1.5rem;
}

.video-home .video-card__title {
	font-size: .8125rem;
	font-weight: 700;
	line-height: 1.35;
	margin: .6rem 0 .35rem;
}

.video-home .video-card__title a::hover {
	color: #f99219;
}
.video-home .video-card__meta {
	font-size: .6875rem;
	letter-spacing: .04em;
	text-transform: uppercase;
}

.video-home .video-card__thumb {
	border-radius: 10px;
}

@media (max-width: 1000px) {
	.video-recent__grid {
		grid-template-columns: 1fr;
		gap: 2rem;
	}

	.video-grid--4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
@media (max-width: 750px) {
	.video-upnext__item {
		grid-template-columns: minmax(0, 1fr) 170px;
	}
}
@media (max-width: 520px) {
	.video-home {
		padding: 1.25rem 1rem 2rem;
	}

	.video-grid--4 {
		grid-template-columns: 1fr;
	}

	.video-upnext__item {
		grid-template-columns: minmax(0, 1fr) 120px;
	}
}

/* ---- Hero player (injected by video-archive.js) ---- */
.video-hero__media {
	aspect-ratio: 16 / 9;
	background: #000;
	overflow: hidden;
	border-radius: 2px;
}

.video-hero__media .video-hero__thumb {
	height: 100%;
	aspect-ratio: auto;
	border-radius: 0;
}

.video-hero__media .video-player,
.video-hero__media .video-frame {
	height: 100%;
	margin: 0;
	border-radius: 0;
}

.video-hero__media .video-player__video {
	height: 100%;
	max-height: none;
	object-fit: contain;
}

.video-hero__media .video-frame--ratio {
	aspect-ratio: auto;
}

/* =========================================
   UP NEXT - Desktop
   ========================================= */

.video-upnext__list {
    max-height: 650px;
    overflow-y: auto;
    overflow-x: hidden;

    scrollbar-width: none;
    -ms-overflow-style: none;

    -webkit-mask-image: linear-gradient(
        #fff 0%,
        #ffffffbf 88.99%,
        #ffffff73 94.09%,
        #ffffff26 98.93%,
        #ffffff0f 99.99%,
        #fff0 100%
    );

    mask-image: linear-gradient(
        #fff 0%,
        #ffffffbf 88.99%,
        #ffffff73 94.09%,
        #ffffff26 98.93%,
        #ffffff0f 99.99%,
        #fff0 100%
    );
}



@media (max-width: 1000px) {

    .video-upnext__list {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;

        width: 100%;
        max-width: 100%;

        gap: 16px;

        max-height: none;

        overflow-x: auto;
        overflow-y: hidden;

        padding: 0 0 10px;
        margin: 0;

        scrollbar-width: none;
        -ms-overflow-style: none;

        /* Remove vertical fade */
        -webkit-mask-image: none;
        mask-image: none;

        /* Smooth touch scrolling */
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }

    .video-upnext__list::-webkit-scrollbar {
        display: none;
    }

    .video-upnext__item {
        flex: 0 0 166px;
        width: 166px;
        min-width: 166px;
        display: flex;
        flex-direction: column;
        gap: 8px;
        padding: 0;
        border-bottom: 0;
		margin: 0px;
    }

    .video-upnext__title {
        order: 2;

        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;

        overflow: hidden;

        font-size: .875rem;
        line-height: 1.4;
    }

    .video-upnext__thumb {
        order: 1;

        width: 100%;
        aspect-ratio: 16 / 9;

        border-radius: 8px;
    }
	.video-recent__grid {
    display: flex;
		flex-direction: column;
		grid-template-columns: minmax(0, 2.3fr) minmax(0, 1fr);
		gap: 2.5rem;
	}
}


@media (max-width: 520px) {
       article.video-card {
        display: flex;
        flex-direction: row-reverse;
        gap: 10px;
        justify-content: space-between;
        align-items: flex-start;
    }
	.video-home .video-card__title {
		margin: 0rem 0 .35rem;
		    width: 270px;
	}
}

@media (max-width: 450px) {
	.video-home .video-card__title {
		margin: 0rem 0 .35rem;
		    width: 230px
	}
}
@media (max-width: 400px) {
	.video-home .video-card__title {
		margin: 0rem 0 .35rem;
		    width: 170px
	}
}
@media (max-width: 350px) {
	.video-home .video-card__title {
		margin: 0rem 0 .35rem;
		    width: 160px
	}
}
.video-video__description.entry-content p {
    letter-spacing: 0;
    font-size: 1.125rem;
    line-height: 1.8;
}
h1.video-video__title {
    font-size: 16px;
    font-weight: 600;
    line-height: normal;
}
.video-video__description.entry-content {
    text-align: center;
	width: 100%;
	margin: 0 auto;
}
.video-video__meta{
	text-align: center;
	width: 70%;
	margin: 0 auto;
}
.video-video__description.entry-content h2.video-video__title {
    /* font-size: clamp(1.4rem, 2.4vw, 1.9rem); */
    font-size: clamp(1.4rem, 2.4vw, 1.9rem);
    line-height: 1.2;
    font-weight: 700;
    text-align: center;
}
.video-video__meta {
    text-align: center;
    width: 70%;
    margin: 31px auto;
    display: block;
    font-size: 20px;
    font-weight: 700;
}
@media (max-width: 700px) {
	.video-video__meta {
		text-align: center;
		width: 100%;
		margin: 31px auto;
		display: block;
		font-size: 20px;
		font-weight: 700;
	}
	.video-video__description.entry-content {
    text-align: center;
	width: 100%;
	margin: 0 auto;
}
}