@charset "utf-8";

#bo_list .mb-photo {
	width:18px; 
	height:18px; }

#bo_list .hd-wrap {
	font-size: 14px; }

#bo_list .wr-no,
#bo_list .wr-date,
#bo_list .wr-num {
	font-size: 12px; }

#bo_list .wr-name {
	font-size: 13px; }

@media (min-width: 1200px) {
	#bo_list.list-xl .wr-no,
	#bo_list.list-xl .wr-date,
	#bo_list.list-xl .wr-num {
		font-size: 13px;
		text-align: center; }

	#bo_list.list-xl .wr-name {
		font-size: 14px; }

	#bo_list.list-xl .hd-name,
	#bo_list.list-xl .wr-name {
		width: 100px; }

	#bo_list.list-xl .hd-date,
	#bo_list.list-xl .wr-date {
		width: 80px; }

	#bo_list.list-xl .hd-hit,
	#bo_list.list-xl .wr-hit {
		width: 70px; }

	#bo_list.list-xl .hd-num,
	#bo_list.list-xl .wr-num {
		width: 60px; }
}

@media (min-width: 992px) {
	#bo_list.list-lg .wr-no,
	#bo_list.list-lg .wr-date,
	#bo_list.list-lg .wr-num {
		font-size: 13px;
		text-align: center; }

	#bo_list.list-lg .wr-name {
		font-size: 14px; }

	#bo_list.list-lg .hd-name,
	#bo_list.list-lg .wr-name {
		width: 100px; }

	#bo_list.list-lg .hd-date,
	#bo_list.list-lg .wr-date {
		width: 80px; }

	#bo_list.list-lg .hd-hit,
	#bo_list.list-lg .wr-hit {
		width: 70px; }

	#bo_list.list-lg .hd-num,
	#bo_list.list-lg .wr-num {
		width: 60px; }
}

@media (min-width: 768px) {
	#bo_list.list-md .wr-no,
	#bo_list.list-md .wr-date,
	#bo_list.list-md .wr-num {
		font-size: 13px;
		text-align: center; }

	#bo_list.list-md .wr-name {
		font-size: 14px; }

	#bo_list.list-md .hd-name,
	#bo_list.list-md .wr-name {
		width: 100px; }

	#bo_list.list-md .hd-date,
	#bo_list.list-md .wr-date {
		width: 80px; }

	#bo_list.list-md .hd-hit,
	#bo_list.list-md .wr-hit {
		width: 70px; }

	#bo_list.list-md .hd-num,
	#bo_list.list-md .wr-num {
		width: 60px; }
}
/* BS5 checkbox 기본 오프셋 제거 */
.list-group-item .form-check-input {
    position: static !important;
    top: 0 !important;
    margin-top: 0 !important;
}

/* 두 체크박스 기준선 강제 통일 */
.list-group-item input[type="checkbox"] {
    vertical-align: middle !important;
    transform: translateY(-1px); /* 0 또는 -1px로 조정 */
}
/* === Music board: unify checkbox size/shape (admin select + playlist select) === */
.list-group-item input.form-check-input[type="checkbox"]{
  width: 16px !important;
  height: 16px !important;
  min-width: 16px !important;
  min-height: 16px !important;
  margin: 0 6px 0 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  border: 1px solid #cfd8e3 !important;
  border-radius: 3px !important;
  background-color: #fff !important;
  vertical-align: middle !important;
  flex: 0 0 auto !important;
}

/* keep checked state consistent (avoid theme overrides) */
.list-group-item input.form-check-input[type="checkbox"]:checked{
  border-color: #198754 !important;
  background-color: #198754 !important;
}

/* remove odd top-offset some themes apply */
.list-group-item input.form-check-input[type="checkbox"]{
  margin-top: 0 !important;
}
/* --- Fix: folder select text invisible in some themes --- */
#musicFavFolderSelect,
#musicFavFolderSelect option{
  color:#111 !important;
  background:#fff !important;
}
#musicFavFolderSelect:focus{
  color:#111 !important;
  background:#fff !important;
}


/* --- Music fav modal: ensure clickable (backdrop below modal) --- */
#musicFavModal{ z-index:1000001 !important; pointer-events:auto !important; }
.modal-backdrop{ z-index:1000000 !important; }
body.music-fav-open #musicPlayerBar{ pointer-events:none !important; }

/* folder select visibility */
#musicFavFolderSelect, #musicFavFolderSelect option{ color:#111 !important; background:#fff !important; }


/* Force mini player top layer */
#musicPlayerBar,
.music-player-bar {
  position: fixed !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  /* isolation을 통해 새로운 쌓임 맥락을 강제 생성하거나, 
     부모의 영향을 최소화하기 위해 z-index를 유지합니다. */
  z-index: 9999999 !important; 
  
  /* 만약 부모 요소에 transform, filter, perspective가 걸려있다면 
     fixed 요소라도 부모를 따라가게 됩니다. 이를 체크해보세요. */
}

/* 플레이어보다 모달이 '뒤'에 있어야 한다면 아래 순서가 맞습니다. 
   하지만 보통 모달(팝업)이 플레이어를 가려야 하므로 z-index를 더 높게 잡는 것이 일반적입니다. */
#musicFavModal { z-index: 10000000 !important; }
.modal-backdrop { z-index: 9999998 !important; }


/* 컨테이너는 한 줄을 유지 */
.marquee-container {
    white-space: nowrap;
}

/* 텍스트 요소도 한 줄을 유지 */
.marquee-content {
    display: inline-block;
    white-space: nowrap;
    padding-right: 15px; /* 끝부분 여백 */
}

/* JS에서 글자가 길다고 판단하여 'is-scrolling' 클래스가 붙었을 때만 흐름 */
.marquee-content.is-scrolling {
    animation: scrollText var(--scroll-speed, 10s) linear infinite alternate;
}

/* 흐르는 애니메이션 동작 */
@keyframes scrollText {
    0% { transform: translateX(0); }
    100% { transform: translateX(var(--scroll-dist)); }
}
/* =========================================
   🌙 하단 미니 플레이어 & 재생목록 다크모드 대응
========================================= */

/* 1. 하단 고정 미니 플레이어 바 배경 및 글자색 */
html[data-bs-theme="dark"] #musicPlayerBar,
html[data-bs-theme="dark"] .music-player-bar {
    background-color: var(--bs-body-bg) !important; /* 다크모드 배경 */
    color: var(--bs-body-color) !important; /* 다크모드 글자색 */
    border-top: 1px solid var(--bs-border-color) !important; /* 플레이어 상단 구분선 */
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.4) !important; /* 다크모드에 어울리는 부드러운 그림자 */
}

/* 2. 즐겨찾기 폴더 선택 셀렉트 박스 (#fff, #111 고정 해제) */
html[data-bs-theme="dark"] #musicFavFolderSelect,
html[data-bs-theme="dark"] #musicFavFolderSelect option {
    color: var(--bs-body-color) !important;
    background-color: var(--bs-secondary-bg) !important; /* 살짝 밝은 다크 회색 */
    border: 1px solid var(--bs-border-color) !important;
}

html[data-bs-theme="dark"] #musicFavFolderSelect:focus {
    color: var(--bs-body-color) !important;
    background-color: var(--bs-body-bg) !important;
}

/* 3. 리스트 내부 체크박스 다크모드 조화 */
html[data-bs-theme="dark"] .list-group-item input.form-check-input[type="checkbox"] {
    background-color: var(--bs-secondary-bg) !important;
    border-color: var(--bs-border-color) !important;
}

/* 체크된 상태의 초록색(#198754)은 다크모드에서도 잘 어울리므로 그대로 유지하거나 살짝 밝게 조정 */
html[data-bs-theme="dark"] .list-group-item input.form-check-input[type="checkbox"]:checked {
    border-color: #198754 !important;
    background-color: #198754 !important;
}