/* CSS Específico para a Central de Podcasts - Mr.Coach */

.podcasts-hero {
  padding-block: clamp(32px, 4vw, 48px) 16px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.podcasts-hero h1 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(38px, 5vw, 56px);
  color: var(--teal-deep);
  margin-bottom: 12px;
}

.podcasts-hero p {
  color: var(--muted);
  font-size: clamp(16px, 2vw, 18px);
  max-width: 600px;
  margin: 0 auto;
}

/* Tabs (Seletor de Temporadas) */
.podcasts-tabs-container {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
  padding-inline: 16px;
}

.podcast-tab-btn {
  background: var(--paper-warm);
  border: 1px solid var(--line);
  padding: 10px 24px;
  border-radius: 99px;
  font-family: var(--f-body);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.podcast-tab-btn:hover {
  border-color: var(--teal-deep);
  color: var(--teal-deep);
  transform: translateY(-1px);
}

.podcast-tab-btn.active {
  background: var(--teal-deep);
  border-color: var(--teal-deep);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 96, 87, 0.2);
}

/* Layout Principal de Conteúdo */
.podcasts-content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 80px;
  opacity: 1;
  transition: opacity 0.3s ease;
}

@media (min-width: 900px) {
  .podcasts-content-grid {
    grid-template-columns: 420px 1fr;
    align-items: start;
  }
}

/* Ocultar Abas Inativas */
.podcast-tab-content {
  display: none;
}

.podcast-tab-content.active {
  display: block;
  animation: fadeIn 0.4s ease forwards;
}

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

/* Player Container (Glassmorphism e Estilo Visual) */
.podcasts-player-card {
  background: var(--paper-warm);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 28px;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 96px;
  overflow: hidden;
  z-index: 10;
}

/* Capa e Apresentação do Programa */
.player-showcase {
  text-align: center;
  margin-bottom: 24px;
}

.showcase-cover {
  width: 160px;
  height: 160px;
  border-radius: var(--r-md);
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.showcase-cover svg {
  width: 54px;
  height: 54px;
  opacity: 0.85;
}

.showcase-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.4) 100%);
}

.player-showcase h2 {
  font-family: var(--f-display);
  font-size: 26px;
  color: var(--teal-deep);
  margin-bottom: 4px;
  line-height: 1.2;
}

.player-showcase .showcase-meta {
  font-family: var(--f-mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 12px;
  display: block;
}

.player-showcase .showcase-desc {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.5;
  text-align: justify;
}

/* Elementos do Player Ativo */
.active-episode-display {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-bottom: 20px;
}

.active-episode-display .ep-label {
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-bottom: 4px;
  display: block;
}

.active-episode-display .ep-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--teal-deep);
  line-height: 1.3;
}

/* Controles Nativos Customizados */
.custom-audio-player {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Controles Superiores: Play, Volume, Tempo */
.player-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.play-pause-btn {
  background: var(--teal-deep);
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 10px rgba(0, 96, 87, 0.25);
  flex-shrink: 0;
}

.play-pause-btn:hover {
  background: var(--teal-soft, #0d8075);
  transform: scale(1.05);
}

.play-pause-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* Tempo (Timecode) */
.time-display {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--muted);
  display: flex;
  gap: 4px;
}

/* Volume Control */
.volume-control {
  display: flex;
  align-items: center;
  gap: 8px;
}

.volume-btn {
  background: none;
  border: none;
  color: var(--teal-deep);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  transition: color 0.2s;
}

.volume-btn:hover {
  color: var(--gold);
}

.volume-btn svg {
  width: 18px;
  height: 18px;
}

.volume-slider {
  width: 60px;
  height: 4px;
  -webkit-appearance: none;
  background: var(--line);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--teal-deep);
  transition: background 0.15s;
}

.volume-slider::-webkit-slider-thumb:hover {
  background: var(--gold);
}

/* Barra de Progresso */
.progress-container {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.progress-bar-wrapper {
  background: var(--line);
  height: 6px;
  border-radius: 3px;
  position: relative;
  cursor: pointer;
  overflow: hidden;
}

.progress-bar-fill {
  background: var(--teal-deep);
  height: 100%;
  width: 0%;
  border-radius: 3px;
  transition: width 0.1s linear;
}

/* Playlist (Lista de Episódios) */
.podcasts-playlist-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.podcasts-playlist-header {
  font-family: var(--f-display);
  font-size: 24px;
  color: var(--teal-deep);
  margin-bottom: 8px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}

.playlist-item {
  background: var(--paper-warm);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.playlist-item:hover {
  border-color: var(--teal-deep);
  background: rgba(0, 96, 87, 0.02);
  transform: translateX(4px);
}

.playlist-item.active {
  border-color: var(--teal-deep);
  background: rgba(0, 96, 87, 0.05);
  box-shadow: inset 3px 0 0 var(--teal-deep);
}

.playlist-item-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.playlist-item-num {
  font-family: var(--f-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
  background: rgba(213, 165, 0, 0.1);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.playlist-item.active .playlist-item-num {
  background: var(--teal-deep);
  color: #ffffff;
}

.playlist-item-info h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--teal-deep);
  margin-bottom: 2px;
  transition: color 0.2s;
}

.playlist-item-info p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  line-height: 1.4;
}

.playlist-item-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.playlist-item-duration {
  font-family: var(--f-mono);
  font-size: 12.5px;
  color: var(--muted);
}

.playlist-play-icon {
  color: var(--teal-deep);
  opacity: 0.6;
  transition: all 0.2s;
}

.playlist-item:hover .playlist-play-icon {
  opacity: 1;
  transform: scale(1.1);
}

.playlist-item.active .playlist-play-icon {
  color: var(--gold);
  opacity: 1;
}

.playlist-play-icon svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* Aviso de WAV Pesado (Apenas Informativo no Desenvolvimento) */
.wav-badge {
  font-family: var(--f-mono);
  font-size: 9px;
  background: #fff0f0;
  border: 1px solid #ffcccc;
  color: #cc0000;
  padding: 1px 4px;
  border-radius: 3px;
  margin-left: 6px;
}
