<style>
.podcast-episode-grid-section {
  background: #F7F9FB;
  padding: 80px 0;
}

.podcast-episode-grid-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  margin-top: 100px;
}

.podcast-browse-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 48px;
  gap: 32px;
  flex-wrap: wrap;
}

.podcast-section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #00416E;
  margin: 0 0 8px 0;
}

.podcast-section-subtitle {
  font-size: 1.125rem;
  color: #5A6C7D;
  margin: 0;
}

/* Filter Dropdown */
.podcast-filter-dropdown-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.podcast-filter-label {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #00416E;
  font-family: 'Raleway';
}

.podcast-custom-select {
  position: relative;
  min-width: 240px;
}

.podcast-select-button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: 'Raleway';
  gap: 12px;
  padding: 12px 16px;
  background: white;
  border: 1.5px solid #E5E7EB;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #1F2937;
  cursor: pointer;
  transition: all 0.2s ease;
}

.podcast-select-button:hover {
  border-color: #00416E;
  background: #F7F9FB;
}

.podcast-select-button svg {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.podcast-custom-select.open .podcast-select-button svg {
  transform: rotate(180deg);
}

.podcast-select-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: white;
  font-family: 'Raleway';
  border: 1.5px solid #E5E7EB;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s ease;
  z-index: 100;
  max-height: 300px;
  overflow-y: auto;
}

.podcast-custom-select.open .podcast-select-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.podcast-select-options {
  padding: 8px;
}

.podcast-select-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s ease;
  font-size: 0.9375rem;
  color: #1F2937;
}

.podcast-select-option:hover {
  background: #F7F9FB;
}

.podcast-select-option input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #00416E;
}

.podcast-select-option span {
  flex: 1;
  user-select: none;
}

.podcast-trending-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
}

.podcast-trending-header h3 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #00416E;
  margin: 0;
}

.podcast-episode-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px;
  margin-bottom: 48px;
}

/* View All Episodes Button */
.podcast-view-all-container {
  margin-top: 16px;
  margin-bottom: 48px;
  display: flex;
  justify-content: flex-start;
}

.podcast-view-all-episodes-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  background: #00416E;
  color: white;
  text-decoration: none;
  font-family: 'Raleway';
  font-size: 1rem;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(0, 65, 110, 0.2);
}

.podcast-view-all-episodes-btn:hover {
  background: #003557;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 65, 110, 0.3);
}

.podcast-view-all-episodes-btn:active {
  transform: translateY(0);
}

.podcast-view-all-episodes-btn svg {
  transition: transform 0.3s ease;
}

.podcast-view-all-episodes-btn:hover svg {
  transform: translateX(4px);
}

.podcast-episode-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  animation: cardFadeIn 0.6s ease-out backwards;
}

.podcast-episode-card:nth-child(1) { animation-delay: 0.05s; }
.podcast-episode-card:nth-child(2) { animation-delay: 0.1s; }
.podcast-episode-card:nth-child(3) { animation-delay: 0.15s; }
.podcast-episode-card:nth-child(4) { animation-delay: 0.2s; }
.podcast-episode-card:nth-child(5) { animation-delay: 0.25s; }
.podcast-episode-card:nth-child(6) { animation-delay: 0.3s; }

@keyframes cardFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.podcast-episode-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

/* Active state for mobile cards in viewport - show hover effect */
@media (max-width: 768px) {
  .podcast-episode-card.card-active {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  }
  
  .podcast-episode-card.card-active .podcast-episode-overlay {
    opacity: 1;
  }
}

.podcast-episode-thumbnail {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: linear-gradient(135deg, #00416E, #0067A6);
  overflow: hidden;
}

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

.podcast-episode-thumbnail-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.podcast-duration-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.85);
  color: white;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.8125rem;
  font-weight: 600;
  z-index: 2;
  backdrop-filter: blur(4px);
}

.podcast-episode-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.podcast-episode-card:hover .podcast-episode-overlay {
  opacity: 1;
}

.podcast-play-button {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #E31E24;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(227, 30, 36, 0.4);
}

.podcast-play-button:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 24px rgba(227, 30, 36, 0.6);
}

.podcast-episode-content {
  padding: 24px;
}

.podcast-episode-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  gap: 12px;
}

.podcast-episode-category {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(0, 65, 110, 0.08);
  color: #00416E;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: 'Raleway';
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 4px;
}

.podcast-episode-duration {
  font-size: 0.875rem;
  color: #5A6C7D;
  font-weight: 500;
}

.podcast-episode-title {
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.3;
  color: #00416E;
  margin: 0 0 12px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.podcast-episode-description {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #5A6C7D;
  margin: 0 0 16px 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.podcast-episode-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid rgba(0, 65, 110, 0.1);
  gap: 12px;
  flex-wrap: wrap;
}

.podcast-episode-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.podcast-episode-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.podcast-episode-number, .podcast-episode-date {
  font-family: 'Raleway';
  font-size: 0.8125rem;
  color: #8B9BA8;
  font-weight: 500;
}

.podcast-view-episode-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: transparent;
  border: 1.5px solid #00416E;
  border-radius: 20px;
  color: #00416E;
  font-family: 'Raleway';
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.podcast-view-episode-btn:hover {
  background: #00416E;
  color: white;
  transform: translateY(-1px);
}

.podcast-view-episode-btn:active {
  transform: translateY(0);
}

.podcast-view-episode-btn svg {
  flex-shrink: 0;
}

.podcast-listen-now-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: #b31b38;
  border: none;
  border-radius: 20px;
  color: white;
  font-family: 'Raleway';
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.podcast-listen-now-btn:hover {
  background: #bf160a;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(227, 30, 36, 0.3);
}

.podcast-listen-now-btn:active {
  transform: translateY(0);
}

.podcast-listen-now-btn svg {
  flex-shrink: 0;
}

.podcast-add-to-queue-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: transparent;
  border: 1.5px solid rgba(0, 65, 110, 0.2);
  border-radius: 20px;
  color: #00416E;
  font-family: 'Raleway';
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.podcast-add-to-queue-btn:hover {
  background: rgba(0, 65, 110, 0.05);
  border-color: #00416E;
  transform: translateY(-1px);
}

.podcast-add-to-queue-btn:active {
  transform: translateY(0);
}

.podcast-add-to-queue-btn svg {
  flex-shrink: 0;
}

.podcast-add-to-queue-btn.added {
  background: #00416E;
  border-color: #00416E;
  color: white;
}

.podcast-add-to-queue-btn.added svg {
  display: none;
}

.podcast-add-to-queue-btn.added::before {
  content: '✓';
  margin-right: 4px;
}

/* Video Modal */
.podcast-video-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  align-items: center;
  justify-content: center;
}

.podcast-video-modal.open {
  display: flex;
}

.podcast-video-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  cursor: pointer;
}

.podcast-video-modal-content {
  position: relative;
  width: 90%;
  max-width: 1200px;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  z-index: 1;
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.podcast-video-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: none;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: all 0.2s ease;
}

.podcast-video-modal-close:hover {
  background: rgba(0, 0, 0, 0.9);
  transform: scale(1.1);
}

.podcast-video-modal-player {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  background: #000;
}

.podcast-video-modal-player iframe,
.podcast-video-modal-player video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

@media (max-width: 768px) {
  .podcast-video-modal-content {
    width: 95%;
  }
  
  .podcast-video-modal-close {
    top: 8px;
    right: 8px;
    width: 36px;
    height: 36px;
  }
}

@media (max-width: 768px) {
  .podcast-episode-grid-container {
    padding: 0 24px;
  }
  
  .podcast-episode-grid-section {
    padding: 60px 0;
  }
  
  .podcast-browse-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .podcast-filter-dropdown-wrapper {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }
  
  .podcast-custom-select {
    width: 100%;
    min-width: auto;
  }
  
  .podcast-episode-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}
</style>