/* Fonoteca > Escucha en vivo. Sitio oscuro: fondo #0f0f0f, tarjetas #161616, borde #262626, acento #4ade80 / #2e7d32. */

.ev { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }
.ev-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.ev-migas { margin: 0 0 14px; font-size: 13px; }
.ev a { color: #86efac; text-decoration: none; }
.ev a:hover { color: #4ade80; text-decoration: underline; text-underline-offset: 3px; }
.ev a:focus-visible, .ev-play:focus-visible { outline: 3px solid #4ade80; outline-offset: 3px; border-radius: 6px; }

.ev-sub { margin: 0 0 22px; font-size: 16px; color: #a0aec0; }

.ev-contexto { margin-bottom: 26px; padding: 18px 22px; background: #161616; border: 1px solid #262626; border-left: 4px solid #2e7d32; border-radius: 10px; color: #d1d5db; font-size: 14px; line-height: 1.65; }
.ev-contexto p { margin: 0 0 8px; }
.ev-contexto p:last-child { margin-bottom: 0; }

.ev-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 22px; }
.ev-card { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 20px; background: #161616; border: 1px solid #262626; border-radius: 14px; box-sizing: border-box; transition: border-color 0.2s; }
.ev-card:hover, .ev-card[data-estado="sonando"] { border-color: #2e7d32; }
.ev-card[data-estado="sonando"] { box-shadow: 0 0 0 1px rgba(74, 222, 128, 0.25); }
.ev-nombre { margin: 0; font-size: 18px; font-weight: 700; color: #fff; overflow-wrap: anywhere; }
.ev-ubic { margin: 0; font-size: 13px; color: #9ca3af; }
.ev-ubic i { margin-right: 6px; color: #4ade80; }
.ev-desc { margin: 4px 0 0; font-size: 13px; color: #cbd5e1; line-height: 1.5; }

.ev-control { display: flex; align-items: center; gap: 14px; margin-top: 10px; }
.ev-play { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border: 1px solid #2e7d32; border-radius: 999px; background: #2e7d32; color: #fff; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; transition: background 0.2s, border-color 0.2s; }
.ev-play:hover { background: #256628; border-color: #4ade80; }
.ev-play[aria-pressed="true"] { background: transparent; color: #4ade80; border-color: #4ade80; }

/* Portada: relación fija 3:2 (la misma altura con o sin imagen), sin saltos de diseño */
.ev-portada { position: relative; aspect-ratio: 3 / 2; margin: -20px -20px 12px; overflow: hidden; border-radius: 13px 13px 0 0; background: #161616; }
.ev-portada img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ev-portada--vacia { display: flex; align-items: center; justify-content: center; box-shadow: inset 0 -1px 0 #262626;
    background: radial-gradient(circle at 30% 25%, rgba(46, 125, 50, 0.22), transparent 55%), repeating-linear-gradient(135deg, #161616 0 14px, #191919 14px 28px); }
.ev-portada--vacia i { font-size: 44px; color: #2e7d32; opacity: 0.75; }
.ev-portada__credito { position: absolute; right: 0; bottom: 0; left: 0; margin: 0; padding: 14px 10px 5px; font-size: 10.5px; line-height: 1.3; color: #e5e7eb; background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent); overflow-wrap: anywhere; }

/* Ondas: solo se mueven mientras suena */
.ev-onda { display: none; align-items: flex-end; gap: 3px; height: 22px; }
.ev-onda i { display: block; width: 4px; height: 6px; border-radius: 2px; background: #4ade80; }
.ev-card[data-estado="sonando"] .ev-onda { display: inline-flex; }
.ev-card[data-estado="sonando"] .ev-onda i { animation: ev-onda 0.9s ease-in-out infinite; }
.ev-card[data-estado="sonando"] .ev-onda i:nth-child(2) { animation-delay: 0.15s; }
.ev-card[data-estado="sonando"] .ev-onda i:nth-child(3) { animation-delay: 0.3s; }
.ev-card[data-estado="sonando"] .ev-onda i:nth-child(4) { animation-delay: 0.45s; }
@keyframes ev-onda { 0%, 100% { height: 6px; } 50% { height: 22px; } }

.ev-estado { margin: 2px 0 0; min-height: 1.4em; font-size: 12.5px; color: #9ca3af; }
.ev-card[data-estado="cargando"] .ev-estado { color: #fcd34d; }
.ev-card[data-estado="sonando"] .ev-estado { color: #4ade80; }
.ev-card[data-estado="error"] .ev-estado { color: #fca5a5; }

.ev-aviso { margin: 8px 0 0; padding: 10px 12px; background: #1c1c1c; border: 1px dashed #3f3f46; border-radius: 8px; font-size: 12.5px; color: #cbd5e1; line-height: 1.5; }
.ev-aviso i { margin-right: 6px; color: #fcd34d; }
.ev-enlaces { margin: 6px 0 0; font-size: 13px; }
.ev-btn-ext { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 1px solid #2e7d32; border-radius: 999px; }
.ev-creditos { margin: auto 0 0; padding-top: 12px; border-top: 1px solid #262626; font-size: 11.5px; color: #6b7280; line-height: 1.5; }

.ev-vacio { padding: 40px 22px; text-align: center; background: #161616; border: 1px dashed #262626; border-radius: 14px; color: #a0aec0; }
.ev-vacio i { font-size: 34px; color: #2e7d32; margin-bottom: 10px; }
.ev-vacio p { margin: 4px 0; }

.ev-pie-creditos { margin: 30px 0 0; font-size: 12.5px; color: #9ca3af; line-height: 1.6; }

@media (max-width: 600px) {
    .ev-grid { grid-template-columns: 1fr; }
    .ev-contexto { padding: 16px; }
    .ev-card { padding: 18px 16px; }
    .ev-portada { margin: -18px -16px 12px; }
}
@media (prefers-reduced-motion: reduce) {
    .ev-card, .ev-play { transition: none; }
    .ev-card[data-estado="sonando"] .ev-onda i { animation: none; height: 14px; }
}

/* ---- Grabaciones propias y textos editables ---- */
.ev-sub--texto { white-space: pre-line; max-width: 70ch; line-height: 1.6; overflow-wrap: anywhere; }
.ev-tipo { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; margin: 2px 0 0; padding: 3px 10px; border: 1px solid #333; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: #cbd5e1; }
.ev-tipo i { font-size: 10px; }
.ev-tipo--transmision { color: #fcd34d; border-color: rgba(252, 211, 77, 0.4); }
.ev-tipo--grabacion { color: #86efac; border-color: #2e7d32; background: rgba(46, 125, 50, 0.2); }
.ev-bloque { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; }
.ev-bloque__rotulo { margin: 0; font-size: 12px; font-weight: 700; color: #94a3b8; }
.ev-bloque__rotulo i { margin-right: 5px; color: #4ade80; }

/* Video de YouTube: se ve un recuadro 16:9 con el botón; el iframe aparece solo al hacer clic */
.ev-video { position: relative; aspect-ratio: 16 / 9; width: 100%; overflow: hidden; border: 1px solid #262626; border-radius: 12px; background: radial-gradient(500px 200px at 15% 0%, #1b5e20 0%, #101010 75%); background-size: cover; background-position: center; }
.ev-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ev-video__boton { position: absolute; inset: 0; width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; border: 0; background: transparent; color: #fff; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.ev-video__play { display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; padding-left: 4px; border-radius: 50%; background: #2e7d32; color: #fff; font-size: 20px; box-sizing: border-box; transition: background 0.2s, transform 0.2s; }
.ev-video__boton:hover .ev-video__play { background: #256528; transform: scale(1.05); }
.ev-video__boton:focus-visible { outline: 3px solid #4ade80; outline-offset: -3px; border-radius: 12px; }
@media (prefers-reduced-motion: reduce) { .ev-video__play { transition: none; } .ev-video__boton:hover .ev-video__play { transform: none; } }
