/* A Little Space — the listen player.
   One player for every book: a plain round play button, a page-back
   and page-forward button on each side, on a clean flat card.
   Quiet ink and plum, kept simple on purpose. */
.pip-player {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 560px;
  margin: 26px auto 6px;
  padding: 14px 20px 10px;
  background: #fffef9;
  border: 1px solid #d9e2d4;
  border-radius: 24px;
  box-shadow: 0 4px 14px rgba(47, 66, 56, .07);
}
.pip-hand {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  padding: 9px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid #c4d2bf;
  color: #3c5546;
  cursor: pointer;
  transition: background .15s ease, transform .15s ease;
}
.pip-hand svg { display: block; width: 100%; height: 100%; }
.pip-next svg { transform: scaleX(-1); }
.pip-hand:hover { background: #eef4ec; }
.pip-hand:active { transform: translateY(1px); }
.pip-hand:disabled { opacity: .35; cursor: default; transform: none; }
.pip-stage {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.pip-headbtn {
  width: 58px;
  height: 58px;
  padding: 13px;
  border-radius: 50%;
  background: #82649d;
  border: none;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(90, 70, 120, .25);
  transition: transform .15s ease, background .15s ease;
}
.pip-headbtn svg { display: block; width: 100%; height: 100%; }
.pip-headbtn:hover { transform: translateY(-1px); background: #755a90; }
.pip-headbtn:active { transform: translateY(1px); }
.pip-headbtn .pip-icon-pause { display: none; }
.pip-caption {
  margin: 8px 0 0;
  font-size: .84rem;
  font-weight: 650;
  color: #3c5546;
  max-width: 210px;
}
.pip-status {
  margin: 2px 0 0;
  font-size: .74rem;
  letter-spacing: .06em;
  color: #82649d;
  font-weight: 700;
  text-transform: uppercase;
}
/* While it reads: the play face becomes pause bars, and the button
   breathes with a slow, soft ring. */
.pip-player.is-playing .pip-icon-play { display: none; }
.pip-player.is-playing .pip-icon-pause { display: block; }
.pip-player.is-playing .pip-headbtn { animation: pip-pulse 2s ease-in-out infinite; }
@keyframes pip-pulse {
  0%, 100% { box-shadow: 0 4px 12px rgba(90, 70, 120, .25), 0 0 0 0 rgba(130, 100, 157, .35); }
  50% { box-shadow: 0 4px 12px rgba(90, 70, 120, .25), 0 0 0 9px rgba(130, 100, 157, 0); }
}
html[data-theme="dark"] .pip-player {
  background: #223128;
  border-color: #3c5546;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .3);
}
html[data-theme="dark"] .pip-caption { color: #cfe0d2; }
html[data-theme="dark"] .pip-status { color: #c3aede; }
html[data-theme="dark"] .pip-hand { border-color: #59836d; color: #cfe0d2; }
html[data-theme="dark"] .pip-hand:hover { background: #2c4636; }
@media (max-width: 480px) {
  .pip-player { padding: 12px 12px 9px; gap: 6px; }
  .pip-headbtn { width: 54px; height: 54px; }
  .pip-hand { width: 42px; height: 42px; }
  .pip-caption { font-size: .78rem; max-width: 160px; }
}
@media (prefers-reduced-motion: reduce) {
  .pip-player.is-playing .pip-headbtn { animation: none; }
}
