<?php
require_once __DIR__ . '/../includes/stream_lib.php';
$title = smurf_get_nowplaying_title();
if ($title === '') {
  $last = __DIR__ . '/../last-track.txt';
  if (is_file($last)) $title = trim((string)file_get_contents($last));
}
if ($title === '') $title = 'Auto DJ is warming up the jukebox…';
echo '<center><p><strong>🎶 What’s Playing Now</strong><br>' . htmlspecialchars($title, ENT_QUOTES, 'UTF-8') . '</p></center>';
