/* ============================================================
   메인 슬라이드 첫 장 영상 (main.php .mv-video-item, components/bower/js/main_video.js)
   대표 이미지 + 재생 버튼 → 누르면 그 자리에서 재생.
   신 홈페이지 EiE/www/assets/css/mainVideo.css 와 같은 내용 — 고칠 때 같이 고칠 것.
   ============================================================ */

/* 대표 이미지 — 영상 화면 전체가 보이도록 잘라내지 않는다.
   --mv-video-top = 고정 헤더가 슬라이드를 덮는 높이. mainVideo.js 가 화면에서 재서 넣는다(재기 전 기본 160px) */
.main-visual-item.mv-video-item { background: #07070c; }
.main-visual-item.mv-video-item .main-visual-pc-img.mv-video-poster {
	position: absolute; left: 0; top: var(--mv-video-top, 160px); width: 100%; height: calc(100% - var(--mv-video-top, 160px));
	background: #07070c url(https://i.ytimg.com/vi/qwN32gQ0O-I/maxresdefault.jpg) no-repeat 50% 50%;
	background-size: contain !important;
}

/* 재생 버튼 */
.mv-video-play {
	position: absolute; left: 50%; top: calc(50% + var(--mv-video-top, 160px) / 2); z-index: 3;
	transform: translate(-50%, -50%);
	display: flex; flex-direction: column; align-items: center; gap: 14px;
	padding: 0; border: 0; background: none; cursor: pointer;
	color: #fff; font-size: 18px; font-weight: 700; letter-spacing: -0.5px;
	text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}
.mv-video-play-icon {
	position: relative; display: block; width: 96px; height: 96px; border-radius: 50%;
	background: rgba(200, 16, 46, 0.92); box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
	transition: transform .2s, background-color .2s;
}
.mv-video-play-icon::after {
	content: ""; position: absolute; left: 50%; top: 50%;
	margin: -18px 0 0 -10px;
	border-style: solid; border-width: 18px 0 18px 30px; border-color: transparent transparent transparent #fff;
}
.mv-video-play:hover .mv-video-play-icon,
.mv-video-play:focus-visible .mv-video-play-icon { transform: scale(1.08); background: #C8102E; }
.mv-video-play:focus-visible { outline: 3px solid #fff; outline-offset: 8px; border-radius: 12px; }

/* 재생 영역 — 헤더 아래 ~ 슬라이드 점 버튼 위. 재생 중에만 보인다 */
.mv-video-frame {
	display: none; position: absolute; left: 0; right: 0; top: var(--mv-video-top, 160px); bottom: 96px; z-index: 4;
	background: #000;
}
.mv-video-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.mv-video-close {
	display: none; position: absolute; right: 24px; bottom: 40px; z-index: 1001;
	padding: 9px 20px; border: 1px solid rgba(255, 255, 255, 0.6); border-radius: 999px;
	background: rgba(0, 0, 0, 0.55); color: #fff; font-size: 14px; font-weight: 700; cursor: pointer;
}
.mv-video-close:hover { background: rgba(0, 0, 0, 0.8); }

.mv-video-item.is-playing .mv-video-frame,
.mv-video-item.is-playing .mv-video-close { display: block; }
.mv-video-item.is-playing .mv-video-play { display: none; }
/* 재생 중에는 대표 이미지를 숨기고 바탕을 영상과 같은 검정으로 — 영상 아래 띠에 대표 이미지가 비쳐 보이지 않게 */
.main-visual-item.mv-video-item.is-playing { background: #000; }
.mv-video-item.is-playing .mv-video-poster { visibility: hidden; }

/* 모바일 헤더(56px, 화면 흐름 안)로 바뀌는 폭 — 헤더가 슬라이드를 덮지 않는다 */
@media all and (max-width: 1000px) {
	#mainVisual { --mv-video-top: 0px !important; }
	.mv-video-play { font-size: 15px; gap: 10px; }
	.mv-video-play-icon { width: 72px; height: 72px; }
	.mv-video-play-icon::after { margin: -14px 0 0 -8px; border-width: 14px 0 14px 23px; }
	.mv-video-frame { bottom: 84px; }
	.mv-video-close { right: 12px; bottom: 36px; padding: 7px 16px; font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
	.mv-video-play-icon { transition: none; }
}

/* 슬라이드 점 버튼 줄은 화면 폭 전체를 덮는 투명한 띠라서, 그 뒤에 있는 닫기 버튼 가운데가 눌리지 않았다.
   띠 자체는 클릭을 통과시키고 점 버튼만 누를 수 있게 한다 */
#mainVisual .slick-dots { pointer-events: none; }
#mainVisual .slick-dots li { pointer-events: auto; }
