/* ─── Podcast browser styles (shared across stations) ──── */

/* ─── Show List ──────────────────────────────────────────── */
.podcast-shows {
  padding: 0;
}

.podcast-section-title {
  font-size: 1.3em;
  margin: 0 0 16px 0;
  opacity: 0.9;
}

.podcast-show-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.podcast-show-card {
  display: flex;
  gap: 12px;
  padding: 12px;
  background: rgba(240, 255, 255, 0.05);
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
}

.podcast-show-card:hover {
  background: rgba(240, 255, 255, 0.1);
}

.podcast-show-art {
  width: 72px;
  height: 72px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  background: rgba(240, 255, 255, 0.08);
}

.podcast-show-art-placeholder {
  width: 72px;
  height: 72px;
  border-radius: 6px;
  flex-shrink: 0;
  background: rgba(240, 255, 255, 0.08);
}

.podcast-show-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  overflow: hidden;
}

.podcast-show-title {
  font-size: 1em;
  font-weight: bold;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.podcast-show-desc {
  font-size: 0.82em;
  opacity: 0.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}

.podcast-show-count {
  font-size: 0.75em;
  opacity: 0.45;
  margin-top: 2px;
}

/* ─── Episode List ───────────────────────────────────────── */
.podcast-episode-list {
  padding: 0;
}

.podcast-ep-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.podcast-back {
  background: none;
  border: none;
  color: azure;
  font-size: 1.3em;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
  padding: 4px 8px;
  flex-shrink: 0;
}

.podcast-back:hover {
  opacity: 1;
}

.podcast-ep-header-art {
  width: 56px;
  height: 56px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}

.podcast-ep-header-info {
  flex: 1;
  min-width: 0;
}

.podcast-ep-header-title {
  font-size: 1.1em;
  font-weight: bold;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.podcast-ep-header-desc {
  font-size: 0.8em;
  opacity: 0.55;
  margin-top: 2px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}

.podcast-rss-btn {
  color: azure;
  opacity: 0.5;
  transition: opacity 0.2s;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  padding: 6px;
}

.podcast-rss-btn:hover {
  opacity: 1;
}

/* Episode rows */
.podcast-ep-rows {
  list-style: none;
  margin: 0;
  padding: 0;
}

.podcast-ep-row {
  border-bottom: 1px solid rgba(240, 255, 255, 0.08);
  padding: 10px 0;
}

.podcast-ep-row:last-child {
  border-bottom: none;
}

.podcast-ep-row-main {
  display: flex;
  align-items: center;
  gap: 10px;
}

.podcast-ep-row-info {
  flex: 1;
  min-width: 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.podcast-ep-row-title {
  font-size: 0.92em;
  font-weight: bold;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.podcast-ep-row-meta {
  display: flex;
  gap: 12px;
  font-size: 0.75em;
  opacity: 0.5;
}

.podcast-ep-play-btn {
  background: none;
  border: 1px solid rgba(240, 255, 255, 0.25);
  color: azure;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.85em;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
  flex-shrink: 0;
}

.podcast-ep-play-btn:hover {
  background: rgba(240, 255, 255, 0.1);
  border-color: rgba(240, 255, 255, 0.5);
}

/* Row action icon buttons (DL, Share) */
.podcast-ep-row-actions {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
  align-items: center;
}

.podcast-ep-icon-btn {
  background: none;
  border: none;
  color: azure;
  opacity: 0.4;
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
  text-decoration: none;
  border-radius: 4px;
}

.podcast-ep-icon-btn:hover {
  opacity: 1;
  background: rgba(240, 255, 255, 0.06);
}

/* Active / expanded row */
.podcast-ep-row--active {
  background: rgba(240, 255, 255, 0.04);
  border-radius: 6px;
  padding-left: 10px;
  padding-right: 10px;
  margin: 0 -10px;
}

.podcast-ep-row--active .podcast-ep-play-btn {
  border-color: rgba(240, 255, 255, 0.5);
  background: rgba(240, 255, 255, 0.08);
}

/* Inline player (expanded below row) */
.podcast-ep-inline-player {
  padding: 8px 0 4px 0;
}

.podcast-ep-inline-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.podcast-ep-inline-time,
.podcast-ep-inline-dur {
  font-size: 0.72em;
  opacity: 0.55;
  white-space: nowrap;
  min-width: 32px;
  text-align: center;
}

.podcast-ep-inline-seek {
  -webkit-appearance: none;
  appearance: none;
  flex: 1;
  height: 4px;
  background: rgba(240, 255, 255, 0.15);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
  min-width: 0;
}

.podcast-ep-inline-seek::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: azure;
  cursor: pointer;
}

.podcast-ep-inline-seek::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: azure;
  cursor: pointer;
  border: none;
}

.podcast-ep-inline-seek::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 2px;
}

.podcast-ep-inline-seek::-moz-range-track {
  height: 4px;
  background: rgba(240, 255, 255, 0.15);
  border-radius: 2px;
}

/* Touch-friendly targets */
@media (pointer: coarse) {
  .podcast-ep-play-btn {
    width: 44px;
    height: 44px;
    font-size: 1em;
  }

  .podcast-ep-icon-btn {
    padding: 8px;
  }

  .podcast-ep-inline-seek::-webkit-slider-thumb {
    width: 18px;
    height: 18px;
  }

  .podcast-ep-inline-seek::-moz-range-thumb {
    width: 18px;
    height: 18px;
  }

  .podcast-ep-row {
    padding: 12px 0;
  }
}

/* Load more */
.podcast-load-more-li {
  text-align: center;
  padding: 14px 0;
}

.podcast-load-more-btn {
  background: rgba(240, 255, 255, 0.08);
  border: 1px solid rgba(240, 255, 255, 0.2);
  color: azure;
  padding: 8px 24px;
  border-radius: 4px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.85em;
  transition: background 0.2s;
}

.podcast-load-more-btn:hover {
  background: rgba(240, 255, 255, 0.15);
}

/* Loading & empty states */
.podcast-loading {
  opacity: 0.4;
  font-style: italic;
  text-align: center;
  padding: 20px 0;
}

.podcast-empty {
  opacity: 0.4;
  font-style: italic;
  text-align: center;
  padding: 20px 0;
}

/* ─── Episode Player View ────────────────────────────────── */
.podcast-player-view {
  padding: 0;
}

.podcast-player-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.podcast-player-nav-title {
  font-size: 0.9em;
  opacity: 0.55;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.podcast-player-art-wrap {
  text-align: center;
  margin-bottom: 16px;
}

.podcast-player-art {
  max-width: 200px;
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}

.podcast-player-info {
  margin-bottom: 16px;
}

.podcast-player-title {
  font-size: 1.15em;
  font-weight: bold;
  line-height: 1.3;
}

.podcast-player-date {
  font-size: 0.8em;
  opacity: 0.5;
  margin-top: 4px;
}

/* Audio controls */
.podcast-player-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.podcast-player-playpause {
  background: none;
  border: 2px solid rgba(240, 255, 255, 0.4);
  color: azure;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1em;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s;
  letter-spacing: -2px;
}

.podcast-player-playpause:hover {
  background: rgba(240, 255, 255, 0.1);
  border-color: rgba(240, 255, 255, 0.7);
}

.podcast-player-timeline {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.podcast-player-time-current,
.podcast-player-time-total {
  font-size: 0.75em;
  opacity: 0.6;
  white-space: nowrap;
  min-width: 36px;
  text-align: center;
}

/* Seek bar */
.podcast-player-seek {
  -webkit-appearance: none;
  appearance: none;
  flex: 1;
  height: 4px;
  background: rgba(240, 255, 255, 0.15);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}

.podcast-player-seek::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: azure;
  cursor: pointer;
  margin-top: -1px;
}

.podcast-player-seek::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: azure;
  cursor: pointer;
  border: none;
}

.podcast-player-seek::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 2px;
}

.podcast-player-seek::-moz-range-track {
  height: 4px;
  background: rgba(240, 255, 255, 0.15);
  border-radius: 2px;
}

/* Larger thumb on touch devices */
@media (pointer: coarse) {
  .podcast-player-seek::-webkit-slider-thumb {
    width: 22px;
    height: 22px;
  }

  .podcast-player-seek::-moz-range-thumb {
    width: 22px;
    height: 22px;
  }

  .podcast-player-playpause {
    width: 52px;
    height: 52px;
    font-size: 1.15em;
  }
}

/* Action buttons */
.podcast-player-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.podcast-action-btn {
  background: rgba(240, 255, 255, 0.08);
  border: 1px solid rgba(240, 255, 255, 0.2);
  color: azure;
  padding: 7px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.82em;
  text-decoration: none;
  transition: background 0.2s;
}

.podcast-action-btn:hover {
  background: rgba(240, 255, 255, 0.15);
}

/* Description */
.podcast-player-desc {
  font-size: 0.85em;
  opacity: 0.7;
  line-height: 1.6;
  border-top: 1px solid rgba(240, 255, 255, 0.1);
  padding-top: 14px;
}

.podcast-player-desc p {
  margin: 0.8em 0;
}

.podcast-player-desc a {
  color: #7ec8e3;
}

/* ─── Mini indicator on main player ──────────────────────── */
#podcast-mini-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0 0 0;
  font-size: 0.82em;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
  overflow: hidden;
}

#podcast-mini-indicator:hover {
  opacity: 1;
}

#podcast-mini-indicator.hidden {
  display: none;
}

.podcast-mini-icon {
  font-size: 0.7em;
  color: #3db8e8;
  flex-shrink: 0;
}

.podcast-mini-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
