<?php
require_once __DIR__ . '/stream_lib.php';
@smurf_chart_log_play(__DIR__ . '/../data/chart_plays.log', __DIR__ . '/../data/top50_state.json');
?>
<?php
$__htr_settings = [];
$__htr_settings_file = __DIR__ . '/../data/settings.json';
if (is_file($__htr_settings_file)) {
  $__htr_raw = json_decode((string)file_get_contents($__htr_settings_file), true);
  if (is_array($__htr_raw)) $__htr_settings = $__htr_raw;
}
$__show_events_nav = array_key_exists('events_show_in_nav', $__htr_settings) ? !empty($__htr_settings['events_show_in_nav']) : true;
$__show_charts_nav = array_key_exists('top50_show_in_nav', $__htr_settings) ? !empty($__htr_settings['top50_show_in_nav']) : true;
$__show_player_nav = !empty($__htr_settings['player_show_in_nav']);
?>
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title><?= htmlspecialchars($pageTitle ?? "Home Time Radio", ENT_QUOTES, "UTF-8") ?></title>

<!-- Social Preview Image -->
<meta property="og:type" content="website">
<meta property="og:site_name" content="Home Time Radio">
<meta property="og:image" content="https://hometimeradio.com/assets/images/logohtr.png">
<meta property="og:image:type" content="image/png">
<meta property="og:image:width" content="1200">
<meta property="og:image:height" content="630">
<meta property="og:title" content="Home Time Radio">
<meta property="og:description" content="Classic rewind, fresh hits, and global music vibes — tune in now.">
<meta property="og:url" content="https://hometimeradio.com">

<!-- Twitter Card -->
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:image" content="https://hometimeradio.com/assets/images/logohtr.png">
<meta name="twitter:title" content="Home Time Radio">
<meta name="twitter:description" content="Classic rewind, fresh hits, and global music vibes — tune in now.">

<!-- SEO Keywords for Maximum Attraction -->
<meta name="keywords" content="
online radio, internet radio, live radio stream, jukebox vibes, classic rewind, retro hits,
rock, pop, jazz, blues, country, hip hop, R&B, soul, funk, disco, reggae, EDM, techno, trance,
house, dubstep, chillout, ambient, lo-fi, synthwave, vaporwave, indie, alternative, metal,
punk, folk, acoustic, gospel, classical, opera, world music, latin, afrobeat, k-pop, j-pop,
bollywood, dancehall, ska, swing, big band, motown, top 40, golden oldies, underground music,
DJ sets, radio shows, music memories, nostalgic tunes, party mix, chill zone, music discovery,
global hits, streaming music, audio vibes, radio station, music genres,

1900 music, 1901 music, 1902 music, 1903 music, 1904 music, 1905 music, 1906 music, 1907 music, 1908 music, 1909 music,
1910 music, 1911 music, 1912 music, 1913 music, 1914 music, 1915 music, 1916 music, 1917 music, 1918 music, 1919 music,
1920 music, 1921 music, 1922 music, 1923 music, 1924 music, 1925 music, 1926 music, 1927 music, 1928 music, 1929 music,
1930 music, 1931 music, 1932 music, 1933 music, 1934 music, 1935 music, 1936 music, 1937 music, 1938 music, 1939 music,
1940 music, 1941 music, 1942 music, 1943 music, 1944 music, 1945 music, 1946 music, 1947 music, 1948 music, 1949 music,
1950 music, 1951 music, 1952 music, 1953 music, 1954 music, 1955 music, 1956 music, 1957 music, 1958 music, 1959 music,
1960 music, 1961 music, 1962 music, 1963 music, 1964 music, 1965 music, 1966 music, 1967 music, 1968 music, 1969 music,
1970 music, 1971 music, 1972 music, 1973 music, 1974 music, 1975 music, 1976 music, 1977 music, 1978 music, 1979 music,
1980 music, 1981 music, 1982 music, 1983 music, 1984 music, 1985 music, 1986 music, 1987 music, 1988 music, 1989 music,
1990 music, 1991 music, 1992 music, 1993 music, 1994 music, 1995 music, 1996 music, 1997 music, 1998 music, 1999 music,
2000 music, 2001 music, 2002 music, 2003 music, 2004 music, 2005 music, 2006 music, 2007 music, 2008 music, 2009 music,
2010 music, 2011 music, 2012 music, 2013 music, 2014 music, 2015 music, 2016 music, 2017 music, 2018 music, 2019 music,
2020 music, 2021 music, 2022 music, 2023 music, 2024 music, 2025 music


synthpop, dream pop, shoegaze, post-punk, new wave, grunge, emo, screamo, nu metal, glam rock,
progressive rock, psychedelic rock, hard rock, soft rock, yacht rock, indie rock, indie pop,
trap, drill, boom bap, conscious rap, reggaeton, bachata, salsa, merengue, tango, flamenco,
bossa nova, samba, cumbia, norteño, mariachi, bhangra, qawwali, arabic pop, turkish pop,
persian pop, mandopop, cantopop, eurodance, italo disco, jungle, breakbeat, garage, UK bass,
future bass, electro swing, chiptune, 8-bit, game music, soundtrack, cinematic, orchestral,
neoclassical, baroque, romantic era, medieval music, renaissance music, gregorian chant,
spirituals, spoken word, experimental, avant-garde, noise, industrial, post-rock, math rock,
krautrock, psychobilly, rockabilly, bluegrass, honky tonk, americana, zydeco, cajun, celtic,
nordic folk, indigenous music, tribal beats, fusion, crossover, genre-bending, protest music,
anthemic rock, power ballads, love songs, breakup songs, road trip music, workout music,
study music, meditation music, sleep music, lo-fi beats, chillhop, vaportrap, cloud rap,
future funk, electroclash, glitch, IDM, downtempo, deep house, tech house, minimal techno,
hardstyle, gabber, trancecore, psytrance, goa trance, dub, roots reggae, lovers rock,
ska punk, punk rock, hardcore punk, crust punk, post-hardcore, metalcore, death metal,
black metal, doom metal, sludge metal, stoner rock, desert rock, surf rock, garage rock,
bubblegum pop, teen pop, power pop, britpop, jangle pop, sunshine pop, tropical house,
moombahton, baile funk, afrobeats, amapiano, highlife, soukous, zouk, kwaito, makossa,
ethio-jazz, desert blues, tuareg rock, kora music, gamelan, throat singing, shakuhachi,
taiko drums, shamisen, sitar music, tabla rhythms, flamenco guitar, tango nuevo,
accordion music, klezmer, polka, waltz, chanson, schlager, schlagerpop, eurovision hits,
festival anthems, club bangers, rave classics, vinyl classics, cassette era, mixtape culture
">



  <!-- SEO Description -->
  <meta name="description" content="Home Time Radio — your destination for classic rewind, fresh hits, and global music vibes. Tune in for nonstop nostalgia, DJ sets, and genre-spanning playlists.">

  <!-- Bootstrap CSS -->
  <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet">

  <!-- Custom Styles -->
  <link rel="stylesheet" href="/assets/css/theme-htr.css">
  <?php if (!empty($pageClass) && strpos((string)$pageClass, 'page-admin') !== false): ?>
  <link rel="stylesheet" href="/admin/assets/admin-v2.css">
  <?php endif; ?>
</head>
<body class="<?= htmlspecialchars($pageClass ?? "", ENT_QUOTES, "UTF-8") ?>">

<!-- Navbar with visible links and dark background -->
<nav class="navbar navbar-expand-lg navbar-dark">
  <div class="container">
    
    <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav">
      <span class="navbar-toggler-icon"></span>
    </button>
    <div class="collapse navbar-collapse" id="navbarNav">
      <ul class="navbar-nav ms-auto">
        <li class="nav-item"><a class="nav-link" href="/">Home</a></li>
        <li class="nav-item"><a class="nav-link" href="/about.php">About</a></li>
        <li class="nav-item"><a class="nav-link" href="/contact.php">Contact</a></li>
        <li class="nav-item"><a class="nav-link" href="/request.php">Request</a></li>
        <li class="nav-item"><a class="nav-link" href="/friends.php">Friends</a></li>
        <li class="nav-item"><a class="nav-link" href="/schedule.php">Schedule</a></li>
        <li class="nav-item"><a class="nav-link" href="/news.php">News</a></li>
        <?php if ($__show_events_nav): ?><li class="nav-item"><a class="nav-link" href="/events.php">Events</a></li><?php endif; ?>
        <li class="nav-item"><a class="nav-link" href="/djs.php">DJs</a></li>
        <li class="nav-item"><a class="nav-link" href="/fans.php">Fans</a></li>
        <li class="nav-item"><a class="nav-link" href="/team.php">Join the Team</a></li>
        <?php if ($__show_charts_nav): ?><li class="nav-item"><a class="nav-link" href="/top50.php">Charts</a></li><?php endif; ?>
        <li class="nav-item"><a class="nav-link" href="/chat.php">Chat</a></li>
        <?php if ($__show_player_nav): ?><li class="nav-item"><a class="nav-link" href="/popout-player.php" target="_blank" rel="noopener">Player</a></li><?php endif; ?>
        <li class="nav-item"><a class="nav-link" href="/admin.php">Admin</a></li>
      </ul>
    </div>
  </div>
</nav>
