/* Public podcast UI follows the existing course/card language of the site. */
.podcast-course-hero {
  position: relative;
  min-height: 320px;
  overflow: hidden;
  background: #0b0e14;
}

.podcast-course-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--hero);
  background-size: cover;
  background-position: center;
  filter: blur(10px) brightness(.55);
  transform: scale(1.08);
}

.podcast-course-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.35), rgba(0,0,0,.65) 45%, rgba(0,0,0,.85));
}

.podcast-course-hero > .container {
  position: relative;
  z-index: 1;
}

.text-shadow {
  text-shadow: 0 2px 8px rgba(0,0,0,.45);
}

.podcast-show-card {
  overflow: hidden;
}

.podcast-show-cover,
.podcast-card-cover {
  background: var(--bs-light);
}

.podcast-show-card .card-img-top,
.podcast-show-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.podcast-show-placeholder,
.podcast-card-cover .placeholder-icon,
.podcast-sidebar-placeholder,
.podcast-cover-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--bs-primary-rgb), .08);
  color: var(--bs-primary);
}

.podcast-show-placeholder i,
.podcast-card-cover .placeholder-icon i,
.podcast-sidebar-placeholder i,
.podcast-cover-placeholder i {
  font-size: 3rem;
  opacity: .75;
}

.podcast-card {
  border: 0;
  border-radius: .5rem;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}

.podcast-card:hover,
.podcast-show-card:hover {
  transform: translateY(-3px);
}

.podcast-card-cover {
  aspect-ratio: 4 / 3;
}

.podcast-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.podcast-meta-chip {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  border-radius: 50rem;
  padding: .35rem .75rem;
  background: rgba(var(--bs-primary-rgb), .1);
  color: var(--bs-primary);
  font-size: .8rem;
  font-weight: 600;
}

.podcast-cover-frame {
  position: relative;
  overflow: hidden;
  border-radius: .75rem;
  background: var(--bs-light);
  aspect-ratio: 1 / 1;
  max-width: 260px;
  width: 100%;
  margin-inline: auto;
}

.podcast-cover-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.podcast-cover-placeholder {
  width: 100%;
  height: 100%;
}

.podcast-player-card {
  border: 0;
}

.podcast-player-card audio {
  width: 100%;
}

.podcast-episode-accordion .accordion-button {
  gap: .5rem;
  text-align: right;
}

.podcast-episode-list-item {
  background: var(--bs-body-bg);
}

.podcast-inline-player {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex: 0 0 320px;
}

.podcast-inline-player audio {
  width: 220px;
  height: 38px;
}

.podcast-rich-content {
  line-height: 1.95;
}

.podcast-rich-content :last-child {
  margin-bottom: 0;
}

.podcast-rich-content img,
.podcast-rich-content iframe,
.podcast-rich-content video {
  max-width: 100%;
}

.podcast-sidebar-placeholder {
  min-height: 220px;
}

.podcast-platform-link {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  border-radius: 50rem;
  padding: .55rem .9rem;
  text-decoration: none;
  background: var(--bs-body-bg);
  border: 1px solid var(--bs-border-color);
  color: var(--bs-body-color);
}

.podcast-admin-summary {
  border: 0;
  border-radius: 1.25rem;
  background: linear-gradient(135deg, rgba(var(--bs-primary-rgb), .09), rgba(var(--bs-info-rgb), .06));
}

.podcast-form-shell {
  border: 0;
  border-radius: 1.25rem;
  box-shadow: 0 .75rem 2rem rgba(15,23,42,.06);
}

.podcast-audio-box {
  border: 1px dashed var(--bs-border-color);
  border-radius: 1rem;
  padding: 1rem;
  background: rgba(var(--bs-light-rgb), .55);
}

.podcast-url-truncate {
  max-width: 260px;
}

.ltr {
  direction: ltr;
  text-align: left;
}

@media (max-width: 1199.98px) {
  .podcast-inline-player {
    flex: 1 1 auto;
    width: 100%;
  }

  .podcast-inline-player audio {
    flex: 1 1 auto;
    width: 100%;
  }
}

@media (max-width: 575.98px) {
  .podcast-inline-player {
    align-items: stretch;
    flex-direction: column;
  }
}
