/*=== 메인페이지 레이어 plyr 플레이어 css ===*/
@keyframes fadein {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

@-moz-keyframes fadein {

	/* Firefox */
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

@-webkit-keyframes fadein {

	/* Safari and Chrome */
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

@-o-keyframes fadein {

	/* Opera */
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

[data-trigger]{
	opacity:0;
	position: relative;
	top:30px;
	transition: 0.5s ease-out;
}

[data-trigger].visible{
	opacity:1;
	top:0px;
}

/* [기존 유지] 버튼 스타일 */
#show-player-btn1 {
	padding: 10px 20px;
	background-color: #007BFF;
	color: white;
	border: none;
	border-radius: 5px;
	font-size: 16px;
	cursor: pointer;
	margin: 5px;
}

/* [기존 유지] 배경 오버레이 */
#overlay {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.7);
	z-index: 900;
}

/* [기존 유지] 팝업 컨테이너 */
#player-container {
	display: none;
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	padding: 20px;
	z-index: 1000;
	text-align: center;
	width: 90%;
	max-width: 800px;
	opacity: 0;
	transition: opacity 1s ease, transform 1s ease;
}

/* [기존 유지] 닫기 버튼 */
.btn_pop_close {
	
	display: block;
	position: absolute;
	top: 5px;
	right: -30px;
	width: 40px;
	height: 40px;
	z-index: 1010 !important;
	background: white url(https://layout.fgtv.com/images/common/btn_close_01.png) no-repeat;
	background-position: center center;
	background-size: 50% 50%;
	border-radius: 50%;
	border: 1px solid rgba(0, 0, 0, 0.15);
	cursor: pointer;
}

/* [수정/추가] Plyr 감싸는 박스 (영상 위 제목 및 라운딩 핵심) */
.plyr-wrapper {
	position: relative;
	width: 100%;
	border-radius: 15px; /* 모서리 라운딩 */
	overflow: hidden;    /* 라운딩 밖으로 나가는 영상/제목 숨김 */
	box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* [추가] 영상 위 제목 (마우스 오버 시에만) */
.video-title-overlay {
	position: absolute;
	top: 25px;
	left: 25px;
	z-index: 10;
	color: #fff;
	font-size: 20px;
	font-weight: bold;
	text-shadow: 0px 2px 10px rgba(0, 0, 0, 0.8);
	pointer-events: none;
	opacity: 0; /* 평소엔 숨김 */
	transition: opacity 0.3s ease;
}

/* 마우스 오버 시 제목 보이기 */
.plyr-wrapper:hover .video-title-overlay {
	opacity: 1;
}

/* [수정] 비디오 자체 스타일 - Plyr에 맞게 최적화 */
#player {
	width: 100%;
	display: block;
}

/* Plyr 내부 컨트롤바 라운딩 강제 적용 */
.plyr {
	border-radius: 15px !important;
}

/* [기존 유지] 목록 보기 버튼 */
.btn_play_more {
	display: block;
	position: absolute;
	bottom: -25px;
	right: 20px;
	padding: 6px 25px 7px;
	z-index: 10001 !important;
	border-radius: 50px;
	background: #004892;
	border: 1px solid rgba(0, 62, 125, 0.15);			
	cursor: pointer;
	font-family: 'Noto Sans KR', sans-serif;
	font-size: 16px;
	font-weight: 500;
	color: #fff;
	text-align: center;
	text-decoration: none;
}

.btn_play_more:hover {
	background: #fff;
	border: 1px solid rgba(0, 0, 0, 0.15);
	color: #000;
}

/* 1. 플레이어 컨테이너 및 라운딩 설정 */
#player-container {
	width: 100%;
	max-width: 800px; /* 원하는 너비로 조절 */
	 position: fixed; /* 기존 스타일 유지 */
	margin: 0 auto;
}

.plyr-wrapper {
	position: relative;
	border-radius: 15px; /* [핵심] 모서리 라운딩 */
	overflow: hidden;    /* 라운딩 밖으로 나가는 요소 숨김 */
	background: #000;
}

/* 2. 영상 위 제목 레이어 */
.video-title-overlay {
	position: absolute;
	top: 20px;
	left: 20px;
	z-index: 10;
	color: #fff;
	font-size: 1.2rem;
	font-weight: 600;
	text-shadow: 0px 2px 8px rgba(0, 0, 0, 0.9);
	pointer-events: none; /* 제목이 클릭을 방해하지 않도록 설정 */
	
	/* 초기 상태: 숨김 */
	opacity: 0;
	transition: opacity 0.4s ease;
}

/* 3. 마우스 오버 시 제목 표시 */
/* 컨트롤바가 나타날 때(plyr--paused나 마우스 오버 시) 제목도 같이 나오게 함 */
/* 영상 박스 라운딩 */
.plyr-wrapper {
	position: relative;
	border-radius: 15px;
	overflow: hidden;
	background: #000;
}
.plyr--paused .video-title-overlay {
	opacity: 1;
}

/* 4. Plyr 자체 라운딩 강제 적용 */
.plyr {
	border-radius: 15px !important;
}

/* 목록 보기 링크 스타일 (영상 위가 아닌 별도 영역) */
#viewlist {
	margin-bottom: 10px;
	text-align: right;
	z-index: 1010 !important;
}


.plyr--video {
	border-radius: 15px !important;
}