/* 유튜브 영상 목록 (covenant/videos). Colors follow the section (light or dark). */
.ck-yt { --ck-yt-gap: clamp(18px, 2.4vw, 32px); }
.ck-yt__player { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 16px; background: #000; box-shadow: 0 24px 60px rgba(0, 0, 0, .3); }
.ck-yt__player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ck-yt__facade { position: absolute; inset: 0; display: block; width: 100%; height: 100%; padding: 0; border: 0; background: #000; cursor: pointer; }
.ck-yt__facade img { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity .3s; }
.ck-yt__facade:hover img { opacity: .85; }
.ck-yt__play { position: absolute; left: 50%; top: 50%; width: 76px; height: 54px; margin: -27px 0 0 -38px; border-radius: 14px; background: rgba(255, 0, 0, .92); }
.ck-yt__play::after { content: ""; position: absolute; left: 31px; top: 16px; border-style: solid; border-width: 11px 0 11px 18px; border-color: transparent transparent transparent #fff; }
.ck-yt__now { margin: 16px 0 0; line-height: 1.5; }
.ck-yt__now strong { display: block; font-size: 1.12rem; }
.ck-yt__now span, .ck-yt__date { font-size: .85rem; opacity: .6; }

.ck-yt__list { list-style: none; margin: 0; padding: 0; }
.ck-yt__item { display: grid; grid-template-columns: 148px 1fr; gap: 14px; align-items: center; padding: 8px; border-radius: 12px; color: inherit !important; text-decoration: none !important; transition: background .2s; }
.ck-yt__item:hover { background: rgba(127, 127, 127, .12); }
.ck-yt__item.is-current { background: rgba(127, 127, 127, .18); }
.ck-yt__thumb { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 8px; background: #222; }
.ck-yt__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ck-yt__item.is-current .ck-yt__thumb::after { content: "재생 중"; position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0, 0, 0, .55); color: #fff; font-size: .78rem; font-weight: 600; }
.ck-yt__meta { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ck-yt__title { font-size: .92rem; font-weight: 600; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* side: player left, list right (scrolls) */
.ck-yt--side { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(260px, 1fr); gap: var(--ck-yt-gap); align-items: start; }
.ck-yt--side .ck-yt__list { display: flex; flex-direction: column; gap: 2px; max-height: 560px; overflow-y: auto; padding-right: 4px; }

/* grid: thumbnails only, plays in place */
.ck-yt--grid .ck-yt__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 20px; }
.ck-yt--grid .ck-yt__thumb { border-radius: 12px; box-shadow: 0 10px 26px rgba(28, 38, 32, .12); }
.ck-yt--grid .ck-yt__thumb iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ck-yt--grid .ck-yt__thumb::before { content: ""; position: absolute; left: 50%; top: 50%; width: 48px; height: 34px; margin: -17px 0 0 -24px; border-radius: 9px; background: rgba(255, 0, 0, .9); z-index: 1; }
.ck-yt--grid .ck-yt__thumb::after { content: ""; position: absolute; left: 50%; top: 50%; margin: -7px 0 0 -4px; border-style: solid; border-width: 7px 0 7px 12px; border-color: transparent transparent transparent #fff; z-index: 2; }
.ck-yt--grid .ck-yt__thumb:has(iframe)::before, .ck-yt--grid .ck-yt__thumb:has(iframe)::after { display: none; }
.ck-yt--grid .ck-yt__item.is-current .ck-yt__thumb::after { content: ""; inset: auto; display: block; background: none; }
.ck-yt--grid .ck-yt__item.is-current { background: transparent; }
.ck-yt--grid .ck-yt__item { grid-template-columns: 1fr; gap: 10px; align-items: start; }

@media (max-width: 900px) {
	.ck-yt--side { grid-template-columns: 1fr; }
	.ck-yt--side .ck-yt__list { max-height: none; }
	.ck-yt--grid .ck-yt__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.ck-yt--fallback .ck-yt__player { max-width: 880px; }
