/* ============================================================
	Captain Feed for YouTube — Shorts Layout Style 1
	Vertical 9:16 card, TikTok/Reels style grid
	============================================================ */

/* ── Grid wrapper ──────────────────────────────────────────── */
.captfyt-shorts-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 14px;
	padding: 4px 0;
}

/* ── Single card ───────────────────────────────────────────── */
.captfyt-short-card {
	position: relative;
	border-radius: 14px;
	overflow: hidden;
	background: #0f0f0f;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	cursor: pointer;
}

.captfyt-short-card:hover {
	transform: translateY(-4px) scale(1.02);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

/* ── Thumb wrap — enforces 9:16 ratio ─────────────────────── */
.captfyt-short-card-thumb-wrap {
	display: block;
	position: relative;
	padding-top: 177.77%;          /* 16/9 inverted = 9:16 */
	overflow: hidden;
	text-decoration: none;
}

.captfyt-short-card-thumbnail {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
	border-radius: 0;
	transition: transform 0.3s ease;
}

.captfyt-short-card:hover .captfyt-short-card-thumbnail {
	transform: scale(1.04);
}

/* ── Shorts red badge ──────────────────────────────────────── */
.captfyt-short-card-badge {
	position: absolute;
	top: 10px;
	left: 10px;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	background: #ff0000;
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	font-family: Arial, sans-serif;
	letter-spacing: 0.04em;
	padding: 3px 7px 3px 5px;
	border-radius: 20px;
	line-height: 1;
	z-index: 3;
}

/* ── Play button ───────────────────────────────────────────── */
.captfyt-short-card-play {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 48px;
	height: 48px;
	background: rgba(0, 0, 0, 0.55);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity 0.2s ease, transform 0.2s ease;
	z-index: 3;
	backdrop-filter: blur(2px);
}

.captfyt-short-card:hover .captfyt-short-card-play {
	opacity: 1;
	transform: translate(-50%, -50%) scale(1.08);
}

/* ── Bottom gradient overlay ───────────────────────────────── */
.captfyt-short-card-overlay {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	padding: 28px 10px 10px;
	background: linear-gradient(
		to top,
		rgba(0, 0, 0, 0.85) 0%,
		rgba(0, 0, 0, 0.5) 50%,
		transparent 100%
	);
	z-index: 2;
}

.captfyt-short-card-title {
	margin: 0 0 4px;
	font-size: 12px;
	font-weight: 600;
	color: #ffffff;
	line-height: 1.3;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	font-family: Arial, sans-serif;
	text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.captfyt-short-card-channel {
	display: block;
	font-size: 10px;
	color: rgba(255, 255, 255, 0.75);
	font-family: Arial, sans-serif;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* ── Responsive tweaks ─────────────────────────────────────── */
@media (max-width: 480px) {
	.captfyt-shorts-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 10px;
	}
}

@media (min-width: 1200px) {
	.captfyt-shorts-grid {
		grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	}
}
