/* YouTube videos page + floating dock player */
.gnw-yt-page {
	position: relative;
}

.gnw-yt-section {
	margin-bottom: 2.5rem;
}

.gnw-yt-section__title {
	font-size: 1.35rem;
	margin: 0 0 0.35rem;
	font-weight: 700;
}

.gnw-yt-section__desc {
	color: #6c757d;
	font-size: 0.92rem;
	margin-bottom: 1rem;
}

.gnw-yt-row {
	display: flex;
	gap: 1rem;
	overflow-x: auto;
	padding-bottom: 0.5rem;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
}

.gnw-yt-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 1rem;
}

.gnw-yt-card {
	flex: 0 0 200px;
	scroll-snap-align: start;
	border: 0;
	background: transparent;
	padding: 0;
	text-align: left;
	cursor: pointer;
	color: inherit;
}

.gnw-yt-grid .gnw-yt-card {
	flex: none;
	width: 100%;
}

.gnw-yt-card__thumb {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	border-radius: 8px;
	background: #212529;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.gnw-yt-card__title {
	display: block;
	margin-top: 0.45rem;
	font-size: 0.88rem;
	line-height: 1.35;
	font-weight: 600;
}

.gnw-yt-card:hover .gnw-yt-card__thumb {
	opacity: 0.92;
}

.gnw-yt-card.is-playing .gnw-yt-card__thumb {
	outline: 3px solid #c4302b;
	outline-offset: 2px;
}

.gnw-yt-dock {
	position: fixed;
	top: 88px;
	right: 16px;
	width: min(360px, calc(100vw - 32px));
	z-index: 200010;
	background: #111;
	color: #fff;
	border-radius: 10px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
	overflow: hidden;
	transition: transform 0.2s ease, width 0.2s ease, height 0.2s ease;
}

.gnw-yt-dock.is-minimized {
	width: 280px;
}

.gnw-yt-dock.is-minimized .gnw-yt-dock__body {
	display: none;
}

.gnw-yt-dock__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	padding: 0.45rem 0.55rem;
	background: #1a1a1a;
	border-bottom: 1px solid #333;
}

.gnw-yt-dock__title {
	font-size: 0.78rem;
	font-weight: 600;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	flex: 1;
}

.gnw-yt-dock__actions {
	display: flex;
	gap: 0.2rem;
}

.gnw-yt-dock__btn {
	border: 0;
	background: #333;
	color: #fff;
	width: 28px;
	height: 28px;
	border-radius: 4px;
	cursor: pointer;
	font-size: 0.95rem;
	line-height: 1;
	padding: 0;
}

.gnw-yt-dock__btn:hover {
	background: #c4302b;
}

.gnw-yt-dock__player {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	background: #000;
}

.gnw-yt-dock__player iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

@media (max-width: 767px) {
	.gnw-yt-dock {
		top: auto;
		bottom: 12px;
		right: 12px;
		left: 12px;
		width: auto;
	}

	.gnw-yt-grid {
		grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	}
}
