/* Simple Podcast Player — baseline styles for in-content players
   This file intentionally avoids any header-specific rules.
   Header is styled in the theme's Additional CSS. */

/* Brand hook (overwritten from PHP via inline style var) */
:root { --soul-pod-accent: #004d4d; }

/* Player shell */
.soul-pod-player {
  display: grid;
  grid-template-columns: 96px 1fr;        /* cover | content */
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  width: 100%;
  max-width: 760px;                        /* keep it readable in-content */
  box-sizing: border-box;
}

/* Cover art */
.soul-pod-player .soul-pod-cover {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #eee;
  display: block;
}

/* Meta row: title + audio + controls (stacked on narrow blocks) */
.soul-pod-meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  min-width: 0;                            /* allow children to shrink */
}

/* Title */
.soul-pod-title {
  font-weight: 600;
  line-height: 1.35;
  margin: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* Audio element */
.soul-pod-player audio {
  display: block;
  width: 100%;
  height: 32px;
  margin: 0;
  min-width: 0;                            /* critical inside grid */
  outline: none;
  background: transparent;
}

/* Controls row (speed/subscribes) */
.soul-pod-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* Speed buttons (pill) */
.soul-pod-speed {
  appearance: none;
  -webkit-appearance: none;
  border: none;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--soul-pod-accent);
  color: #fff;
  font-weight: 500;
  cursor: pointer;
  transition: opacity .2s ease;
}
.soul-pod-speed:hover,
.soul-pod-speed.active { opacity: .85; }

/* Subscribe link (button-like) */
.soul-pod-subscribe {
  margin-left: auto;
  text-decoration: none;
  border: 1px solid var(--soul-pod-accent);
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--soul-pod-accent);
  font-weight: 600;
}
.soul-pod-subscribe:hover {
  background: var(--soul-pod-accent);
  color: #fff;
  text-decoration: none;
}

/* Episode list */
.soul-pod-list {
  display: grid;
  gap: 16px;
}
.soul-pod-list-item {
  display: grid;
  gap: 8px;
}

/* Small screens (in-content players) */
@media (max-width:600px){
  .soul-pod-player {
    grid-template-columns: 72px 1fr;
    padding: 10px;
  }
  .soul-pod-player .soul-pod-cover {
    width: 72px; height: 72px;
  }
  .soul-pod-player audio { height: 28px; }
}
