<?php
if (session_status() !== PHP_SESSION_ACTIVE) session_start();
$isAdminPage = strpos($_SERVER['SCRIPT_NAME'] ?? '', '/admin/') !== false;
?>
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>Almost Heaven Radio</title>
  <link rel="icon" type="image/png" href="/img/logo.png">
  <link rel="apple-touch-icon" href="/img/logo.png">
  <meta property="og:type" content="website">
  <meta property="og:site_name" content="Almost Heaven Radio">
  <meta property="og:image" content="https://almostheavenradio.com/img/logo.png">
  <meta property="og:title" content="Almost Heaven Radio">
  <meta property="og:description" content="Almost Heaven Radio Broadcasting from the heart of the hills.">
  <meta property="og:url" content="https://almostheavenradio.com/">
  <meta name="twitter:card" content="summary_large_image">
  <meta name="twitter:image" content="https://almostheavenradio.com/img/logo.png">
  <meta name="twitter:title" content="Almost Heaven Radio">
  <meta name="twitter:description" content="Almost Heaven Radio Broadcasting from the heart of the hills.">
  <meta name="description" content="Almost Heaven Radio Broadcasting from the heart of the hills.">
  <link rel="stylesheet" href="/css/style.css?v=20260324a">
  <link rel="stylesheet" href="/css/merged-smurf.css?v=20260324a">
  <?php if ($isAdminPage): ?>
  <link rel="stylesheet" href="/admin/assets/admin-v2.css?v=20260324a">
  <?php endif; ?>
</head>
<body class="<?= $isAdminPage ? 'page-admin' : 'page-public' ?>">
  <div class="site-bg" aria-hidden="true"></div>
  <header class="site-header">
    <div class="header-inner shell-wide">
      <a href="/index.php" class="brand-lockup">
        <img src="/assets/logo.png" alt="Almost Heaven Radio" class="header-logo">
        <div class="header-text">
          <h1 class="station-title">ALMOST HEAVEN RADIO</h1>
          <p class="tagline">Broadcasting from the heart of the hills</p>
        </div>
      </a>
    </div>
  </header>
