/*
 * jj_youtube_slide_lat / style.css
 * 마퀴 카드(.fv-proc-card-*) 기본 스타일은 index.php 인라인 <style>에 있음.
 * 이 파일은 모달 + 스킨 보완 규칙만 담음.
 */

/* ── 카드 버튼 리셋 ── */
.jj-sf-card {
    appearance: none;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    text-align: left;
}

/* ── 재생 아이콘 오버레이 ── */
.fv-proc-card-thumb {
    position: relative;
}
.jj-sf-play-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: #fff;
    opacity: 0;
    transition: opacity .25s;
    text-shadow: 0 2px 8px rgba(0,0,0,.5);
    pointer-events: none;
}
.jj-sf-card:hover .jj-sf-play-icon,
.jj-sf-card:focus-visible .jj-sf-play-icon {
    opacity: 1;
}
.jj-sf-card:hover .fv-proc-card-thumb img,
.jj-sf-card:focus-visible .fv-proc-card-thumb img {
    transform: scale(1.06);
    transition: transform .35s ease;
}

/* ── 썸네일 fallback 아이콘 ── */
.fv-proc-card-thumb i {
    font-size: 36px;
    color: rgba(255,255,255,.22);
}

/* ── 빈 상태 카드 ── */
.jj-sf-empty-card { cursor: default; pointer-events: none; opacity: .5; }
.jj-sf-track--empty {
    animation-play-state: paused !important;
    justify-content: center;
}

/* ── cat 말줄임 ── */
.jj-sf-track .fv-proc-card-cat {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

/* ══════════════════════════════════════
   유튜브 모달 (이미지 스킨과 동일한 스타일)
══════════════════════════════════════ */
.jj-sf-modal[hidden] { display: none; }

.jj-sf-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 반투명 배경 */
.jj-sf-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.88);
}

/* 영상 박스 */
.jj-sf-modal-box {
    position: relative;
    z-index: 1;
    width: min(92vw, 1100px);
    max-height: 90vh;
}

/* ── ★ 닫기 버튼 (오른쪽 하단, 고정 위치, 이미지 스킨과 동일) ── */
.jj-sf-modal-close {
    position: fixed !important;
    bottom: 30px !important;
    right: 30px !important;
    top: auto !important;
    left: auto !important;
    width: auto !important;
    height: auto !important;
    padding: 10px 24px !important;
    border-radius: 4px !important;
    background: rgba(255, 255, 255, 0.15) !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    color: #fff !important;
    font-size: 0 !important;
    font-weight: 500 !important;
    letter-spacing: 0.5px !important;
    line-height: 1 !important;
    opacity: 0.85 !important;
    transition: all 0.25s ease !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3) !important;
    z-index: 9999 !important;
    pointer-events: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
}

.jj-sf-modal-close:hover {
    background: rgba(255, 255, 255, 0.28) !important;
    opacity: 1 !important;
    transform: scale(1.02) !important;
}

.jj-sf-modal-close:active {
    transform: scale(0.96) !important;
}

/* ★ 닫기 버튼 아이콘 (Font Awesome X) */
.jj-sf-modal-close i {
    font-size: 13px !important;
    color: #fff !important;
}

/* ★ 닫기 버튼 텍스트 (Close) */
.jj-sf-close-text {
    font-size: 13px !important;
    color: #fff !important;
    font-weight: 500 !important;
    letter-spacing: 0.3px !important;
}

/* 16:9 비율 iframe 래퍼 */
.jj-sf-modal-player {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}
.jj-sf-modal-player iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ── 모바일 ── */
@media (max-width: 600px) {
    .jj-sf-modal-box {
        width: 100vw;
        max-height: 100vh;
    }
    .jj-sf-modal-close {
        bottom: 16px !important;
        right: 16px !important;
        padding: 8px 18px !important;
    }
    .jj-sf-modal-close i {
        font-size: 12px !important;
    }
    .jj-sf-close-text {
        font-size: 12px !important;
    }
    .jj-sf-modal-player {
        border-radius: 0;
    }
}

@media (max-width: 480px) {
    .jj-sf-modal-close {
        bottom: 12px !important;
        right: 12px !important;
        padding: 6px 14px !important;
    }
    .jj-sf-modal-close i {
        font-size: 11px !important;
    }
    .jj-sf-close-text {
        font-size: 11px !important;
    }
}