/* ===========================================================================
   SJ YouTube Feed - frontend.css
   Kortdesign inspireret af LinkedIn-feed. Brand: Sjorring.
   =========================================================================== */

.sjyt-wrap {
	font-family: 'Inter', sans-serif;
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 20px;
	box-sizing: border-box;
}

/* --- Sektions-header --- */
.sjyt-head {
	margin-bottom: 32px;
}
.sjyt-heading {
	font-family: 'Inter', sans-serif !important;
	font-size: 32px !important;
	font-weight: 700 !important;
	color: #00192F !important;
	margin: 0 0 8px !important;
	line-height: 1.2 !important;
	letter-spacing: -0.01em !important;
}
.sjyt-subtext {
	font-family: 'Inter', sans-serif !important;
	font-size: 17px !important;
	font-weight: 400 !important;
	color: #6B7280 !important;
	margin: 0 !important;
	line-height: 1.5 !important;
}

/* --- Grid --- */
.sjyt-feed {
	display: grid;
	gap: 20px;
}
.sjyt-cols-1 { grid-template-columns: minmax(0, 620px); }
.sjyt-cols-2 { grid-template-columns: repeat(2, 1fr); }
.sjyt-cols-3 { grid-template-columns: repeat(3, 1fr); }
.sjyt-cols-4 { grid-template-columns: repeat(4, 1fr); }

/* --- Kort --- */
.sjyt-card {
	background: #FFFFFF;
	border: 1px solid #E7E7E6;
	border-radius: 10px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	box-shadow: 0 1px 2px rgba(0, 25, 47, 0.04);
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.sjyt-card:hover {
	box-shadow: 0 8px 24px rgba(0, 25, 47, 0.10);
	transform: translateY(-2px);
}

/* --- Kort-header --- */
.sjyt-card-head {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 14px 16px 10px;
}
.sjyt-avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: #00192F;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}
.sjyt-avatar img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}
.sjyt-avatar-letter {
	color: #FFFFFF;
	font-weight: 700;
	font-size: 18px;
	line-height: 1;
}
.sjyt-card-meta {
	display: flex;
	flex-direction: column;
	line-height: 1.2;
	flex: 1;
	min-width: 0;
}
.sjyt-brand {
	font-size: 14px;
	font-weight: 700;
	color: #00192F;
}
.sjyt-sub {
	font-size: 12px;
	font-weight: 400;
	color: #6B7280;
}
.sjyt-yt-icon {
	flex-shrink: 0;
}

/* --- Kort-tekst --- */
.sjyt-card-text {
	padding: 0 16px 12px;
}
.sjyt-title {
	font-size: 15px;
	font-weight: 700;
	color: #00192F;
	margin: 0 0 4px;
	line-height: 1.35;
}
.sjyt-desc {
	font-size: 13px;
	font-weight: 400;
	color: #4B5563;
	margin: 0;
	line-height: 1.5;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* --- Media / video --- */
.sjyt-media {
	position: relative;
	margin-top: auto;
	aspect-ratio: 16 / 9;
	background: #00192F;
	cursor: pointer;
	overflow: hidden;
}
.sjyt-thumb {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.4s ease;
}
.sjyt-media:hover .sjyt-thumb {
	transform: scale(1.04);
}
.sjyt-play {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background: transparent !important;
	background-color: transparent !important;
	border: none !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	outline: none !important;
	padding: 0 !important;
	margin: 0 !important;
	min-width: 0 !important;
	min-height: 0 !important;
	line-height: 0 !important;
	cursor: pointer;
	opacity: 0.92;
	transition: opacity 0.2s ease, transform 0.2s ease;
	-webkit-appearance: none !important;
	appearance: none !important;
}
.sjyt-play:hover,
.sjyt-play:focus,
.sjyt-play:active {
	background: transparent !important;
	background-color: transparent !important;
	box-shadow: none !important;
	outline: none !important;
}
.sjyt-play svg {
	display: block;
	filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
}
.sjyt-media:hover .sjyt-play {
	opacity: 1;
	transform: translate(-50%, -50%) scale(1.08);
}

/* Iframe naar afspillet */
.sjyt-media iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

/* --- Responsiv --- */
@media (max-width: 1024px) {
	.sjyt-cols-3,
	.sjyt-cols-4 {
		grid-template-columns: repeat(2, 1fr);
	}
	.sjyt-heading { font-size: 28px !important; }
}
@media (max-width: 600px) {
	.sjyt-feed,
	.sjyt-cols-1,
	.sjyt-cols-2,
	.sjyt-cols-3,
	.sjyt-cols-4 {
		grid-template-columns: 1fr;
	}
	.sjyt-heading { font-size: 24px !important; }
	.sjyt-subtext { font-size: 15px !important; }
}
