/* Podcast Audio Player Styles */
.podcast-audio-player {
  border: 2px solid #e0aaff;
  border-radius: 10px;
  padding: 15px;
  max-width: 100%;
  font-family: "Segoe UI", sans-serif;
  background-color: #fdf8ff;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
}

.podcast-player-error {
  color: #dc2626;
  padding: 10px;
  background-color: #fef2f2;
  border-radius: 6px;
  font-size: 14px;
}

.player-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
}

.player-header button {
  background: none !important;
  border: none !important;
  padding: 0 !important;
  cursor: pointer;
}
.player-header button:hover {
  box-shadow: none !important;
}

.player-header img {
  cursor: pointer;
  transition: transform 0.2s ease-in-out;
  border-radius: 4px;
}

.podcast-header-image {
  width: 45px;
  height: 45px;
  overflow: hidden;
}

.podcast-header-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.player-header img:hover {
  transform: scale(1.1);
}

.player-header .title {
  font-size: 12px;
  font-weight: 600;
  flex: 1;
}

.player-controls {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.time-display {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #666;
  font-weight: 500;
}

.progress-bar {
  width: 100%;
  height: 6px;
  border-radius: 5px;
  background-color: #ddd;
  appearance: none;
  accent-color: #a855f7;
  cursor: pointer;
}

.progress-bar::-webkit-slider-thumb {
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #a855f7;
  cursor: pointer;
  transition: background 0.2s;
}

.progress-bar::-webkit-slider-thumb:hover {
  background: #9333ea;
}

.progress-bar::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #a855f7;
  cursor: pointer;
  border: none;
  transition: background 0.2s;
}

.progress-bar::-moz-range-thumb:hover {
  background: #9333ea;
}

/* Loading States */
.loading-state {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px;
  color: #666;
  font-size: 14px;
  font-weight: 500;
}

.loading-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid #e0aaff;
  border-top: 2px solid #a855f7;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Error States */
.error-state {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 15px;
  background-color: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  color: #dc2626;
  font-size: 14px;
  font-weight: 500;
}

.error-state svg {
  flex-shrink: 0;
}

.error-content {
  flex: 1;
}

.error-title {
  font-weight: 600;
  margin-bottom: 4px;
}

.error-message {
  font-size: 14px;
  opacity: 0.9;
  margin-bottom: 8px;
}

.retry-btn {
  padding: 6px 12px;
  background-color: #dc2626;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  transition: background-color 0.2s, transform 0.2s;
}

.retry-btn:hover {
  background-color: #b91c1c;
  transform: translateY(-1px);
}

.retry-btn:active {
  transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
  .podcast-audio-player {
    padding: 12px;
  }

  .player-header {
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 4px;
  }

  .player-header .title {
    font-size: 11px;
    order: 3;
    width: 100%;
    margin-top: 8px;
  }

  .podcast-header-image {
    width: 35px;
    height: 35px;
  }

  .player-header img {
    width: 30px;
    height: 30px;
  }
}

@media (max-width: 480px) {
  .loading-state,
  .error-state {
    padding: 12px;
    font-size: 13px;
  }

  .error-state {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }

  .error-content {
    width: 100%;
  }
}
