navigateBack("/library")} />
Favourites
{#each FAVORITE_SCOPES as tab (tab)}
selectScope(tab)} aria-current={tab === scope ? "page" : undefined} class="px-4 py-2 rounded-lg text-sm font-medium transition-colors {tab === scope ? 'bg-[var(--color-jellyfin)] text-white' : 'text-gray-400 hover:text-white hover:bg-white/10'}" > {FAVORITE_SCOPE_LABELS[tab]}
{/each}
{#if loading}
{#each Array(12) as _}
{/each}
{:else if loadError}
{loadError}
{:else if visibleItems.length === 0}
{emptyStateMessage(scope)}
{#if !$isServerReachable}
Offline — showing favourites available on this device.
{/if}
{:else}
{/if}