<?php
require_once __DIR__ . '/config/config.php';
require_once __DIR__ . '/includes/db.php';
require_once __DIR__ . '/includes/functions.php';
require_once __DIR__ . '/includes/layout.php';

$songs = fetchSongs('s.is_missing = 0', [], 'GREATEST(s.created_at, s.updated_at) DESC, s.id DESC', getListDefaultLimit());

renderHeader('최근 추가', 'new');
?>
<div class="music-list-page">
    <div class="page-title-section">
        <h1 class="page-main-title">최근 추가된 음악</h1>
        <p class="page-subtitle">최근 DB에 등록되었거나 메타데이터가 갱신된 음악 100곡입니다.</p>
    </div>
    <?php renderSongList($songs); ?>
</div>
<?php renderFooter(); ?>
