.acn-yt-gallery {
	margin: 24px 0;
	color: #0f172a;
}

.acn-yt-gallery__shell {
	display: grid;
	grid-template-columns: minmax(0, 1.7fr) minmax(280px, 420px);
	gap: 24px;
	padding: 20px;
	border: 1px solid rgba(15, 23, 42, 0.08);
	border-radius: 24px;
	background:
		radial-gradient(circle at top right, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.92) 45%, rgba(248, 250, 252, 0.96) 100%),
		linear-gradient(135deg, rgba(255, 255, 255, 1), rgba(248, 250, 252, 1));
	box-shadow: 0 24px 48px rgba(15, 23, 42, 0.08);
}

.acn-yt-gallery__shell--fallback {
	grid-template-columns: 1fr;
	max-width: 960px;
}

.acn-yt-gallery__header {
	margin-bottom: 14px;
}

.acn-yt-gallery__eyebrow {
	margin: 0 0 6px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--acn-yt-gallery-accent);
}

.acn-yt-gallery__heading {
	margin: 0;
	font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem);
	line-height: 1.15;
}

.acn-yt-gallery__heading-description {
	margin: 10px 0 0;
	color: #475569;
	line-height: 1.7;
	max-width: 65ch;
}

.acn-yt-gallery__player-frame {
	position: relative;
	padding-top: 56.25%;
	border-radius: 20px;
	overflow: hidden;
	background: #020617;
	box-shadow: 0 22px 40px rgba(2, 6, 23, 0.24);
}

.acn-yt-gallery__iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.acn-yt-gallery__meta {
	padding-top: 16px;
}

.acn-yt-gallery__current-title {
	margin: 0;
	font-size: 1.1rem;
	line-height: 1.4;
}

.acn-yt-gallery__current-channel,
.acn-yt-gallery__fallback-note {
	margin: 8px 0 0;
	color: #475569;
	line-height: 1.6;
}

.acn-yt-gallery__current-description {
	margin: 10px 0 0;
	color: #334155;
	line-height: 1.7;
}

.acn-yt-gallery__playlist {
	display: flex;
	flex-direction: column;
	min-height: 100%;
	border-radius: 20px;
	overflow: hidden;
	background: #0f172a;
	color: #f8fafc;
}

.acn-yt-gallery__playlist-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	padding: 18px 20px;
	border-bottom: 1px solid rgba(148, 163, 184, 0.18);
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0));
	font-size: 0.95rem;
}

.acn-yt-gallery__items {
	display: flex;
	flex-direction: column;
	max-height: 620px;
	overflow-y: auto;
}

.acn-yt-gallery__item {
	display: grid;
	grid-template-columns: 144px minmax(0, 1fr);
	gap: 14px;
	padding: 16px 18px;
	border: 0;
	border-bottom: 1px solid rgba(148, 163, 184, 0.12);
	background: transparent;
	color: inherit;
	text-align: left;
	cursor: pointer;
	transition: background-color 180ms ease, transform 180ms ease;
}

.acn-yt-gallery__item:hover,
.acn-yt-gallery__item:focus-visible {
	background: rgba(255, 255, 255, 0.08);
	outline: none;
}

.acn-yt-gallery__item.is-active {
	background: rgba(255, 255, 255, 0.1);
	box-shadow: inset 4px 0 0 var(--acn-yt-gallery-accent);
}

.acn-yt-gallery__thumb-wrap {
	position: relative;
	display: block;
	border-radius: 14px;
	overflow: hidden;
	background: rgba(15, 23, 42, 0.8);
	aspect-ratio: 16 / 9;
}

.acn-yt-gallery__thumb {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.acn-yt-gallery__index {
	position: absolute;
	left: 10px;
	bottom: 10px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 30px;
	height: 30px;
	padding: 0 9px;
	border-radius: 999px;
	background: rgba(2, 6, 23, 0.76);
	font-size: 0.8rem;
	font-weight: 700;
}

.acn-yt-gallery__copy {
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-width: 0;
}

.acn-yt-gallery__item-title {
	font-size: 0.95rem;
	font-weight: 700;
	line-height: 1.45;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.acn-yt-gallery__item-channel {
	margin-top: 6px;
	font-size: 0.85rem;
	color: #cbd5e1;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

@media (max-width: 960px) {
	.acn-yt-gallery__shell {
		grid-template-columns: 1fr;
	}

	.acn-yt-gallery__items {
		max-height: none;
	}
}

@media (max-width: 640px) {
	.acn-yt-gallery__shell {
		padding: 14px;
		gap: 16px;
		border-radius: 18px;
	}

	.acn-yt-gallery__item {
		grid-template-columns: 116px minmax(0, 1fr);
		padding: 14px;
	}
}