<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
  <title>Otitis Radio</title>
  <style>
    body {
      font-family: Arial, sans-serif;
      background: #111;
      color: #fff;
      text-align: center;
      padding: 2rem;
    }
    h1 {
      color: #ff4081;
    }
    ul {
      list-style: none;
      padding: 0;
    }
    li {
      margin: 0.5rem 0;
      cursor: pointer;
      color: #90caf9;
    }
    li:hover {
      text-decoration: underline;
    }
    audio {
      margin-top: 2rem;
      width: 100%;
      max-width: 600px;
    }
  </style>
</head>
<body>
  <h1>🎧 Otitis Radio</h1>
  <p>Click a track to play:</p>
  <ul id="playlist">
    <li data-src="file1.mp3">Song 1</li>
    <li data-src="file2.mp3">Song 2</li>
    <li data-src="file3.mp3">Song 3</li>
    <!-- Add more songs as needed -->
  </ul>
  <audio id="audioPlayer" controls></audio>

  <script>
    const playlist = document.getElementById('playlist');
    const audioPlayer = document.getElementById('audioPlayer');

    playlist.addEventListener('click', function(e) {
      if (e.target && e.target.nodeName === 'LI') {
        const src = e.target.getAttribute('data-src');
        audioPlayer.src = src;
        audioPlayer.play();
      }
    });
  </script>
</body>
</html>