/* ====== 고정 오디오바 ====== */
.audio-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 9999;

  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  flex-wrap: wrap;

  padding: 8px 12px;
  background: #fff;         /* 검은색 배경 */ 
  color: #3aa655;              /* 흰색 글씨 */
  font-size: 14px;
  line-height: 1.4;
  font-family: sans-serif;
  box-shadow: 0 -2px 6px rgba(0,0,0,0.5);
}

/* 페이지 내용이 오디오바에 가리지 않게 */
body {
  padding-bottom: 60px; /* 바 높이만큼 */
}

/* ====== 각 섹션 ====== */
.audio-bar .ab-sec {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ab-controls { min-width: 60px; }
.ab-meta     { min-width: 160px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ab-progress { flex: 1; min-width: 200px; }
.ab-volume   { min-width: 120px; }
.ab-repeat   { min-width: 50px; text-align: center; }

/* ====== 버튼 스타일 ====== */
.audio-bar button {
  background: transparent;
  border: 1px solid #3aa655; /* 녹색 */
  color: #3aa655;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}
.audio-bar button:hover {
  background: #3aa655;
  color: #fff;
}

/* ====== 진행바, 볼륨 슬라이더 ====== */
.audio-bar input[type="range"] {
  accent-color: #3aa655;   /* 브라우저 지원시 녹색으로 */
  cursor: pointer;
}

/* 시간 표시 */
#timeNow, #timeDur {
  font-variant-numeric: tabular-nums;
  min-width: 40px;
  text-align: center;
}

/* 제목/가수 구분 기호 */
.sep {
  opacity: 0.6;
}

/* ====== 반응형 (모바일) ====== */
@media (max-width: 640px) {
  .ab-meta {
    order: 2;
    width: 100%;
  }
  .ab-progress {
    order: 3;
    width: 100%;
  }
  .ab-volume, .ab-repeat {
    order: 4;
  }
}

/* Swup 페이드 전환 */
.transition-fade { opacity: 1; }
html.is-animating .transition-fade { transition: opacity .25s ease; }
html.is-leaving   .transition-fade { opacity: 0; }
html.is-appearing .transition-fade { opacity: 1; }
