.back-link {
  display: inline-block;
  text-decoration: none;
  color: #1a1a1a;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  padding: 0.5rem 1.2rem;
  background: #ffffff;
  border: 4px solid #1a1a1a;
  box-shadow: 10px 10px 0 #1a1a1a;
  transition: 0.1s;
}

.back-link:hover {
  transform: translate(-3px, -3px);
  box-shadow: 13px 13px 0 #1a1a1a;
  background: #ffd93d;
}

.podcast-detail {
  background: #ffffff;
  border: 4px solid #1a1a1a;
  box-shadow: 10px 10px 0 #1a1a1a;
  padding: 2rem;
}

.podcast-cover {
  width: 100%;
  height: 100%;
  border: 4px solid #1a1a1a;
  overflow: hidden;
  margin-bottom: 1.5rem;
  background: #e8e0d6;
}

.podcast-cover img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.podcast-title {
  font-size: 2rem;
  font-weight: 800;
  color: #1a1a1a;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.podcast-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.meta-badge {
  background: #ffd93d;
  padding: 0.2rem 0.9rem;
  border: 3px solid #1a1a1a;
  font-weight: 700;
  color: #1a1a1a;
}

.meta-divider {
  color: #1a1a1a;
  font-weight: 700;
}

.meta-date {
  color: #1a1a1a;
  font-weight: 600;
}

.audio-player-wrapper {
  margin-bottom: 1.75rem;
}

.audio-player {
  background: #f5f0e8;
  border: 4px solid #1a1a1a;
  padding: 1.25rem;
  box-shadow: 6px 6px 0 #1a1a1a;
}

.audio-progress-container {
  width: 100%;
  margin-bottom: 1rem;
}

/* ===== CLEANER, COOLER WAVEFORM ===== */
.audio-waveform {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
  height: 32px;
  margin-bottom: 20px;
  padding: 0 4px;
}

.audio-waveform span {
  flex: 1;
  max-width: 6px;
  min-width: 3px;
  background: #1a1a1a;
  border-radius: 2px;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform-origin: bottom;
  height: 15%; /* Default settled state */
  opacity: 0.4;
}

/* ===== PAUSED STATE - Goes down smoothly ===== */
.audio-waveform:not(.playing) span {
  height: 15% !important;
  animation: waveSettle 0.4s ease forwards;
}

@keyframes waveSettle {
  0% {
    transform: scaleY(1);
    opacity: 0.6;
  }
  100% {
    transform: scaleY(0.3);
    opacity: 0.4;
  }
}

/* ===== PLAYING STATE - Bounce animation ===== */
.audio-waveform.playing span {
  animation: waveBounce 0.6s ease-in-out infinite alternate;
  transform-origin: bottom;
  opacity: 1;
}

/* Individual bar heights while playing */
.audio-waveform.playing span:nth-child(1)  { height: 30%; animation-delay: 0.0s; }
.audio-waveform.playing span:nth-child(2)  { height: 55%; animation-delay: 0.1s; }
.audio-waveform.playing span:nth-child(3)  { height: 80%; animation-delay: 0.2s; }
.audio-waveform.playing span:nth-child(4)  { height: 40%; animation-delay: 0.05s; }
.audio-waveform.playing span:nth-child(5)  { height: 95%; animation-delay: 0.25s; }
.audio-waveform.playing span:nth-child(6)  { height: 65%; animation-delay: 0.15s; }
.audio-waveform.playing span:nth-child(7)  { height: 20%; animation-delay: 0.3s; }
.audio-waveform.playing span:nth-child(8)  { height: 100%; animation-delay: 0.0s; }
.audio-waveform.playing span:nth-child(9)  { height: 70%; animation-delay: 0.2s; }
.audio-waveform.playing span:nth-child(10) { height: 35%; animation-delay: 0.1s; }
.audio-waveform.playing span:nth-child(11) { height: 85%; animation-delay: 0.35s; }
.audio-waveform.playing span:nth-child(12) { height: 50%; animation-delay: 0.05s; }
.audio-waveform.playing span:nth-child(13) { height: 90%; animation-delay: 0.15s; }
.audio-waveform.playing span:nth-child(14) { height: 45%; animation-delay: 0.25s; }
.audio-waveform.playing span:nth-child(15) { height: 60%; animation-delay: 0.1s; }

@keyframes waveBounce {
  0% {
    transform: scaleY(0.5);
    opacity: 0.7;
  }
  100% {
    transform: scaleY(1.2);
    opacity: 1;
  }
}

/* ===== PULSING GLOW EFFECT (optional) ===== */
.audio-waveform.playing {
  animation: waveformPulse 1.2s ease-in-out infinite;
}

@keyframes waveformPulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.85;
  }
}

.audio-progress-bar {
  width: 100%;
  height: 10px;
  background: #d4cec4;
  border: 3px solid #1a1a1a;
  position: relative;
  overflow: visible;
  cursor: pointer;
}

.audio-progress-fill {
  height: 100%;
  background: #ff6b6b;
  width: 0%;
  position: absolute;
  left: 0;
  right: auto;
  top: 0;
  transition: none;
}

.audio-progress-handle {
  position: absolute;
  top: 50%;
  left: 0;
  right: auto;

  transform: translate(-50%, -50%);

  width: 16px;
  height: 16px;
  background: #ffd93d;
  border: 3px solid #1a1a1a;
  border-radius: 50%;
  pointer-events: none;
  z-index: 2;
}

.audio-progress-handle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 6px;
  height: 6px;
  background: #1a1a1a;
  border-radius: 50%;
}

.audio-time {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-top: 6px;
}

.audio-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.audio-btn {
  background: #1a1a1a;
  border: 3px solid #1a1a1a;
  color: #ffffff;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: 0.1s;
  flex-shrink: 0;
  padding: 0;
  gap: 0;
}

.audio-btn:hover {
  background: #ffd93d;
  color: #1a1a1a;
  transform: scale(1.05);
}

.audio-btn:active {
  transform: scale(0.95);
}

.audio-btn svg {
  width: 20px;
  height: 20px;
}

.audio-btn span {
  font-size: 0.55rem;
  font-weight: 700;
  line-height: 1;
  margin-top: 1px;
}

.audio-btn#playBtn {
  width: 64px;
  height: 64px;
}

.audio-btn#playBtn svg {
  width: 28px;
  height: 28px;
}

.audio-controls-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 0.5rem;
}

.speed-control {
  position: relative;
}

.speed-btn {
  background: #1a1a1a;
  border: 3px solid #1a1a1a;
  color: #ffffff;
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  transition: 0.1s;
  height: 38px;
  min-width: 48px;
}

.speed-btn:hover {
  background: #ffd93d;
  color: #1a1a1a;
}

.speed-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;

  background: #fff;
  border: 3px solid #1a1a1a;

  min-width: 90px;

  opacity: 0;
  visibility: hidden;

  transform: translateY(-8px) scale(0.95);

  transition:
    opacity .18s ease,
    transform .18s ease,
    visibility .18s ease;

  z-index: 10;

  overflow: hidden;
  
  display: flex;
  flex-direction: column;

}

.speed-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.speed-option {
  background: transparent;
  border: none;

  padding: 0.65rem 1rem;

  cursor: pointer;

  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;

  transition: all .15s ease;
}

.speed-option:hover {
  background: #f5f0e8;
}

.speed-option.active {
  background: #ffd93d;
  color: #1a1a1a;
}

.download-btn {
  background: #1a1a1a;
  border: 3px solid #1a1a1a;
  color: #ffffff;
  width: 38px;
  height: 38px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.1s;
  text-decoration: none;
}

.download-btn:hover {
  background: #ffd93d;
  color: #1a1a1a;
}

.download-btn svg {
  width: 20px;
  height: 20px;
}

.podcast-description {
  font-size: 1rem;
  line-height: 1.5;
  color: #1a1a1a;
  margin-bottom: 2rem;
  padding: 1rem;
  background: #f5f0e8;
  border: 4px solid #1a1a1a;
  text-align: justify;
}

.podcast-description p {
  margin-bottom: 0.75rem;
}

.podcast-description p:last-child {
  margin-bottom: 0;
}

.podcast-description ul,
.podcast-description ol {
  padding-right: 1.5rem;
  margin: 0.5rem 0 0.75rem 0;
}

.podcast-description li {
  margin-bottom: 0.25rem;
}

.podcast-crew-section {
  padding-top: 1.5rem;
  border-top: 4px solid #1a1a1a;
}

.crew-section-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 1rem;
}

.podcast-crew {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.crew-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: #f5f0e8;
  border: 4px solid #1a1a1a;
  box-shadow: 4px 4px 0 #1a1a1a;
  transition: 0.1s;
}

.crew-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 #1a1a1a;
}

.crew-card:nth-child(1) {
  background: #ffd93d;
}

.crew-card:nth-child(2) {
  background: #ff6b6b;
  color: #ffffff;
}

.crew-card:nth-child(2) .crew-name {
  color: #ffffff;
}

.crew-card:nth-child(3) {
  background: #7c3aed;
  color: #ffffff;
}

.crew-card:nth-child(3) .crew-name {
  color: #ffffff;
}

.crew-avatar {
  font-size: 2.2rem;
  flex-shrink: 0;
}

.crew-info {
  display: flex;
  flex-direction: column;
}

.crew-role {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.7;
}

.crew-name {
  font-size: 1rem;
  font-weight: 700;
  color: #1a1a1a;
}

@media (max-width: 640px) {
  .podcast-detail {
    padding: 1.25rem;
    box-shadow: 6px 6px 0 #1a1a1a;
  }

  .podcast-title {
    font-size: 1.3rem;
  }

  .podcast-crew {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .back-link {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
    box-shadow: 4px 4px 0 #1a1a1a;
  }

  .back-link:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 #1a1a1a;
  }

  .podcast-description {
    padding: 1rem;
    font-size: 0.95rem;
    line-height: 1.9;
  }

  .audio-controls {
    gap: 0.75rem;
  }

  .audio-btn {
    width: 44px;
    height: 44px;
  }

  .audio-btn svg {
    width: 16px;
    height: 16px;
  }

  .audio-btn span {
    font-size: 0.45rem;
  }

  .audio-btn#playBtn {
    width: 52px;
    height: 52px;
  }

  .audio-btn#playBtn svg {
    width: 22px;
    height: 22px;
  }

  .audio-progress-container {
    min-width: 100px;
  }

  .crew-card {
    padding: 0.75rem 1rem;
  }

  .audio-progress-bar {
    height: 8px;
  }

  .audio-progress-handle {
    width: 14px;
    height: 14px;
  }

  .audio-progress-handle::after {
    width: 5px;
    height: 5px;
  }

  .audio-controls-bottom {
    gap: 0.5rem;
  }

  .speed-btn {
    height: 34px;
    font-size: 0.75rem;
    min-width: 40px;
    padding: 0.2rem 0.6rem;
  }

  .download-btn {
    width: 34px;
    height: 34px;
  }

  .download-btn svg {
    width: 17px;
    height: 17px;
  }

  .speed-dropdown {
    min-width: 70px;
  }

  .speed-option {
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
  }
}