#je-podcast-player[hidden], #je-podcast-page[hidden], .je-player-status[hidden] { display: none; }
#je-podcast-player {
  position: fixed;
  z-index: 1000;
  inset: auto 0 0;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 12px;
  padding: 12px var(--page-gutter) max(12px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  font: 400 14px/1.4 var(--font-body);
}
#je-podcast-player audio { display: none; }
#je-podcast-player button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
#je-podcast-player .je-player-toggle { color: var(--surface); background: var(--ink); }
.je-player-toggle::before {
  content: '';
  width: 0;
  height: 0;
  border: 7px solid transparent;
  border-right: 0;
  border-left: 11px solid currentColor;
  margin-left: 3px;
}
.je-player-toggle.is-playing::before { width: 11px; height: 13px; border: solid currentColor; border-width: 0 3px; margin: 0; }
#je-podcast-player .je-player-close { font-size: 25px; }
.je-player-track { min-width: 0; }
.je-player-title { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.je-player-title:hover { text-decoration: underline; }
.je-player-timeline {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.je-player-timeline input { width: 100%; min-width: 0; height: 24px; margin: 0; accent-color: var(--ink); }
.je-player-status { margin: 2px 0 0; font-size: 12px; color: var(--muted); }
.je-player-visible:not(.je-player-browsing) body { padding-bottom: var(--je-player-height); }
.je-player-browsing, .je-player-browsing body { overflow: hidden; }
.je-player-browsing body > :not(#je-podcast-player, #je-podcast-page) { display: none !important; }
#je-podcast-page {
  position: fixed;
  inset: 0 0 auto;
  width: 100%;
  height: calc(100dvh - var(--je-player-height, 0px));
  border: 0;
  background: var(--surface);
}
[data-je-episodes] .je-episode-listen { margin: 8px 0 12px; background: var(--ink); color: var(--surface); }
[data-je-episodes] .je-episode-listen:hover:not(:disabled) { background: var(--ink); opacity: .85; }

#je-podcast-player:has(.je-player-cover:not([hidden])) {
  grid-template-columns: 44px 44px minmax(0, 1fr) 44px;
}
.je-player-cover {
  display: block;
  width: 44px;
  height: 44px;
  object-fit: cover;
  background: var(--surface-2);
}
.je-player-cover[hidden] { display: none; }
@media (max-width: 480px) {
  #je-podcast-player { gap: 8px; }
  .je-player-timeline { gap: 6px; }
}
