/* Clásica Podcast — reproductor frontend.
 *
 * ─────────────────────────────────────────────────────────────────────────
 *  PALETA  ·  este es el ÚNICO lugar para cambiar colores.
 *  Además, cualquiera de estas variables se puede sobreescribir desde el CSS
 *  del tema sin tocar el plugin, p. ej.:
 *
 *      :root { --clpod-accent: #E8461F; }
 *
 *  Así el plugin "hereda" el color de marca del sitio.
 * ─────────────────────────────────────────────────────────────────────────
 */
:root {
	--clpod-accent: #FF4500;   /* naranja de marca del sitio Clásica */
	--clpod-ink:    #141414;   /* texto principal */
	--clpod-muted:  #6b6b6b;   /* texto secundario */
	--clpod-line:   #e6e6e2;   /* bordes/separadores */
	--clpod-bg:     #ffffff;   /* fondo del reproductor */
	--clpod-soft:   #f7f7f5;   /* fondos suaves */
	--clpod-on-accent: #ffffff; /* texto/íconos sobre el acento */
	--clpod-teal:   #149e9b;    /* turquesa editorial (eyebrows del grid) */
}

/* Tipografía: NO se fija font-family a propósito — hereda la del tema. */
.clpod-wrap {
	max-width: 760px;
	margin: 0 auto;
	color: var(--clpod-ink);
	font-size: 16px;
	line-height: 1.45;
}

.clpod-heading {
	margin: 0 0 .75rem;
	font-size: 1.4rem;
}

.clpod-empty {
	padding: 1.5rem;
	background: var(--clpod-soft);
	border-radius: 10px;
	text-align: center;
	color: var(--clpod-muted);
}

/* --- Reproductor (plano, sin caja) --- */
.clpod-player {
	background: transparent;
	border: 0;
	border-bottom: 2px solid var(--clpod-accent);
	border-radius: 0;
	padding: .25rem 0 .9rem;
	margin-bottom: .5rem;
	box-shadow: none;
}

/* Label editorial turquesa encima del reproductor. */
.clpod-player-eyebrow {
	margin: 0 0 .35rem;
	color: var(--clpod-teal);
	font-size: .72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .16em;
}

.clpod-now {
	margin-bottom: .55rem;
}

.clpod-now-title {
	margin: 0;
	font-weight: 700;
	font-size: 1.15rem;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.clpod-controls {
	display: flex;
	align-items: center;
	gap: .6rem;
}

.clpod-btn,
.clpod-item-play {
	appearance: none;
	border: 0;
	cursor: pointer;
	background: var(--clpod-accent);
	color: var(--clpod-on-accent);
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
}

.clpod-play {
	width: 42px;
	height: 42px;
	font-size: 1rem;
	flex: 0 0 auto;
}

/* Deshabilitado = gris neutro (no naranja desvaído, que parecía roto). */
.clpod-btn:disabled {
	background: #c9c9c4;
	color: #fff;
	cursor: default;
}

.clpod-seek {
	flex: 1 1 auto;
	appearance: none;
	height: 6px;
	border-radius: 6px;
	background: var(--clpod-line);
	outline-offset: 3px;
}
.clpod-seek::-webkit-slider-thumb {
	appearance: none;
	width: 15px;
	height: 15px;
	border-radius: 50%;
	background: var(--clpod-accent);
	cursor: pointer;
	border: 2px solid #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .3);
}
.clpod-seek::-moz-range-thumb {
	width: 15px;
	height: 15px;
	border: 2px solid #fff;
	border-radius: 50%;
	background: var(--clpod-accent);
	cursor: pointer;
}
.clpod-seek:disabled { opacity: .5; }

.clpod-time {
	font-variant-numeric: tabular-nums;
	font-size: .8rem;
	color: var(--clpod-muted);
	flex: 0 0 auto;
	min-width: 3ch;
	text-align: center;
}

/* --- Lista de episodios --- */
.clpod-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.clpod-item {
	display: flex;
	gap: .75rem;
	padding: .5rem .2rem;
	border-bottom: 1px solid var(--clpod-line);
	align-items: center;
}

/* Fila activa: acento a la izquierda, sin caja. */
.clpod-item.is-active {
	box-shadow: inset 3px 0 0 var(--clpod-accent);
}

.clpod-item-play {
	width: 30px;
	height: 30px;
	font-size: .7rem;
	flex: 0 0 auto;
}

/* El episodio seleccionado: botón oscuro para distinguirlo. */
.clpod-item.is-active .clpod-item-play { background: var(--clpod-ink); }

.clpod-item-body {
	min-width: 0;
	display: flex;
	align-items: baseline;
	gap: .5rem;
}

.clpod-item-title {
	margin: 0;
	font-weight: 600;
}

/* Indicador "Reproduciendo" solo cuando suena. */
.clpod-item.is-playing .clpod-item-title::after {
	content: " · Reproduciendo";
	color: var(--clpod-teal);
	font-size: .72em;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .1em;
}

@media (max-width: 480px) {
	.clpod-wrap { font-size: 15px; }
}

/* ─────────────────────────────────────────────────────────────────────────
 *  LISTA EDITORIAL DE PROGRAMAS  ·  [clasica_podcast_grid]
 *  Filas tipo revista: artwork horizontal a la izquierda, contenido a la
 *  derecha, sin cajas, separadas por una línea fina.
 * ───────────────────────────────────────────────────────────────────────── */
.clpod-grid {
	display: flex;
	flex-direction: column;
	gap: 0;
	max-width: 1100px;
	margin: 0 auto 2rem;
}

/* El nº de columnas ya no aplica en el layout editorial. */
.clpod-grid-cols-2,
.clpod-grid-cols-3,
.clpod-grid-cols-4 { grid-template-columns: none; }

.clpod-card {
	display: grid;
	grid-template-columns: minmax(260px, 38%) 1fr;
	gap: clamp(1.5rem, 4vw, 3rem);
	align-items: center;
	padding: 1.75rem 0;
	background: transparent;
	border: 0;
	border-bottom: 1px solid var(--clpod-line);
	border-radius: 0;
	overflow: visible;
	color: var(--clpod-ink);
	text-decoration: none;
}
.clpod-grid .clpod-card:first-child { padding-top: .5rem; }

/* Sin efecto "card flotante": solo un zoom sutil de la imagen. */
a.clpod-card:hover,
a.clpod-card:focus-visible {
	transform: none;
	box-shadow: none;
	outline: none;
}

.clpod-card-art {
	aspect-ratio: 16 / 10;
	background: var(--clpod-soft);
	overflow: hidden;
	border-radius: 4px;
}
.clpod-card-art img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .3s ease;
}
a.clpod-card:hover .clpod-card-art img,
a.clpod-card:focus-visible .clpod-card-art img { transform: scale(1.02); }

.clpod-card-body {
	padding: 0;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: .4rem;
}

/* Eyebrow editorial turquesa: "HISTORIA · PODCAST". */
.clpod-card-meta {
	color: var(--clpod-teal);
	font-size: .74rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .16em;
}

/* Título: grande, condensado/uppercase, hereda la tipografía del tema. */
.clpod-card-title {
	margin: 0;
	font-size: clamp(1.7rem, 3vw, 2.6rem);
	line-height: 1;
	font-weight: 800;
	text-transform: uppercase;
	color: var(--clpod-ink);
}

/* Conductor: "Con …". */
.clpod-card-host {
	margin: 0;
	font-size: 1rem;
	font-weight: 600;
	color: var(--clpod-ink);
}

.clpod-card-desc {
	margin: .15rem 0 0;
	max-width: 46ch;
	font-size: .95rem;
	line-height: 1.5;
	color: var(--clpod-muted);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* CTA naranja. */
.clpod-card-cta {
	margin-top: .35rem;
	color: var(--clpod-accent);
	font-size: .78rem;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
}

@media (max-width: 800px) {
	.clpod-card {
		grid-template-columns: 34% 1fr;
		gap: 1.25rem;
	}
}

@media (max-width: 560px) {
	.clpod-grid { padding: 0 1.25rem; }
	.clpod-card {
		grid-template-columns: 1fr;
		gap: .9rem;
		padding: 1.25rem 0 1.5rem;
	}
	.clpod-card-art { aspect-ratio: 16 / 9; }
}

/* ─────────────────────────────────────────────────────────────────────────
 *  HERO del podcast  ·  [clasica_podcast_hero]
 *  Fondo oscuro, eyebrow blanco, título con punto de acento, descripción.
 * ───────────────────────────────────────────────────────────────────────── */
.clpod-hero {
	--clpod-hero-bg: #1A120A;   /* igual que la navbar del sitio */
	background: var(--clpod-hero-bg);
	color: #fff;
	padding: clamp(2.5rem, 7vw, 5rem) 1.25rem;
}

.clpod-hero__inner {
	max-width: 1100px;
	margin: 0 auto;
}

/* Especificidad alta + !important en los colores para ganarle al tema,
   que colorea los h1/hr con sus propios estilos. */
.clpod-hero .clpod-hero__eyebrow {
	margin: 0 0 .6rem;
	text-transform: uppercase;
	letter-spacing: .18em;
	font-size: .8rem;
	font-weight: 600;
	color: #fff !important;
	opacity: .85;
}

.clpod-hero .clpod-hero__title {
	margin: 0;
	color: #fff !important;
	line-height: 1.02;
	font-size: clamp(2.4rem, 7vw, 5rem);
	/* La tipografía la hereda del tema (display condensada). */
}

/* El típico punto de acento a la derecha del título. */
.clpod-hero .clpod-hero__dot {
	color: var(--clpod-accent) !important;
}

/* Regla: reset total del <hr> del tema y línea limpia de acento. */
.clpod-hero .clpod-hero__rule {
	border: 0 !important;
	border-top: 3px solid var(--clpod-accent) !important;
	height: 0;
	width: 56px;
	max-width: 56px;
	margin: 1.25rem 0;
	padding: 0;
	background: transparent !important;
	opacity: 1;
}

.clpod-hero .clpod-hero__text {
	margin: 0;
	max-width: 60ch;
	font-size: clamp(1rem, 1.6vw, 1.2rem);
	color: #fff !important;
	opacity: .9;
}
