.container {
  background-color: #11171e;
  min-height: 100vh;
}

.category-page {
  padding: 2rem 0;
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  padding: 2rem 1rem;
  margin-bottom: 2rem;
}

.section-title {
  font-size: 2.5rem;
  color: #ffffff;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.2rem;
  color: #007bff;
  font-weight: normal;
}

.podcasts-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 2rem;
}

.podcast-card {
  flex: 0 0 calc(25% - 1.5rem); /* 4 cards per row */
  background: #2a374a;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.podcast-card:hover {
  transform: translateY(-5px);
}

.podcast-image {
  position: relative;
  width: 100%;
  padding-top: 100%; /* 1:1 Aspect Ratio */
}

.podcast-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.favorite-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.favorite-btn svg {
  color: #666;
  transition: all 0.3s ease;
}

.favorite-btn.active svg {
  fill: #ff4757;
  color: #ff4757;
}

.favorite-btn:hover {
  background: white;
}

.favorite-btn:hover svg {
  color: #ff4757;
}

.podcast-content {
  padding: 1rem;
}

.podcast-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: white;
  margin-bottom: 0.5rem;
}
.podcast-content {
  text-decoration: none;
}

.podcast-duration {
  margin: 0;
  font-size: 0.9rem;
  color: #a0aec0;
  display: flex;
  align-items: center;
  gap: 5px;
}

.podcast-duration svg {
  color: #a0aec0;
}

/* RTL/LTR Support */
html[lang="ar"] .section-header,
html[lang="ar"] .podcast-content {
  direction: rtl;
  text-align: right;
}

html[lang="en_US"] .section-header,
html[lang="en_US"] .podcast-content {
  direction: ltr;
  text-align: left;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .podcast-card {
    flex: 0 0 calc(33.333% - 1.334rem); /* 3 cards per row */
  }
}

@media (max-width: 768px) {
  .podcast-card {
    flex: 0 0 calc(50% - 1rem); /* 2 cards per row */
  }

  .section-title {
    font-size: 2rem;
  }

  .section-subtitle {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .podcast-card {
    flex: 0 0 100%; /* 1 card per row */
    max-width: 300px;
    margin: 0 auto;
  }

  .podcasts-grid {
    padding: 1rem;
    gap: 1.5rem;
  }

  .section-title {
    font-size: 1.75rem;
  }
}

/* Style for empty category message */
.no-podcasts {
  width: 100%;
  text-align: center;
  padding: 3rem 1rem;
  color: #a0aec0;
  font-size: 1.2rem;
}

/* Play button hover effect */
.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -70%);
  background-color: #007bff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.podcast-card:hover .play-button {
  opacity: 1;
}

/* Ensure the podcast image container has position relative */
.podcast-card .podcast-image {
  position: relative;
  width: 100%;
  padding-top: 100%;
}

.podcast-search {
  margin: 20px auto;
  max-width: 400px;
}

.podcast-search input {
  width: 100%;
  padding: 10px 20px;
  border: 1px solid #ddd;
  border-radius: 20px;
  font-size: 16px;
}
