/*
 * Transistor Podcast — estilos.
 * Cores e fontes herdam do site (cores globais do Elementor quando existem).
 * Para ajustar, sobrepõe as variáveis em Elementor → Site Settings → Custom CSS:
 *   :root { --tpod-accent: #e4572e; --tpod-radius: 6px; }
 */

:root {
	--tpod-accent: var(--e-global-color-accent, var(--e-global-color-primary, #1f4bd8));
	--tpod-on-accent: #fff;
	--tpod-text: inherit;
	--tpod-muted: color-mix(in srgb, currentColor 62%, transparent);
	--tpod-border: color-mix(in srgb, currentColor 12%, transparent);
	--tpod-surface: transparent;
	--tpod-soft: color-mix(in srgb, currentColor 6%, transparent);
	--tpod-radius: 14px;
	--tpod-gap: 28px;
}

/* ---------- Grelha ---------- */

.tpod-grid-wrap {
	/* Ao mudar de página, a grelha volta ao topo; ajusta à altura do header fixo. */
	scroll-margin-top: var(--tpod-scroll-offset, 120px);
}

.tpod-grid-wrap .tpod-grid,
.tpod-grid-wrap .tpod-pagination { transition: opacity .2s ease; }

.tpod-grid-wrap.is-loading .tpod-grid,
.tpod-grid-wrap.is-loading .tpod-pagination {
	opacity: .4;
	pointer-events: none;
}

.tpod-grid-wrap.is-loading { cursor: progress; }

.tpod-grid {
	display: grid;
	grid-template-columns: repeat(var(--tpod-cols, 3), minmax(0, 1fr));
	gap: var(--tpod-gap);
}

@media (max-width: 1024px) {
	.tpod-grid { grid-template-columns: repeat(var(--tpod-cols-t, 2), minmax(0, 1fr)); }
}

@media (max-width: 767px) {
	.tpod-grid { grid-template-columns: repeat(var(--tpod-cols-m, 1), minmax(0, 1fr)); gap: 22px; }
}

.tpod-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	background: var(--tpod-surface);
	color: var(--tpod-text);
}

.tpod-card__media {
	position: relative;
	display: block;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	border-radius: var(--tpod-radius);
	background: var(--tpod-soft);
}

.tpod-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .5s cubic-bezier(.2, .7, .2, 1);
}

.tpod-card:hover .tpod-card__media img { transform: scale(1.04); }

.tpod-card__badge {
	position: absolute;
	top: 12px;
	left: 12px;
	padding: 4px 10px;
	border-radius: 999px;
	background: rgba(0, 0, 0, .62);
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .04em;
	backdrop-filter: blur(6px);
}

.tpod-card__play {
	position: absolute;
	right: 14px;
	bottom: 14px;
	width: 48px;
	height: 48px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: var(--tpod-accent);
	color: var(--tpod-on-accent);
	box-shadow: 0 6px 18px rgba(0, 0, 0, .22);
	opacity: 0;
	transform: translateY(6px);
	transition: opacity .25s, transform .25s;
}

.tpod-card__play svg { width: 20px; height: 20px; fill: currentColor; margin-left: 2px; }
.tpod-card:hover .tpod-card__play,
.tpod-card:focus-within .tpod-card__play { opacity: 1; transform: none; }

@media (hover: none) {
	.tpod-card__play { opacity: 1; transform: none; }
}

.tpod-card__body {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding-top: 16px;
	flex: 1;
}

.tpod-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	font-size: .85em;
	color: var(--tpod-muted);
}

.tpod-card__title {
	margin: 0;
	font-size: 1.15em;
	line-height: 1.3;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.tpod-card__title a { color: inherit; text-decoration: none; }
.tpod-card__title a:hover { color: var(--tpod-accent); }

.tpod-card__excerpt {
	margin: 0;
	color: var(--tpod-muted);
	line-height: 1.55;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.tpod-card__cta {
	margin-top: auto;
	padding-top: 6px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	align-self: flex-start;
	font-weight: 600;
	color: var(--tpod-accent);
	text-decoration: none;
}

.tpod-card__cta svg { width: 18px; height: 18px; transition: transform .2s; }
.tpod-card__cta:hover svg { transform: translateX(3px); }

/* ---------- Paginação ---------- */

.tpod-pagination {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
	margin-top: 40px;
}

.tpod-pagination .page-numbers {
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	display: inline-grid;
	place-items: center;
	border: 1px solid var(--tpod-border);
	border-radius: 999px;
	color: inherit;
	text-decoration: none;
	font-weight: 500;
}

.tpod-pagination a.page-numbers:hover { border-color: var(--tpod-accent); color: var(--tpod-accent); }
.tpod-pagination .page-numbers.current { background: var(--tpod-accent); border-color: var(--tpod-accent); color: var(--tpod-on-accent); }
.tpod-pagination .page-numbers.dots { border-color: transparent; }

/* ---------- Player ---------- */

.tpod-player {
	--tpod-progress: 0%;
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 14px 18px 14px 14px;
	border: 1px solid var(--tpod-border);
	border-radius: calc(var(--tpod-radius) + 4px);
	background: var(--tpod-soft);
}

.tpod-player audio { display: none; }

.tpod-player__play {
	flex: none;
	width: 56px;
	height: 56px;
	display: grid;
	place-items: center;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--tpod-accent);
	color: var(--tpod-on-accent);
	cursor: pointer;
	transition: transform .15s, box-shadow .2s;
}

.tpod-player__play:hover { transform: scale(1.05); box-shadow: 0 6px 20px color-mix(in srgb, var(--tpod-accent) 40%, transparent); }
.tpod-player__play:focus-visible { outline: 3px solid color-mix(in srgb, var(--tpod-accent) 45%, transparent); outline-offset: 3px; }
.tpod-player__play svg { width: 24px; height: 24px; fill: currentColor; display: block; }
.tpod-player__icon-play svg { margin-left: 3px; }
.tpod-player__icon-pause { display: none; }
.tpod-player.is-playing .tpod-player__icon-play { display: none; }
.tpod-player.is-playing .tpod-player__icon-pause { display: block; }

.tpod-player.is-loading .tpod-player__play { animation: tpod-pulse 1s ease-in-out infinite; }
@keyframes tpod-pulse { 50% { opacity: .6; } }

.tpod-player__body {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.tpod-player__seek {
	-webkit-appearance: none;
	appearance: none;
	width: 100%;
	height: 6px;
	margin: 6px 0;
	border-radius: 999px;
	background: linear-gradient(to right, var(--tpod-accent) var(--tpod-progress), var(--tpod-border) var(--tpod-progress));
	cursor: pointer;
}

.tpod-player__seek::-webkit-slider-thumb {
	-webkit-appearance: none;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: var(--tpod-accent);
	border: 3px solid #fff;
	box-shadow: 0 1px 4px rgba(0, 0, 0, .3);
}

.tpod-player__seek::-moz-range-thumb {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: var(--tpod-accent);
	border: 3px solid #fff;
	box-shadow: 0 1px 4px rgba(0, 0, 0, .3);
}

.tpod-player__seek:focus-visible { outline: 2px solid var(--tpod-accent); outline-offset: 4px; }

.tpod-player__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.tpod-player__time {
	font-size: .85em;
	font-variant-numeric: tabular-nums;
	color: var(--tpod-muted);
	white-space: nowrap;
}

.tpod-player__controls {
	display: flex;
	align-items: center;
	gap: 4px;
}

.tpod-player__controls button,
.tpod-player__download {
	height: 34px;
	min-width: 34px;
	padding: 0 8px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 3px;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: inherit;
	font: inherit;
	font-size: .8em;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
}

.tpod-player__controls button:hover,
.tpod-player__download:hover { background: var(--tpod-soft); color: var(--tpod-accent); }

.tpod-player__controls svg { width: 18px; height: 18px; }
.tpod-player__speed { min-width: 44px !important; font-variant-numeric: tabular-nums; }

.tpod-player.has-error { border-color: #c0392b; }

@media (max-width: 480px) {
	.tpod-player { gap: 12px; padding: 12px; }
	.tpod-player__play { width: 48px; height: 48px; }
	.tpod-player__download { display: none; }
}

/* ---------- Página do episódio ---------- */

.tpod-ep { display: flex; flex-direction: column; gap: 40px; }

.tpod-ep__header {
	display: grid;
	grid-template-columns: minmax(200px, 320px) 1fr;
	gap: 40px;
	align-items: center;
}

.tpod-ep__header--no-image { grid-template-columns: 1fr; }

.tpod-ep-image {
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: var(--tpod-radius);
	display: block;
}

.tpod-ep__intro { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.tpod-ep-title { margin: 0; line-height: 1.15; }
.tpod-ep-summary { margin: 0; font-size: 1.1em; color: var(--tpod-muted); line-height: 1.55; }
.tpod-ep__intro .tpod-player { margin-top: 8px; }

.tpod-ep-description { line-height: 1.7; max-width: 72ch; }
.tpod-ep-description > :first-child { margin-top: 0; }
.tpod-ep-description a { color: var(--tpod-accent); }
.tpod-ep-description img { max-width: 100%; height: auto; }

.tpod-ep__body {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
	gap: 48px;
	align-items: start;
}

.tpod-ep__body--single { grid-template-columns: minmax(0, 1fr); }
.tpod-ep__aside { display: flex; flex-direction: column; gap: 32px; }

@media (max-width: 900px) {
	.tpod-ep__body { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}

.tpod-block-title {
	margin: 0 0 12px;
	font-size: .78rem;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--tpod-muted);
}

/* ---------- Capítulos ---------- */

.tpod-chapters ol {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.tpod-chapters button {
	width: 100%;
	display: flex;
	align-items: baseline;
	gap: 14px;
	padding: 10px 12px;
	border: 0;
	border-radius: 10px;
	background: transparent;
	color: inherit;
	font: inherit;
	text-align: left;
	cursor: pointer;
	transition: background .15s;
}

.tpod-chapters button:hover { background: var(--tpod-soft); }
.tpod-chapters button:focus-visible { outline: 2px solid var(--tpod-accent); outline-offset: 1px; }

.tpod-chapters__time {
	flex: none;
	min-width: 3.6em;
	font-size: .85em;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	color: var(--tpod-accent);
}

.tpod-chapters__title { line-height: 1.4; }

.tpod-chapters button.is-active { background: color-mix(in srgb, var(--tpod-accent) 10%, transparent); }
.tpod-chapters button.is-active .tpod-chapters__title { font-weight: 600; }

.tpod-timestamp {
	display: inline;
	padding: 0 4px;
	border: 0;
	border-radius: 4px;
	background: color-mix(in srgb, var(--tpod-accent) 10%, transparent);
	color: var(--tpod-accent);
	font: inherit;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	cursor: pointer;
}

.tpod-timestamp:hover { background: var(--tpod-accent); color: var(--tpod-on-accent); }

/* ---------- Pessoas ---------- */

.tpod-people ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.tpod-person { display: flex; align-items: center; gap: 12px; }

.tpod-person__img {
	flex: none;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	object-fit: cover;
}

.tpod-person__img--initials {
	display: grid;
	place-items: center;
	background: color-mix(in srgb, var(--tpod-accent) 14%, transparent);
	color: var(--tpod-accent);
	font-weight: 700;
	font-size: .9em;
	text-transform: uppercase;
}

.tpod-person__text { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.tpod-person__name { font-weight: 600; color: inherit; text-decoration: none; }
a.tpod-person__name:hover { color: var(--tpod-accent); }
.tpod-person__role { font-size: .85em; color: var(--tpod-muted); }

.tpod-ep__footer {
	display: flex;
	flex-wrap: wrap;
	gap: 24px 48px;
	padding-top: 28px;
	border-top: 1px solid var(--tpod-border);
}

@media (max-width: 767px) {
	.tpod-ep { gap: 28px; }
	.tpod-ep__header { grid-template-columns: 1fr; gap: 24px; }
	.tpod-ep__header .tpod-ep-image { max-width: 320px; }
}

/* ---------- Plataformas / partilha / links ---------- */

.tpod-platforms,
.tpod-share { display: flex; flex-direction: column; gap: 10px; }

.tpod-platforms__label {
	font-size: .78em;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--tpod-muted);
}

.tpod-platforms__links { display: flex; flex-wrap: wrap; gap: 8px; }

.tpod-platforms__links a {
	padding: 7px 14px;
	border: 1px solid var(--tpod-border);
	border-radius: 999px;
	color: inherit;
	font-size: .9em;
	text-decoration: none;
	transition: border-color .2s, color .2s;
}

.tpod-platforms__links a:hover { border-color: var(--tpod-accent); color: var(--tpod-accent); }

.tpod-back {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: inherit;
	font-weight: 600;
	text-decoration: none;
}

.tpod-back svg { width: 18px; height: 18px; transition: transform .2s; }
.tpod-back:hover { color: var(--tpod-accent); }
.tpod-back:hover svg { transform: translateX(-3px); }

.tpod-link { color: var(--tpod-accent); font-weight: 600; }

.tpod-video { position: relative; aspect-ratio: 16 / 9; }
.tpod-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: var(--tpod-radius); }

.tpod-notice {
	padding: 14px 16px;
	border-left: 4px solid var(--tpod-accent);
	background: var(--tpod-soft);
	border-radius: 4px;
}

.tpod-empty { color: var(--tpod-muted); }

@media (prefers-reduced-motion: reduce) {
	.tpod-card__media img,
	.tpod-card__play,
	.tpod-card__cta svg,
	.tpod-back svg { transition: none; }
	.tpod-player.is-loading .tpod-player__play { animation: none; }
}

/* ---------- Secções condicionais ----------
 * Dá a um contentor do Elementor (Avançado → Classes CSS) uma destas classes
 * e ele desaparece nos episódios que não têm esses dados.
 */
body.tpod-sem-anteriores  .tpod-so-com-anteriores,
body.tpod-sem-capitulos   .tpod-so-com-capitulos,
body.tpod-sem-hosts       .tpod-so-com-hosts,
body.tpod-sem-convidados  .tpod-so-com-convidados,
body.tpod-sem-descricao   .tpod-so-com-descricao,
body.tpod-sem-resumo      .tpod-so-com-resumo,
body.tpod-sem-video       .tpod-so-com-video,
body.tpod-sem-transcricao .tpod-so-com-transcricao { display: none !important; }

/* ---------- Caixa "sem dados" (atributo vazio="…") ---------- */

.tpod-empty-box {
	padding: 18px 20px;
	border: 2px dashed var(--tpod-border);
	border-radius: 12px;
	color: var(--tpod-muted);
	text-align: center;
	font-size: .95em;
}

/* ---------- Notas em secções (formato="secoes") ---------- */

.tpod-notes { display: flex; flex-direction: column; gap: 28px; }

.tpod-notes__text p { margin: 0 0 .6em; }
.tpod-notes__text p:last-child { margin-bottom: 0; }
.tpod-notes__text a { color: var(--tpod-accent); word-break: break-word; }

.tpod-notes__section { display: flex; flex-direction: column; gap: 14px; }

.tpod-notes__title {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0;
	font-size: 1.35em;
	line-height: 1.2;
}

.tpod-notes__icon {
	flex: none;
	width: 36px;
	height: 36px;
	display: grid;
	place-items: center;
	border-radius: 8px;
	background: color-mix(in srgb, var(--tpod-accent) 14%, transparent);
	color: var(--tpod-accent);
}

.tpod-notes__icon svg { width: 20px; height: 20px; }

.tpod-notes__chips {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.tpod-notes__chip {
	margin: 0;
	padding: 10px 20px;
	border: 2px solid var(--tpod-border);
	border-radius: 10px;
	font-weight: 600;
	line-height: 1.3;
	transition: border-color .2s ease, color .2s ease, transform .2s ease;
}

.tpod-notes__chip:hover {
	border-color: var(--tpod-accent);
	color: var(--tpod-accent);
	transform: translateY(-2px);
}

.tpod-notes__chip a { color: inherit; text-decoration: none; }

@media (prefers-reduced-motion: reduce) {
	.tpod-notes__chip { transition: none; }
	.tpod-notes__chip:hover { transform: none; }
}

/* ---------- Separadores por programa ---------- */

.tpod-tabs { display: flex; flex-direction: column; gap: 28px; scroll-margin-top: var(--tpod-scroll-offset, 120px); }

.tpod-tabs__list {
	display: flex;
	gap: 8px;
	overflow-x: auto;          /* em mobile desliza para o lado em vez de partir */
	scrollbar-width: none;
	padding-bottom: 2px;
}
.tpod-tabs__list::-webkit-scrollbar { display: none; }

.tpod-tab {
	flex: none;
	padding: 10px 18px;
	border: 1px solid var(--tpod-border);
	border-radius: 999px;
	color: inherit;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.tpod-tab:hover { border-color: var(--tpod-accent); color: var(--tpod-accent); }
.tpod-tab.is-active { background: var(--tpod-accent); border-color: var(--tpod-accent); color: var(--tpod-on-accent); }
.tpod-tab:focus-visible { outline: 2px solid var(--tpod-accent); outline-offset: 2px; }

/* Nome do programa nos cards (vista "Todos") */
.tpod-card__show {
	align-self: flex-start;
	font-size: .75em;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--tpod-accent);
}

/* ---------- Destaque [podcast_destaque] ----------
 * Pontos de quebra iguais aos do Elementor (largura do ecrã):
 *   > 1024px  desktop  capa grande à esquerda
 *   ≤ 1024px  tablet   capa mais pequena ao lado do texto
 *   ≤ 767px   mobile   tudo empilhado, botão a toda a largura
 * Para estilizar: @media (max-width: 1024px) {…} e @media (max-width: 767px) {…},
 * ou os controlos responsivos do widget "Podcast — Destaque".
 */

/* O bloco ocupa sempre a largura disponível do contentor. */
.tpod-featured-wrap {
	display: block;
	width: 100%;
	flex: 1 1 100%;
	align-self: stretch;
	min-width: 0;
}

/* Widget do Elementor onde está o destaque: sempre a toda a largura do contentor. */
.elementor-widget:has(.tpod-featured-wrap),
.elementor-widget:has(.tpod-featured-wrap) > .elementor-widget-container,
.elementor-shortcode:has(.tpod-featured-wrap) {
	width: 100%;
	max-width: 100%;
	flex: 1 1 100%;
	align-self: stretch;
}

.tpod-featured {
	display: grid;
	grid-template-columns: minmax(0, var(--tpod-cover-w, 440px)) minmax(0, 1fr);
	gap: 40px;
	align-items: center;
	padding: 28px;
	border-radius: 24px;
	background: var(--tpod-featured-bg, #fff);
	color: var(--tpod-featured-ink, inherit);
}

.tpod-featured__media {
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	border-radius: 18px;
	overflow: hidden;
	background: var(--tpod-soft);
}

.tpod-featured__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.tpod-featured__media:hover img { transform: scale(1.03); }

.tpod-featured__body { min-width: 0; display: flex; flex-direction: column; gap: 16px; }

.tpod-featured__intro { display: flex; flex-direction: column; gap: inherit; min-width: 0; }

.tpod-featured__labels { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }

.tpod-featured__tag {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 6px 12px;
	border-radius: 999px;
	background: var(--tpod-featured-tag, #c2410c);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	white-space: nowrap;
}
.tpod-featured__tag svg { width: 13px; height: 13px; flex: none; }

.tpod-featured__show,
.tpod-card__show { color: var(--tpod-label, #b8430f); }
.tpod-featured__show { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

.tpod-featured__title {
	margin: 0;
	font-size: clamp(1.5rem, 1rem + 1.4vw, 2.5rem);
	line-height: 1.1;
	letter-spacing: -.02em;
	overflow-wrap: anywhere;
}
.tpod-featured__title a { color: inherit; text-decoration: none; }
.tpod-featured__title a:hover { color: var(--tpod-accent); }

.tpod-featured__summary { margin: 0; font-size: 1.05em; color: var(--tpod-muted); max-width: 62ch; line-height: 1.55; }

.tpod-featured .tpod-player { margin: 4px 0; }

.tpod-featured__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }

.tpod-featured__cta {
	box-sizing: border-box;
	max-width: 100%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	padding: 0 22px;
	border-radius: 12px;
	background: var(--tpod-featured-cta, #1d1b4f);
	color: #fff;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
	transition: transform .2s ease, box-shadow .2s ease;
}
.tpod-featured__cta svg { width: 18px; height: 18px; transition: transform .2s; }
.tpod-featured__cta:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(29,27,79,.2); }
.tpod-featured__cta:hover svg { transform: translateX(3px); }

.tpod-featured__hosts { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--tpod-muted); min-width: 0; flex-wrap: wrap; }
.tpod-featured__avatars { display: flex; flex: none; }
.tpod-featured__avatars > * {
	width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--tpod-featured-bg, #fff); margin-left: -10px;
	object-fit: cover; background: #d9d4ea; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #1d1b4f;
}
.tpod-featured__avatars > :first-child { margin-left: 0; }

/* ---- Tablet (≤ 1024px, como o Elementor) ---- */
@media (max-width: 1024px) {
	.tpod-featured:not(.tpod-featured--banner) {
		grid-template-columns: minmax(0, 38%) minmax(0, 1fr);
		gap: 28px;
		padding: 24px;
		align-items: start;
	}
	.tpod-featured__media { border-radius: 14px; }
	.tpod-featured__body { gap: 12px; }
	.tpod-featured__title { font-size: clamp(1.35rem, 1rem + 1.6vw, 2rem); }
	.tpod-featured__summary {
		font-size: 1em;
		display: -webkit-box;
		-webkit-line-clamp: 3;
		-webkit-box-orient: vertical;
		overflow: hidden;
	}
	/* O player ocupa a largura toda do cartão, por baixo da capa e do texto */
	.tpod-featured:not(.tpod-featured--banner) .tpod-featured__body { display: contents; }
	.tpod-featured:not(.tpod-featured--banner) .tpod-featured__intro { grid-column: 2; }
	.tpod-featured:not(.tpod-featured--banner) .tpod-player,
	.tpod-featured:not(.tpod-featured--banner) .tpod-featured__actions { grid-column: 1 / -1; }
	.tpod-featured .tpod-player { margin: 0; }
}

/* ---- Mobile (≤ 767px, como o Elementor) ---- */
@media (max-width: 767px) {
	.tpod-featured:not(.tpod-featured--banner) {
		grid-template-columns: minmax(0, 1fr);
		gap: 16px;
		padding: 12px 12px 18px;
		border-radius: 20px;
	}
	.tpod-featured:not(.tpod-featured--banner) .tpod-featured__intro { grid-column: 1; padding: 4px 4px 0; }
	.tpod-featured__media { border-radius: 12px; }
	.tpod-featured__title { font-size: clamp(1.3rem, 1rem + 2.4vw, 1.75rem); }
	.tpod-featured__summary { -webkit-line-clamp: 4; }
	.tpod-featured__actions { flex-direction: column; align-items: stretch; padding: 0 4px; }
	.tpod-featured__cta { width: 100%; }
	.tpod-featured__hosts { justify-content: center; }
	.tpod-featured .tpod-player { padding: 12px; gap: 12px; }
	.tpod-featured .tpod-player__play { width: 52px; height: 52px; }
	.tpod-featured .tpod-player__row { flex-wrap: wrap; row-gap: 6px; }
	.tpod-featured .tpod-player__controls { margin-left: auto; }
}

/* ---- Variante banner: fundo escuro com a capa por trás ---- */
.tpod-featured--banner {
	display: flex;
	position: relative;
	overflow: hidden;
	min-height: 420px;
	padding: 56px;
	align-items: flex-end;
	background: var(--tpod-featured-banner-bg, #1d1b4f);
	color: #fff;
	isolation: isolate;
}
.tpod-featured--banner::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(90deg, var(--tpod-featured-banner-bg, #1d1b4f) 35%, transparent 85%), var(--tpod-featured-img, none) right center / cover no-repeat;
}
.tpod-featured--banner .tpod-featured__body { max-width: 640px; }
.tpod-featured--banner .tpod-featured__show,
.tpod-featured--banner .tpod-meta,
.tpod-featured--banner .tpod-featured__summary,
.tpod-featured--banner .tpod-featured__hosts { color: #d6d3ee; }
.tpod-featured--banner .tpod-featured__cta { background: #fff; color: #1d1b4f; }
.tpod-featured--banner .tpod-featured__cta:hover { color: #1d1b4f; }
.tpod-featured--banner .tpod-featured__avatars > * { border-color: #1d1b4f; }

@media (max-width: 1024px) {
	.tpod-featured--banner { padding: 40px; min-height: 360px; }
}

@media (max-width: 767px) {
	.tpod-featured--banner { padding: 28px 20px; min-height: 0; border-radius: 20px; }
	.tpod-featured--banner::before {
		background: linear-gradient(0deg, var(--tpod-featured-banner-bg, #1d1b4f) 55%, rgba(29,27,79,.55)), var(--tpod-featured-img, none) center / cover no-repeat;
	}
}

@media (prefers-reduced-motion: reduce) {
	.tpod-featured__media img, .tpod-featured__cta, .tpod-featured__cta svg { transition: none; }
}


/* ---------- Último episódio [podcast_ultimo] ----------
 * Cores: --tpod-latest-bg, --tpod-latest-ink, --tpod-latest-bg-hover
 */
.tpod-latest {
	box-sizing: border-box;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	grid-template-areas: "label arrow" "text arrow";
	align-items: center;
	column-gap: 16px;
	row-gap: 4px;
	width: 100%;
	min-height: 72px;
	padding: 16px 20px;
	border-radius: 10px;
	background: var(--tpod-latest-bg, #f2703f);
	color: var(--tpod-latest-ink, #1d1b4f);
	text-decoration: none;
	transition: background-color .2s ease, transform .2s ease;
}
.tpod-latest:hover,
.tpod-latest:focus-visible { background: var(--tpod-latest-bg-hover, #e8602d); color: var(--tpod-latest-ink, #1d1b4f); }
.tpod-latest:focus-visible { outline: 2px solid var(--tpod-latest-ink, #1d1b4f); outline-offset: 3px; }

.tpod-latest__label {
	grid-area: label;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .02em;
	text-transform: uppercase;
}
.tpod-latest__text {
	grid-area: text;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.3;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap; /* títulos compridos cortam com "…" */
}
.tpod-latest:not(:has(.tpod-latest__label)) .tpod-latest__text { grid-row: 1 / -1; }
.tpod-latest__arrow { grid-area: arrow; display: flex; }
.tpod-latest__arrow svg { width: 20px; height: 20px; transition: transform .2s ease; }
.tpod-latest:hover .tpod-latest__arrow svg { transform: translateX(4px); }

@media (prefers-reduced-motion: reduce) {
	.tpod-latest, .tpod-latest__arrow svg { transition: none; }
	.tpod-latest:hover .tpod-latest__arrow svg { transform: none; }
}


/* ---------- Hub [podcast_hub] ----------
 * Sem fundo; texto herda a cor da secção. Personalizar com as variáveis:
 *   --tpod-hub-gap          espaço entre blocos (24px)
 *   --tpod-hub-radius       cantos das capas (12px)
 *   --tpod-hub-ratio        proporção das capas da lista (16 / 10)
 *   --tpod-hub-main-bg      fundo do episódio em destaque (transparent)
 *   --tpod-hub-main-padding espaço interior do destaque (0)
 *   --tpod-hub-badge-bg / --tpod-hub-badge-ink    etiqueta "EP 595"
 *   --tpod-hub-new-bg / --tpod-hub-new-ink        etiqueta "Novo · EP 596"
 *   --tpod-hub-play-bg / --tpod-hub-play-ink      círculo do play
 * Pontos de quebra iguais aos do Elementor: tablet ≤ 1024px, mobile ≤ 767px.
 */
.tpod-hub {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: var(--tpod-hub-gap, 24px);
	align-items: start;
	color: inherit;
}

.tpod-hub a { color: inherit; text-decoration: none; }

.tpod-hub__cover {
	position: relative;
	display: block;
	overflow: hidden;
	border-radius: var(--tpod-hub-radius, 12px);
	background: color-mix(in srgb, currentColor 8%, transparent);
}
.tpod-hub__cover img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: var(--tpod-hub-focus, center top);
	transition: transform .4s cubic-bezier(.2,.7,.2,1);
}
.tpod-hub__main:hover .tpod-hub__cover img,
.tpod-hub__item:hover .tpod-hub__cover img { transform: scale(1.04); }

.tpod-hub__badge {
	align-self: flex-start;
	display: inline-block;
	padding: 4px 9px;
	border-radius: 6px;
	background: var(--tpod-hub-badge-bg, #f2703f);
	color: var(--tpod-hub-badge-ink, #fff);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .04em;
	line-height: 1.3;
	text-transform: uppercase;
	white-space: nowrap;
}
.tpod-hub__badge--new { background: var(--tpod-hub-new-bg, var(--tpod-hub-badge-bg, #f2703f)); color: var(--tpod-hub-new-ink, var(--tpod-hub-badge-ink, #fff)); }

.tpod-hub__title { margin: 0; font-weight: 700; line-height: 1.25; }
.tpod-hub__title a:hover { text-decoration: underline; text-underline-offset: 3px; }
.tpod-hub__meta { font-size: 14px; opacity: .75; }

/* Destaque (o mais recente) */
.tpod-hub__main {
	display: grid;
	grid-template-columns: minmax(0, 44%) minmax(0, 1fr);
	gap: 20px;
	padding: var(--tpod-hub-main-padding, 0);
	border-radius: calc(var(--tpod-hub-radius, 12px) + 4px);
	background: var(--tpod-hub-main-bg, transparent);
}
.tpod-hub__main .tpod-hub__cover { aspect-ratio: 1 / 1; }
.tpod-hub__main .tpod-hub__body { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 4px 0; }
.tpod-hub__main .tpod-hub__title { font-size: clamp(1.15rem, .9rem + .8vw, 1.5rem); }

.tpod-hub__play {
	margin-top: auto;
	padding-top: 12px;
	display: inline-flex;
	align-items: center;
	gap: 12px;
	align-self: flex-start;
	font-weight: 700;
	min-height: 44px;
}
.tpod-hub__play-icon {
	flex: none;
	width: 44px;
	height: 44px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: var(--tpod-hub-play-bg, #f2703f);
	color: var(--tpod-hub-play-ink, #fff);
	transition: transform .2s ease;
}
.tpod-hub__play-icon svg { width: 18px; height: 18px; fill: currentColor; margin-left: 2px; }
.tpod-hub__play:hover .tpod-hub__play-icon { transform: scale(1.08); }

/* Lista (os seguintes) */
.tpod-hub__list {
	display: grid;
	grid-template-columns: repeat(var(--tpod-hub-cols, 2), minmax(0, 1fr));
	gap: var(--tpod-hub-gap, 24px);
}
.tpod-hub__item { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.tpod-hub__item .tpod-hub__cover { aspect-ratio: var(--tpod-hub-ratio, 16 / 10); }
.tpod-hub__item .tpod-hub__badge { position: absolute; top: 10px; left: 10px; z-index: 1; }
.tpod-hub__item .tpod-hub__body { display: flex; flex-direction: column; gap: 4px; }
.tpod-hub__item .tpod-hub__title {
	font-size: 1rem;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Tablet: destaque numa linha inteira, lista por baixo */
@media (max-width: 1024px) {
	.tpod-hub { grid-template-columns: minmax(0, 1fr); }
	.tpod-hub__main { grid-template-columns: minmax(0, 220px) minmax(0, 1fr); }
}

/* Mobile: destaque compacto, lista em linhas (capa pequena + texto) */
@media (max-width: 767px) {
	.tpod-hub { gap: 20px; }
	.tpod-hub__main { grid-template-columns: 112px minmax(0, 1fr); gap: 14px; }
	.tpod-hub__main .tpod-hub__body { gap: 6px; padding: 0; display: contents; }
	.tpod-hub__main .tpod-hub__cover { grid-row: 1 / span 3; align-self: start; }
	.tpod-hub__main .tpod-hub__badge,
	.tpod-hub__main .tpod-hub__title,
	.tpod-hub__main .tpod-hub__meta { grid-column: 2; }
	.tpod-hub__main .tpod-hub__badge { justify-self: start; }
	.tpod-hub__main .tpod-hub__title { font-size: 1.05rem; }
	.tpod-hub__play {
		grid-column: 1 / -1;
		margin-top: 2px;
		padding: 0 18px 0 6px;
		align-self: stretch;
		justify-content: center;
		border-radius: 999px;
		border: 1px solid color-mix(in srgb, currentColor 25%, transparent);
		min-height: 52px;
	}
	.tpod-hub__play-icon { width: 38px; height: 38px; }

	.tpod-hub__list { grid-template-columns: minmax(0, 1fr); gap: 0; }
	.tpod-hub__item {
		display: grid;
		grid-template-columns: 96px minmax(0, 1fr);
		gap: 14px;
		align-items: center;
		padding: 12px 0;
		border-top: 1px solid color-mix(in srgb, currentColor 15%, transparent);
	}
	.tpod-hub__item .tpod-hub__cover { aspect-ratio: 1 / 1; }
	.tpod-hub__item .tpod-hub__badge { top: auto; bottom: 6px; left: 6px; font-size: 10px; padding: 2px 6px; }
}

@media (prefers-reduced-motion: reduce) {
	.tpod-hub__cover img, .tpod-hub__play-icon { transition: none; }
	.tpod-hub__main:hover .tpod-hub__cover img, .tpod-hub__item:hover .tpod-hub__cover img, .tpod-hub__play:hover .tpod-hub__play-icon { transform: none; }
}
