/* 有聲書專用 */
.progress-wrapper {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 15px;
}
.time-text {
  font-size: 14px;
  color: #7f8c8d;
  font-family: monospace;
  font-weight: bold;
  min-width: 45px;
  text-align: center;
}
#time-current {
  color: #2F7AFF;
}
.ebook-page input[type=range] {
  -webkit-appearance: none;
  flex: 1;
  width: 100%;
  --progress: 0%;
  background: linear-gradient(to right, #2F7AFF var(--progress), #dfe6e9 var(--progress));
  height: 6px;
  border-radius: 3px;
  margin: 0;
}
.ebook-page input[type=range]:focus {
  outline: none;
}
.ebook-page input[type=range]::-webkit-slider-runnable-track {
  width: 100%;
  height: 6px;
  cursor: pointer;
  background: transparent;
  border-radius: 3px;
}
.ebook-page input[type=range]::-webkit-slider-thumb {
  height: 16px;
  width: 16px;
  border-radius: 50%;
  background: #2F7AFF;
  cursor: pointer;
  -webkit-appearance: none;
  margin-top: -5px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
.ebook-page input[type=range]::-moz-range-track {
  width: 100%;
  height: 6px;
  cursor: pointer;
  background: transparent;
  border-radius: 3px;
}
.ebook-page input[type=range]::-moz-range-thumb {
  height: 16px;
  width: 16px;
  border-radius: 50%;
  background: #2F7AFF;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* --- 整合型播放面板模組 (蘋果質感風格) --- */
.audio-player-module {
  background: #ffffff;
  border-radius: 15px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08); /* 柔和的高質感立體陰影 */
  overflow: hidden;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 48vh; /* 稍微放寬一點容納兩側留白 */
  margin: 0 auto 30px auto;
}

/* 封面外部留白區 (改為下半部) */
.player-cover-wrapper {
  padding: 0 25px 25px 25px; /* 左右與下方留白，上方緊接控制列 */
}

/* 封面區域 (自帶圓角與獨立陰影，呈現浮動感) */
.player-cover {
  position: relative;
  width: 100%;
  background: #f8f9fa;
  border-radius: 7px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  cursor: pointer; /* 新增游標樣式，提示可點擊 */
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.player-cover:hover {
  transform: translateY(-2px); /* 滑鼠懸停時微小浮起，增強互動感 */
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
}
#book-cover-bg {
  display: block;
  width: 100%;
  height: auto;
}
#book-cover-txt {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

/* 上半部：單行控制區域 */
.player-controls.single-row {
  padding: 15px 25px 20px 25px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 15px; 
}

/* 縮小版播放按鈕 (適應單行排版) */
.play-btn-small {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #2F7AFF; /* 蘋果風格的深灰色系 */
  color: #ffffff;
  font-size: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1), background 0.2s ease;
  flex-shrink: 0;
}

.play-btn-small:hover {
  transform: scale(1.06);
}

.play-btn-small.active-state {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.play-btn-small i {
  margin-left: 3px;
}
.play-btn-small.active-state i {
  margin-left: 0;
}

/* 進度條與秒數 */
.progress-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 12px;
}
.time-text {
  font-size: 13px;
  color: #86868b;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-weight: 500;
  min-width: 42px;
  text-align: center;
}