/* ============================================================
   YouTube Videos Page
   ============================================================ */

/* ---- Shared card base ---- */
.yt-video-card-wrapper {
	position: relative;
	overflow: hidden;
	cursor: pointer;
	background: #000;
	display: block;
}

.yt-video-thumb,
.yt-video-card-wrapper iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: none;
}

.yt-video-thumb {
	object-fit: cover;
	object-position: center;
}

.yt-play-btn {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s ease;
}

.yt-play-btn img {
	position: static;
	width: auto;
	height: auto;
}

.yt-video-card-wrapper:hover .yt-play-btn {
	background: rgba(0, 0, 0, 0.2);
}

.yt-portrait .yt-play-btn {
	align-items: flex-end;
	justify-content: flex-start;
	padding: 0 0 14px 12px;
}

/* ============================================================
   Shorts Slider Section
   ============================================================ */

.yt-shorts-section {
	padding: 60px 0 0;
}

.yt-shorts-section .container {
    padding-bottom: 0;
}

section.yt-full-section .container {
    padding-top: 60px;
}

.yt-page-intro {
	margin-bottom: 36px;
}

/* Wrapper holds the arrows + slider */
.yt-shorts-wrap {
	position: relative;
	padding: 0;
}

.yt-play-btn img {
    width: 65px;
    height: 81px;
	position: relative;
	top: -70px;
}

/* Portrait card ratio (9:16) */
.yt-portrait {
	padding-bottom: 177.78%;
	height: 0;
	border-radius: 0px;
}

.yt-portrait::after {
	content: '';
	position: absolute;
	inset: 0;
	background: rgba(9, 23, 58, 0.54);
	pointer-events: none;
	z-index: 1;
}

.yt-portrait .yt-play-btn,
.yt-portrait .yt-short-title-bar {
	z-index: 2;
}

/* Title bar at bottom of each short */
.yt-short-title-bar {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	padding: 28px 12px 12px;
	background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 100%);
	color: #fff;
	font-family: Figtree, sans-serif;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.4;
	pointer-events: none;
}

/* Scrollable slider track */
.yt-shorts-slider {
	display: flex;
	gap: 16px;
	overflow-x: scroll;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
}

.yt-shorts-slider::-webkit-scrollbar {
	display: none;
}

/* 4 slides visible on desktop */
.yt-short-slide {
	flex: 0 0 calc((100% - 48px) / 4);
	scroll-snap-align: start;
}

/* Arrow buttons */
.yt-shorts-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 10;
	width: 60px;
	height: 60px;
	padding: 10px !important;
	background: none;
	border: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	flex-shrink: 0;
	border-radius: 100px;
	background-color: #13B317;
}

.yt-shorts-arrow:hover {
	opacity: 0.75;
}

.yt-shorts-prev {
	left: -40px;
}

.yt-shorts-next {
	right: -40px;
}

@media (max-width: 1440px){
	.yt-shorts-prev{
		left: -30px;
	}

	.yt-shorts-next {
		right: -30px;
}
}

@media (max-width: 767px){
	.yt-shorts-prev{
		left: -10px;
	}

	.yt-shorts-next {
		right: -10px;
}
}

.yt-shorts-arrow.yt-arrow-disabled {
	opacity: 0.35;
	pointer-events: none;
}

/* ============================================================
   Full Videos Section
   ============================================================ */

.yt-full-section {
	padding: 0 0 72px;
}

.yt-full-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 28px;
}

/* Landscape card (16:9) */
.yt-landscape {
	padding-bottom: 56.25%;
	height: 0;
	border-radius: 0px;
}


/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 1024px) {
	.yt-full-title {
		font-size: 17px;
		max-width: 80%;
	}
}

@media (max-width: 1024px) {
	/* 3 slides */
	.yt-short-slide {
		flex: 0 0 calc((100% - 32px) / 3);
	}
}

@media (max-width: 768px) {
	.yt-shorts-section {
		padding: 40px 0 32px;
	}

	.yt-shorts-wrap {
		padding: 0;
	}

	/* 2 slides */
	.yt-short-slide {
		flex: 0 0 calc((100% - 16px) / 2);
	}

	.yt-full-grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.yt-full-title {
		font-size: 16px;
		max-width: 100%;
	}

	.yt-full-section {
		padding-bottom: 48px;
	}
}

@media (max-width: 480px) {
	.yt-shorts-wrap {
		padding: 0;
	}

	.yt-shorts-arrow {
		width: 48px;
		height: 48px;
	}

	.yt-shorts-arrow svg {
		width: 48px;
		height: 48px;
	}

	/* 1 slide + peek */
	.yt-short-slide {
		flex: 0 0 100%;
	}
}

/* No results */
.yt-no-results {
	font-family: Figtree, sans-serif;
	font-size: 16px;
	color: #666;
	padding: 60px 0;
}
