.ch-youtube-latest {
    width: 100%;
    padding: 70px 0;
    background: #fff;
    font-family: "Pretendard", "Noto Sans KR", sans-serif;
}

.ch-youtube-inner {
    width: min(100% - 40px, 1530px);
    margin: 0 auto;
}

.ch-youtube-head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
}

.ch-youtube-head h2 {
	font-family: 'GmarketSans', 'Noto Sans KR', sans-serif !important;	
    margin: 0;
    font-size: 36px;
    line-height: 1.2;
    font-weight: 800;
    color: #111;
    letter-spacing: -0.05em;
}

.ch-youtube-head h2 a {
    color: inherit;
    text-decoration: none;
}

/* =========================================================
   Premium infinite slider
   PC 3 / Tablet 2 / Mobile 1
   ========================================================= */
.ch-youtube-slider {
    --ch-slide-gap: 30px;
    --ch-arrow-size: 58px;

    position: relative;
    width: 100%;
    overflow: hidden;
    outline: none;
    touch-action: pan-y;
}

.ch-youtube-slider:focus-visible {
    outline: 2px solid rgba(0, 89, 200, .22);
    outline-offset: 6px;
    border-radius: 10px;
}

.ch-youtube-grid {
    display: flex;
    align-items: stretch;
    gap: var(--ch-slide-gap);
    width: 100%;
    will-change: transform;
    transform: translate3d(0, 0, 0);
}

.ch-youtube-grid.is-animating {
    transition: transform .62s cubic-bezier(.22, .61, .36, 1);
}

.ch-youtube-card {
    flex: 0 0 calc((100% - 60px) / 3);
    min-width: 0;
}

.ch-youtube-card.is-clone {
    pointer-events: none;
}

/* 이미지 좌우 중앙에 떠 있는 네비게이션 */
.ch-youtube-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: calc((1530px - 60px) / 3 * 9 / 16);
    max-height: calc((100vw - 100px) / 3 * 9 / 16);
    pointer-events: none;
    z-index: 20;
    transition: opacity .25s ease, visibility .25s ease;
}

.ch-youtube-nav.is-hidden {
    opacity: 0;
    visibility: hidden;
}

.ch-youtube-prev,
.ch-youtube-next {
    position: absolute;
    top: 50%;
    width: var(--ch-arrow-size);
    height: var(--ch-arrow-size);
    padding: 0;
    border: 1px solid rgba(255,255,255,.62);
    border-radius: 50%;
    background: rgba(16, 22, 32, .56);
    box-shadow: 0 8px 24px rgba(0,0,0,.20);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transform: translateY(-50%);
    cursor: pointer;
    pointer-events: auto;
    transition: background .25s ease, transform .25s ease, box-shadow .25s ease, opacity .25s ease;
}

.ch-youtube-prev {
    left: 18px;
}

.ch-youtube-next {
    right: 18px;
}

.ch-youtube-prev:hover:not(:disabled),
.ch-youtube-next:hover:not(:disabled) {
    background: rgba(0, 89, 200, .88);
    box-shadow: 0 10px 28px rgba(0, 44, 100, .28);
    transform: translateY(-50%) scale(1.06);
}

.ch-youtube-prev:active:not(:disabled),
.ch-youtube-next:active:not(:disabled) {
    transform: translateY(-50%) scale(.97);
}

.ch-youtube-prev:disabled,
.ch-youtube-next:disabled {
    opacity: 0;
    cursor: default;
}

.ch-youtube-prev span,
.ch-youtube-next span {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 12px;
    height: 12px;
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
}

.ch-youtube-prev span {
    transform: translate(-36%, -50%) rotate(-135deg);
}

.ch-youtube-next span {
    transform: translate(-64%, -50%) rotate(45deg);
}

.ch-youtube-thumb {
    display: block;
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 9px;
    background: #f2f2f2;
    box-shadow: 0 1px 0 rgba(0,0,0,.02);
}

.ch-youtube-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .45s ease, filter .35s ease;
}

.ch-youtube-card:hover .ch-youtube-thumb img {
    transform: scale(1.045);
    filter: brightness(.94);
}

.ch-youtube-play {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(0, 0, 0, .55);
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity .3s ease, transform .3s ease;
}

.ch-youtube-play::before {
    content: "";
    position: absolute;
    left: 26px;
    top: 20px;
    border-left: 18px solid #fff;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
}

.ch-youtube-card:hover .ch-youtube-play {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.04);
}

.ch-youtube-noimg {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 14px;
    font-weight: 700;
}

.ch-youtube-info {
    padding-top: 34px;
}

.ch-youtube-category {
    margin-bottom: 13px;
    font-size: 16px;
    line-height: 1.3;
    font-weight: 800;
    color: #0059c8;
    letter-spacing: -0.04em;
}

.ch-youtube-info h3 {
	font-family: 'GmarketSans', 'Noto Sans KR', sans-serif !important;		
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 800;
    color: #1a1a1a;
    letter-spacing: -0.05em;
}

.ch-youtube-info h3 a {
    color: inherit;
    text-decoration: none;
}

.ch-youtube-info h3 a:hover {
    color: #0059c8;
}

.ch-youtube-subtitle {
    margin: 0 0 12px;
    font-size: 17px;
    line-height: 1.4;
    font-weight: 700;
    color: #9aa1ac;
    letter-spacing: -0.03em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ch-youtube-meta {
    margin: 0;
    font-size: 18px;
    line-height: 1.5;
    color: #344052;
    letter-spacing: -0.04em;
}

.ch-youtube-meta span,
.ch-youtube-meta em {
    vertical-align: middle;
}

.ch-youtube-meta em {
    margin: 0 8px;
    font-style: normal;
    color: #8992a0;
}

.ch-youtube-empty {
    padding: 60px 0;
    text-align: center;
    color: #999;
    font-size: 15px;
}

/* 태블릿 */
@media (max-width: 1024px) {
    .ch-youtube-latest {
        padding: 60px 0;
    }

    .ch-youtube-slider {
        --ch-slide-gap: 22px;
        --ch-arrow-size: 52px;
    }

    .ch-youtube-card {
        flex-basis: calc((100% - 22px) / 2);
    }

    .ch-youtube-nav {
        height: calc((100vw - 62px) / 2 * 9 / 16);
        max-height: none;
    }

    .ch-youtube-prev {
        left: 12px;
    }

    .ch-youtube-next {
        right: 12px;
    }

    .ch-youtube-head h2 {
        font-size: 32px;
    }

    .ch-youtube-info {
        padding-top: 24px;
    }

    .ch-youtube-info h3 {
        font-size: 21px;
    }

    .ch-youtube-meta {
        font-size: 16px;
    }
}

/* 모바일 */
@media (max-width: 640px) {
    .ch-youtube-latest {
        padding: 46px 0;
    }

    .ch-youtube-inner {
        width: min(100% - 24px, 1530px);
    }

    .ch-youtube-head {
        margin-bottom: 20px;
    }

    .ch-youtube-head h2 {
        font-size: 27px;
    }

    .ch-youtube-slider {
        --ch-slide-gap: 12px;
        --ch-arrow-size: 40px;
    }

    .ch-youtube-card {
        flex-basis: calc((100% - 12px) / 2);
    }

    .ch-youtube-nav {
        height: calc((100vw - 36px) / 2 * 9 / 16);
    }

    .ch-youtube-prev {
        left: 8px;
    }

    .ch-youtube-next {
        right: 8px;
    }

    .ch-youtube-prev span,
    .ch-youtube-next span {
        width: 9px;
        height: 9px;
    }

    .ch-youtube-thumb {
        border-radius: 7px;
    }

    .ch-youtube-info {
        padding-top: 14px;
    }

    .ch-youtube-category {
        margin-bottom: 7px;
        font-size: 13px;
    }

    .ch-youtube-info h3 {
        margin-bottom: 6px;
        font-size: 17px;
        line-height: 1.38;
    }

    .ch-youtube-subtitle {
        margin-bottom: 7px;
        font-size: 13px;
        line-height: 1.4;
        white-space: normal;
    }

    .ch-youtube-meta {
        font-size: 13px;
        line-height: 1.4;
    }

    .ch-youtube-play {
        width: 44px;
        height: 44px;
        opacity: 1;
    }

    .ch-youtube-play::before {
        left: 19px;
        top: 13px;
        border-left-width: 13px;
        border-top-width: 9px;
        border-bottom-width: 9px;
    }
}

/* 움직임 최소화 설정 사용자는 자동재생/슬라이드 애니메이션 최소화 */
@media (prefers-reduced-motion: reduce) {
    .ch-youtube-grid.is-animating,
    .ch-youtube-thumb img,
    .ch-youtube-play,
    .ch-youtube-nav,
    .ch-youtube-prev,
    .ch-youtube-next {
        transition: none;
    }
}
