<?php
if (!function_exists('ugfx_fetch_nowplaying_title')) {
function ugfx_fetch_nowplaying_title(): string {
    $np = ugfx_now_playing();
    $title = trim((string)($np['title'] ?? ''));
    return $title !== '' ? $title : 'Underground FX Live';
}
}
