/* 潮生 · 试听台（/lab/audio/）：列表 + 底部常驻播放条 */

.lab.audio-lab { max-width: 920px; }

.audio-shell { margin-top: 22px; }

/* ---------- 列表 ---------- */
.audio-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 132px;   /* 给底部播放条留位置 */
}

.audio-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .035);
  border: 1px solid rgba(255, 255, 255, .08);
  cursor: pointer;
  transition: background .12s, border-color .12s;
}

.audio-row:hover { background: rgba(255, 255, 255, .07); }

.audio-row.on {
  border-color: rgba(243, 185, 106, .75);
  background: rgba(243, 185, 106, .09);
}

.audio-row .idx {
  font-size: 12px;
  color: #6E879B;
  font-variant-numeric: tabular-nums;
}

.audio-row .meta b {
  display: block;
  font-size: 14.5px;
  color: #E4F1FA;
  font-weight: 600;
}

.audio-row .meta span {
  display: block;
  margin-top: 3px;
  font-size: 12.5px;
  color: #8FB0C6;
  line-height: 1.5;
}

.audio-row .dur {
  font-size: 12.5px;
  color: #8FB0C6;
  font-variant-numeric: tabular-nums;
}

.audio-row .play {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .06);
  color: #DCEBF6;
  font-size: 12px;
  cursor: pointer;
}

.audio-row.on .play {
  background: linear-gradient(180deg, #FFD9A0, #F3B96A);
  color: #10161F;
  border-color: transparent;
}

.audio-empty {
  padding: 20px;
  font-size: 13.5px;
  color: #8FB0C6;
}

/* ---------- 底部播放条 ---------- */
.audio-bar {
  position: fixed;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  z-index: 40;
  display: grid;
  grid-template-columns: auto auto auto minmax(0, 1fr) minmax(160px, 260px) auto auto;
  align-items: center;
  gap: 10px;
  width: min(880px, calc(100vw - 28px));
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(12, 17, 25, .92);
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 18px 46px rgba(0, 0, 0, .5);
  backdrop-filter: blur(10px);
}

.audio-btn {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .05);
  color: #DCEBF6;
  border-radius: 9px;
  height: 32px;
  min-width: 34px;
  font-size: 13px;
  cursor: pointer;
}

.audio-btn:hover { background: rgba(255, 255, 255, .11); }

.audio-btn-main {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 15px;
  background: linear-gradient(180deg, #FFD9A0, #F3B96A);
  color: #10161F;
  border-color: transparent;
}

.audio-btn-text { min-width: 74px; padding: 0 10px; }

.audio-now { min-width: 0; }

.audio-now b {
  display: block;
  font-size: 13.5px;
  color: #E4F1FA;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.audio-now span {
  display: block;
  font-size: 11.5px;
  color: #7F9AAF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.audio-progress { display: flex; align-items: center; gap: 8px; }

.audio-track {
  position: relative;
  flex: 1;
  height: 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, .14);
  cursor: pointer;
}

.audio-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  border-radius: 3px;
  background: linear-gradient(90deg, #8FD8A0, #F3B96A);
}

.audio-time {
  font-size: 11.5px;
  color: #8FB0C6;
  font-variant-numeric: tabular-nums;
  min-width: 84px;
  text-align: right;
}

.audio-loop {
  font-size: 12px;
  color: #8FB0C6;
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.audio-loop input { accent-color: #F3B96A; }

.audio-note {
  margin-top: 24px;
  font-size: 12.5px;
  line-height: 1.7;
  color: #7C96AA;
}

@media (max-width: 760px) {
  .audio-bar {
    grid-template-columns: auto auto minmax(0, 1fr) auto;
    grid-template-areas:
      "prev main next now"
      "prog prog prog prog";
    row-gap: 8px;
    bottom: 8px;
    padding: 10px;
  }
  .audio-row { grid-template-columns: 34px minmax(0, 1fr) auto; }
  .audio-row .dur { display: none; }
  .audio-now { grid-area: now; }
  .audio-progress { grid-area: prog; }
  .audio-loop, .audio-btn-text { display: none; }
}
