/* Studio Video Library
   Complete replacement stylesheet
   Scope: plugin grid + single video content only
*/

/* =========================================================
   VIDEO GRID
   ========================================================= */

.svl-video-grid {
	display: grid;
	grid-template-columns: repeat(var(--svl-columns, 3), minmax(0, 1fr));
	gap: 24px;
	width: min(1100px, calc(100% - 40px));
	margin: 0 auto;
	padding: 24px 0 36px;
}

.svl-video-card {
	margin: 0;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.10);
	border-radius: 8px;
	background: #252525;
}

.svl-video-card-link {
	display: flex;
	flex-direction: column;
	height: 100%;
	color: inherit;
	text-decoration: none;
}

.svl-video-card-image-wrap {
	position: relative;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #111;
}

.svl-video-card-image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.svl-video-card-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	color: #9d9d9d;
	font-size: 42px;
}

.svl-play-button {
	position: absolute;
	top: 50%;
	left: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 58px;
	height: 58px;
	border: 1px solid rgba(255, 255, 255, 0.25);
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.72);
	transform: translate(-50%, -50%);
	transition:
		transform 0.15s ease,
		background 0.15s ease,
		border-color 0.15s ease;
}

.svl-play-triangle {
	width: 0;
	height: 0;
	margin-left: 4px;
	border-top: 9px solid transparent;
	border-bottom: 9px solid transparent;
	border-left: 15px solid #ffffff;
}

.svl-video-card-body {
	flex: 1;
	padding: 16px 18px 18px;
}

.svl-video-card-title {
	margin: 0 0 8px;
	color: #f4f4f4;
	font-size: 1.05rem;
	font-weight: 700;
	line-height: 1.3;
	transition: color 0.15s ease;
}

.svl-video-card-excerpt {
	margin: 0;
	color: #b8b8b8;
	font-size: 0.92rem;
	line-height: 1.5;
}

.svl-video-card-link:hover .svl-video-card-title,
.svl-video-card-link:focus .svl-video-card-title {
	color: #f4bf19;
}

.svl-video-card-link:hover .svl-play-button,
.svl-video-card-link:focus .svl-play-button {
	background: rgba(244, 191, 25, 0.92);
	border-color: rgba(255, 255, 255, 0.45);
	transform: translate(-50%, -50%) scale(1.07);
}

.svl-no-videos {
	width: min(1100px, calc(100% - 40px));
	margin: 0 auto;
	padding: 24px 0 36px;
	color: #d0d0d0;
}


/* =========================================================
   SINGLE VIDEO PAGE CONTENT
   ========================================================= */

body.single-studio_video .site,
body.single-studio_video .site-content,
body.single-studio_video .content-area,
body.single-studio_video .site-main {
	background: #1b1b1b;
}

.svl-single-video-page {
	width: min(1100px, calc(100% - 40px));
	margin: 0 auto;
	padding: 36px 0 48px;
	background: transparent;
}

.svl-single-video {
	width: 100%;
	background: transparent;
}

.svl-single-video-header {
	margin: 0 0 22px;
	padding: 0;
}

.svl-single-video-title {
	margin: 0;
	color: #f4f4f4;
	font-size: clamp(1.8rem, 3vw, 2.4rem);
	font-weight: 700;
	line-height: 1.2;
}

.svl-video-player-wrap {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #000;
	border: 1px solid rgba(255, 255, 255, 0.10);
	border-radius: 6px;
}

.svl-video-player-wrap iframe {
	position: absolute;
	inset: 0;
	display: block;
	width: 100% !important;
	height: 100% !important;
	border: 0;
}

.svl-single-video-content {
	margin-top: 24px;
	color: #c8c8c8;
	font-size: 1rem;
	line-height: 1.65;
}

.svl-single-video-content p:first-child {
	margin-top: 0;
}

.svl-single-video-content p:last-child {
	margin-bottom: 0;
}

.svl-single-video-content a {
	color: #f4bf19;
}

.svl-single-video-categories {
	margin-top: 24px;
	padding-top: 16px;
	border-top: 1px solid rgba(255, 255, 255, 0.10);
	color: #9f9f9f;
	font-size: 0.92rem;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {
	.svl-video-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 600px) {
	.svl-video-grid {
		grid-template-columns: 1fr;
		gap: 18px;
		width: min(100% - 24px, 1100px);
		padding: 18px 0 28px;
	}

	.svl-video-card-body {
		padding: 14px 16px 16px;
	}

	.svl-single-video-page {
		width: min(100% - 24px, 1100px);
		padding: 24px 0 36px;
	}

	.svl-single-video-header {
		margin-bottom: 16px;
	}

	.svl-single-video-title {
		font-size: 1.65rem;
	}
}
