/* ==========================================================================
   GENIA PODCAST — Subpágina de episódios (tema claro)
   --------------------------------------------------------------------------
   Depende de styles.css (header, footer e utilitários .animate-on-scroll).
   Tudo aqui é prefixado com .pod- ou escopado em .podcast-page para não
   vazar para a landing page.
   ========================================================================== */

.podcast-page {
  --pod-ink:        #0B0B12;   /* texto principal            */
  --pod-ink-2:      #55555F;   /* texto de apoio             */
  --pod-ink-3:      #8B8B98;   /* metadados / rótulos        */
  --pod-line:       #E8E8EF;   /* filetes e bordas           */
  --pod-surface:    #FFFFFF;
  --pod-surface-2:  #F5F4F9;   /* fundos suaves / skeleton   */
  --pod-purple:     #7913fc;
  --pod-purple-2:   #bc5cf0;
  --pod-purple-ink: #5B0FC0;   /* roxo legível sobre branco  */

  --pod-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --pod-font: 'Plus Jakarta Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;

  background: #FFFFFF;
  color: var(--pod-ink);
  font-family: var(--pod-font);
}

.podcast-page ::selection {
  background: rgba(121, 19, 252, 0.16);
  color: var(--pod-ink);
}

/* ==========================================================================
   Header — versão sólida para fundo branco
   ========================================================================== */
.header--podcast .nav-container,
.header--podcast.scrolled .nav-container {
  background: rgba(255, 255, 255, 0.78) !important;
  backdrop-filter: blur(18px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(18px) saturate(180%) !important;
  border: 1px solid rgba(11, 11, 18, 0.08) !important;
  box-shadow: 0 10px 30px rgba(11, 11, 18, 0.06),
              inset 0 1px 1px rgba(255, 255, 255, 0.9) !important;
}

/* Link da página atual */
.header--podcast .nav-link[aria-current="page"] {
  color: var(--pod-purple) !important;
  font-weight: 700;
  position: relative;
}

.header--podcast .nav-link[aria-current="page"]::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 2px;
  border-radius: 2px;
  background: var(--pod-purple);
}

/* ==========================================================================
   Botões
   ========================================================================== */
.pod-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 100px;
  font-family: var(--pod-font);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.3s var(--pod-ease),
              box-shadow 0.3s var(--pod-ease),
              background 0.3s var(--pod-ease),
              border-color 0.3s var(--pod-ease),
              color 0.3s var(--pod-ease);
}

/* Mesma receita do botão do header: gradiente sem brilho, hover só escurece */
.pod-btn--primary {
  background: linear-gradient(135deg, #7913fc 0%, #bc5cf0 100%);
  color: #FFFFFF;
}

.pod-btn--primary:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #6c0ee6 0%, #b24ce8 100%);
}

.pod-btn--ghost {
  background: #FFFFFF;
  color: var(--pod-ink);
  border-color: var(--pod-line);
}

.pod-btn--ghost:hover {
  transform: translateY(-1px);
  border-color: rgba(121, 19, 252, 0.4);
  color: var(--pod-purple-ink);
}

.pod-btn--light {
  background: #FFFFFF;
  color: var(--pod-purple-ink);
}

.pod-btn--light:hover {
  transform: translateY(-1px);
  background: #F3EEFD;
}

.pod-btn--outline-light {
  background: transparent;
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.5);
}

.pod-btn--outline-light:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.85);
}

.pod-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ==========================================================================
   Hero da página
   ========================================================================== */
.pod-hero {
  padding: 172px 24px 64px;
  text-align: center;
}

.pod-hero-inner {
  max-width: 860px;
  margin: 0 auto;
}

.pod-hero-title {
  font-family: var(--pod-font);
  font-size: clamp(2.25rem, 5.2vw, 3.6rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.038em;
  color: var(--pod-ink);
  margin-bottom: 22px;
}

.pod-hero-title em {
  font-style: normal;
  color: var(--pod-purple);
}

.pod-hero-desc {
  font-size: 1.06rem;
  line-height: 1.65;
  color: var(--pod-ink-2);
  max-width: 640px;
  margin: 0 auto 34px;
}

.pod-hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 34px;
}

/* Linha de metadados do canal */
.pod-hero-meta {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 18px;
  font-size: 0.85rem;
  color: var(--pod-ink-3);
}

.pod-hero-meta li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.pod-hero-meta li + li::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #D3D3DE;
}

.pod-hero-meta strong {
  color: var(--pod-ink);
  font-weight: 700;
}

/* ==========================================================================
   Episódio em destaque
   ========================================================================== */
.pod-featured {
  padding: 24px 24px 8px;
}

.pod-featured-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.12fr 1fr;
  gap: 52px;
  align-items: center;
}

.pod-featured-media {
  position: relative;
  display: block;
  border-radius: 22px;
  overflow: hidden;
  background: var(--pod-surface-2);
  aspect-ratio: 16 / 9;
  box-shadow: 0 28px 60px rgba(11, 11, 18, 0.16),
              0 4px 12px rgba(11, 11, 18, 0.06);
  transition: transform 0.45s var(--pod-ease), box-shadow 0.45s var(--pod-ease);
}

.pod-featured-media:hover {
  transform: translateY(-4px);
  box-shadow: 0 34px 68px rgba(11, 11, 18, 0.2),
              0 6px 16px rgba(11, 11, 18, 0.08);
}

.pod-featured-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--pod-ease);
}

.pod-featured-media:hover img {
  transform: scale(1.035);
}

.pod-featured-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pod-purple-ink);
  margin-bottom: 18px;
}

.pod-featured-label::before {
  content: '';
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: var(--pod-purple);
}

.pod-featured-title {
  font-size: clamp(1.55rem, 2.6vw, 2.15rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.032em;
  color: var(--pod-ink);
  margin-bottom: 16px;
}

.pod-featured-desc {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--pod-ink-2);
  margin-bottom: 26px;
  max-width: 520px;
}

.pod-featured-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

/* ==========================================================================
   Biblioteca — barra de filtros + grid
   ========================================================================== */
.pod-library {
  padding: 72px 24px 96px;
  scroll-margin-top: 120px;
}

.pod-library-inner {
  max-width: 1180px;
  margin: 0 auto;
}

.pod-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.pod-section-title {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--pod-ink);
}

.pod-section-count {
  font-size: 0.88rem;
  color: var(--pod-ink-3);
  white-space: nowrap;
}

/* Barra fixa de chips + busca (comportamento estilo YouTube) */
.pod-toolbar {
  position: sticky;
  top: 92px; /* logo abaixo da pílula do header fixo */
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0 16px;
  margin-bottom: 12px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  border-bottom: 1px solid var(--pod-line);
}

.pod-chips {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 2px 0;
}

.pod-chips::-webkit-scrollbar {
  display: none;
}

.pod-chip {
  flex-shrink: 0;
  padding: 9px 18px;
  border-radius: 100px;
  border: 1px solid var(--pod-line);
  background: #FFFFFF;
  color: var(--pod-ink-2);
  font-family: var(--pod-font);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.25s var(--pod-ease);
}

.pod-chip:hover {
  border-color: rgba(121, 19, 252, 0.35);
  color: var(--pod-purple-ink);
}

.pod-chip.is-active {
  background: linear-gradient(135deg, #7913fc 0%, #bc5cf0 100%);
  border-color: transparent;
  color: #FFFFFF;
}

/* Campo de busca */
.pod-search {
  position: relative;
  flex-shrink: 0;
  width: 260px;
}

.pod-search svg {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--pod-ink-3);
  pointer-events: none;
}

.pod-search input {
  width: 100%;
  padding: 11px 16px 11px 40px;
  border-radius: 100px;
  border: 1px solid var(--pod-line);
  background: #FFFFFF;
  font-family: var(--pod-font);
  font-size: 0.88rem;
  color: var(--pod-ink);
  outline: none;
  transition: border-color 0.25s var(--pod-ease), box-shadow 0.25s var(--pod-ease);
}

.pod-search input::placeholder {
  color: var(--pod-ink-3);
}

.pod-search input:focus {
  border-color: rgba(121, 19, 252, 0.5);
  box-shadow: 0 0 0 4px rgba(121, 19, 252, 0.1);
}

/* Grid de episódios — auto-fill: basta acrescentar cards no HTML */
.pod-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(316px, 1fr));
  gap: 44px 28px;
  margin-top: 32px;
}

/* ==========================================================================
   Card de episódio
   ========================================================================== */
.pod-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  border-radius: 16px;
  transition: transform 0.35s var(--pod-ease);
}

.pod-card[hidden] {
  display: none;
}

.pod-card:hover {
  transform: translateY(-4px);
}

.pod-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  background: var(--pod-surface-2);
  box-shadow: 0 6px 18px rgba(11, 11, 18, 0.08);
  transition: box-shadow 0.35s var(--pod-ease);
}

.pod-card:hover .pod-thumb {
  box-shadow: 0 16px 32px rgba(11, 11, 18, 0.16);
}

.pod-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s var(--pod-ease);
}

.pod-card:hover .pod-thumb img {
  transform: scale(1.045);
}

/* Botão play em vidro (mesma linguagem da LP) */
.pod-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(6, 6, 14, 0.14);
  transition: background 0.3s var(--pod-ease);
}

.pod-play::after {
  content: '';
  position: absolute;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(18px) saturate(200%);
  -webkit-backdrop-filter: blur(18px) saturate(200%);
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22),
              inset 0 1.5px 0 rgba(255, 255, 255, 0.6);
  transition: transform 0.35s var(--pod-ease), background 0.35s var(--pod-ease);
}

.pod-play::before {
  content: '';
  position: absolute;
  z-index: 1;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 10px 0 10px 18px;
  border-color: transparent transparent transparent rgba(255, 255, 255, 0.96);
  margin-left: 4px;
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.25));
  transition: transform 0.35s var(--pod-ease);
}

.pod-card:hover .pod-play,
.pod-featured-media:hover .pod-play {
  background: rgba(6, 6, 14, 0.22);
}

.pod-card:hover .pod-play::after,
.pod-featured-media:hover .pod-play::after {
  transform: scale(1.1);
  background: rgba(255, 255, 255, 0.32);
}

/* Play maior no destaque */
.pod-featured-media .pod-play::after {
  width: 82px;
  height: 82px;
}

.pod-featured-media .pod-play::before {
  border-width: 14px 0 14px 25px;
  margin-left: 6px;
}

/* Selo de duração (opcional — some se não houver texto) */
.pod-duration {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(6, 6, 14, 0.82);
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.pod-duration:empty {
  display: none;
}

.pod-card-body {
  padding: 18px 4px 0;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.pod-tag {
  align-self: flex-start;
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--pod-purple-ink);
  margin-bottom: 10px;
}

.pod-card-title {
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.022em;
  color: var(--pod-ink);
  margin-bottom: 9px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.25s var(--pod-ease);
}

.pod-card:hover .pod-card-title {
  color: var(--pod-purple-ink);
}

.pod-card-desc {
  font-size: 0.9rem;
  line-height: 1.62;
  color: var(--pod-ink-2);
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.pod-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.83rem;
  font-weight: 700;
  color: var(--pod-ink);
  transition: color 0.25s var(--pod-ease), gap 0.25s var(--pod-ease);
}

.pod-card:hover .pod-card-cta {
  color: var(--pod-purple-ink);
  gap: 11px;
}

/* Estado vazio da busca */
.pod-empty {
  padding: 72px 24px;
  text-align: center;
  border: 1px dashed var(--pod-line);
  border-radius: 18px;
  margin-top: 32px;
}

.pod-empty[hidden] {
  display: none;
}

.pod-empty h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--pod-ink);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.pod-empty p {
  font-size: 0.92rem;
  color: var(--pod-ink-2);
}

/* ==========================================================================
   Faixa de CTA antes do rodapé
   ========================================================================== */
.pod-cta {
  padding: 0 24px 96px;
}

.pod-cta-panel {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: 64px 56px;
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(120deg, #4b09a8 0%, #7913fc 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  box-shadow: 0 24px 56px rgba(11, 11, 18, 0.16);
}

.pod-cta-text {
  position: relative;
  max-width: 620px;
}

.pod-cta-text h2 {
  font-size: clamp(1.55rem, 2.6vw, 2.1rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.032em;
  color: #FFFFFF;
  margin-bottom: 14px;
}

.pod-cta-text p {
  font-size: 1rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.82);
}

.pod-cta-actions {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  flex-shrink: 0;
}

/* ==========================================================================
   Modal do player
   ========================================================================== */
.pod-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  background: rgba(6, 6, 14, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity 0.3s var(--pod-ease);
}

.pod-modal[hidden] {
  display: none;
}

.pod-modal.is-open {
  opacity: 1;
}

.pod-modal-dialog {
  position: relative;
  width: min(1080px, 100%);
  /* Impede que o vídeo estoure a altura da tela em notebooks */
  max-width: calc((100vh - 130px) * 16 / 9);
  transform: translateY(14px) scale(0.985);
  opacity: 0;
  transition: transform 0.4s var(--pod-ease), opacity 0.4s var(--pod-ease);
}

.pod-modal.is-open .pod-modal-dialog {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.pod-modal-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  background: #000000;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.55);
}

.pod-modal-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.pod-modal-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 18px;
}

.pod-modal-title {
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  line-height: 1.4;
}

.pod-modal-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  transition: color 0.25s var(--pod-ease);
}

.pod-modal-link:hover {
  color: #FFFFFF;
}

.pod-modal-close {
  position: absolute;
  top: 20px;
  right: 22px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.25s var(--pod-ease), transform 0.25s var(--pod-ease);
}

.pod-modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

.pod-modal-close svg {
  width: 18px;
  height: 18px;
}

body.pod-modal-open {
  overflow: hidden;
}

/* ==========================================================================
   Responsivo
   ========================================================================== */
@media (max-width: 1024px) {
  .pod-hero {
    padding-top: 148px;
  }

  .pod-featured-inner {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .pod-featured-desc {
    max-width: none;
  }

  .pod-cta-panel {
    flex-direction: column;
    align-items: flex-start;
    padding: 48px 36px;
  }
}

@media (max-width: 768px) {
  .pod-hero {
    padding: 132px 20px 48px;
  }

  .pod-hero-actions .pod-btn {
    width: 100%;
  }

  .pod-featured,
  .pod-library,
  .pod-cta {
    padding-left: 20px;
    padding-right: 20px;
  }

  .pod-library {
    padding-top: 56px;
    padding-bottom: 72px;
  }

  .pod-section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  /* Barra de filtros vira duas linhas: chips roláveis + busca cheia */
  .pod-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    top: 74px;
    padding: 12px 0 14px;
  }

  .pod-chips {
    margin: 0 -20px;
    padding: 2px 20px;
  }

  .pod-search {
    width: 100%;
  }

  .pod-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .pod-featured-media {
    border-radius: 16px;
  }

  .pod-cta-panel {
    padding: 40px 26px;
    border-radius: 22px;
  }

  .pod-cta-actions {
    width: 100%;
  }

  .pod-cta-actions .pod-btn {
    width: 100%;
  }

  .pod-modal {
    padding: 72px 16px 24px;
  }

  .pod-modal-close {
    top: 14px;
    right: 14px;
  }

  .pod-modal-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .podcast-page *,
  .podcast-page *::before,
  .podcast-page *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
