.templintechpodcasts-player {
  --ttp-surface: color-mix(in srgb, Canvas 96%, CanvasText 4%);
  --ttp-surface-strong: color-mix(in srgb, Canvas 90%, CanvasText 10%);
  --ttp-border: color-mix(in srgb, CanvasText 14%, transparent);
  --ttp-muted: color-mix(in srgb, CanvasText 62%, transparent);
  --ttp-control: CanvasText;
  --ttp-control-text: Canvas;
  --ttp-progress: 0%;
  display: grid;
  grid-template-columns: minmax(132px, 188px) minmax(0, 1fr);
  gap: 1.2rem;
  align-items: center;
  margin: 1.35rem 0;
  padding: 1rem;
  border: 1px solid var(--ttp-border);
  border-radius: 1.35rem;
  background:
    radial-gradient(circle at 0 0, color-mix(in srgb, CanvasText 5%, transparent), transparent 34%),
    var(--ttp-surface);
  box-shadow: 0 .8rem 2.4rem rgba(0, 0, 0, .08);
  color: CanvasText;
  overflow: hidden;
}

.templintechpodcasts-cover {
  min-width: 0;
}

.templintechpodcasts-cover img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 1rem;
  box-shadow: 0 .45rem 1.3rem rgba(0, 0, 0, .16);
}

.templintechpodcasts-player__body {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  gap: .9rem;
}

.templintechpodcasts-meta {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: .22rem;
}

.templintechpodcasts-meta strong {
  overflow-wrap: anywhere;
  font-size: clamp(1.05rem, 1.8vw, 1.32rem);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -.015em;
}

.templintechpodcasts-meta span {
  overflow-wrap: anywhere;
  color: var(--ttp-muted);
  font-size: .92em;
}

.templintechpodcasts-audio {
  width: 100%;
}

.templintechpodcasts-controls {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: .85rem;
  align-items: center;
  padding: .72rem .8rem;
  border: 1px solid color-mix(in srgb, CanvasText 10%, transparent);
  border-radius: 1rem;
  background: color-mix(in srgb, Canvas 88%, CanvasText 12%);
}

.templintechpodcasts-transport {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}

.templintechpodcasts-play,
.templintechpodcasts-speed {
  -webkit-tap-highlight-color: transparent;
}

.templintechpodcasts-play {
  display: inline-grid;
  width: 3rem;
  height: 3rem;
  flex: 0 0 auto;
  place-items: center;
  padding: 0;
  border: 1px solid color-mix(in srgb, Canvas 24%, transparent);
  border-radius: 50%;
  background: var(--ttp-control);
  color: var(--ttp-control-text);
  cursor: pointer;
  box-shadow: 0 .38rem 1rem rgba(0, 0, 0, .19), inset 0 1px 0 rgba(255, 255, 255, .18);
  transition: transform .16s ease, box-shadow .16s ease, opacity .16s ease;
}

.templintechpodcasts-play:hover,
.templintechpodcasts-play:focus-visible {
  transform: translateY(-1px) scale(1.025);
  box-shadow: 0 .55rem 1.2rem rgba(0, 0, 0, .23), inset 0 1px 0 rgba(255, 255, 255, .2);
}

.templintechpodcasts-play:active {
  transform: scale(.97);
}

.templintechpodcasts-play svg {
  display: block;
  width: 1.45rem;
  height: 1.45rem;
  fill: currentColor;
}

.templintechpodcasts-icon-pause {
  display: none;
}

.templintechpodcasts-player.is-playing .templintechpodcasts-icon-play {
  display: none;
}

.templintechpodcasts-player.is-playing .templintechpodcasts-icon-pause {
  display: block;
}

.templintechpodcasts-speed {
  display: inline-grid;
  min-width: 3rem;
  height: 2.25rem;
  place-items: center;
  padding: 0 .62rem;
  border: 1px solid var(--ttp-border);
  border-radius: 999px;
  background: Canvas;
  color: CanvasText;
  font: inherit;
  font-size: .82rem;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18);
  transition: transform .14s ease, background-color .14s ease, border-color .14s ease;
}

.templintechpodcasts-speed:hover,
.templintechpodcasts-speed:focus-visible {
  transform: translateY(-1px);
  background: var(--ttp-surface-strong);
  border-color: color-mix(in srgb, CanvasText 26%, transparent);
}

.templintechpodcasts-speed:active {
  transform: scale(.97);
}

.templintechpodcasts-timeline {
  display: grid;
  min-width: 0;
  gap: .32rem;
}

.templintechpodcasts-time-row {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: .3rem;
  min-width: 0;
}

.templintechpodcasts-time,
.templintechpodcasts-time-separator {
  color: var(--ttp-muted);
  font-size: .78rem;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.templintechpodcasts-seek {
  --ttp-track: color-mix(in srgb, CanvasText 16%, Canvas);
  width: 100%;
  min-width: 0;
  height: 1.1rem;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  cursor: pointer;
}

.templintechpodcasts-seek::-webkit-slider-runnable-track {
  height: .32rem;
  border-radius: 999px;
  background: linear-gradient(
    to right,
    var(--ttp-control) 0 var(--ttp-progress),
    var(--ttp-track) var(--ttp-progress) 100%
  );
}

.templintechpodcasts-seek::-moz-range-track {
  height: .32rem;
  border: 0;
  border-radius: 999px;
  background: var(--ttp-track);
}

.templintechpodcasts-seek::-moz-range-progress {
  height: .32rem;
  border-radius: 999px;
  background: var(--ttp-control);
}

.templintechpodcasts-seek::-webkit-slider-thumb {
  width: .9rem;
  height: .9rem;
  margin-top: -.29rem;
  appearance: none;
  -webkit-appearance: none;
  border: 2px solid Canvas;
  border-radius: 50%;
  background: var(--ttp-control);
  box-shadow: 0 .12rem .4rem rgba(0, 0, 0, .25);
}

.templintechpodcasts-seek::-moz-range-thumb {
  width: .8rem;
  height: .8rem;
  border: 2px solid Canvas;
  border-radius: 50%;
  background: var(--ttp-control);
  box-shadow: 0 .12rem .4rem rgba(0, 0, 0, .25);
}

.templintechpodcasts-platforms {
  display: flex;
  flex-wrap: wrap;
  gap: .2rem .55rem;
  font-size: .88em;
}

.templintechpodcasts-platforms a {
  text-decoration-thickness: .08em;
  text-underline-offset: .18em;
}

.templintechpodcasts-transcript {
  margin-top: .08rem;
  padding-top: .65rem;
  border-top: 1px solid var(--ttp-border);
}

.templintechpodcasts-transcript > summary {
  cursor: pointer;
  font-weight: 650;
}

.templintechpodcasts-transcript__body {
  margin-top: .75rem;
}

.templintechpodcasts-audio-image {
  position: relative;
}

.templintechpodcasts-blog-marker {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  pointer-events: none;
}

.templintechpodcasts-audio-badge {
  display: grid;
  width: 3.75rem;
  height: 3.75rem;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .74);
  border-radius: 50%;
  background: rgba(12, 18, 28, .76);
  color: #fff;
  box-shadow: 0 .55rem 1.55rem rgba(0, 0, 0, .3), inset 0 1px 0 rgba(255, 255, 255, .24);
  -webkit-backdrop-filter: blur(10px) saturate(135%);
  backdrop-filter: blur(10px) saturate(135%);
  transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.templintechpodcasts-audio-badge svg {
  display: block;
  width: 1.85rem;
  height: 1.85rem;
  overflow: visible;
}

.templintechpodcasts-badge-play {
  fill: currentColor;
}

.templintechpodcasts-badge-wave {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  opacity: .72;
}

.templintechpodcasts-audio-image:hover .templintechpodcasts-audio-badge,
.templintechpodcasts-audio-image:focus-within .templintechpodcasts-audio-badge {
  transform: scale(1.065);
  background: rgba(12, 18, 28, .9);
  box-shadow: 0 .72rem 1.9rem rgba(0, 0, 0, .36), inset 0 1px 0 rgba(255, 255, 255, .28);
}

@media (max-width: 720px) {
  .templintechpodcasts-player {
    grid-template-columns: minmax(108px, 148px) minmax(0, 1fr);
    gap: .95rem;
    padding: .85rem;
    border-radius: 1.15rem;
  }

  .templintechpodcasts-controls {
    grid-template-columns: 1fr;
    gap: .65rem;
  }

  .templintechpodcasts-transport {
    justify-content: flex-start;
  }

  .templintechpodcasts-time-row {
    justify-content: space-between;
  }

  .templintechpodcasts-time-separator {
    display: none;
  }
}

@media (max-width: 520px) {
  .templintechpodcasts-player {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: .9rem;
  }

  .templintechpodcasts-cover {
    width: min(13rem, 62vw);
    margin-inline: auto;
    justify-self: center;
  }

  .templintechpodcasts-player__body {
    text-align: center;
  }

  .templintechpodcasts-controls {
    text-align: initial;
  }

  .templintechpodcasts-transport {
    justify-content: center;
  }

  .templintechpodcasts-platforms {
    justify-content: center;
  }

  .templintechpodcasts-transcript {
    text-align: initial;
  }
}

@media (max-width: 360px) {
  .templintechpodcasts-player {
    padding: .75rem;
    border-radius: 1rem;
  }

  .templintechpodcasts-play {
    width: 2.75rem;
    height: 2.75rem;
  }

  .templintechpodcasts-speed {
    min-width: 2.8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .templintechpodcasts-audio-badge,
  .templintechpodcasts-play,
  .templintechpodcasts-speed {
    transition: none;
  }
}

/* Persistent session player ------------------------------------------------ */
.templintechpodcasts-player-slot {
  display: block;
  min-width: 0;
}

.templintechpodcasts-stop {
  display: none;
  width: 2.35rem;
  height: 2.35rem;
  flex: 0 0 auto;
  place-items: center;
  padding: 0;
  border: 1px solid var(--ttp-border);
  border-radius: 999px;
  background: transparent;
  color: CanvasText;
  cursor: pointer;
  transition: transform .14s ease, background-color .14s ease, border-color .14s ease;
}

.templintechpodcasts-stop svg {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
}

.templintechpodcasts-stop:hover,
.templintechpodcasts-stop:focus-visible {
  transform: translateY(-1px);
  background: var(--ttp-surface-strong);
  border-color: color-mix(in srgb, CanvasText 28%, transparent);
}

.templintechpodcasts-player.is-sticky {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 2147482000;
  width: 100%;
  max-width: none;
  grid-template-columns: 4.35rem minmax(0, 1fr);
  gap: .9rem;
  align-items: center;
  margin: 0;
  padding: .7rem max(1rem, env(safe-area-inset-right)) calc(.7rem + env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
  border-width: 1px 0 0;
  border-radius: 0;
  background: color-mix(in srgb, Canvas 91%, transparent);
  box-shadow: 0 -.65rem 2.2rem rgba(0, 0, 0, .18);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
  backdrop-filter: blur(18px) saturate(145%);
  overflow: visible;
}

.templintechpodcasts-player.is-sticky .templintechpodcasts-cover {
  width: 4.35rem;
  min-width: 4.35rem;
  align-self: center;
}

.templintechpodcasts-player.is-sticky .templintechpodcasts-cover img {
  border-radius: .8rem;
  box-shadow: 0 .25rem .8rem rgba(0, 0, 0, .18);
}

.templintechpodcasts-player.is-sticky .templintechpodcasts-player__body {
  display: grid;
  grid-template-columns: minmax(9rem, .72fr) minmax(18rem, 1.8fr);
  gap: .9rem 1.1rem;
  align-items: center;
  min-width: 0;
  text-align: initial;
}

.templintechpodcasts-player.is-sticky .templintechpodcasts-meta {
  gap: .1rem;
  min-width: 0;
}

.templintechpodcasts-player.is-sticky .templintechpodcasts-meta strong,
.templintechpodcasts-player.is-sticky .templintechpodcasts-meta span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.templintechpodcasts-player.is-sticky .templintechpodcasts-meta strong {
  font-size: .96rem;
  line-height: 1.18;
}

.templintechpodcasts-player.is-sticky .templintechpodcasts-meta span {
  font-size: .79rem;
}

.templintechpodcasts-player.is-sticky .templintechpodcasts-audio {
  display: none;
}

.templintechpodcasts-player.is-sticky .templintechpodcasts-controls {
  grid-template-columns: auto minmax(0, 1fr);
  gap: .72rem;
  padding: .48rem .6rem;
  border-radius: .9rem;
  background: color-mix(in srgb, Canvas 84%, CanvasText 16%);
}

.templintechpodcasts-player.is-sticky .templintechpodcasts-play {
  width: 2.7rem;
  height: 2.7rem;
}

.templintechpodcasts-player.is-sticky .templintechpodcasts-play svg {
  width: 1.28rem;
  height: 1.28rem;
}

.templintechpodcasts-player.is-sticky .templintechpodcasts-stop {
  display: inline-grid;
}

.templintechpodcasts-player.is-sticky .templintechpodcasts-speed {
  height: 2.15rem;
  min-width: 2.8rem;
}

.templintechpodcasts-player.is-sticky .templintechpodcasts-seek {
  height: 1rem;
}

.templintechpodcasts-player.is-sticky .templintechpodcasts-time-row {
  justify-content: flex-end;
}

.templintechpodcasts-player.is-sticky .templintechpodcasts-platforms,
.templintechpodcasts-player.is-sticky .templintechpodcasts-transcript {
  display: none;
}

.templintechpodcasts-player--restored {
  animation: templintechpodcasts-player-enter .2s ease-out;
}

.templintechpodcasts-has-sticky-player body {
  padding-bottom: var(--ttp-sticky-height, 5.75rem);
}

@keyframes templintechpodcasts-player-enter {
  from { transform: translateY(100%); opacity: .65; }
  to { transform: translateY(0); opacity: 1; }
}

@media (max-width: 760px) {
  .templintechpodcasts-player.is-sticky {
    grid-template-columns: 3.55rem minmax(0, 1fr);
    gap: .7rem;
    padding-top: .58rem;
  }

  .templintechpodcasts-player.is-sticky .templintechpodcasts-cover {
    width: 3.55rem;
    min-width: 3.55rem;
    margin: 0;
    justify-self: auto;
  }

  .templintechpodcasts-player.is-sticky .templintechpodcasts-player__body {
    grid-template-columns: 1fr;
    gap: .38rem;
  }

  .templintechpodcasts-player.is-sticky .templintechpodcasts-meta {
    text-align: left;
  }

  .templintechpodcasts-player.is-sticky .templintechpodcasts-controls {
    grid-template-columns: auto minmax(0, 1fr);
    gap: .55rem;
    padding: .38rem .48rem;
  }

  .templintechpodcasts-player.is-sticky .templintechpodcasts-transport {
    justify-content: flex-start;
    gap: .35rem;
  }

  .templintechpodcasts-player.is-sticky .templintechpodcasts-time-row {
    justify-content: space-between;
  }

  .templintechpodcasts-player.is-sticky .templintechpodcasts-time-separator {
    display: none;
  }
}

@media (max-width: 460px) {
  .templintechpodcasts-player.is-sticky {
    grid-template-columns: 2.9rem minmax(0, 1fr);
    gap: .55rem;
    padding-inline: .65rem;
  }

  .templintechpodcasts-player.is-sticky .templintechpodcasts-cover {
    width: 2.9rem;
    min-width: 2.9rem;
  }

  .templintechpodcasts-player.is-sticky .templintechpodcasts-meta strong {
    font-size: .88rem;
  }

  .templintechpodcasts-player.is-sticky .templintechpodcasts-meta span {
    font-size: .72rem;
  }

  .templintechpodcasts-player.is-sticky .templintechpodcasts-play {
    width: 2.4rem;
    height: 2.4rem;
  }

  .templintechpodcasts-player.is-sticky .templintechpodcasts-speed,
  .templintechpodcasts-player.is-sticky .templintechpodcasts-stop {
    height: 2rem;
    min-width: 2.25rem;
  }

  .templintechpodcasts-player.is-sticky .templintechpodcasts-stop {
    width: 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .templintechpodcasts-stop,
  .templintechpodcasts-player--restored {
    transition: none;
    animation: none;
  }
}
