@charset "utf-8";
@import url('https://fonts.googleapis.com/css2?family=Nanum+Myeongjo:wght@400;700;800&family=Noto+Sans+KR:wght@100;300;400;500;700;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Nanum+Myeongjo:wght@400;700;800&display=swap');

#videoLayer {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.8); /* 배경을 좀 더 어둡게 */
  display: none; justify-content: center; align-items: center;
  z-index: 9999;
}
#playerWrapper {
  position: relative;
  width: 100%; max-width: 800px; /* 최대 너비 조정 */
  background: #000; border-radius: 12px; overflow: hidden;
  display: flex; justify-content: center; align-items: center;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}
video { width: 100%; height: auto; display: block; }
#closeBtn {
  position: absolute; 
  top: 15px; 
  right: 15px;
  width: 36px; 
  height: 36px;
  background: rgba(255,255,255,0.3);
  border-radius: 50%; 
  font-size: 20px; 
  color: #fff;
  display: flex; 
  justify-content: center; 
  align-items: center;
  cursor: pointer; 
  z-index: 20;
  transition: background 0.3s;

	/* 테두리를 추가하여 배경과 대비 */
	border: 1px solid rgba(255, 255, 255, 1.0);
	/* 중요한 변경: 그림자를 추가하여 어떤 배경에서도 버튼이 튀어나와 보이도록 함 */
	box-shadow: 0 0 10px rgba(0, 0, 0, 1.0), 0 0 0 1px rgba(0, 0, 0, 1.0);
	text-shadow: 1px 1px 3px rgba(0, 0, 0, 1.0), -1px -1px 3px rgba(0, 0, 0, 1.0);
}
#closeBtn:hover { background: rgba(255,255,255,0.6); }

#controls {
  position: absolute; bottom: 0; width: 100%; padding: 15px;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  display: flex; gap: 15px; align-items: center;
  box-sizing: border-box;
  transition: opacity 0.3s;
  z-index: 15;
}
.control-btn {
  width: 32px; height: 32px;
  display: flex; justify-content: center; align-items: center;
  border-radius: 6px; background: rgba(255,255,255,0.9);
  font-size: 16px; cursor: pointer; user-select: none; font-weight: bold;
}
#seekBar { flex: 1; cursor: pointer; height: 5px; }

#closePlayerBtn {
	position: absolute; top: 15px; right: 15px; 
	width: 36px; height: 36px;	
	background: rgba(255, 255, 255, 0.2);
	border-radius: 50%;	
	/* 테두리를 추가하여 배경과 대비 */
	border: 1px solid rgba(255, 255, 255, 1.0);
	/* 중요한 변경: 그림자를 추가하여 어떤 배경에서도 버튼이 튀어나와 보이도록 함 */
	box-shadow: 0 0 10px rgba(0, 0, 0, 1.0), 0 0 0 1px rgba(0, 0, 0, 1.0);
	color: #fff; /* 아이콘 색상은 흰색 유지 */
	font-size: 20px; /* 아이콘 크기 조절 */
	text-shadow: 1px 1px 3px rgba(0, 0, 0, 1.0), -1px -1px 3px rgba(0, 0, 0, 1.0);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	z-index: 200000;
	transition: background 0.3s;
}
#closePlayerBtn:hover { background: rgba(255,255,255,0.6); }

#m_main_play {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    /* Flexbox를 사용하여 내부 요소(이미지)를 완벽하게 중앙 정렬 */
    display: flex;
    justify-content: center; /* 수평 중앙 */
    align-items: center;     /* 수직 중앙 */
    
    background-color: rgba(0, 0, 0, 0.2); /* 반투명 배경 (선택 사항) */
    z-index: 1000;
    transition: opacity 0.3s;
}