.jhc-yt-grid {
	display: grid;
	grid-template-columns: repeat(var(--jhc-yt-cols, 3), minmax(0, 1fr));
	gap: 24px;
	margin: 0 0 1.5em;
}
@media (max-width: 900px) {
	.jhc-yt-grid { grid-template-columns: repeat(min(var(--jhc-yt-cols, 3), 2), minmax(0, 1fr)); }
}
@media (max-width: 600px) {
	.jhc-yt-grid { grid-template-columns: 1fr; gap: 20px; }
}
.jhc-yt-item { margin: 0; }
.jhc-yt-player {
	position: relative;
	aspect-ratio: 16 / 9;
	background: #000;
	border-radius: 8px;
	overflow: hidden;
}
.jhc-yt-player iframe,
.jhc-yt-thumb {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}
.jhc-yt-thumb {
	padding: 0;
	margin: 0;
	background: #000;
	cursor: pointer;
	display: block;
}
.jhc-yt-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .3s ease, opacity .3s ease;
}
.jhc-yt-thumb:hover img,
.jhc-yt-thumb:focus-visible img { transform: scale(1.04); opacity: .85; }
.jhc-yt-thumb:focus-visible { outline: 3px solid #fff; outline-offset: -3px; }
.jhc-yt-play {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 68px;
	height: 48px;
	transform: translate(-50%, -50%);
	background: rgba(23, 23, 23, .8);
	border-radius: 12px;
	transition: background .2s ease;
}
.jhc-yt-play::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 54%;
	transform: translate(-50%, -50%);
	border-style: solid;
	border-width: 10px 0 10px 17px;
	border-color: transparent transparent transparent #fff;
}
.jhc-yt-thumb:hover .jhc-yt-play,
.jhc-yt-thumb:focus-visible .jhc-yt-play { background: #f00; }
.jhc-yt-meta { padding-top: 10px; }
.jhc-yt-title {
	font-size: 1rem;
	line-height: 1.35;
	margin: 0 0 4px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.jhc-yt-date { font-size: .85rem; opacity: .7; }
.jhc-yt-error {
	padding: 12px 16px;
	border-left: 4px solid #d63638;
	background: #fcf0f1;
	color: #1d2327;
}

/* ---------- Badges ---------- */
.jhc-yt-badge,
.jhc-yt-duration {
	position: absolute;
	font: 700 11px/1 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	letter-spacing: .06em;
	color: #fff;
	padding: 5px 7px;
	border-radius: 4px;
	pointer-events: none;
}
.jhc-yt-badge { top: 10px; left: 10px; display: inline-flex; align-items: center; gap: 6px; }
.jhc-yt-badge-live { background: #e00; box-shadow: 0 0 0 0 rgba(238, 0, 0, .6); animation: jhc-yt-pulse 2s infinite; }
.jhc-yt-badge-live i { width: 7px; height: 7px; border-radius: 50%; background: #fff; display: inline-block; }
.jhc-yt-badge-upcoming { background: rgba(0, 0, 0, .8); border: 1px solid rgba(255, 255, 255, .5); }
.jhc-yt-badge-past { background: rgba(0, 0, 0, .75); }
.jhc-yt-duration { right: 8px; bottom: 8px; background: rgba(0, 0, 0, .8); letter-spacing: .02em; }
.jhc-yt-live-now { color: #e00; font-weight: 600; opacity: 1; }
.jhc-yt-live .jhc-yt-player { box-shadow: 0 0 0 3px #e00; }
@keyframes jhc-yt-pulse {
	0% { box-shadow: 0 0 0 0 rgba(238, 0, 0, .6); }
	70% { box-shadow: 0 0 0 10px rgba(238, 0, 0, 0); }
	100% { box-shadow: 0 0 0 0 rgba(238, 0, 0, 0); }
}

/* ---------- Cinematic lightbox ---------- */
html.jhc-yt-lock, html.jhc-yt-lock body { overflow: hidden; }
.jhc-yt-lb {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 4vh 4vw;
	opacity: 0;
	transition: opacity .35s ease;
}
.jhc-yt-lb.is-open { opacity: 1; }
.jhc-yt-lb-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(4, 4, 6, .9);
	-webkit-backdrop-filter: blur(14px) saturate(120%);
	backdrop-filter: blur(14px) saturate(120%);
	cursor: zoom-out;
}
/* Ambient light: a blurred copy of the thumbnail glowing behind the video. */
.jhc-yt-lb-glow {
	position: absolute;
	left: 50%;
	top: 50%;
	width: min(1100px, 80vw);
	aspect-ratio: 16 / 9;
	transform: translate(-50%, -54%) scale(1.15);
	background-size: cover;
	background-position: center;
	filter: blur(90px) saturate(160%);
	opacity: 0;
	transition: opacity .8s ease .15s;
	pointer-events: none;
}
.jhc-yt-lb.is-open .jhc-yt-lb-glow { opacity: .75; }
.jhc-yt-lb-vignette {
	position: absolute;
	inset: 0;
	background: radial-gradient(ellipse at center, transparent 45%, rgba(0, 0, 0, .75) 100%);
	pointer-events: none;
}
.jhc-yt-lb-stage {
	position: relative;
	width: min(1200px, 84vw, calc((86vh - 70px) * 16 / 9));
	transform: scale(.92) translateY(16px);
	transition: transform .45s cubic-bezier(.2, .8, .2, 1);
}
.jhc-yt-lb.is-open .jhc-yt-lb-stage { transform: none; }
.jhc-yt-lb-frame {
	position: relative;
	aspect-ratio: 16 / 9;
	background: #000;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 30px 90px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .06);
	opacity: 0;
	transition: opacity .5s ease;
}
.jhc-yt-lb-frame.is-in { opacity: 1; }
.jhc-yt-lb-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.jhc-yt-lb-caption {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 16px;
	color: #f2f2f2;
	font: 500 17px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	text-shadow: 0 1px 8px rgba(0, 0, 0, .6);
}
.jhc-yt-lb-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jhc-yt-lb-badge {
	flex: none;
	font: 700 11px/1 system-ui, sans-serif;
	letter-spacing: .06em;
	padding: 5px 7px;
	border-radius: 4px;
	background: rgba(255, 255, 255, .15);
}
.jhc-yt-lb-badge.is-live { background: #e00; }
.jhc-yt-lb-close,
.jhc-yt-lb-nav {
	position: absolute;
	z-index: 2;
	border: 0;
	color: #fff;
	background: rgba(255, 255, 255, .08);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background .2s ease, transform .2s ease;
	padding: 0;
	line-height: 1;
}
.jhc-yt-lb-close { top: 18px; right: 18px; width: 46px; height: 46px; font-size: 30px; }
.jhc-yt-lb-nav { top: 50%; width: 54px; height: 54px; font-size: 38px; transform: translateY(-50%); }
.jhc-yt-lb-prev { left: 2vw; }
.jhc-yt-lb-next { right: 2vw; }
.jhc-yt-lb-close:hover, .jhc-yt-lb-nav:hover,
.jhc-yt-lb-close:focus-visible, .jhc-yt-lb-nav:focus-visible { background: rgba(255, 255, 255, .22); outline: none; }
.jhc-yt-lb-nav[hidden] { display: none; }
@media (max-width: 700px) {
	.jhc-yt-lb { padding: 0 12px; }
	.jhc-yt-lb-stage { width: 100%; }
	.jhc-yt-lb-nav { top: auto; bottom: 24px; transform: none; width: 46px; height: 46px; font-size: 30px; }
	.jhc-yt-lb-prev { left: calc(50% - 56px); }
	.jhc-yt-lb-next { right: calc(50% - 56px); }
	.jhc-yt-lb-close { top: 12px; right: 12px; }
	.jhc-yt-lb-caption { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
	.jhc-yt-lb, .jhc-yt-lb-stage, .jhc-yt-lb-frame, .jhc-yt-lb-glow { transition: none; }
	.jhc-yt-badge-live { animation: none; }
}

/* ---------- Section wrapper ---------- */
.jhc-yt-section { position: relative; margin: 0 0 1.5em; box-sizing: border-box; }
.jhc-yt-section .jhc-yt-grid { margin: 0; }
.jhc-yt-section.is-full {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
}
html:has(.jhc-yt-section.is-full) { overflow-x: clip; }
.jhc-yt-section.is-full .jhc-yt-inner { max-width: 1240px; margin: 0 auto; }

/* ---------- Dark blue & black look ---------- */
.jhc-yt-look-dark {
	--jhc-yt-blue: #1e6bff;
	color: #fff;
	padding: 64px 24px;
	background:
		radial-gradient(ellipse 60% 70% at 15% 0%, rgba(30, 107, 255, .45), transparent 70%),
		radial-gradient(ellipse 50% 60% at 95% 100%, rgba(0, 72, 200, .40), transparent 70%),
		linear-gradient(160deg, #04122e 0%, #020611 55%, #000 100%);
	overflow: clip; /* clip (not hidden) so the Videos page menu can stick */
}
.jhc-yt-look-dark:not(.is-full) { border-radius: 14px; padding: 40px 24px; }
.jhc-yt-look-dark .jhc-yt-item {
	background: linear-gradient(165deg, rgba(23, 63, 150, .55) 0%, rgba(7, 18, 45, .9) 55%, #02050d 100%);
	border: 1px solid rgba(90, 150, 255, .18);
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
	transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.jhc-yt-look-dark .jhc-yt-item:hover {
	transform: translateY(-4px);
	border-color: rgba(90, 150, 255, .5);
	box-shadow: 0 18px 40px rgba(0, 0, 0, .55), 0 0 30px rgba(30, 107, 255, .25);
}
.jhc-yt-look-dark .jhc-yt-player { border-radius: 0; }
.jhc-yt-look-dark .jhc-yt-meta { padding: 14px 16px 16px; }
.jhc-yt-look-dark .jhc-yt-title { color: #fff; }
.jhc-yt-look-dark .jhc-yt-date { color: rgba(255, 255, 255, .72); opacity: 1; }
.jhc-yt-look-dark .jhc-yt-live-now { color: #ff4d4d; }
.jhc-yt-look-dark .jhc-yt-thumb:hover .jhc-yt-play,
.jhc-yt-look-dark .jhc-yt-thumb:focus-visible .jhc-yt-play { background: var(--jhc-yt-blue); }
.jhc-yt-look-dark .jhc-yt-live .jhc-yt-player { box-shadow: none; }
.jhc-yt-look-dark .jhc-yt-item.jhc-yt-live { border-color: #e00; box-shadow: 0 0 0 1px #e00, 0 10px 30px rgba(0, 0, 0, .45); }
.jhc-yt-look-dark .jhc-yt-empty { color: #fff; text-align: center; }
@media (max-width: 600px) {
	.jhc-yt-look-dark { padding: 40px 16px; }
}

/* Lightbox in the same blue & black tones */
.jhc-yt-lb-backdrop {
	background:
		radial-gradient(ellipse 70% 60% at 20% 10%, rgba(30, 90, 230, .35), transparent 70%),
		radial-gradient(ellipse 60% 60% at 85% 95%, rgba(0, 60, 180, .30), transparent 70%),
		linear-gradient(160deg, rgba(3, 14, 40, .94), rgba(0, 0, 0, .96));
}
.jhc-yt-lb-frame { box-shadow: 0 30px 90px rgba(0, 0, 0, .85), 0 0 60px rgba(30, 107, 255, .25), 0 0 0 1px rgba(90, 150, 255, .2); }
.jhc-yt-lb-caption { color: #fff; }
.jhc-yt-lb-close, .jhc-yt-lb-nav { background: rgba(30, 107, 255, .22); border: 1px solid rgba(120, 170, 255, .3); }
.jhc-yt-lb-close:hover, .jhc-yt-lb-nav:hover,
.jhc-yt-lb-close:focus-visible, .jhc-yt-lb-nav:focus-visible { background: rgba(30, 107, 255, .55); }

/* ---------- Grid swap animation ---------- */
.jhc-yt-grid { transition: opacity .22s ease, transform .22s ease; }
.jhc-yt-grid.is-loading { opacity: .25; transform: translateY(6px); pointer-events: none; }
.jhc-yt-grid.is-swapped .jhc-yt-item { animation: jhc-yt-rise .5s cubic-bezier(.2, .8, .2, 1) both; }
.jhc-yt-grid.is-swapped .jhc-yt-item:nth-child(2) { animation-delay: .04s; }
.jhc-yt-grid.is-swapped .jhc-yt-item:nth-child(3) { animation-delay: .08s; }
.jhc-yt-grid.is-swapped .jhc-yt-item:nth-child(4) { animation-delay: .12s; }
.jhc-yt-grid.is-swapped .jhc-yt-item:nth-child(n+5) { animation-delay: .16s; }
@keyframes jhc-yt-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- Playlist buttons: one slim, quiet line ---------- */
.jhc-yt-playlists {
	margin-top: 28px;
	position: relative;
	-webkit-mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
	mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
}
.jhc-yt-pl-track {
	display: flex;
	gap: 8px;
	overflow-x: auto;
	padding: 4px 24px;
	scroll-snap-type: x proximity;
	scrollbar-width: none;
	justify-content: safe center;
}
.jhc-yt-pl-track::-webkit-scrollbar { display: none; }
.jhc-yt-pl {
	flex: none;
	scroll-snap-align: center;
	position: relative;
	overflow: hidden;
	font: 500 12px/1 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	letter-spacing: .02em;
	white-space: nowrap;
	padding: 7px 14px;
	margin: 0;
	border-radius: 999px;
	border: 1px solid currentColor;
	border-color: rgba(128, 128, 128, .35);
	background: transparent;
	color: inherit;
	opacity: .7;
	cursor: pointer;
	transition: opacity .25s ease, border-color .25s ease, background .25s ease, transform .25s ease, color .25s ease;
	animation: jhc-yt-pl-in .5s cubic-bezier(.2, .8, .2, 1) both;
}
.jhc-yt-pl:nth-child(2) { animation-delay: .05s; }
.jhc-yt-pl:nth-child(3) { animation-delay: .1s; }
.jhc-yt-pl:nth-child(4) { animation-delay: .15s; }
.jhc-yt-pl:nth-child(5) { animation-delay: .2s; }
.jhc-yt-pl:nth-child(n+6) { animation-delay: .25s; }
@keyframes jhc-yt-pl-in { from { opacity: 0; transform: translateY(8px); } }
/* Soft light that sweeps across on hover. */
.jhc-yt-pl::before {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: -60%;
	width: 50%;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .18), transparent);
	transform: skewX(-20deg);
	transition: left .6s ease;
	pointer-events: none;
}
.jhc-yt-pl:hover::before { left: 120%; }
.jhc-yt-pl:hover,
.jhc-yt-pl:focus-visible { opacity: 1; transform: translateY(-1px); outline: none; border-color: rgba(128, 128, 128, .7); }
.jhc-yt-pl.is-active { opacity: 1; border-color: currentColor; }

/* Dark look */
.jhc-yt-look-dark .jhc-yt-pl { color: rgba(255, 255, 255, .85); border-color: rgba(120, 165, 255, .22); background: rgba(10, 30, 80, .25); }
.jhc-yt-look-dark .jhc-yt-pl:hover,
.jhc-yt-look-dark .jhc-yt-pl:focus-visible { color: #fff; border-color: rgba(120, 165, 255, .55); box-shadow: 0 0 14px rgba(30, 107, 255, .25); }
.jhc-yt-look-dark .jhc-yt-pl.is-active { color: #fff; border-color: rgba(90, 150, 255, .7); background: rgba(30, 107, 255, .22); }

@media (prefers-reduced-motion: reduce) {
	.jhc-yt-pl, .jhc-yt-grid.is-swapped .jhc-yt-item { animation: none; }
	.jhc-yt-pl::before { display: none; }
}

/* ---------- Videos page ---------- */
.jhc-yt-page .jhc-yt-page-title {
	margin: 0 0 18px;
	text-align: center;
	font-size: clamp(1.6rem, 3vw, 2.4rem);
	line-height: 1.2;
	letter-spacing: -.01em;
}
.jhc-yt-look-dark .jhc-yt-page-title { color: #fff; }
.jhc-yt-page-nav {
	position: sticky;
	top: var(--jhc-yt-sticky-top, 0px);
	z-index: 50;
	margin: 0 0 8px;
	padding: 10px 0;
	transition: background .3s ease, box-shadow .3s ease;
}
.jhc-yt-look-dark .jhc-yt-page-nav { margin: 0 -24px 8px; }
.admin-bar .jhc-yt-page-nav { top: calc(var(--jhc-yt-sticky-top, 0px) + 32px); }
@media (max-width: 782px) { .jhc-yt-look-dark .jhc-yt-page-nav { margin: 0 -24px 8px; }
.admin-bar .jhc-yt-page-nav { top: var(--jhc-yt-sticky-top, 0px); } }
.jhc-yt-look-dark .jhc-yt-page-nav.is-stuck {
	background: rgba(3, 10, 28, .82);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, .35), inset 0 -1px 0 rgba(90, 150, 255, .15);
}
.jhc-yt-look-plain .jhc-yt-page-nav.is-stuck { background: rgba(255, 255, 255, .92); box-shadow: 0 6px 18px rgba(0, 0, 0, .08); }
a.jhc-yt-pl { text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
a.jhc-yt-pl.is-live { border-color: rgba(238, 0, 0, .6); }
.jhc-yt-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #e00;
	display: inline-block;
	flex: none;
	animation: jhc-yt-blink 1.4s ease-in-out infinite;
}
@keyframes jhc-yt-blink { 50% { opacity: .3; } }

.jhc-yt-cat { padding-top: 36px; }
.jhc-yt-cat:first-of-type { padding-top: 20px; }
.jhc-yt-cat-head {
	display: flex;
	align-items: baseline;
	gap: 12px;
	margin: 0 0 18px;
}
.jhc-yt-cat-title {
	margin: 0;
	font-size: clamp(1.15rem, 2vw, 1.45rem);
	line-height: 1.25;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 70%;
}
.jhc-yt-cat-meta { font-size: .82rem; opacity: .6; white-space: nowrap; }
.jhc-yt-cat-line {
	flex: 1;
	height: 1px;
	align-self: center;
	background: linear-gradient(90deg, rgba(128, 128, 128, .35), transparent);
}
.jhc-yt-look-dark .jhc-yt-cat-title { color: #fff; }
.jhc-yt-look-dark .jhc-yt-cat-meta { color: rgba(255, 255, 255, .75); }
.jhc-yt-look-dark .jhc-yt-cat-line { background: linear-gradient(90deg, rgba(90, 150, 255, .45), transparent); }

/* Tighter cards on the Videos page */
.jhc-yt-page .jhc-yt-grid { gap: 20px; }
.jhc-yt-page .jhc-yt-title { font-size: .95rem; }
.jhc-yt-page.jhc-yt-look-dark .jhc-yt-meta { padding: 12px 14px 14px; }
@media (max-width: 1100px) {
	.jhc-yt-page .jhc-yt-grid { grid-template-columns: repeat(min(var(--jhc-yt-cols, 4), 3), minmax(0, 1fr)); }
}
@media (max-width: 900px) {
	.jhc-yt-page .jhc-yt-grid { grid-template-columns: repeat(min(var(--jhc-yt-cols, 4), 2), minmax(0, 1fr)); gap: 14px; }
}
@media (max-width: 600px) {
	.jhc-yt-page .jhc-yt-grid { grid-template-columns: 1fr; }
	.jhc-yt-look-dark .jhc-yt-page-nav { margin: 0 -16px 4px; }
	.jhc-yt-cat-title { max-width: 60%; }
}

.jhc-yt-grid .jhc-yt-item.is-new { animation: jhc-yt-rise .5s cubic-bezier(.2, .8, .2, 1) both; }

.jhc-yt-more-wrap { text-align: center; margin-top: 22px; }
.jhc-yt-more {
	font: 500 13px/1 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	letter-spacing: .03em;
	padding: 10px 22px;
	border-radius: 999px;
	cursor: pointer;
	color: inherit;
	background: transparent;
	border: 1px solid rgba(128, 128, 128, .4);
	transition: background .25s ease, border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.jhc-yt-more:hover, .jhc-yt-more:focus-visible { transform: translateY(-1px); border-color: rgba(128, 128, 128, .8); outline: none; }
.jhc-yt-look-dark .jhc-yt-more { color: #fff; border-color: rgba(120, 165, 255, .35); background: rgba(10, 30, 80, .35); }
.jhc-yt-look-dark .jhc-yt-more:hover,
.jhc-yt-look-dark .jhc-yt-more:focus-visible { border-color: rgba(120, 165, 255, .75); background: rgba(30, 107, 255, .25); box-shadow: 0 0 18px rgba(30, 107, 255, .3); }
.jhc-yt-more.is-loading { opacity: .6; cursor: progress; }
.jhc-yt-more.is-loading::after {
	content: "";
	display: inline-block;
	width: 10px;
	height: 10px;
	margin-left: 8px;
	vertical-align: -1px;
	border: 2px solid currentColor;
	border-right-color: transparent;
	border-radius: 50%;
	animation: jhc-yt-spin .7s linear infinite;
}
@keyframes jhc-yt-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
	.jhc-yt-dot, .jhc-yt-grid .jhc-yt-item.is-new { animation: none; }
}

/* ---------- Videos page v2: search, picker, panel ---------- */
.jhc-yt-search {
	position: relative;
	max-width: 620px;
	margin: 0 auto 18px;
}
.jhc-yt-search-icon {
	position: absolute;
	left: 18px;
	top: 50%;
	transform: translateY(-50%);
	opacity: .7;
	pointer-events: none;
	z-index: 1;
}
.jhc-yt-search-input {
	width: 100%;
	box-sizing: border-box;
	font: 400 16px/1.2 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	padding: 14px 48px 14px 48px;
	border-radius: 999px;
	border: 1px solid rgba(128, 128, 128, .35);
	background: rgba(255, 255, 255, .9);
	color: #111;
	outline: none;
	transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
	-webkit-appearance: none;
	appearance: none;
}
.jhc-yt-search-input::-webkit-search-cancel-button { display: none; }
.jhc-yt-search-input:focus { border-color: #1e6bff; box-shadow: 0 0 0 4px rgba(30, 107, 255, .18); }
.jhc-yt-search-clear {
	position: absolute;
	right: 10px;
	top: 50%;
	transform: translateY(-50%);
	width: 32px;
	height: 32px;
	border-radius: 50%;
	border: 0;
	background: rgba(128, 128, 128, .18);
	color: inherit;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	padding: 0;
}
.jhc-yt-look-dark .jhc-yt-search-icon { color: #fff; }
.jhc-yt-look-dark .jhc-yt-search-input {
	background: rgba(8, 22, 60, .55);
	color: #fff;
	border-color: rgba(120, 165, 255, .28);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
}
.jhc-yt-look-dark .jhc-yt-search-input::placeholder { color: rgba(255, 255, 255, .55); }
.jhc-yt-look-dark .jhc-yt-search-input:focus { border-color: rgba(120, 165, 255, .8); box-shadow: 0 0 0 4px rgba(30, 107, 255, .22), 0 0 30px rgba(30, 107, 255, .25); }
.jhc-yt-look-dark .jhc-yt-search-clear { color: #fff; background: rgba(255, 255, 255, .12); }

/* The "+N more playlists" chip */
.jhc-yt-pl-open { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.jhc-yt-pl-open svg { transition: transform .25s ease; }
.jhc-yt-pl-open[aria-expanded="true"] svg { transform: rotate(180deg); }

/* Panel with every playlist */
.jhc-yt-panel {
	position: relative;
	margin: 4px 0 10px;
	padding: 14px;
	border-radius: 14px;
	border: 1px solid rgba(128, 128, 128, .25);
	background: rgba(255, 255, 255, .97);
	box-shadow: 0 20px 50px rgba(0, 0, 0, .18);
	opacity: 0;
	transform: translateY(-8px);
	transition: opacity .22s ease, transform .22s ease;
}
.jhc-yt-panel.is-open { opacity: 1; transform: none; }
.jhc-yt-look-dark .jhc-yt-panel {
	background: rgba(4, 14, 38, .92);
	border-color: rgba(90, 150, 255, .22);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
	box-shadow: 0 24px 60px rgba(0, 0, 0, .55), 0 0 40px rgba(30, 107, 255, .12);
}
.jhc-yt-panel-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.jhc-yt-panel-filter {
	flex: 1;
	min-width: 0;
	font: 400 14px/1.2 system-ui, sans-serif;
	padding: 9px 14px;
	border-radius: 999px;
	border: 1px solid rgba(128, 128, 128, .35);
	background: transparent;
	color: inherit;
	outline: none;
}
.jhc-yt-panel-filter:focus { border-color: #1e6bff; }
.jhc-yt-look-dark .jhc-yt-panel-filter { color: #fff; border-color: rgba(120, 165, 255, .3); }
.jhc-yt-look-dark .jhc-yt-panel-filter::placeholder { color: rgba(255, 255, 255, .5); }
.jhc-yt-panel-count { font-size: 12px; opacity: .6; white-space: nowrap; }
.jhc-yt-panel-close {
	width: 30px; height: 30px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
	background: rgba(128, 128, 128, .15); color: inherit; font-size: 20px; line-height: 1;
}
.jhc-yt-look-dark .jhc-yt-panel-count, .jhc-yt-look-dark .jhc-yt-panel-close { color: #fff; }
.jhc-yt-panel-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
	gap: 4px 10px;
	max-height: min(52vh, 420px);
	overflow-y: auto;
	overscroll-behavior: contain;
	padding-right: 4px;
	scrollbar-width: thin;
}
.jhc-yt-panel-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	text-align: left;
	font: 400 13.5px/1.3 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	padding: 8px 10px;
	border-radius: 8px;
	border: 0;
	background: transparent;
	color: inherit;
	cursor: pointer;
	transition: background .15s ease, transform .15s ease;
}
.jhc-yt-panel-item[hidden] { display: none; }
.jhc-yt-panel-item:hover, .jhc-yt-panel-item:focus-visible { background: rgba(30, 107, 255, .1); outline: none; transform: translateX(2px); }
.jhc-yt-panel-item.is-active { background: rgba(30, 107, 255, .16); font-weight: 600; }
.jhc-yt-panel-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jhc-yt-panel-num {
	flex: none;
	font-size: 11px;
	min-width: 22px;
	text-align: center;
	padding: 2px 6px;
	border-radius: 999px;
	background: rgba(128, 128, 128, .18);
	opacity: .85;
}
.jhc-yt-look-dark .jhc-yt-panel-item { color: rgba(255, 255, 255, .88); }
.jhc-yt-look-dark .jhc-yt-panel-item:hover, .jhc-yt-look-dark .jhc-yt-panel-item:focus-visible { background: rgba(30, 107, 255, .2); color: #fff; }
.jhc-yt-look-dark .jhc-yt-panel-item.is-active { background: rgba(30, 107, 255, .3); color: #fff; }
.jhc-yt-look-dark .jhc-yt-panel-num { background: rgba(120, 165, 255, .18); }
.jhc-yt-panel-empty { margin: 8px 4px 0; opacity: .7; font-size: 14px; }
.jhc-yt-look-dark .jhc-yt-panel-empty { color: #fff; }

/* Search results */
.jhc-yt-page.is-searching .jhc-yt-main,
.jhc-yt-page.is-searching .jhc-yt-cat-live { display: none; }
.jhc-yt-results[hidden] { display: none; }
.jhc-yt-results-pls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: -4px 0 18px; }
.jhc-yt-results-pls[hidden] { display: none; }
.jhc-yt-results-label { font-size: 12px; opacity: .65; margin-right: 2px; }
.jhc-yt-look-dark .jhc-yt-results-label { color: #fff; }
.jhc-yt-result-pl { animation: none; display: inline-flex; align-items: center; gap: 6px; }
.jhc-yt-page mark { background: rgba(30, 107, 255, .35); color: inherit; border-radius: 3px; padding: 0 1px; }
.jhc-yt-look-plain mark { background: #fff1a8; }
.jhc-yt-more-wrap[hidden] { display: none; }

/* ---------- Home: animated "See more videos" button ---------- */
.jhc-yt-seemore-wrap { text-align: center; margin-top: 30px; }
.jhc-yt-seemore {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 14px 30px;
	border-radius: 999px;
	font: 600 15px/1 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	letter-spacing: .02em;
	text-decoration: none;
	color: #fff;
	background: linear-gradient(135deg, #1e6bff, #0a2a7a 60%, #050b1f);
	background-size: 200% 200%;
	isolation: isolate;
	overflow: hidden;
	box-shadow: 0 8px 24px rgba(30, 107, 255, .35), inset 0 0 0 1px rgba(160, 195, 255, .35);
	transition: transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s ease, background-position .6s ease;
	animation: jhc-yt-breathe 3.2s ease-in-out infinite;
}
.jhc-yt-seemore:hover, .jhc-yt-seemore:focus-visible {
	color: #fff;
	transform: translateY(-2px) scale(1.03);
	background-position: 100% 100%;
	box-shadow: 0 14px 34px rgba(30, 107, 255, .5), inset 0 0 0 1px rgba(190, 215, 255, .6);
	outline: none;
	animation-play-state: paused;
}
/* light sweep */
.jhc-yt-seemore-glow {
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%);
	transform: translateX(-120%);
	animation: jhc-yt-sweep 3.2s ease-in-out infinite;
}
.jhc-yt-seemore-arrow { display: inline-flex; transition: transform .3s ease; }
.jhc-yt-seemore:hover .jhc-yt-seemore-arrow, .jhc-yt-seemore:focus-visible .jhc-yt-seemore-arrow { transform: translateX(5px); }
@keyframes jhc-yt-sweep { 0%, 55% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }
@keyframes jhc-yt-breathe { 50% { box-shadow: 0 10px 34px rgba(30, 107, 255, .55), inset 0 0 0 1px rgba(160, 195, 255, .5); } }
a.jhc-yt-pl-more { font-weight: 600; }
@media (prefers-reduced-motion: reduce) {
	.jhc-yt-seemore, .jhc-yt-seemore-glow { animation: none; }
}
