/* ═══════════════════════════════════════
   Home – Tinklalaidžių blokas
═══════════════════════════════════════ */

.home-podcasts {
  background: #0f1a14;
  padding: 80px 0 96px;
}

.home-podcasts__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ─── Header ─── */
.home-podcasts__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 48px;
}

.home-podcasts__heading-group {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.home-podcasts__label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6fbe4f;
  margin-bottom: 14px;
}

.home-podcasts__label::before {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: #6fbe4f;
  flex-shrink: 0;
}

.home-podcasts__heading {
  font-family: 'Work Sans', Arial, sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
}

.home-podcasts__all-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #6fbe4f;
  text-decoration: none;
  white-space: nowrap;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition:
    border-color 0.2s,
    gap 0.2s;
}

.home-podcasts__all-link:hover {
  border-color: #6fbe4f;
  gap: 10px;
}

/* ─── Grid: 3 columns, equal height ─── */
.home-podcasts__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

/* ─── Card ─── */
.hp-podcast-card {
  position: relative;
  background: #182318;
  border: 1px solid rgba(111, 190, 79, 0.1);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition:
    border-color 0.25s,
    box-shadow 0.25s,
    transform 0.25s;
}

.hp-podcast-card__stretched-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  text-decoration: none;
}

.hp-podcast-card:hover {
  border-color: rgba(111, 190, 79, 0.3);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
  transform: translateY(-4px);
}

/* Featured = newest = center column */
.hp-podcast-card--featured {
  border-color: rgba(111, 190, 79, 0.25);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

.hp-podcast-card--featured:hover {
  box-shadow: 0 14px 52px rgba(0, 0, 0, 0.6);
}

/* ─── Thumbnail wrapper ─── */
.hp-podcast-card__thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0d1a10;
  flex-shrink: 0;
}

.hp-podcast-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.hp-podcast-card:hover .hp-podcast-card__img {
  transform: scale(1.04);
}

.hp-podcast-card__thumb-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #0d2a18, #193d22);
}

/* ─── Audio player – overlaid on image ─── */
.hp-podcast-card__player.podcast-player {
  /* override the grid layout from archive page */
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: center;
  gap: 10px;

  /* positioning */
  position: absolute;
  z-index: 2;
  bottom: 0;
  left: 0;
  right: 0;

  /* visuals */
  background: rgba(10, 20, 12, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid rgba(111, 190, 79, 0.14);
  border-radius: 0;
  padding: 10px 14px;

  /* reset archive overrides */
  grid-column: unset;
  grid-row: unset;
}

.hp-podcast-card__player .pp-canvas {
  height: 36px;
}

/* ─── Play button ─── */
.hp-podcast-card__player .pp-btn {
  all: unset;
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #6fbe4f;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0f1a14;
  flex-shrink: 0;
  transition:
    background 0.2s,
    transform 0.15s;
}

.hp-podcast-card__player .pp-btn:hover {
  background: #88d460;
  transform: scale(1.07);
}

.hp-podcast-card__player .pp-btn:active {
  transform: scale(0.96);
}

/* ─── Card body ─── */
.hp-podcast-card__body {
  position: relative;
  padding: 18px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.hp-podcast-card__title {
  font-family: 'Work Sans', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  color: #fff;
  margin: 0;
}

.hp-podcast-card__title a {
  position: relative;
  z-index: 2;
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.hp-podcast-card__title a:hover {
  color: #6fbe4f;
}

.hp-podcast-card--featured .hp-podcast-card__title {
  font-size: 1.1rem;
}

.hp-podcast-card__excerpt {
  font-size: 0.85rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
  flex: 1;
}

.hp-podcast-card__cta {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 600;
  color: #6fbe4f;
  text-decoration: none;
  margin-top: auto;
  transition: gap 0.2s;
}

.hp-podcast-card__cta:hover {
  gap: 9px;
}

/* ─── Responsive ─── */
@media (max-width: 900px) {
  .home-podcasts__grid {
    grid-template-columns: 1fr;
  }

  .home-podcasts__header {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 600px) {
  .home-podcasts {
    padding: 56px 0 72px;
  }

  .home-podcasts__container {
    padding: 0 20px;
  }
}
