/* Ported from cp-catapult cpc-catapult-blocks/src/podcast-player/style.scss */

.cpc-podcast-player {
  margin-bottom: 2rem;
}

/* ===========================
   Hero variant
   =========================== */

.cpc-podcast-player .c-podcast-hero {
  background: #006a52;
  padding: 4rem 0 6rem 0;
}

.cpc-podcast-player .c-podcast-hero__inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-left: auto;
  margin-right: auto;
  max-width: var(--wp--style--global--content-size, 1200px);
  padding-left: var(--wp--style--root--padding-left, 1.5rem);
  padding-right: var(--wp--style--root--padding-right, 1.5rem);
}

@media (min-width: 768px) {
  .cpc-podcast-player .c-podcast-hero__inner {
    flex-direction: row;
    gap: 3.75rem;
  }
}

.cpc-podcast-player .c-podcast-hero h1 {
  font-size: clamp(2rem, 1.5rem + 2vw, 3rem);
  color: #fff;
  margin: 0;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.cpc-podcast-player .c-podcast-hero .column {
  display: flex;
  position: relative;
  z-index: 10;
}

@media (min-width: 768px) {
  .cpc-podcast-player .c-podcast-hero .column.left { width: 40%; }
  .cpc-podcast-player .c-podcast-hero .column.right { width: 60%; }
}

.cpc-podcast-player .c-podcast-hero .column.right {
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2rem;
  color: #fff;
}

.cpc-podcast-player .c-podcast-hero .column.right .post-type {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(255,255,255,0.15);
  border-radius: 4px;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.06em;
  font-weight: 700;
}

.cpc-podcast-player .c-podcast-hero .column.right .subtitle {
  background: #c4e2d5;
  color: #2e2d2b;
  box-shadow: 5px 0 0 #c4e2d5, -5px 0 0 #c4e2d5;
  display: inline;
  font-weight: bold;
  line-height: 1.5;
}

.cpc-podcast-player .c-podcast-hero .column img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
}

/* ===========================
   Player iframe — shared by both variants
   =========================== */

.cpc-podcast-player .c-podcast-player {
  padding: 1rem;
  box-shadow: 0 12px 44px -16px rgba(0, 0, 0, 0.25);
  background: #fff;
  border-radius: 8px;
  max-width: var(--wp--style--global--content-size, 1200px);
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

.cpc-podcast-player.is-hero .c-podcast-player {
  margin-top: -4rem;
}

.cpc-podcast-player iframe {
  width: 100%;
  height: 90px;
  border: 0;
  display: block;
}

/* ===========================
   External subscribe links
   =========================== */

.cpc-podcast-player .c-podcast-links {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
  max-width: var(--wp--style--global--content-size, 1200px);
  margin-left: auto;
  margin-right: auto;
}

.cpc-podcast-player .c-podcast-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #2e2d2b;
  text-decoration: none;
  font-weight: 600;
}

.cpc-podcast-player .c-podcast-links a:hover {
  color: #006a52;
}
