/**
 * Responsive styles for podcast resources
 */

/* Podcast container */
.podcast-wrapper {
  margin-bottom: 2rem;
  width: 100%;
  min-height: 200px; /* Minimum height to reduce CLS */
}

/* Responsive video wrapper with aspect ratio */
.video-responsive-wrapper {
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  position: relative;
  overflow: hidden;
  margin-bottom: 1rem;
  background-color: #000; /* Dark background while loading */
}

/* Make iframe fill the container */
.video-responsive-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
  position: absolute;
  top: 0;
  left: 0;
}

/* Spotify responsive wrapper */
.spotify-responsive-wrapper {
  width: 100%;
  height: 0;
  padding-bottom: 352px; /* Increased height for Spotify player */
  position: relative;
  overflow: hidden;
  margin-bottom: 1rem;
  border-radius: 8px;
}

/* Make Spotify iframe fill the container */
.spotify-responsive-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 8px;
}

/* Podcast Spotify wrapper */
.podcast-spotify-wrapper {
  margin-bottom: 2rem;
}

.podcast-spotify-wrapper h3 {
  margin-bottom: 1rem;
  color: #1DB954;
}

/* Content layout */
.podcast-content {
  width: 100%;
}

.podcast-info {
  margin-bottom: 2rem;
}

.podcast-description {
  margin-bottom: 1.5rem;
}

/* No video placeholder */
.no-video-placeholder {
  width: 100%;
  padding: 2rem;
  background-color: #f5f5f5;
  text-align: center;
  border-radius: 4px;
}

/* Related product and media styles have been moved to core.css */

/* Podcast column layout */
.podcast-left-column {
  flex: auto;
  min-width: calc(33.33% - 15px);
}

.podcast-right-column {
  flex: auto;
  max-width: 25%;
  min-width: 0;
}

/* Two-column layout */
.podcast-columns {
  display: flex;
  flex-wrap: nowrap;
  gap: 30px;
  margin-top: 2rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .video-responsive-wrapper {
    height: 0;
    padding-bottom: 56.25%; /* Maintain 16:9 aspect ratio */
  }
  
  .spotify-responsive-wrapper {
    padding-bottom: 352px; /* Keep full height on mobile for better UX */
  }
  
  .podcast-columns {
    flex-direction: column;
  }
  
  .podcast-left-column,
  .podcast-right-column {
    flex: 1 1 100%;
    width: 100%;
    min-width: 100%;
  }
}
