/* Programas: próximo directo + archivo. Negro y dorado, Montserrat. Solo se carga en esa página. */

.eep-page, .eep {
	--bg: #0b0b0b; --panel: #141414; --panel2: #1a1a1a; --gold: #d4af37; --gold-line: rgba(212, 175, 55, .38);
	--ivory: #f3ecd6; --text: #e6e6e6; --mute: #9b9b9b; --twitch: #8c45f7; --yt: #e5231b;
	color: var(--text); font-family: Montserrat, "Segoe UI", Arial, sans-serif; line-height: 1.5;
}
/* Fondo negro en toda la página (el tema pone #f0f0f0 en body); igual que cabecera y pie (#0b0b0b) */
body.ee-programas-page, body.page-template-template-programas { background: #0b0b0b !important; }
.eep-page { max-width: 1180px; margin: 0 auto; padding: 18px 16px 48px; }
.eep-page *, .eep *, .eep-page *::before, .eep-page *::after { box-sizing: border-box; }
.eep a { color: inherit; text-decoration: none; }
.eep h2, .eep h3, .eep p, .eep ul, .eep ol { margin: 0; padding: 0; }
.eep ul, .eep ol { list-style: none; }
.eep a:focus-visible, .eep input:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.eep-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.eep-ico { flex: none; }

/* ---------- Cabecera ---------- */
.eep-hero { margin: 6px 0 22px; }
.eep-eyebrow { margin: 0 0 6px; font: 800 12px/1.2 Montserrat, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.eep-title { margin: 0; font: italic 900 40px/1 Montserrat, sans-serif; text-transform: uppercase; letter-spacing: -.01em; color: #fff; }
.eep-intro { max-width: 680px; margin-top: 12px; font-size: 15px; color: var(--ivory); }
.eep-intro p { margin: 0 0 8px; }

/* ---------- Próximo directo ---------- */
.eep-next {
	position: relative; overflow: hidden; display: grid; gap: 22px; padding: 22px 18px 24px; margin: 0 0 40px;
	background: radial-gradient(120% 140% at 0% 0%, #241d08 0%, #121212 55%, #0d0d0d 100%);
	border: 1px solid var(--gold-line); border-radius: 10px;
	box-shadow: 0 0 30px rgba(212, 175, 55, .12), 0 10px 30px rgba(0, 0, 0, .6);
}
.eep-next::before { /* filo dorado superior */
	content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.eep-next-glyph { position: absolute; right: -40px; bottom: -50px; color: var(--gold); opacity: .06; pointer-events: none; }
.eep-next-glyph .eep-ico { width: 260px; height: 260px; stroke-width: 1.4; }
.eep-date-rest { min-width: 0; }
.eep-next-when, .eep-next-what { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 14px; min-width: 0; }

.eep-kicker { display: flex; align-items: center; gap: 9px; font: 800 13px/1.2 Montserrat, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--ivory); }
.eep-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--gold); flex: none; }
.is-live .eep-dot { background: #ff3b3b; animation: eep-pulse 1.4s ease-out infinite; }
.is-live .eep-kicker { color: #ff8a8a; }
@keyframes eep-pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 59, 59, .7); } 100% { box-shadow: 0 0 0 12px rgba(255, 59, 59, 0); } }

.eep-num { align-self: flex-start; padding: 4px 12px; border: 1px solid var(--gold); border-radius: 3px; font: italic 800 13px/1.3 Montserrat, sans-serif; text-transform: uppercase; letter-spacing: .06em; color: var(--gold); }
.eep-date { display: flex; align-items: center; gap: 16px; margin: 0; }
.eep-date-day { font: 900 92px/.82 Montserrat, sans-serif; letter-spacing: -.05em; color: var(--gold); text-shadow: 0 0 30px rgba(212, 175, 55, .25); }
.eep-date-rest { display: flex; flex-direction: column; gap: 6px; padding-left: 16px; border-left: 2px solid var(--gold-line); }
.eep-date-month { font: italic 900 30px/1 Montserrat, sans-serif; text-transform: uppercase; color: #fff; }
.eep-date-when { font: 600 15px/1.3 Montserrat, sans-serif; color: var(--ivory); }
.eep-date-plain { font: 800 24px/1.25 Montserrat, sans-serif; color: #fff; }

/* Cuenta atrás */
.eep-cd { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; max-width: 420px; }
.eep-cd-box { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 4px 8px; background: #000; border: 1px solid var(--gold-line); border-radius: 6px; }
.eep-cd-box b { font: 800 28px/1 Montserrat, sans-serif; color: #fff; font-variant-numeric: tabular-nums; }
.eep-cd-box small { font: 700 10.5px/1.2 Montserrat, sans-serif; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.eep-live-msg { font: italic 900 22px/1.2 Montserrat, sans-serif; text-transform: uppercase; color: #ff5b5b; }

/* Temas */
.eep-topics-h { margin-bottom: 8px !important; font: 800 12px/1.2 Montserrat, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.eep-topics-tba { font-size: 14.5px; color: var(--ivory); }
.eep-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.eep-chips li { padding: 7px 14px; background: rgba(212, 175, 55, .1); border: 1px solid var(--gold-line); border-radius: 999px; font: 700 14px/1.2 Montserrat, sans-serif; color: #fff; }
.eep-chips--sm { gap: 6px; }
.eep-chips--sm li { padding: 4px 10px; font-size: 12px; font-weight: 600; color: var(--ivory); background: rgba(255, 255, 255, .04); border-color: rgba(212, 175, 55, .25); }
.eep-chips--sm li.is-more { color: var(--gold); }

/* Botones */
.eep-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; }
.eep-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 24px;
	border-radius: 4px; font: italic 800 15px/1 Montserrat, sans-serif; text-transform: uppercase; letter-spacing: .04em; color: #fff !important;
	transition: filter .2s ease, transform .2s ease;
}
.eep-btn--twitch { background: var(--twitch); box-shadow: 0 6px 20px rgba(140, 69, 247, .35); }
.eep-btn:hover { filter: brightness(1.12); transform: translateY(-1px); }
.is-live .eep-btn--twitch { background: #e91916; box-shadow: 0 6px 20px rgba(233, 25, 22, .4); }
.eep-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font: 700 14px Montserrat, sans-serif; color: var(--gold); }
.eep-link:hover { color: #fff; }

/* ---------- Secciones ---------- */
.eep-sec { margin: 0 0 40px; }
.eep-sec-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--gold-line); }
.eep-h2 { display: block; font: italic 900 24px/1.1 Montserrat, sans-serif; text-transform: uppercase; color: #fff; }
.eep-count { display: inline-block; vertical-align: middle; margin-left: 6px; padding: 2px 9px; border-radius: 999px; background: var(--gold); color: #111; font: 800 13px/1.4 Montserrat, sans-serif; font-style: normal; }
.eep-more { display: inline-flex; align-items: center; gap: 8px; font: 700 13.5px Montserrat, sans-serif; color: var(--ivory); }
.eep-more .eep-ico { color: var(--yt); }
.eep-more:hover { color: var(--gold); }
.eep-empty { color: var(--ivory); }
.eep-empty a { color: var(--gold); text-decoration: underline; }

/* Tarjetas */
.eep-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
.eep-card {
	display: flex; flex-direction: column; overflow: hidden; background: var(--panel); border: 1px solid #262212; border-radius: 8px;
	transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.eep-card:hover { border-color: var(--gold-line); transform: translateY(-3px); box-shadow: 0 12px 28px rgba(0, 0, 0, .55), 0 0 18px rgba(212, 175, 55, .1); }
.eep-card-thumb { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.eep-card-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.eep-card:hover .eep-card-thumb img { transform: scale(1.04); }
.eep-card-thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .7), transparent 50%); pointer-events: none; }
.eep-noimg { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, #1d1a10, #0f0f0f); }
.eep-play {
	position: absolute; z-index: 2; left: 50%; top: 50%; display: flex; align-items: center; justify-content: center; width: 58px; height: 58px; margin: -29px 0 0 -29px;
	border-radius: 50%; background: rgba(0, 0, 0, .55); border: 2px solid var(--gold); color: var(--gold); opacity: .9; transition: transform .2s ease, background-color .2s ease;
}
.eep-play .eep-ico { width: 24px; height: 24px; margin-left: 3px; }
.eep-card:hover .eep-play { transform: scale(1.08); background: var(--gold); color: #111; }
.eep-badge {
	position: absolute; z-index: 2; left: 12px; bottom: 10px; padding: 4px 10px; background: #000; border: 1px solid var(--gold); border-radius: 3px;
	font: italic 700 12px/1.2 Montserrat, sans-serif; text-transform: uppercase; letter-spacing: .05em; color: #fff;
}
.eep-badge b { color: var(--gold); font-weight: 900; }
.eep-new { position: absolute; z-index: 2; right: 12px; top: 12px; padding: 4px 10px; border-radius: 3px; background: var(--gold); color: #111; font: 800 11px/1.2 Montserrat, sans-serif; text-transform: uppercase; letter-spacing: .08em; }
.eep-card-body { display: flex; flex: 1; flex-direction: column; gap: 10px; padding: 14px 16px 16px; }
.eep-card-date { font: 700 12px/1.2 Montserrat, sans-serif; letter-spacing: .04em; color: var(--gold); }
.eep-card-title { font: 800 17px/1.3 Montserrat, sans-serif; color: #fff; }
.eep-card-title a:hover { color: var(--gold); }
.eep-card-cta { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 4px; font: 700 13px Montserrat, sans-serif; color: var(--ivory); }
.eep-card-cta .eep-ico { color: var(--yt); }
.eep-card:hover .eep-card-cta { color: #fff; }

/* Lista completa */
.eep-search { position: relative; display: flex; align-items: center; flex: 1 1 260px; max-width: 360px; }
.eep-search .eep-ico { position: absolute; left: 12px; color: var(--mute); pointer-events: none; }
.eep-search input {
	width: 100%; min-height: 42px; padding: 0 14px 0 40px; background: var(--panel); border: 1px solid #2c2c2c; border-radius: 999px;
	color: #fff; font: 500 14px Montserrat, sans-serif;
}
.eep-search input::placeholder { color: #777; }
.eep-search input:focus { border-color: var(--gold); outline: none; }
.eep-list { border: 1px solid #222; border-radius: 8px; overflow: hidden; }
.eep-row { display: grid; grid-template-columns: 44px 1fr auto; grid-template-areas: "num main yt" "num date yt"; align-items: center; gap: 2px 12px; padding: 12px 14px; background: var(--panel); }
.eep-row:nth-child(even) { background: #111; }
.eep-row + .eep-row { border-top: 1px solid #1f1f1f; }
.eep-row:hover { background: #1b1809; }
.eep-row-num { grid-area: num; font: italic 900 22px/1 Montserrat, sans-serif; color: var(--gold); text-align: center; }
.eep-row-main { grid-area: main; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.eep-row-title { font: 700 15px/1.3 Montserrat, sans-serif; color: #fff; }
.eep-row-topics { font-size: 13px; color: var(--mute); }
.eep-row-date { grid-area: date; font-size: 12px; color: var(--mute); }
.eep-row-yt {
	grid-area: yt; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 999px;
	background: rgba(229, 35, 27, .12); border: 1px solid rgba(229, 35, 27, .5); color: #fff !important; font: 700 13px Montserrat, sans-serif;
}
.eep-row-yt .eep-ico { width: 14px; height: 14px; color: var(--yt); }
.eep-row-yt:hover { background: var(--yt); }
.eep-row-yt:hover .eep-ico { color: #fff; }
.eep-row[hidden] { display: none; }
.eep-noresults { padding: 16px 0; color: var(--mute); }

/* ---------- Móvil: el último grande, los demás en fila compacta ---------- */
@media (max-width: 639px) {
	.eep-grid { gap: 12px; }
	.eep-card:not(.is-new) { display: grid; grid-template-columns: 42% 1fr; }
	.eep-card:not(.is-new) .eep-card-thumb { aspect-ratio: auto; min-height: 100%; }
	.eep-card:not(.is-new) .eep-card-thumb img { position: absolute; inset: 0; }
	.eep-card:not(.is-new) .eep-play { width: 40px; height: 40px; margin: -20px 0 0 -20px; }
	.eep-card:not(.is-new) .eep-play .eep-ico { width: 18px; height: 18px; }
	.eep-card:not(.is-new) .eep-badge { left: 6px; bottom: 6px; padding: 2px 6px; font-size: 10.5px; }
	.eep-card:not(.is-new) .eep-card-body { gap: 6px; padding: 10px 12px; }
	.eep-card:not(.is-new) .eep-card-title { font-size: 14.5px; }
	.eep-card:not(.is-new) .eep-chips--sm li:nth-child(n+3):not(.is-more) { display: none; }
	.eep-card:not(.is-new) .eep-card-cta { display: none; }
	.eep-date-day { font-size: 84px; }
	.eep-date-month { font-size: 26px; }
}

/* ---------- Tablet ---------- */
@media (min-width: 640px) {
	.eep-grid { grid-template-columns: repeat(2, 1fr); }
	.eep-row { grid-template-columns: 54px 1fr 120px auto; grid-template-areas: "num main date yt"; }
	.eep-row-date { text-align: right; }
}

/* ---------- Escritorio ---------- */
@media (min-width: 900px) {
	.eep-page { padding-top: 26px; }
	.eep-title { font-size: 54px; }
	.eep-next { grid-template-columns: minmax(300px, 400px) 1fr; gap: 40px; padding: 34px 36px; align-items: center; }
	.eep-next-when { padding-right: 36px; border-right: 1px solid var(--gold-line); }
	.eep-date-day { font-size: 128px; }
	.eep-date-month { font-size: 30px; }
	.eep-cd-box b { font-size: 34px; }
	.eep-grid { grid-template-columns: repeat(3, 1fr); gap: 22px; }
	.eep-h2 { font-size: 28px; }
}

@media (prefers-reduced-motion: reduce) {
	.is-live .eep-dot { animation: none; }
	.eep-card, .eep-card-thumb img, .eep-btn, .eep-play { transition: none; }
	.eep-card:hover, .eep-btn:hover { transform: none; }
	.eep-card:hover .eep-card-thumb img { transform: none; }
}
