
<?php
session_start();
require_once __DIR__ . '/includes/app_lib.php';
$settings = oldies_read_settings();
$listenUrl = trim((string)($settings['listen_url'] ?? 'http://cr3.broadcasturself.com:23990/stream'));
$nowPlaying = 'Oldies And More Radio is live now';
?><!doctype html>
<html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><title>Oldies And More Popout Player</title><link rel="stylesheet" href="/css/site.css"></head>
<body>
<div class="main-wrap" style="margin-left:0;padding:30px;"><div class="content-panel"><div class="neon-card player-card">
  <div class="center-text"><h1 class="section-title">🎧 Oldies And More Popout Player</h1><p class="about-text"><?= oldies_h($settings['popout_intro'] ?? '') ?></p></div>
  <div class="vinyl-divider center-divider"></div>
  <div class="content-box center-text"><h3>Now Playing</h3><p class="about-text"><?= oldies_h($nowPlaying) ?></p><audio controls autoplay preload="none" src="<?= oldies_h($listenUrl) ?>" style="width:min(100%, 640px);"></audio><div class="button-row" style="justify-content:center;margin-top:16px;"><a class="button radio-static" href="<?= oldies_h($listenUrl) ?>" target="_blank" rel="noopener">Open Stream Link</a></div></div>
</div></div></div>
</body></html>
