/* ════════════════════════════════════════════════
   background-listen.css — 后台听页面样式

   顶部/底部 safe-area 由页内 .player-nav-bar 与 .bgl-controls 自行处理，
   `#page-background-listen` 的 padding 复位登记在 base.css 的播放器页清单里。
════════════════════════════════════════════════ */

#page-background-listen {
  background: var(--bg);
}

/* 导航行三列：返回 / 标题 / 句号计数（区别于播放器页的五等分按钮行）*/
#page-background-listen .player-nav-bar {
  grid-template-columns: 88px 1fr 88px;
  align-items: center;
}

.bgl-nav-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  text-align: center;
  padding: 0 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bgl-nav-counter {
  font-size: 12px;
  color: var(--text-dim);
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.bgl-hero {
  flex-shrink: 0;
  padding: 18px 18px 14px;
  background: var(--card);
  border-bottom: 0.5px solid var(--separator);
}

.bgl-hint {
  font-size: 11px;
  color: var(--text-dim);
  margin-bottom: 10px;
}

.bgl-current {
  font-size: 19px;
  line-height: 1.5;
  font-weight: 600;
  color: var(--text);
  word-break: break-word;
  min-height: 2.9em;
}

.bgl-list {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--card);
}

.bgl-line {
  padding: 11px 18px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text);
  border-bottom: 0.5px solid var(--line-separator, rgba(60, 60, 67, 0.05));
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  word-break: break-word;
}

.bgl-line.active {
  background: var(--blue-light);
  color: var(--blue);
  font-weight: 600;
}

.bgl-controls {
  flex-shrink: 0;
  /* 时长靠绝对定位贴右，传输键才是真正水平居中的 —— 让它参与 flex 排布会把三个键整体推左 */
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  height: calc(72px + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  background: var(--card);
  border-top: 0.5px solid var(--separator);
}

.bgl-ctrl-btn {
  width: 52px;
  height: 52px;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 22px;
  line-height: 1;
  border-radius: 26px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.bgl-ctrl-btn:active {
  background: rgba(0, 0, 0, 0.06);
}

.bgl-ctrl-btn.bgl-play {
  background: var(--blue);
  color: #fff;
  font-size: 24px;
}

.bgl-ctrl-btn.bgl-play:active {
  opacity: 0.85;
}

.bgl-time {
  position: absolute;
  right: 16px;
  bottom: calc(50% + var(--safe-bottom) / 2 - 9px);
  font-size: 12px;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  text-align: right;
}
