/* [VG-POST-PLAYER] modern audio / voice post player (Thoughts player look).
   Progressive enhancement: the real <audio controls> stays in the page and keeps
   working until post-player.js adds .vg-pp-on to the wrapper. */
.vg-pp { position: relative; }
.vg-pp > audio { width: 100%; }
.vg-pp.vg-pp-on > audio { display: none !important; }
.vg-pp-card {
  position: relative; width: 100%; box-sizing: border-box; color: #dbe4f3;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 14px 14px 12px; border-radius: 18px; text-align: center; font-weight: 500; line-height: 1.3;
  background: radial-gradient(120% 90% at 20% 10%, rgba(95, 184, 230, 0.38), transparent 60%),
              radial-gradient(120% 90% at 90% 90%, rgba(137, 207, 240, 0.28), transparent 60%),
              linear-gradient(160deg, #13224a, #0a1330);
  box-shadow: 0 8px 24px rgba(5, 10, 20, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.vg-pp-top { width: 100%; display: flex; align-items: center; justify-content: space-between; min-height: 28px; }
.vg-pp-kind { display: inline-flex; color: rgba(255, 255, 255, 0.7); }
.vg-pp-kind svg { width: 18px; height: 18px; }
.vg-pp-dl {
  display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%;
  color: #89cff0; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(137, 207, 240, 0.35); text-decoration: none;
}
.vg-pp-dl:hover, .vg-pp-dl:focus-visible { background: rgba(137, 207, 240, 0.22); color: #89cff0; }
.vg-pp-dl svg { width: 16px; height: 16px; }
.vg-pp-btn {
  position: relative; z-index: 2; width: 64px; height: 64px; border-radius: 50%; padding: 0; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.4); color: #050a14;
  background: linear-gradient(135deg, #89cff0, #5fb8e6);
  display: grid; place-items: center;
  box-shadow: 0 8px 28px rgba(137, 207, 240, 0.5), 0 0 0 6px rgba(137, 207, 240, 0.12);
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
  transition: transform 0.12s ease, box-shadow 0.2s ease;
}
.vg-pp-btn svg { width: 26px; height: 26px; }
.vg-pp-btn:active { transform: scale(0.95); }
.vg-pp-card.playing .vg-pp-btn { box-shadow: 0 8px 34px rgba(137, 207, 240, 0.7), 0 0 0 9px rgba(137, 207, 240, 0.18); }
.vg-pp-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.vg-pp-hint { font-size: 12px; color: #89cff0; margin-top: -4px; }
.vg-pp-hint[hidden] { display: none; }
.vg-pp-card.vg-pp-err .vg-pp-hint { color: #fda4af; }
.vg-pp-wave {
  width: 100%; height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 2px;
  cursor: pointer; touch-action: pan-y; border-radius: 8px; user-select: none; -webkit-user-select: none;
}
.vg-pp-wave:focus-visible { outline: 2px solid #89cff0; outline-offset: 3px; }
.vg-pp-wave i { flex: 1 1 0; min-width: 2px; max-width: 5px; border-radius: 2px; background: rgba(255, 255, 255, 0.34); transition: background 0.15s ease; }
.vg-pp-wave i.on { background: #89cff0; }
.vg-pp-card.playing .vg-pp-wave i.on { animation: vgppPl 0.9s ease-in-out infinite; }
.vg-pp-wave i:nth-child(3n) { animation-delay: -0.3s; }
.vg-pp-wave i:nth-child(3n+1) { animation-delay: -0.6s; }
.vg-pp-wave i:nth-child(4n) { animation-delay: -0.15s; }
@keyframes vgppPl { 50% { transform: scaleY(0.55); } }
.vg-pp-title { max-width: 100%; font-size: 14px; font-weight: 600; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vg-pp-sub { max-width: 100%; margin-top: -8px; font-size: 12px; color: #b9c8e0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vg-pp-time { font-size: 12px; color: #b9c8e0; font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) {
  .vg-pp-card.playing .vg-pp-wave i.on { animation: none; }
}
