@charset "UTF-8";

.nb_youtube_list .nb_thumb {
	--ratio: 16 / 9;
	background: var(--dark-color);
}

.nb_youtube_list .nb_thumb::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.2);
	transition: background-color 0.4s;
}

.nb_card_link:hover .nb_thumb::after {
	background: rgba(0, 0, 0, 0.4);
}

.nb_play {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 72px;
	height: 72px;
	border-radius: 50%;
	background: #fff;
	color: var(--title-color);
	transform: translate(-50%, -50%);
	transition:
		background-color 0.3s,
		color 0.3s,
		transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.nb_play .nb_ico {
	width: 28px;
	height: 28px;
	margin-left: 4px;
	fill: currentColor;
}

.nb_card_link:hover .nb_play,
.nb_card_link:focus-visible .nb_play {
	background: var(--theme-color);
	color: #fff;
	transform: translate(-50%, -50%) scale(1.1);
}

.nb_youtube_txt {
	padding-top: 24px;
}

.nb_youtube_top {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 8px;
	font-family: Montserrat, Pretendard, sans-serif;
	font-size: 14px;
	line-height: 1;
	color: var(--muted-color);
}

.nb_yt_modal {
	width: min(1200px, 100% - 64px, (100dvh / var(--z, 1) - 160px) * 16 / 9);
	max-width: none;
	max-height: none;
	margin: auto;
	padding: 0;
	border: 0;
	background: none;
	color: #fff;
	overflow: visible;
}

.nb_yt_modal[open] {
	animation: nb-yt-in 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.nb_yt_modal::backdrop {
	background: rgba(0, 0, 0, 0.85);
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
}

@keyframes nb-yt-in {
	from {
		opacity: 0;
		transform: scale(0.96);
	}
}

html.is-yt-modal {
	overflow: hidden;
}

.nb_yt_modal_head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 16px;
}

.nb_yt_modal_tit {
	min-width: 0;
	overflow: hidden;
	font-size: var(--fs-h5);
	line-height: calc(var(--fs-h5) + 8px);
	font-weight: 700;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.nb_yt_modal_close {
	position: relative;
	flex: none;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	color: #fff;
	cursor: pointer;
	transition: transform 0.3s;
}

.nb_yt_modal_close::before,
.nb_yt_modal_close::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 6px;
	width: 28px;
	height: 2px;
	background: currentColor;
	transform: translateY(-50%) rotate(45deg);
}

.nb_yt_modal_close::after {
	transform: translateY(-50%) rotate(-45deg);
}

.nb_yt_modal_close:hover {
	transform: rotate(90deg);
}

.nb_yt_modal_frame {
	aspect-ratio: 16 / 9;
	border-radius: 24px;
	overflow: hidden;
	background: #000;
}

.nb_yt_modal_frame iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

.nb_yt_modal_admin {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 16px;
	font-size: 14px;
	line-height: 1;
	color: rgba(255, 255, 255, 0.7);
	transition: color 0.3s;
}

.nb_yt_modal_admin:hover {
	color: #fff;
}

.nb_yt_modal_admin .nb_ico {
	width: 16px;
	height: 16px;
}

@media (max-width: 768px) {
	.nb_play {
		width: 56px;
		height: 56px;
	}

	.nb_play .nb_ico {
		width: 22px;
		height: 22px;
	}

	.nb_youtube_txt {
		padding-top: 16px;
	}

	.nb_yt_modal {
		width: calc(100% - 32px);
	}

	.nb_yt_modal_tit {
		font-size: var(--fs-body);
		line-height: 24px;
	}

	.nb_yt_modal_frame {
		border-radius: 12px;
	}
}
