/* ── YouTube Page ─────────────────────────────────────────── */

.biff-youtube-wrap { padding-top: 8px; }

/* Hero frame */
.biff-yt-hero { margin-bottom: 56px; }

.biff-yt-hero-frame {
	position: relative;
	width: 100%;
	padding-bottom: 56.25%; /* 16:9 */
	background: var(--biff-cosmos-deep);
	border-radius: var(--biff-radius-card);
	overflow: hidden;
}

.biff-yt-hero-frame iframe,
.biff-yt-hero-frame .biff-yt-hero-placeholder {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: none;
}

.biff-yt-hero-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--biff-font-accent);
	font-size: 22px;
	color: rgba(255, 246, 226, 0.4);
	text-align: center;
	padding: 24px;
}

.biff-yt-hero-meta {
	margin-top: 16px;
}

.biff-yt-hero-meta h2 {
	font-family: var(--biff-font-display);
	font-size: 32px;
	color: var(--biff-sun);
}

/* Section heading */
.biff-section-title {
	font-family: var(--biff-font-display);
	font-size: 48px;
	color: var(--biff-cream);
	-webkit-text-stroke: 1px var(--biff-ink);
	text-shadow: 3px 3px 0 rgba(0,0,0,0.3);
	margin-bottom: 24px;
}

/* Video grid */
.biff-yt-grid-heading { margin-bottom: 4px; }

.biff-yt-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 24px;
	margin-bottom: 48px;
}

/* Polaroid-style video card */
.biff-yt-card {
	background: var(--biff-cream);
	border: var(--biff-border);
	border-radius: var(--biff-radius-card);
	box-shadow: var(--biff-shadow-btn);
	overflow: hidden;
	text-decoration: none;
	display: block;
	transition: transform 150ms ease-out, box-shadow 150ms ease-out;
}

.biff-yt-card:hover {
	transform: translate(-2px, -2px) rotate(-0.5deg);
	box-shadow: 7px 7px 0 var(--biff-ink);
}

.biff-yt-card-thumb {
	width: 100%;
	aspect-ratio: 16/9;
	object-fit: cover;
	display: block;
	border-bottom: 2px solid var(--biff-ink);
}

.biff-yt-card-body { padding: 12px 14px 16px; }

.biff-yt-card-title {
	font-family: var(--biff-font-accent);
	font-size: 19px;
	font-weight: 700;
	color: var(--biff-ink);
	line-height: 1.3;
	margin-bottom: 6px;
	/* rotation jitter applied inline */
}

.biff-yt-card-meta {
	font-family: var(--biff-font-body);
	font-size: 14px;
	color: rgba(22, 23, 43, 0.55);
	display: flex;
	gap: 8px;
}

/* Channel link */
.biff-yt-channel-link { margin-top: 8px; text-align: center; }

/* Load more */
.biff-yt-load-more-wrap {
	text-align: center;
	margin: 8px 0 32px;
}

#biff-yt-load-more:disabled {
	opacity: 0.5;
	cursor: wait;
	transform: none;
	box-shadow: var(--biff-shadow-btn);
}

/* Loading state */
.biff-yt-loading {
	font-family: var(--biff-font-accent);
	font-size: 22px;
	color: rgba(255, 246, 226, 0.4);
	text-align: center;
	padding: 40px;
}
