/* —————————————————————————————————————————————————————————
   SPOTIFY PODCAST PANEL
—————————————————————————————————————————————————————————*/
.et_pb_section.spotify-podcast-section {
  padding: var(--spacing-section);
}

@media only screen and (max-width: 981px) {
  .et_pb_section.spotify-podcast-section {
    padding: var(--spacing-section-mobile);
  }    
}

.spotify-podcast-section {
  text-align: left;
}

.spotify-podcast-section h2 {
  margin-bottom: 1rem;
}

.spotify-podcast-section .panel-beskrivelse {
  max-width: 800px;
  margin-bottom: 2rem;
  color: #000;
  line-height: 1.6;
}

.spotify-panel-header {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: 2rem;
}

.spotify-panel-image {
  flex-shrink: 0;
}

.spotify-panel-image img {
  width: 300px;
  height: 300px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.spotify-panel-content {
  flex: 1;
}

.spotify-panel-content h2 {
  margin-bottom: 1rem;
}

.spotify-panel-logo {
  margin-bottom: 1rem;
}

.spotify-panel-logo img {
  max-width: 200px;
  height: auto;
}

.panel-beskrivelse {
  margin-bottom: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
  .spotify-panel-header {
    flex-direction: column;
    gap: 1rem;
  }
  
  .spotify-panel-image img {
    width: 200px;
    height: 200px;
  }
}

.spotify-episodes-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

/* Episode item styling */
.spotify-episode-item {
  padding: 1rem;
  border-radius: 4px;
  display: block;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

.spotify-episode-link:hover {
  text-decoration: none;
  color: inherit;
}

.episode-title {
  margin-bottom: 0.25rem;
  color: #000;
  font-size: 0.95rem;
  font-weight: normal;
}

.episode-title strong {
  font-weight: bold;
}

.episode-description {
  margin-bottom: 0.5rem;
  color: #000;
  line-height: 1.4;
  font-size: 0.9rem;
}

.episode-description p {
  margin-bottom: 0.5rem;
}

.episode-description p:last-child {
  margin-bottom: 0;
}

/* Spotify link styling */
.episode-link {
  margin-top: 0.25rem;
}

.spotify-link {
  color: #000;
  text-decoration: underline;
  font-size: 0.85rem;
  font-weight: normal;
  display: inline-block;
}

.spotify-episode-link:hover .spotify-link {
  color: #333;
  text-decoration: underline;
}

/* Spotify player container */
.spotify-player-container {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.spotify-player-container iframe {
  border-radius: 8px;
  border: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .spotify-episode-item {
    padding: 1rem;
  }
  
  .episode-title {
    font-size: 1.1rem;
  }
  
  .episode-description {
    font-size: 0.9rem;
  }
}

/* Loading state */
.spotify-player-container.loading {
  background: #f5f5f5;
  height: 152px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
}

/* Error state */
.spotify-player-container.error {
  background: #ffe6e6;
  border: 1px solid #ffcccc;
  padding: 1rem;
  text-align: center;
  color: #cc0000;
}

/* Playlist button styling */
.spotify-playlist-button-container {
  margin-top: 1rem;
}

.spotify-playlist-button {
  display: inline-block;
  background: #000;
  color: #fff;
  text-decoration: none;
  padding: 5px 15px;
  width: fit-content;
  font-weight: normal;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.spotify-playlist-button:hover {
  background: #333;
  color: #fff;
  text-decoration: none;
}
