.episodes-section {
  background: linear-gradient(180deg, #000 0%, #0a0a0a 100%);
  padding: 6rem 4rem;
  position: relative;
}

/* Static background particles */
.episodes-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
      circle at 20% 50%,
      rgba(142, 252, 0, 0.03) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(142, 252, 0, 0.05) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 40% 80%,
      rgba(142, 252, 0, 0.02) 0%,
      transparent 50%
    );
}

.section-title {
  text-align: center;
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 4rem;
  background: linear-gradient(
    135deg,
    #fff 0%,
    var(--highlight-color) 50%,
    #fff 100%
  );
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
  z-index: 2;
}

.episodes-container {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  max-width: 1400px;
  margin: 0 auto 4rem;
  align-items: stretch;
  min-height: 500px;
  position: relative;
  z-index: 2;
}

.upcoming-episode {
  background: linear-gradient(
    135deg,
    rgba(142, 252, 0, 0.15) 0%,
    rgba(22, 22, 22, 0.9) 100%
  );
  border: 2px solid transparent;
  border-radius: 1.5rem;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;

  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.upcoming-episode::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 2px;
  background: linear-gradient(
    135deg,
    var(--highlight-color),
    transparent,
    var(--highlight-color)
  );
  border-radius: inherit;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: subtract;
  -webkit-mask-composite: xor;
  pointer-events: none;
}

.upcoming-episode::after {
  content: "NEXT EPISODE";
  position: absolute;
  top: 1.5rem;
  right: -3rem;
  background: linear-gradient(45deg, var(--highlight-color), #b8ff3d);
  color: black;
  padding: 0.7rem 4rem;
  transform: rotate(45deg);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 2px;
  box-shadow: 0 4px 15px rgba(142, 252, 0, 0.4);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: rotate(45deg) scale(1);
  }
  50% {
    transform: rotate(45deg) scale(1.05);
  }
}

.upcoming-episode:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 30px 60px rgba(62, 109, 1, 0.178);
}

.upcoming-episode h3 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--highlight-color);
  text-shadow: 0 0 20px rgba(142, 252, 0, 0.3);
}

.upcoming-episode h4 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  background: linear-gradient(90deg, #fff, var(--highlight-color));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.upcoming-time {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-gray);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  padding: 0.8rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0.75rem;
  border: 1px solid rgba(142, 252, 0, 0.2);
}

.upcoming-time svg {
  animation: spin 3s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.guest-list {
  margin: 1rem 0;
  flex: 1;
}

.guest-list h5 {
  margin-bottom: 1rem;
  font-size: 1.1rem;
  color: var(--highlight-color);
  position: relative;
}

.guest-list h5::after {
  content: "";
  position: absolute;
  bottom: -0.3rem;
  left: 0;
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--highlight-color), transparent);
}

.guest-item {
  color: #fff;
  margin-bottom: 0.6rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0.4rem;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.guest-item::before {
  content: "→";
  color: var(--highlight-color);
  font-weight: bold;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.guest-item:hover {
  background: rgba(142, 252, 0, 0.1);
  border-color: var(--highlight-color);
  transform: translateX(8px);
}

.guest-item:hover::before {
  transform: translateX(5px);
}

.past-episodes {
  background: linear-gradient(
    135deg,
    rgba(22, 22, 22, 0.8) 0%,
    rgba(0, 0, 0, 0.9) 100%
  );
  border: 1px solid var(--border-white);
  border-radius: 1.5rem;
  padding: 2.5rem;
  height: 680px;
  display: flex;
  flex-direction: column;

  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.past-episodes::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--highlight-color),
    transparent
  );
}

.past-episodes h3 {
  font-size: 2rem;
  margin-bottom: 2rem;
  background: linear-gradient(135deg, #fff, var(--text-gray));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  flex-shrink: 0;
}

.episode-cards {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  overflow-y: auto;
  padding-right: 1rem;
  flex: 1;
  max-height: 100%;
}

.episode-cards::-webkit-scrollbar {
  width: 8px;
}

.episode-cards::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}

.episode-cards::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--highlight-color), #b8ff3d);
  border-radius: 4px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.episode-card {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(0, 0, 0, 0.8) 100%
  );
  border: 1px solid var(--border-white);
  border-radius: 1rem;
  padding: 1rem;
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1),
    box-shadow 0.6s cubic-bezier(0.23, 1, 0.32, 1),
    border-color 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  cursor: pointer;
  display: flex;
  align-items: stretch;
  gap: 1rem;
  position: relative;
  overflow: hidden;
  min-height: 140px;
  margin-bottom: 0;
  animation: background-out 0.4s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

.episode-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(142, 252, 0, 0.1),
    transparent
  );
  transition: left 1.2s ease;
}

.episode-card:hover::before {
  left: 100%;
}

.episode-card:hover {
  border-color: var(--highlight-color);
  -webkit-transform: translateX(8px) translateY(-2px);
  transform: translateX(8px) translateY(-2px);
  background: rgba(142, 252, 0, 0.05);
  box-shadow: 0 5px 20px rgba(142, 252, 0, 0.2);
}

@keyframes background-in {
  from {
    background: linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.05) 0%,
      rgba(0, 0, 0, 0.8) 100%
    );
  }
  to {
    background: linear-gradient(
      135deg,
      rgba(142, 252, 0, 0.08) 0%,
      rgba(22, 22, 22, 0.9) 100%
    );
  }
}

@keyframes background-out {
  from {
    background: linear-gradient(
      135deg,
      rgba(142, 252, 0, 0.08) 0%,
      rgba(22, 22, 22, 0.9) 100%
    );
  }
  to {
    background: linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.05) 0%,
      rgba(0, 0, 0, 0.8) 100%
    );
  }
}
.episode-number {
  font-size: 1.8rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--highlight-color), #b8ff3d);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
  transition: all 0.3s ease;
  flex-shrink: 0;
  text-align: center;
}

.episode-card:hover .episode-number {
  transform: scale(1.1);
  text-shadow: 0 0 20px rgba(142, 252, 0, 0.5);
}

.episode-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow: hidden;
  padding: 0.25rem 0;
}

.episode-details h4 {
  margin-bottom: 0.25rem;
  font-size: 1rem;
  font-weight: 600;
  transition: color 0.3s ease;
  line-height: 1.2;
}

.episode-card:hover .episode-details h4 {
  color: var(--highlight-color);
}

/* Fixed Guest Display */
.episode-guests {
  margin: 0.5rem 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  line-height: 1.4;
}

.guests-label {
  color: var(--text-gray);
  font-size: 0.85rem;
  font-weight: 500;
  margin-right: 0.25rem;
}

.guest-link {
  color: var(--highlight-color) !important;
  text-decoration: none !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  padding: 0.2rem 0.5rem;
  background: rgba(142, 252, 0, 0.1);
  border-radius: 0.375rem;
  border: 1px solid rgba(142, 252, 0, 0.2);
  transition: all 0.3s ease;
  display: inline-block;
  margin-right: 0.25rem;
}

.guest-link:hover {
  background: rgba(142, 252, 0, 0.2) !important;
  border-color: var(--highlight-color) !important;
  color: #fff !important;
  transform: translateY(-1px);
}

.episode-stats {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: auto;
}

.episode-stat {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  color: var(--text-gray);
  padding: 0.25rem 0.6rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.episode-card:hover .episode-stat {
  background: rgba(142, 252, 0, 0.1);
  border-color: rgba(142, 252, 0, 0.3);
  color: #fff;
}

/* Handle cases with no data gracefully */
.episode-cards:empty::after {
  content: "No episodes available";
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100px;
  color: var(--text-gray);
  font-style: italic;
}

/* Button styling for your existing buttons */
.btn {
  background: linear-gradient(135deg, var(--highlight-color), #b8ff3d);
  color: black;
  border: none;
  padding: 1rem 2rem;
  border-radius: 0.75rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
  overflow: hidden;
  font-size: 1.1rem;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.6s ease;
}

.btn:hover::before {
  left: 100%;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(142, 252, 0, 0.4);
  background: linear-gradient(135deg, #b8ff3d, var(--highlight-color));
}

/* Responsive improvements */
@media (max-width: 768px) {
  .episodes-container {
    grid-template-columns: 1fr;
    gap: 2rem;
    min-height: auto;
  }
  
  .btn {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }

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

  .episode-card {
    flex-direction: row;
    text-align: left;
    gap: 1rem;
    min-height: auto;
    height: auto;
    padding: 1.25rem;
    align-items: flex-start;
  }

  .episode-number {
    font-size: 1.5rem;
    min-width: 50px;
    flex-shrink: 0;
  }

  .episode-details {
    min-height: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    overflow: visible;
  }

  .episode-details h4 {
    font-size: 0.95rem;
    line-height: 1.4;
    margin-bottom: 0;
  }

  .episode-guests {
    flex-direction: row;
    align-items: center;
    gap: 0.4rem;
    flex: 1;
    flex-wrap: wrap;
    margin: 0;
  }

  .guests-label {
    font-size: 0.8rem;
  }

  .guest-link {
    font-size: 0.7rem !important;
    padding: 0.2rem 0.45rem;
  }

  .episode-stats {
    margin-top: auto;
    padding-top: 0.5rem;
    flex-direction: row;
    justify-content: flex-start;
    gap: 0.5rem;
    flex-wrap: wrap;
  }

  .episode-stat {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
  }

  .upcoming-episode {
    padding: 1.5rem;
    min-height: auto;
    height: auto;
  }
  
  .upcoming-episode h3 {
    font-size: 1.6rem;
  }

  .upcoming-episode h4 {
    font-size: 1.4rem;
  }

  .guest-list {
    margin: 1rem 0;
  }

  .guest-item {
    font-size: 0.9rem;
    padding: 0.5rem;
  }

  .past-episodes {
    padding: 1.5rem;
    height: auto;
    min-height: auto;
    max-height: none;
  }

  .past-episodes h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .episode-cards {
    gap: 1rem;
    padding-right: 0.5rem;
    max-height: none;
    overflow-y: visible;
  }

  .episodes-section {
    padding: 3rem 1.5rem;
  }
}
