/*!
 * popup-video.css
 * 동영상 popup (#popupVideoPlayer) — 작은 화면에서 추천영상까지 스크롤 접근 보장.
 * 부모 체인(popup-wrap → popup → popup-content)에 max-height/overflow를 줘서
 * popup-body의 스크롤 컨텍스트 형성. 자식들의 height 제약을 풀어 normal flow 보장.
 */

#popupVideoPlayer.popup-wrap {
    max-height: 100vh !important;
    overflow: hidden !important;
}

#popupVideoPlayer .popup,
#popupVideoPlayer .popup-content {
    max-height: 100vh !important;
    overflow: hidden !important;
}

#popupVideoPlayer .popup-content {
    display: flex !important;
    flex-direction: column !important;
}

#popupVideoPlayer .popup-head {
    flex: 0 0 auto !important;
}

#popupVideoPlayer .popup-body {
    flex: 1 1 auto !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    min-height: 0 !important;
}

/* popup-body 자식들의 height 제약 풀기 — 자식이 popup-body 가시영역에 강제로 fit되면
   추천영상이 영역 밖으로 밀려나 스크롤 도달 불가. 모두 normal flow로. */
#popupVideoPlayer .popup-video-content,
#popupVideoPlayer .video-content,
#popupVideoPlayer #popupVideoContentInner,
#popupVideoPlayer .related-videos-wrap {
    height: auto !important;
    max-height: none !important;
    flex-shrink: 0 !important;
}
