.podcast-player {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.podcast-item {
  display: flex;
  max-width: 1224px;
  gap: 20px;
  padding: 24px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background-color: #ffffff;
  align-items: center;
}

.podcast-thumbnail {
  flex-shrink: 0;
  width: 324px;
  height: 296px;
  overflow: hidden;
  border-radius: 8px;
}

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

.podcast-content {
  flex-grow: 1;
}

.podcast-content h3 {
  margin: 0 0 10px;
  font-size: 18px;
}

audio {
  width: 100%;
  margin-top: 10px;
}

.custom-audio-player {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.play-button {
  background-color: #0073aa;
  color: white;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.play-button:hover {
  background-color: #005880;
}

.progress-bar-container {
  height: 10px;
  background-color: #ddd;
  border-radius: 5px;
  overflow: hidden;
  position: relative;
  width: 150px;
  margin-top: 10px;
}

.progress-bar {
  position: absolute;
  height: 100%;
  background-color: #007bff;
  width: 0%;
  transition: width 0.1s ease;
}

.podcast-content h3,
.podcast-content p {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

.time-display {
  font-size: 14px;
  color: #555;
  font-family: Arial, sans-serif;
  text-align: center;
}

.podcast-buttons {
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
}
/* تنظیمات مخصوص موبایل */
@media (max-width: 768px) {
  .podcast-item {
    flex-direction: column !important; /* آیتم‌ها عمودی شوند */
    align-items: flex-start;
    padding: 10px !important;
    gap: 10px;
  }

  .podcast-thumbnail {
    width: 100% !important; /* تصویر به عرض کامل برسد */
    height: auto !important;
    margin-bottom: 10px;
  }

  .podcast-content {
    padding: 0 !important;
    width: 100%;
  }

  .podcast-content h3 {
    font-size: 16px; /* کوچک‌تر کردن عنوان در موبایل */
  }

  .play-button {
    width: 40px;
    height: 40px;
    font-size: 14px;
  }

  .progress-bar-container {
    width: 100% !important; /* پروگرس بار به عرض کامل برسد */
    margin-top: 10px;
  }

  .podcast-buttons {
    justify-content: space-between;
    width: 100%;
    gap: 5px;
  }

  audio {
    width: 100% !important; /* پلیر صوتی به عرض کامل برسد */
  }
}
