2026-11-18 14:40:16 +00:00
< div class = "app-layout{% if guest %} guest-player{% endif %}"
2026-05-26 12:55:11 +03:00
x-data
@ keydown . window . space = "if (!['INPUT','TEXTAREA','SELECT'].includes(document.activeElement?.tagName)) { $event.preventDefault(); $store.player.toggle(); }"
@ keydown . window . arrow-left = "if (!['INPUT','TEXTAREA','SELECT'].includes(document.activeElement?.tagName)) { $event.preventDefault(); $store.player.seekRelative(-5); }"
@ keydown . window . arrow-right = "if (!['INPUT','TEXTAREA','SELECT'].includes(document.activeElement?.tagName)) { $event.preventDefault(); $store.player.seekRelative(5); }"
@ keydown . window = "if ((e=$event).ctrlKey && e.key==='k') { e.preventDefault(); document.getElementById('search-input')?.focus(); } else if (e.key==='/' && !['INPUT','TEXTAREA','SELECT'].includes(document.activeElement?.tagName)) { e.preventDefault(); document.getElementById('search-input')?.focus(); }"
>
< div class = "main-content" >
2026-11-18 14:40:16 +00:00
{% if !guest %}
2026-05-26 12:55:11 +03:00
<!-- Left Sidebar -->
< div class = "sidebar-left" >
< div class = "user-widget" x-show = "$store.user.profile" x-cloak >
< div class = "user-widget-main" >
< div class = "user-avatar" x-text = "$store.user.initials()" ></ div >
< div style = "min-width:0" >
< div class = "user-name" x-text = "$store.user.profile?.name || ''" ></ div >
< div class = "user-role" x-text = "$store.user.profile?.role || ''" ></ div >
</ div >
2026-07-27 16:44:16 +01:00
< div class = "user-widget-actions" >
2026-08-11 12:26:16 +01:00
< button class = "user-logout-btn"
x-show = "$store.user.profile?.role === 'admin'"
x-cloak
@ click = "window.location.href = '/admin/'"
title = "{{ t.player_admin_panel }}"
aria-label = "{{ t.player_admin_panel }}" >
< svg viewBox = "0 0 24 24" fill = "none" stroke = "currentColor" stroke-width = "1.8" >
< path d = "M12 3l7 3v5c0 4.6-2.9 8.1-7 10-4.1-1.9-7-5.4-7-10V6l7-3z" />
< path d = "M9.5 12l1.7 1.7 3.6-4" />
</ svg >
</ button >
2026-07-27 16:44:16 +01:00
< button class = "user-logout-btn" @ click = "$store.user.openSettings()" title = "User settings" aria-label = "User settings" >
< svg viewBox = "0 0 24 24" fill = "none" stroke = "currentColor" stroke-width = "1.8" >
< circle cx = "12" cy = "12" r = "3" />
< path d = "M19.4 15a1.7 1.7 0 00.34 1.88l.06.06-2.83 2.83-.06-.06A1.7 1.7 0 0015 19.4a1.7 1.7 0 00-1 .6 1.7 1.7 0 00-.4 1.1V21h-4v-.1A1.7 1.7 0 009 19.4a1.7 1.7 0 00-1.88.34l-.06.06-2.83-2.83.06-.06A1.7 1.7 0 004.6 15a1.7 1.7 0 00-.6-1 1.7 1.7 0 00-1.1-.4H3v-4h.1A1.7 1.7 0 004.6 9a1.7 1.7 0 00-.34-1.88l-.06-.06 2.83-2.83.06.06A1.7 1.7 0 009 4.6a1.7 1.7 0 001-.6 1.7 1.7 0 00.4-1.1V3h4v.1A1.7 1.7 0 0015 4.6a1.7 1.7 0 001.88-.34l.06-.06 2.83 2.83-.06.06A1.7 1.7 0 0019.4 9a1.7 1.7 0 00.6 1 1.7 1.7 0 001.1.4h.1v4h-.1a1.7 1.7 0 00-1.7.6z" />
</ svg >
</ button >
< button class = "user-logout-btn" @ click = "$store.user.logout()" title = "{{ t.player_log_out }}" >
< svg viewBox = "0 0 24 24" fill = "none" stroke = "currentColor" stroke-width = "2" >
< path d = "M9 21H5a2 2 0 01-2-2V5a2 2 0 012-2h4" />
< polyline points = "16 17 21 12 16 7" />
< line x1 = "21" y1 = "12" x2 = "9" y2 = "12" />
</ svg >
</ button >
</ div >
2026-05-26 12:55:11 +03:00
</ div >
< div class = "user-stats" >
< button class = "user-stat" @ click = "$store.history.open()" >
< span class = "user-stat-value" x-text = "$store.user.format($store.user.profile?.stats?.plays)" ></ span >
2026-05-26 14:47:10 +03:00
< span class = "user-stat-label" > {{ t.player_plays_count }}</ span >
2026-05-26 12:55:11 +03:00
</ button >
< div class = "user-stat" >
< span class = "user-stat-value" x-text = "$store.user.format($store.user.profile?.stats?.liked_tracks)" ></ span >
2026-05-26 14:47:10 +03:00
< span class = "user-stat-label" > {{ t.player_likes_count }}</ span >
2026-05-26 12:55:11 +03:00
</ div >
< div class = "user-stat" >
< span class = "user-stat-value" x-text = "$store.user.duration($store.user.profile?.stats?.listened_minutes)" ></ span >
2026-05-26 14:47:10 +03:00
< span class = "user-stat-label" > {{ t.player_listened }}</ span >
2026-05-26 12:55:11 +03:00
</ div >
</ div >
</ div >
< div class = "sidebar-header" >
2026-05-26 14:47:10 +03:00
< h2 > {{ t.player_library }}</ h2 >
2026-05-26 12:55:11 +03:00
</ div >
< div class = "sidebar-nav" >
< div class = "sidebar-nav-item"
:class = "{ active: $store.library.view === 'artists' }"
@ click = "$store.library.goArtists()" >
< svg viewBox = "0 0 24 24" fill = "none" stroke = "currentColor" stroke-width = "2" >< circle cx = "12" cy = "8" r = "4" />< path d = "M20 21a8 8 0 10-16 0" /></ svg >
2026-06-03 03:39:16 +03:00
{{ t.player_global_library }}
2026-05-26 12:55:11 +03:00
</ div >
2026-06-03 02:02:23 +03:00
< div class = "sidebar-nav-item"
:class = "{ active: $store.library.view === 'my_uploads' }"
@ click = "$store.library.goMyUploads()" >
< svg viewBox = "0 0 24 24" fill = "none" stroke = "currentColor" stroke-width = "2" >< path d = "M21 15v4a2 2 0 01-2 2H5a2 2 0 01-2-2v-4" />< path d = "M17 8l-5-5-5 5" />< path d = "M12 3v12" /></ svg >
{{ t.player_my_uploads }}
</ div >
2026-11-22 17:49:23 +02:00
< button class = "sidebar-nav-item podcast-nav" :class = "{active:['podcasts','podcast_detail'].includes($store.library.view)}" @ click = "$store.podcasts.enter()" >< svg viewBox = "0 0 24 24" fill = "none" stroke = "currentColor" stroke-width = "2" >< rect x = "9" y = "2" width = "6" height = "13" rx = "3" />< path d = "M5 10v2a7 7 0 0014 0v-2M12 19v3M8 22h8" /></ svg >< span x-text = "$store.podcasts.text('podcasts')" ></ span ></ button >
2026-05-26 12:55:11 +03:00
</ div >
< div class = "sidebar-section" >
< div class = "sidebar-section-title" >
2026-05-26 14:47:10 +03:00
{{ t.player_following }}
2026-05-26 12:55:11 +03:00
< span x-show = "$store.follows.artists.length > 0"
x-text = "'(' + $store.follows.artists.length + ')'" ></ span >
</ div >
< template x-if = "$store.follows.artists.length === 0" >
2026-05-26 14:47:10 +03:00
< div class = "following-empty" > {{ t.player_no_followed_artists }}</ div >
2026-05-26 12:55:11 +03:00
</ template >
< div class = "following-list" x-show = "$store.follows.artists.length > 0" x-cloak >
< template x-for = "artist in $store.follows.artists" :key = "artist.id" >
< div class = "following-artist"
:class = "{ active: $store.library.currentArtist && $store.library.currentArtist.id === artist.id }"
@ click = "$store.library.openArtist(artist.id)" >
< div class = "following-avatar" >
< template x-if = "artist.image_url" >
2026-08-11 12:26:16 +01:00
< img :src = "artist.image_url" alt = "" aria-hidden = "true" loading = "lazy" >
2026-05-26 12:55:11 +03:00
</ template >
< template x-if = "!artist.image_url" >
< svg viewBox = "0 0 24 24" fill = "none" stroke = "currentColor" stroke-width = "1.6" >< circle cx = "12" cy = "8" r = "4" />< path d = "M20 21a8 8 0 10-16 0" /></ svg >
</ template >
</ div >
< div class = "following-name" x-text = "artist.name" ></ div >
</ div >
</ template >
</ div >
</ div >
< div class = "playlist-list" >
< template x-for = "pl in $store.playlists.regularList()" :key = "pl.id" >
< div class = "playlist-item-row" >
< div class = "playlist-item" @ click = "$store.library.openPlaylist(pl.id)" >
< template x-if = "pl.kind === 'likes'" >
< span style = "display:flex;align-items:center;gap:6px" >
< svg viewBox = "0 0 24 24" fill = "var(--accent)" stroke = "none" width = "14" height = "14" >< path d = "M20.84 4.61a5.5 5.5 0 00-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 00-7.78 7.78L12 21.23l8.84-8.84a5.5 5.5 0 000-7.78z" /></ svg >
2026-05-26 14:47:10 +03:00
< span x-text = "$store.playlists.displayTitle(pl)" ></ span >
2026-05-26 12:55:11 +03:00
</ span >
</ template >
< template x-if = "pl.kind !== 'likes'" >
2026-05-26 14:47:10 +03:00
< span x-text = "$store.playlists.displayTitle(pl)" ></ span >
2026-05-26 12:55:11 +03:00
</ template >
2026-05-26 14:47:10 +03:00
< span class = "playlist-count" x-text = "pl.track_count + ' {{ t.player_tracks_count }}'" ></ span >
2026-05-26 12:55:11 +03:00
</ div >
< template x-if = "pl.is_own && pl.kind === 'user'" >
< div class = "playlist-item-actions" >
2026-11-18 14:40:16 +00:00
< button data-member-only class = "playlist-action-btn" @ click . stop = "$store.playlists.startRename(pl)" title = "{{ t.player_rename }}" >
2026-05-26 12:55:11 +03:00
< svg viewBox = "0 0 24 24" fill = "none" stroke = "currentColor" stroke-width = "2" >< path d = "M11 4H4a2 2 0 00-2 2v14a2 2 0 002 2h14a2 2 0 002-2v-7" />< path d = "M18.5 2.5a2.12 2.12 0 013 3L12 15l-4 1 1-4 9.5-9.5z" /></ svg >
</ button >
2026-11-18 14:40:16 +00:00
< button data-member-only class = "playlist-action-btn" @ click . stop = "$store.playlists.deletePlaylist(pl.id)" title = "{{ t.player_delete }}" >
2026-05-26 12:55:11 +03:00
< svg viewBox = "0 0 24 24" fill = "none" stroke = "currentColor" stroke-width = "2" >< polyline points = "3 6 5 6 21 6" />< path d = "M19 6v14a2 2 0 01-2 2H7a2 2 0 01-2-2V6m3 0V4a2 2 0 012-2h4a2 2 0 012 2v2" /></ svg >
</ button >
</ div >
</ template >
</ div >
</ template >
2026-11-18 14:40:16 +00:00
< button data-member-only class = "sidebar-create-btn" @ click = "$store.playlists.showCreate()" >
2026-05-26 12:55:11 +03:00
< svg viewBox = "0 0 24 24" fill = "none" stroke = "currentColor" stroke-width = "2" >< line x1 = "12" y1 = "5" x2 = "12" y2 = "19" />< line x1 = "5" y1 = "12" x2 = "19" y2 = "12" /></ svg >
2026-05-26 14:47:10 +03:00
{{ t.player_new_playlist }}
2026-05-26 12:55:11 +03:00
</ button >
< template x-if = "$store.playlists.publishedList().length > 0" >
< div class = "playlist-public-section" >
2026-05-26 14:47:10 +03:00
< div class = "sidebar-section-title playlist-subtitle" > {{ t.player_published_playlists }}</ div >
2026-05-26 12:55:11 +03:00
< template x-for = "pl in $store.playlists.publishedList()" :key = "'published-' + pl.id" >
< div class = "playlist-item-row" >
< div class = "playlist-item playlist-item-public" @ click = "$store.library.openPlaylist(pl.id)" >
< div class = "playlist-title-line" >
2026-05-26 14:47:10 +03:00
< span class = "playlist-title-text" x-text = "$store.playlists.displayTitle(pl)" ></ span >
< span class = "playlist-public-badge" > {{ t.player_public }}</ span >
2026-05-26 12:55:11 +03:00
</ div >
< div class = "playlist-meta-line" >
2026-05-26 14:47:10 +03:00
< span class = "playlist-owner" x-show = "pl.owner_name" x-text = "'{{ t.player_by }} ' + pl.owner_name" ></ span >
2026-05-26 12:55:11 +03:00
< span x-show = "pl.owner_name" > · </ span >
2026-05-26 14:47:10 +03:00
< span x-text = "pl.track_count + ' {{ t.player_tracks_count }}'" ></ span >
2026-05-26 12:55:11 +03:00
</ div >
</ div >
</ div >
</ template >
</ div >
</ template >
</ div >
</ div >
2026-11-18 14:40:16 +00:00
{% endif %}
2026-05-26 12:55:11 +03:00
< template x-if = "$store.mobile.libraryOpen" >
< div class = "mobile-library-backdrop" @ click . self = "$store.mobile.closeLibrary()" x-cloak >
< aside class = "mobile-library-drawer" >
< div class = "mobile-drawer-head" >
< div >
2026-05-26 14:47:10 +03:00
< div class = "mobile-drawer-title" > {{ t.player_library }}</ div >
< div class = "playlist-count" > {{ t.player_playlists }} / {{ t.player_following }}</ div >
2026-05-26 12:55:11 +03:00
</ div >
2026-05-26 14:47:10 +03:00
< button class = "mobile-list-action" @ click = "$store.mobile.closeLibrary()" title = "{{ t.player_close }}" >
2026-05-26 12:55:11 +03:00
< svg viewBox = "0 0 24 24" fill = "none" stroke = "currentColor" stroke-width = "2" >
< line x1 = "18" y1 = "6" x2 = "6" y2 = "18" />
< line x1 = "6" y1 = "6" x2 = "18" y2 = "18" />
</ svg >
</ button >
</ div >
< div class = "mobile-drawer-body" >
< div class = "mobile-drawer-section" >
< div class = "sidebar-nav-item"
:class = "{ active: $store.library.view === 'artists' }"
@ click = "$store.library.goArtists(); $store.mobile.closeLibrary()" >
< svg viewBox = "0 0 24 24" fill = "none" stroke = "currentColor" stroke-width = "2" >< circle cx = "12" cy = "8" r = "4" />< path d = "M20 21a8 8 0 10-16 0" /></ svg >
2026-06-03 03:39:16 +03:00
{{ t.player_global_library }}
2026-05-26 12:55:11 +03:00
</ div >
2026-06-03 02:02:23 +03:00
< div class = "sidebar-nav-item"
:class = "{ active: $store.library.view === 'my_uploads' }"
@ click = "$store.library.goMyUploads(); $store.mobile.closeLibrary()" >
< svg viewBox = "0 0 24 24" fill = "none" stroke = "currentColor" stroke-width = "2" >< path d = "M21 15v4a2 2 0 01-2 2H5a2 2 0 01-2-2v-4" />< path d = "M17 8l-5-5-5 5" />< path d = "M12 3v12" /></ svg >
{{ t.player_my_uploads }}
</ div >
2026-11-22 17:49:23 +02:00
< button class = "sidebar-nav-item podcast-nav" :class = "{active:['podcasts','podcast_detail'].includes($store.library.view)}" @ click = "$store.podcasts.enter()" >< svg viewBox = "0 0 24 24" fill = "none" stroke = "currentColor" stroke-width = "2" >< rect x = "9" y = "2" width = "6" height = "13" rx = "3" />< path d = "M5 10v2a7 7 0 0014 0v-2M12 19v3M8 22h8" /></ svg >< span x-text = "$store.podcasts.text('podcasts')" ></ span ></ button >
2026-05-26 12:55:11 +03:00
</ div >
< div class = "mobile-drawer-section" >
< div class = "sidebar-section-title" >
2026-05-26 14:47:10 +03:00
{{ t.player_following }}
2026-05-26 12:55:11 +03:00
< span x-show = "$store.follows.artists.length > 0"
x-text = "'(' + $store.follows.artists.length + ')'" ></ span >
</ div >
< template x-if = "$store.follows.artists.length === 0" >
2026-05-26 14:47:10 +03:00
< div class = "following-empty" > {{ t.player_no_followed_artists }}</ div >
2026-05-26 12:55:11 +03:00
</ template >
< div class = "following-list" x-show = "$store.follows.artists.length > 0" x-cloak >
< template x-for = "artist in $store.follows.artists" :key = "'mobile-follow-' + artist.id" >
< div class = "mobile-list-row" >
< div class = "following-artist"
:class = "{ active: $store.library.currentArtist && $store.library.currentArtist.id === artist.id }"
@ click = "$store.library.openArtist(artist.id); $store.mobile.closeLibrary()" >
< div class = "following-avatar" >
< template x-if = "artist.image_url" >
2026-08-11 12:26:16 +01:00
< img :src = "artist.image_url" alt = "" aria-hidden = "true" loading = "lazy" >
2026-05-26 12:55:11 +03:00
</ template >
< template x-if = "!artist.image_url" >
< svg viewBox = "0 0 24 24" fill = "none" stroke = "currentColor" stroke-width = "1.6" >< circle cx = "12" cy = "8" r = "4" />< path d = "M20 21a8 8 0 10-16 0" /></ svg >
</ template >
</ div >
< div class = "following-name" x-text = "artist.name" ></ div >
</ div >
2026-11-18 14:40:16 +00:00
< button data-member-only class = "mobile-list-action"
2026-05-26 12:55:11 +03:00
@ click . stop = "$store.follows.toggle(artist.id)"
2026-05-26 14:47:10 +03:00
title = "{{ t.player_unfollow_artist }}" >
2026-05-26 12:55:11 +03:00
< svg viewBox = "0 0 24 24" fill = "none" stroke = "currentColor" stroke-width = "2" >
< path d = "M16 21v-2a4 4 0 00-4-4H6a4 4 0 00-4 4v2" />
< circle cx = "9" cy = "7" r = "4" />
< line x1 = "17" y1 = "11" x2 = "23" y2 = "11" />
</ svg >
</ button >
</ div >
</ template >
</ div >
</ div >
< div class = "mobile-drawer-section" >
2026-05-26 14:47:10 +03:00
< div class = "sidebar-section-title" > {{ t.player_playlists }}</ div >
2026-05-26 12:55:11 +03:00
< template x-for = "pl in $store.playlists.regularList()" :key = "'mobile-playlist-' + pl.id" >
< div class = "playlist-item-row" >
< div class = "playlist-item" @ click = "$store.library.openPlaylist(pl.id); $store.mobile.closeLibrary()" >
< template x-if = "pl.kind === 'likes'" >
< span style = "display:flex;align-items:center;gap:6px" >
< svg viewBox = "0 0 24 24" fill = "var(--accent)" stroke = "none" width = "14" height = "14" >< path d = "M20.84 4.61a5.5 5.5 0 00-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 00-7.78 7.78L12 21.23l8.84-8.84a5.5 5.5 0 000-7.78z" /></ svg >
2026-05-26 14:47:10 +03:00
< span x-text = "$store.playlists.displayTitle(pl)" ></ span >
2026-05-26 12:55:11 +03:00
</ span >
</ template >
< template x-if = "pl.kind !== 'likes'" >
2026-05-26 14:47:10 +03:00
< span x-text = "$store.playlists.displayTitle(pl)" ></ span >
2026-05-26 12:55:11 +03:00
</ template >
2026-05-26 14:47:10 +03:00
< span class = "playlist-count" x-text = "pl.track_count + ' {{ t.player_tracks_count }}'" ></ span >
2026-05-26 12:55:11 +03:00
</ div >
< template x-if = "pl.is_own && pl.kind === 'user'" >
< div class = "playlist-item-actions" >
2026-11-18 14:40:16 +00:00
< button data-member-only class = "playlist-action-btn" @ click . stop = "$store.mobile.closeLibrary(); $store.playlists.startRename(pl)" title = "{{ t.player_rename }}" >
2026-05-26 12:55:11 +03:00
< svg viewBox = "0 0 24 24" fill = "none" stroke = "currentColor" stroke-width = "2" >< path d = "M11 4H4a2 2 0 00-2 2v14a2 2 0 002 2h14a2 2 0 002-2v-7" />< path d = "M18.5 2.5a2.12 2.12 0 013 3L12 15l-4 1 1-4 9.5-9.5z" /></ svg >
</ button >
2026-11-18 14:40:16 +00:00
< button data-member-only class = "playlist-action-btn" @ click . stop = "$store.playlists.deletePlaylist(pl.id)" title = "{{ t.player_delete }}" >
2026-05-26 12:55:11 +03:00
< svg viewBox = "0 0 24 24" fill = "none" stroke = "currentColor" stroke-width = "2" >< polyline points = "3 6 5 6 21 6" />< path d = "M19 6v14a2 2 0 01-2 2H7a2 2 0 01-2-2V6m3 0V4a2 2 0 012-2h4a2 2 0 012 2v2" /></ svg >
</ button >
</ div >
</ template >
</ div >
</ template >
2026-11-18 14:40:16 +00:00
< button data-member-only class = "sidebar-create-btn" @ click = "$store.mobile.closeLibrary(); $store.playlists.showCreate()" >
2026-05-26 12:55:11 +03:00
< svg viewBox = "0 0 24 24" fill = "none" stroke = "currentColor" stroke-width = "2" >< line x1 = "12" y1 = "5" x2 = "12" y2 = "19" />< line x1 = "5" y1 = "12" x2 = "19" y2 = "12" /></ svg >
2026-05-26 14:47:10 +03:00
{{ t.player_new_playlist }}
2026-05-26 12:55:11 +03:00
</ button >
< template x-if = "$store.playlists.publishedList().length > 0" >
< div class = "playlist-public-section" >
2026-05-26 14:47:10 +03:00
< div class = "sidebar-section-title playlist-subtitle" > {{ t.player_published_playlists }}</ div >
2026-05-26 12:55:11 +03:00
< template x-for = "pl in $store.playlists.publishedList()" :key = "'mobile-published-' + pl.id" >
< div class = "playlist-item-row" >
< div class = "playlist-item playlist-item-public" @ click = "$store.library.openPlaylist(pl.id); $store.mobile.closeLibrary()" >
< div class = "playlist-title-line" >
2026-05-26 14:47:10 +03:00
< span class = "playlist-title-text" x-text = "$store.playlists.displayTitle(pl)" ></ span >
< span class = "playlist-public-badge" > {{ t.player_public }}</ span >
2026-05-26 12:55:11 +03:00
</ div >
< div class = "playlist-meta-line" >
2026-05-26 14:47:10 +03:00
< span class = "playlist-owner" x-show = "pl.owner_name" x-text = "'{{ t.player_by }} ' + pl.owner_name" ></ span >
2026-05-26 12:55:11 +03:00
< span x-show = "pl.owner_name" > · </ span >
2026-05-26 14:47:10 +03:00
< span x-text = "pl.track_count + ' {{ t.player_tracks_count }}'" ></ span >
2026-05-26 12:55:11 +03:00
</ div >
</ div >
</ div >
</ template >
</ div >
</ template >
</ div >
</ div >
</ aside >
</ div >
</ template >
<!-- Center Content -->
< div class = "center-content" id = "center-scroll" >
<!-- Search / account bar -->
< div class = "content-topbar" @ click . outside = "$store.user.menuOpen = false" >
2026-11-18 14:40:16 +00:00
< button data-member-only class = "mobile-library-btn"
2026-05-26 12:55:11 +03:00
@ click = "$store.user.menuOpen = false; $store.mobile.toggleLibrary()"
2026-05-26 14:47:10 +03:00
title = "{{ t.player_library }}" >
2026-05-26 12:55:11 +03:00
< svg viewBox = "0 0 24 24" fill = "none" stroke = "currentColor" stroke-width = "2" >
< path d = "M4 19.5A2.5 2.5 0 016.5 17H20" />
< path d = "M4 4.5A2.5 2.5 0 016.5 2H20v20H6.5A2.5 2.5 0 014 19.5z" />
</ svg >
</ button >
2026-05-27 18:52:17 +03:00
< div class = "connection-alert"
x-show = "$store.connection.disconnected"
x-cloak
:title = "$store.connection.message()"
role = "status"
aria-live = "polite" >
< svg viewBox = "0 0 24 24" fill = "none" stroke = "currentColor" stroke-width = "2" >
< path d = "M2 8.82a15 15 0 0120 0" />
< path d = "M5 12.86a10 10 0 0114 0" />
< path d = "M8.5 16.43a5 5 0 017 0" />
< line x1 = "2" y1 = "2" x2 = "22" y2 = "22" />
</ svg >
< span class = "connection-alert-text" > {{ t.player_connection_lost }}</ span >
</ div >
2026-11-18 14:40:16 +00:00
{% if guest %}
< div class = "guest-account" >
< strong > {{ t.guest_label }}</ strong >
< div x-show = "$store.user.accessStatus === 'pending'" x-cloak >< span > {{ t.approval_heading }}</ span > · < a href = "/logout" > {{ t.player_log_out }}</ a ></ div >
< a x-show = "$store.user.accessStatus === 'anonymous'" href = "/login?next=/share/{{ share_token }}" > {{ t.guest_login }}</ a >
</ div >
{% endif %}
2026-11-23 02:50:00 +02:00
< div class = "search-bar"
2026-11-23 03:10:16 +02:00
x-data = "{ expanded:false, left:0, right:0, observer:null, init() { this.observer=new ResizeObserver(()=>this.measure()); this.observer.observe($el); }, destroy() { this.observer?.disconnect(); }, measure() { const bar=$el.getBoundingClientRect(); const panel=$el.closest('.content-topbar').getBoundingClientRect(); this.left=Math.max(0,bar.left-panel.left); this.right=Math.max(0,panel.right-bar.right); } }"
2026-11-23 03:39:34 +02:00
:class = "{ 'search-expanded':expanded, 'lyrics-search-mode':$store.library.searchMode==='lyrics' }"
2026-11-23 02:50:00 +02:00
:style = "{ '--search-expand-left':left+'px', '--search-expand-right':right+'px' }"
@ focusin = "measure(); expanded=true; $store.user.menuOpen=false"
@ focusout = "if (!$el.contains($event.relatedTarget)) expanded=false"
@ resize . window = "measure()" >
< div class = "search-field" >
2026-11-23 03:39:34 +02:00
< button class = "search-icon search-mode-toggle" type = "button" @ pointerdown . prevent @ click = "$store.library.toggleSearchMode(); $refs.searchInput.focus()" :aria-pressed = "$store.library.searchMode==='lyrics'" :aria-label = "$store.lyricsSearch.text($store.library.searchMode==='lyrics'?'normal':'lyrics')" :title = "$store.lyricsSearch.text($store.library.searchMode==='lyrics'?'normal':'lyrics')" >
< svg x-show = "$store.library.searchMode!=='lyrics'" viewBox = "0 0 24 24" fill = "none" stroke = "currentColor" stroke-width = "2" >< circle cx = "11" cy = "11" r = "8" />< path d = "m21 21-4.35-4.35" /></ svg >
< svg x-show = "$store.library.searchMode==='lyrics'" viewBox = "0 0 24 24" fill = "none" stroke = "currentColor" stroke-width = "1.8" >< path d = "M5 5h11M5 10h8M5 15h5M18 13v7M18 13l3-1" />< circle cx = "15.5" cy = "20" r = "2.5" /></ svg >
</ button >
< input id = "search-input" x-ref = "searchInput" type = "text" :placeholder = "$store.library.searchMode==='lyrics'?$store.lyricsSearch.text('placeholder'):'{{ t.player_search_placeholder }}'"
:maxlength = "$store.library.searchMode==='lyrics'?500:null"
2026-05-26 12:55:11 +03:00
x-model = "$store.library.searchQuery"
2026-11-23 03:39:34 +02:00
@ input = "$store.library.queueSearch()"
@ keydown . enter . prevent = "$store.library.search($store.library.searchQuery)"
2026-05-26 12:55:11 +03:00
@ keydown . escape = "$store.library.clearSearch(); $el.blur()" >
< template x-if = "$store.library.searchQuery" >
2026-11-23 02:50:00 +02:00
< button class = "search-clear" @ pointerdown . prevent @ click = "$store.library.clearSearch(); $refs.searchInput.focus()" >
2026-05-26 12:55:11 +03:00
< svg viewBox = "0 0 24 24" fill = "none" stroke = "currentColor" stroke-width = "2" >< line x1 = "18" y1 = "6" x2 = "6" y2 = "18" />< line x1 = "6" y1 = "6" x2 = "18" y2 = "18" /></ svg >
</ button >
</ template >
< template x-if = "!$store.library.searchQuery" >
< span class = "search-shortcut" > Ctrl+K</ span >
</ template >
2026-11-23 02:50:00 +02:00
</ div >
2026-05-26 12:55:11 +03:00
</ div >
2026-08-14 10:54:56 +01:00
{% if downloads_enabled %}
2026-05-26 12:55:11 +03:00
< button class = "torrent-import-btn"
@ click = "$store.torrents.open()"
2026-05-26 14:47:10 +03:00
title = "{{ t.player_import_torrent }}" >
2026-05-26 12:55:11 +03:00
< svg viewBox = "0 0 24 24" fill = "none" stroke = "currentColor" stroke-width = "2" >
< path d = "M21 15v4a2 2 0 01-2 2H5a2 2 0 01-2-2v-4" />
< polyline points = "7 10 12 15 17 10" />
< line x1 = "12" y1 = "15" x2 = "12" y2 = "3" />
</ svg >
</ button >
2026-08-14 10:54:56 +01:00
{% endif %}
2026-05-26 12:55:11 +03:00
< button class = "mobile-account-chip"
x-show = "$store.user.profile"
x-cloak
@ click = "$store.mobile.closeLibrary(); $store.user.menuOpen = !$store.user.menuOpen"
:title = "$store.user.profile?.name || 'Account'" >
< span class = "user-avatar" x-text = "$store.user.initials()" ></ span >
< span class = "mobile-account-name" x-text = "$store.user.profile?.name || ''" ></ span >
</ button >
< div class = "mobile-account-popover"
x-show = "$store.user.menuOpen && $store.user.profile"
x-cloak >
< div class = "user-widget-main" >
< span class = "user-avatar" x-text = "$store.user.initials()" ></ span >
< div style = "min-width:0" >
< div class = "user-name" x-text = "$store.user.profile?.name || ''" ></ div >
< div class = "user-role" x-text = "$store.user.profile?.role || ''" ></ div >
</ div >
</ div >
< div class = "user-stats" >
< button class = "user-stat" @ click = "$store.history.open(); $store.user.menuOpen = false" >
< span class = "user-stat-value" x-text = "$store.user.format($store.user.profile?.stats?.plays)" ></ span >
2026-05-26 14:47:10 +03:00
< span class = "user-stat-label" > {{ t.player_plays_count }}</ span >
2026-05-26 12:55:11 +03:00
</ button >
< div class = "user-stat" >
< span class = "user-stat-value" x-text = "$store.user.format($store.user.profile?.stats?.liked_tracks)" ></ span >
2026-05-26 14:47:10 +03:00
< span class = "user-stat-label" > {{ t.player_likes_count }}</ span >
2026-05-26 12:55:11 +03:00
</ div >
< div class = "user-stat" >
< span class = "user-stat-value" x-text = "$store.user.duration($store.user.profile?.stats?.listened_minutes)" ></ span >
2026-05-26 14:47:10 +03:00
< span class = "user-stat-label" > {{ t.player_listened }}</ span >
2026-05-26 12:55:11 +03:00
</ div >
</ div >
2026-07-27 16:44:16 +01:00
< div class = "mobile-account-actions" >
2026-08-11 12:26:16 +01:00
< button class = "user-logout-btn"
x-show = "$store.user.profile?.role === 'admin'"
x-cloak
@ click = "window.location.href = '/admin/'"
title = "{{ t.player_admin_panel }}"
aria-label = "{{ t.player_admin_panel }}" >
< svg viewBox = "0 0 24 24" fill = "none" stroke = "currentColor" stroke-width = "1.8" >
< path d = "M12 3l7 3v5c0 4.6-2.9 8.1-7 10-4.1-1.9-7-5.4-7-10V6l7-3z" />
< path d = "M9.5 12l1.7 1.7 3.6-4" />
</ svg >
</ button >
2026-07-27 16:44:16 +01:00
< button class = "user-logout-btn"
@ click = "$store.user.menuOpen = false; $store.user.openSettings()"
title = "User settings"
aria-label = "User settings" >
< svg viewBox = "0 0 24 24" fill = "none" stroke = "currentColor" stroke-width = "1.8" >
< circle cx = "12" cy = "12" r = "3" />
< path d = "M19.4 15a1.7 1.7 0 00.34 1.88l.06.06-2.83 2.83-.06-.06A1.7 1.7 0 0015 19.4a1.7 1.7 0 00-1 .6 1.7 1.7 0 00-.4 1.1V21h-4v-.1A1.7 1.7 0 009 19.4a1.7 1.7 0 00-1.88.34l-.06.06-2.83-2.83.06-.06A1.7 1.7 0 004.6 15a1.7 1.7 0 00-.6-1 1.7 1.7 0 00-1.1-.4H3v-4h.1A1.7 1.7 0 004.6 9a1.7 1.7 0 00-.34-1.88l-.06-.06 2.83-2.83.06.06A1.7 1.7 0 009 4.6a1.7 1.7 0 001-.6 1.7 1.7 0 00.4-1.1V3h4v.1A1.7 1.7 0 0015 4.6a1.7 1.7 0 001.88-.34l.06-.06 2.83 2.83-.06.06A1.7 1.7 0 0019.4 9a1.7 1.7 0 00.6 1 1.7 1.7 0 001.1.4h.1v4h-.1a1.7 1.7 0 00-1.7.6z" />
</ svg >
</ button >
< button class = "modal-btn modal-btn-primary mobile-account-logout"
@ click = "$store.user.logout()" >
{{ t.player_log_out }}
</ button >
</ div >
2026-05-26 12:55:11 +03:00
</ div >
</ div >
<!-- Search Results -->
2026-11-22 16:05:37 +02:00
{% include "player/podcasts.html" %}
2026-05-26 12:55:11 +03:00
< template x-if = "$store.library.view === 'search'" >
< div >
2026-08-11 12:26:16 +01:00
< div class = "search-similarity-heading"
x-show = "$store.library.similaritySearchLabel"
x-cloak >
< h2 class = "search-similarity-title" >
< span > {{ t.player_search_similar_to }}</ span >
< strong x-text = "$store.library.similaritySearchLabel" ></ strong >
</ h2 >
< div class = "search-similarity-progress"
:class = "{ loading: $store.library.similaritySearchStats.loading }" >
< template x-if = "$store.library.similaritySearchStats.loading" >
< span class = "search-progress-live" >< i ></ i > Searching peers…</ span >
</ template >
< span x-text = "`${$store.library.similaritySearchStats.tracks} tracks · ${$store.library.similaritySearchStats.artists} artists`" ></ span >
< template x-if = "!$store.library.similaritySearchStats.loading" >
< span x-text = "`${$store.library.similaritySearchStats.peers} peers · ${$store.library.formatSearchDuration($store.library.similaritySearchStats.elapsed_ms)}`" ></ span >
</ template >
</ div >
</ div >
2026-11-23 03:39:34 +02:00
< p class = "lyrics-search-note" x-show = "$store.library.searchMode==='lyrics'" x-text = "$store.lyricsSearch.text('local')" ></ p >
< p class = "lyrics-search-note" role = "status" x-show = "$store.library.searchMode==='lyrics' && ($store.library.searchResults?.semantic_error || ($store.library.searchResults?.lyrics_status?.ready_chunks ?? 1)===0)" x-text = "$store.lyricsSearch.text('lexical')" ></ p >
2026-05-26 12:55:11 +03:00
< template x-if = "$store.library.searchLoading" >
< div class = "loading-spinner" >< div class = "spinner" ></ div ></ div >
</ template >
2026-08-10 01:44:40 +01:00
< template x-if = "!$store.library.searchLoading && $store.library.similaritySearchError" >
< div class = "empty-state" >
< p x-text = "$store.library.similaritySearchError" ></ p >
</ div >
</ template >
2026-05-26 12:55:11 +03:00
< template x-if = "!$store.library.searchLoading && $store.library.searchResults" >
2026-08-11 12:26:16 +01:00
< div :class = "{ 'similarity-unified-results': $store.library.similaritySearchLabel }" >
2026-11-22 17:11:37 +02:00
< template x-if = "!$store.library.similaritySearchError && $store.library.searchResults.artists.length === 0 && $store.library.searchResults.releases.length === 0 && $store.library.searchResults.tracks.length === 0 && !($store.library.searchResults.podcasts || []).length" >
2026-05-26 12:55:11 +03:00
< div class = "empty-state" >
< svg viewBox = "0 0 24 24" fill = "none" stroke = "currentColor" stroke-width = "1.5" >< circle cx = "11" cy = "11" r = "8" />< line x1 = "21" y1 = "21" x2 = "16.65" y2 = "16.65" /></ svg >
2026-05-26 14:47:10 +03:00
< p > {{ t.player_no_results }}</ p >
2026-05-26 12:55:11 +03:00
</ div >
</ template >
<!-- Artists section -->
< template x-if = "$store.library.searchResults.artists.length > 0" >
< div class = "search-section" >
2026-05-26 14:47:10 +03:00
< h2 class = "search-section-title" > {{ t.player_artists }}</ h2 >
2026-05-26 12:55:11 +03:00
< div class = "search-artists-row" >
< template x-for = "artist in $store.library.searchResults.artists" :key = "artist.id" >
< div class = "search-artist-card" @ click = "$store.library.openArtist(artist.id)" >
< div class = "search-artist-img" >
2026-08-11 12:26:16 +01:00
< svg viewBox = "0 0 24 24" fill = "none" stroke = "currentColor" stroke-width = "1.5" >< circle cx = "12" cy = "8" r = "4" />< path d = "M20 21a8 8 0 10-16 0" /></ svg >
2026-05-26 12:55:11 +03:00
< template x-if = "artist.image_url" >
2026-08-11 12:26:16 +01:00
< img class = "artwork-image" :src = "artist.image_url" alt = "" aria-hidden = "true" loading = "lazy" @ load = "$event.currentTarget.classList.add('artwork-loaded')" @ error = "$event.currentTarget.classList.remove('artwork-loaded')" >
2026-05-26 12:55:11 +03:00
</ template >
</ div >
< div class = "search-artist-name" x-text = "artist.name" ></ div >
</ div >
</ template >
</ div >
</ div >
</ template >
<!-- Releases section -->
< template x-if = "$store.library.searchResults.releases.length > 0" >
< div class = "search-section" >
2026-05-26 14:47:10 +03:00
< h2 class = "search-section-title" > {{ t.player_releases }}</ h2 >
2026-05-26 12:55:11 +03:00
< div class = "search-releases-row" >
< template x-for = "release in $store.library.searchResults.releases" :key = "release.id" >
< div class = "search-release-card" @ click = "$store.library.openRelease(release.id)" style = "position:relative" >
< div class = "search-release-cover" style = "position:relative" >
2026-08-11 12:26:16 +01:00
< svg viewBox = "0 0 24 24" fill = "none" stroke = "currentColor" stroke-width = "1.5" >< rect x = "3" y = "3" width = "18" height = "18" rx = "2" />< circle cx = "12" cy = "12" r = "4" /></ svg >
2026-05-26 12:55:11 +03:00
< template x-if = "release.cover_url" >
2026-08-11 12:26:16 +01:00
< img class = "artwork-image" :src = "release.cover_url" alt = "" aria-hidden = "true" loading = "lazy" @ load = "$event.currentTarget.classList.add('artwork-loaded')" @ error = "$event.currentTarget.classList.remove('artwork-loaded')" >
2026-05-26 12:55:11 +03:00
</ template >
2026-05-27 15:56:57 +03:00
< button class = "card-info-btn" @ click . stop = "$store.library.openReleaseInfo(release)" :title = "$store.library.releaseInfo(release)" aria-label = "{{ t.player_release_info }}" >
2026-05-26 14:49:56 +03:00
< svg viewBox = "0 0 24 24" fill = "none" stroke = "currentColor" stroke-width = "2" stroke-linecap = "round" stroke-linejoin = "round" >< circle cx = "12" cy = "12" r = "10" />< line x1 = "12" y1 = "16" x2 = "12" y2 = "12" />< line x1 = "12" y1 = "8" x2 = "12.01" y2 = "8" /></ svg >
2026-05-26 12:55:11 +03:00
</ button >
</ div >
< div class = "card-title" x-text = "release.title" ></ div >
< div class = "card-subtitle" >
< span x-text = "release.year || ''" ></ span >
< span x-text = "release.release_type" ></ span >
</ div >
</ div >
</ template >
</ div >
</ div >
</ template >
<!-- Tracks section -->
< template x-if = "$store.library.searchResults.tracks.length > 0" >
< div class = "search-section" >
2026-05-26 14:47:10 +03:00
< h2 class = "search-section-title" > {{ t.player_tracks }}</ h2 >
2026-05-26 12:55:11 +03:00
< div class = "track-list-header" >
< span > #</ span >
2026-05-26 14:47:10 +03:00
< span > {{ t.player_title }}</ span >
2026-05-26 12:55:11 +03:00
< span ></ span >
< span ></ span >
2026-05-26 14:47:10 +03:00
< span style = "text-align:right" > {{ t.player_duration }}</ span >
2026-05-26 12:55:11 +03:00
</ div >
2026-11-23 03:07:51 +02:00
< template x-for = "(track, idx) in $store.searchGroups.rows($store.library.searchResults.tracks,'local',!$store.library.similaritySearchLabel)" :key = "track.id" >
< div class = "search-result-entry" data-search-source = "local" :id = "track._searchRowId" :class = "{ 'search-result-hidden':track._searchGroupHidden }" :aria-hidden = "track._searchGroupHidden" :inert = "track._searchGroupHidden ? true : null" :style = "$store.library.similaritySearchLabel ? `order:${$store.library.similarityTrackOrder(track)}` : ''" >< div class = "search-result-clip" >
< div class = "track-row"
:class = "{ 'search-track-variant':track._searchGroupChild, playing: $store.player.currentTrack && $store.player.currentTrack.id === track.id }"
tabindex = "0" @ click = "if ($event.detail < 2) { $store.library.similaritySearchLabel ? $store.library.playSimilarityResult(track) : $store.library.playSearchTrack(track._searchSourceIndex) }" @ dblclick . stop @ keydown . enter . self . prevent = "$store.library.similaritySearchLabel ? $store.library.playSimilarityResult(track) : $store.library.playSearchTrack(track._searchSourceIndex)" >
< span class = "track-num" x-text = "track._searchGroupChild ? '↳' : track._searchGroupNumber" ></ span >
2026-05-26 12:55:11 +03:00
< div class = "track-info" >
2026-11-23 03:07:51 +02:00
< div class = "track-title search-track-title" >
< button class = "search-version-toggle" type = "button" x-show = "!track._searchGroupChild && track._searchGroupCount>1" @ click . stop = "$store.searchGroups.toggle(track)" @ dblclick . stop :aria-expanded = "track._searchGroupExpanded" :aria-controls = "track._searchGroupControls" :title = "$store.searchGroups.label(track)" :aria-label = "$store.searchGroups.label(track)" >
< svg viewBox = "0 0 24 24" fill = "none" stroke = "currentColor" stroke-width = "1.8" aria-hidden = "true" >< path d = "M6 3v12M18 9a9 9 0 0 1-9 9" />< circle cx = "6" cy = "18" r = "3" />< circle cx = "18" cy = "6" r = "3" /></ svg >< span x-text = "track._searchGroupCount" ></ span >
</ button >
< span class = "search-track-name" x-text = "track.title" ></ span >
</ div >
2026-05-26 12:55:11 +03:00
< div class = "track-artists-inline" >
< template x-for = "(artist, artistIdx) in $store.library.trackArtistLinks(track)" :key = "artist.label + '-' + artist.id + '-' + artistIdx" >
< span >
< template x-if = "artistIdx > 0" >< span > , </ span ></ template >
< a class = "artist-link" @ click . stop = "$store.library.openArtist(artist.id)" x-text = "artist.label" ></ a >
</ span >
</ template >
</ div >
2026-11-23 03:07:51 +02:00
< div class = "search-variant-detail" x-show = "track._searchGroupChild" x-text = "$store.searchGroups.description(track)" ></ div >
2026-11-23 03:39:34 +02:00
2026-11-23 03:07:51 +02:00
</ div >
< span class = "track-album" x-text = "$store.searchGroups.description(track)" ></ span >
2026-05-26 12:55:11 +03:00
< div class = "track-actions" >
2026-11-23 02:45:48 +02:00
< span class = "track-popularity-slot" >
< button class = "track-action-btn lyrics-presence" type = "button" x-show = "track.has_lyrics" @ click . stop = "$store.lyrics.open(track,false)" :title = "$store.lyrics.text('lyrics')" :aria-label = "$store.lyrics.text('lyrics')" >< svg viewBox = "0 0 24 24" fill = "none" stroke = "currentColor" stroke-width = "1.8" aria-hidden = "true" >< rect x = "4" y = "3" width = "16" height = "18" rx = "3" />< path d = "M8 8h8M8 12h6M8 16h4" /></ svg ></ button >
2026-11-23 01:45:22 +02:00
< button class = "track-action-btn info-btn popularity-info-btn"
2026-05-27 12:55:31 +03:00
:class = "{ 'has-popularity': $store.library.hasPopularity(track), 'no-popularity': !$store.library.hasPopularity(track) }"
:style = "$store.library.popularityStyle(track)"
@ click . stop = "$store.library.openTrackInfo(track)"
:title = "$store.library.trackInfoTitle(track)"
aria-label = "{{ t.player_track_info }}" >
< span x-show = "$store.library.hasPopularity(track)" x-text = "$store.library.popularityLabel(track)" ></ span >
< span x-show = "!$store.library.hasPopularity(track)" class = "info-letter" > i</ span >
2026-05-26 12:55:11 +03:00
</ button >
2026-11-23 02:45:48 +02:00
</ span >
2026-11-18 14:40:16 +00:00
< button data-member-only class = "like-btn" :class = "{ liked: $store.likes.has(track.id) }" @ click . stop = "$store.likes.toggle(track.id)" title = "{{ t.player_like }}" >
2026-05-26 12:55:11 +03:00
< svg viewBox = "0 0 24 24" :fill = "$store.likes.has(track.id) ? 'currentColor' : 'none'" stroke = "currentColor" stroke-width = "2" >< path d = "M20.84 4.61a5.5 5.5 0 00-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 00-7.78 7.78L12 21.23l8.84-8.84a5.5 5.5 0 000-7.78z" /></ svg >
</ button >
2026-05-29 01:13:04 +03:00
< button class = "track-action-btn queue-insert-btn queue-next-btn" @ click . stop = "$store.queue.addNextInQueue([track])" title = "{{ t.player_play_next }}" >
< svg viewBox = "0 0 24 24" fill = "none" stroke = "currentColor" stroke-width = "2" >< path d = "M5 6h10M5 12h7M5 18h10" />< path d = "M17 9l4 3-4 3" fill = "currentColor" stroke = "none" /></ svg >
2026-05-26 12:55:11 +03:00
</ button >
2026-05-29 01:13:04 +03:00
< button class = "track-action-btn queue-insert-btn queue-end-btn" @ click . stop = "$store.queue.addToEnd([track])" title = "{{ t.player_add_to_queue }}" >
< svg viewBox = "0 0 24 24" fill = "none" stroke = "currentColor" stroke-width = "2" >< path d = "M5 6h14M5 12h14M5 18h7" />< path d = "M17 15l4 3-4 3" fill = "currentColor" stroke = "none" /></ svg >
2026-05-26 12:55:11 +03:00
</ button >
2026-11-18 14:40:16 +00:00
< button data-member-only class = "track-action-btn track-share-btn" @ click . stop = "$store.sharing.copyTrack(track, $event.currentTarget)" title = "{{ t.player_share_track }}" aria-label = "{{ t.player_share_track }}" >
2026-06-03 17:35:55 +03:00
< svg viewBox = "0 0 24 24" fill = "none" stroke = "currentColor" stroke-width = "2" >< circle cx = "18" cy = "5" r = "3" />< circle cx = "6" cy = "12" r = "3" />< circle cx = "18" cy = "19" r = "3" />< path d = "M8.6 10.6l6.8-3.9M8.6 13.4l6.8 3.9" /></ svg >
</ button >
2026-11-18 14:40:16 +00:00
< button data-member-only class = "track-action-btn playlist-add-btn" @ click . stop = "$store.playlists.showPicker([track.id])" title = "{{ t.player_add_to_playlist }}" >
2026-05-26 12:55:11 +03:00
< svg viewBox = "0 0 24 24" fill = "none" stroke = "currentColor" stroke-width = "2" >< path d = "M8 6h13M8 12h13M8 18h13M3 6h.01M3 12h.01M3 18h.01" /></ svg >
</ button >
</ div >
< span class = "track-duration" x-text = "formatTime(track.duration_seconds)" ></ span >
</ div >
2026-11-23 03:07:51 +02:00
</ div ></ div >
</ template >
2026-05-26 12:55:11 +03:00
</ div >
</ template >
2026-11-22 17:49:23 +02:00
< template x-if = "($store.library.searchResults.podcasts || []).length" >
< section class = "search-section" >
< h2 class = "search-section-title" x-text = "$store.podcasts.text('podcasts')" ></ h2 >
< div class = "search-releases-row" >
< template x-for = "pod in $store.library.searchResults.podcasts" :key = "pod.id" >
{% include "player/podcast_search_card.html" %}
</ template >
</ div >
</ section >
</ template >
2026-11-23 03:39:34 +02:00
< div class = "search-section federation-search-section" x-show = "$store.library.searchMode!=='lyrics'"
2026-08-11 12:26:16 +01:00
:class = "{ 'similarity-federation-merged': $store.library.similaritySearchLabel }" >
< h2 class = "search-section-title" x-show = "!$store.library.similaritySearchLabel" >
2026-07-27 16:44:16 +01:00
Federation
< span class = "federation-live-badge"
x-show = "$store.library.federationSearch.loading"
x-cloak > LIVE</ span >
</ h2 >
< template x-if = "$store.library.federationSearch.error" >
< div class = "federation-search-status error"
x-text = "$store.library.federationSearch.error" ></ div >
</ template >
2026-08-11 12:26:16 +01:00
< template x-if = "!$store.library.similaritySearchLabel && $store.library.federationSearch.loading && $store.library.federationSearch.tracks.length === 0" >
2026-07-27 16:44:16 +01:00
< div class = "federation-search-status" > Searching peers…</ div >
</ template >
< div class = "search-artists-row"
2026-08-11 12:26:16 +01:00
x-show = "!$store.library.similaritySearchLabel && $store.library.federationSearch.artists.length > 0"
2026-07-27 16:44:16 +01:00
x-cloak >
< template x-for = "artist in $store.library.federationSearch.artists"
:key = "artist.key.normalized_name" >
< div class = "search-artist-card federation-entity-card"
@ click = "$store.library.openFederatedArtist(artist)" >
< div class = "search-artist-img" >
< img x-show = "$store.library.federationArtistImage(artist)"
2026-08-11 12:26:16 +01:00
class = "artwork-image"
2026-07-27 16:44:16 +01:00
:src = "$store.library.federationArtistImage(artist)"
2026-08-11 12:26:16 +01:00
alt = "" aria-hidden = "true"
2026-07-27 16:44:16 +01:00
loading = "lazy"
2026-08-11 12:26:16 +01:00
@ load = "$event.currentTarget.classList.add('artwork-loaded')"
@ error = "$event.currentTarget.classList.remove('artwork-loaded'); $store.library.federationArtistImageFailed(artist)" >
2026-07-27 16:44:16 +01:00
< svg viewBox = "0 0 24 24" fill = "none" stroke = "currentColor" stroke-width = "1.5" >
< circle cx = "12" cy = "8" r = "4" />< path d = "M20 21a8 8 0 10-16 0" />
</ svg >
</ div >
< div class = "search-artist-name" x-text = "artist.name" ></ div >
< div class = "federation-source-count"
x-text = "`${artist.peers.length} peer${artist.peers.length === 1 ? '' : 's'}`" ></ div >
</ div >
</ template >
</ div >
< div class = "search-releases-row"
2026-08-11 12:26:16 +01:00
x-show = "!$store.library.similaritySearchLabel && $store.library.federationSearch.releases.length > 0"
2026-07-27 16:44:16 +01:00
x-cloak >
< template x-for = "release in $store.library.federationSearch.releases"
:key = "JSON.stringify(release.key)" >
2026-08-11 12:26:16 +01:00
< div class = "search-release-card federation-entity-card"
@ click = "$store.library.openFederatedRelease($store.library.hydrateFederationSearchRelease(release))" >
2026-07-27 16:44:16 +01:00
< div class = "search-release-cover" >
2026-08-11 12:26:16 +01:00
< img x-show = "$store.library.federationReleaseCover(release)"
class = "artwork-image"
:src = "$store.library.federationReleaseCover(release)"
alt = "" aria-hidden = "true"
loading = "lazy"
@ load = "$event.currentTarget.classList.add('artwork-loaded')"
@ error = "$event.currentTarget.classList.remove('artwork-loaded'); $store.library.federationReleaseCoverFailed(release, $event.currentTarget.getAttribute('src'))" >
< svg viewBox = "0 0 24 24" fill = "none" stroke = "currentColor" stroke-width = "1.5" >
2026-07-27 16:44:16 +01:00
< rect x = "3" y = "3" width = "18" height = "18" rx = "2" />< circle cx = "12" cy = "12" r = "4" />
</ svg >
</ div >
< div class = "card-title" x-text = "release.title" ></ div >
< div class = "card-subtitle"
x-text = "[release.year, ...(release.artists || [])].filter(Boolean).join(' · ')" ></ div >
</ div >
</ template >
</ div >
2026-11-23 03:07:51 +02:00
< template x-for = "(track, idx) in $store.searchGroups.rows($store.library.federationSearch.tracks,'federation',!$store.library.similaritySearchLabel)"
2026-07-27 16:44:16 +01:00
:key = "track.key.content_id" >
2026-11-23 03:07:51 +02:00
< div class = "search-result-entry" data-search-source = "federation" :id = "track._searchRowId" :class = "{ 'search-result-hidden':track._searchGroupHidden }" :aria-hidden = "track._searchGroupHidden" :inert = "track._searchGroupHidden ? true : null" :style = "$store.library.similaritySearchLabel ? `order:${$store.library.similarityTrackOrder(track)}` : ''" >< div class = "search-result-clip" >
< div class = "track-row federation-track-row" :class = "{ 'search-track-variant':track._searchGroupChild }"
tabindex = "0" @ click = "if ($event.detail < 2) { $store.library.similaritySearchLabel ? $store.library.playSimilarityResult($store.library.federationQueueTrack(track)) : $store.library.playFederatedTrack(track) }" @ dblclick . stop @ keydown . enter . self . prevent = "$store.library.similaritySearchLabel ? $store.library.playSimilarityResult($store.library.federationQueueTrack(track)) : $store.library.playFederatedTrack(track)" >
2026-07-27 16:44:16 +01:00
< span class = "track-num federation-track-status" >
2026-07-27 17:33:48 +01:00
< template x-if = "!$store.library.federationDownload(track.key.content_id) && !$store.library.federationFailure(track.key.content_id) && !$store.library.isTrackLocal(track)" >
2026-07-27 16:44:16 +01:00
< svg viewBox = "0 0 24 24" fill = "none" stroke = "currentColor" stroke-width = "1.8" >
< circle cx = "12" cy = "12" r = "3" />
< path d = "M5.6 8.5a7.5 7.5 0 000 7M18.4 8.5a7.5 7.5 0 010 7" />
< path d = "M2.8 5.8a11 11 0 000 12.4M21.2 5.8a11 11 0 010 12.4" />
</ svg >
</ template >
2026-07-27 17:33:48 +01:00
< template x-if = "$store.library.federationFailure(track.key.content_id) && !$store.library.isTrackLocal(track)" >
< span class = "federation-error-badge"
:title = "$store.library.federationFailure(track.key.content_id).message" > !</ span >
</ template >
2026-07-27 16:44:16 +01:00
< template x-if = "$store.library.federationDownload(track.key.content_id)" >
< span class = "federation-download-progress"
:class = "{ indeterminate: !$store.library.federationDownload(track.key.content_id).total }" >
< svg viewBox = "0 0 20 20" aria-hidden = "true" >
< circle class = "progress-track" cx = "10" cy = "10" r = "8" />
< circle class = "progress-value" cx = "10" cy = "10" r = "8"
:style = "`stroke-dashoffset: ${50.27 * (1 - $store.library.federationDownload(track.key.content_id).percent / 100)}`" />
</ svg >
< span class = "progress-percent"
x-show = "$store.library.federationDownload(track.key.content_id).total"
x-text = "Math.round($store.library.federationDownload(track.key.content_id).percent)" ></ span >
< span class = "federation-download-tooltip"
x-text = "$store.library.federationDownloadTooltip(track.key.content_id)" ></ span >
</ span >
</ template >
</ span >
< div class = "track-info" >
2026-11-23 03:07:51 +02:00
< div class = "track-title search-track-title" >
< button class = "search-version-toggle" type = "button" x-show = "!track._searchGroupChild && track._searchGroupCount>1" @ click . stop = "$store.searchGroups.toggle(track)" @ dblclick . stop :aria-expanded = "track._searchGroupExpanded" :aria-controls = "track._searchGroupControls" :title = "$store.searchGroups.label(track)" :aria-label = "$store.searchGroups.label(track)" >
< svg viewBox = "0 0 24 24" fill = "none" stroke = "currentColor" stroke-width = "1.8" aria-hidden = "true" >< path d = "M6 3v12M18 9a9 9 0 0 1-9 9" />< circle cx = "6" cy = "18" r = "3" />< circle cx = "18" cy = "6" r = "3" /></ svg >< span x-text = "track._searchGroupCount" ></ span >
</ button >
< span class = "search-track-name" x-text = "track.metadata.title" ></ span >
</ div >
2026-07-27 16:44:16 +01:00
< div class = "track-artists-inline"
x-text = "$store.library.federationArtistLine(track)" ></ div >
2026-11-23 03:07:51 +02:00
< div class = "search-variant-detail" x-show = "track._searchGroupChild" x-text = "$store.searchGroups.description(track)" ></ div >
</ div >
2026-07-27 16:44:16 +01:00
< span class = "federation-source-count"
x-text = "`${track.availability.federation.length} peer${track.availability.federation.length === 1 ? '' : 's'}`" ></ span >
< span class = "track-actions" >
< button class = "track-action-btn info-btn"
@ click . stop = "$store.library.openFederationTrackInfo(track)"
title = "{{ t.player_track_info }}" >
< span class = "info-letter" > i</ span >
</ button >
< button class = "like-btn"
:class = "{ liked: $store.library.federationIsLiked(track) }"
@ click . stop = "$store.library.toggleFederationLike(track)"
title = "{{ t.player_like }}" >
< svg viewBox = "0 0 24 24"
:fill = "$store.library.federationIsLiked(track) ? 'currentColor' : 'none'"
stroke = "currentColor" stroke-width = "2" >
< path d = "M20.84 4.61a5.5 5.5 0 00-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 00-7.78 7.78L12 21.23l8.84-8.84a5.5 5.5 0 000-7.78z" />
</ svg >
</ button >
< button class = "track-action-btn queue-insert-btn queue-next-btn"
@ click . stop = "$store.library.enqueueFederatedTrack(track, true)"
title = "{{ t.player_play_next }}" >
< svg viewBox = "0 0 24 24" fill = "none" stroke = "currentColor" stroke-width = "2" >< path d = "M5 6h10M5 12h7M5 18h10" />< path d = "M17 9l4 3-4 3" fill = "currentColor" stroke = "none" /></ svg >
</ button >
< button class = "track-action-btn queue-insert-btn queue-end-btn"
@ click . stop = "$store.library.enqueueFederatedTrack(track, false)"
title = "{{ t.player_add_to_queue }}" >
< svg viewBox = "0 0 24 24" fill = "none" stroke = "currentColor" stroke-width = "2" >< path d = "M5 6h14M5 12h14M5 18h7" />< path d = "M17 15l4 3-4 3" fill = "currentColor" stroke = "none" /></ svg >
</ button >
2026-11-18 14:40:16 +00:00
< button data-member-only class = "track-action-btn playlist-add-btn"
2026-07-27 16:44:16 +01:00
@ click . stop = "$store.playlists.showFederationPicker(track)"
title = "{{ t.player_add_to_playlist }}" >
< svg viewBox = "0 0 24 24" fill = "none" stroke = "currentColor" stroke-width = "2" >
< path d = "M8 6h13M8 12h13M8 18h13M3 6h.01M3 12h.01M3 18h.01" />
</ svg >
</ button >
</ span >
< span class = "track-duration"
x-text = "formatTime(track.metadata.duration_seconds)" ></ span >
</ div >
2026-11-23 03:07:51 +02:00
</ div ></ div >
</ template >
2026-08-11 12:26:16 +01:00
< div class = "similarity-search-inline-progress"
x-show = "$store.library.similaritySearchLabel && $store.library.similaritySearchStats.loading"
x-cloak >
< span class = "similarity-search-inline-spinner" aria-hidden = "true" ></ span >
< span > Searching federation for more similar tracks…</ span >
</ div >
2026-07-27 16:44:16 +01:00
</ div >
2026-05-26 12:55:11 +03:00
</ div >
</ template >
</ div >
</ template >
<!-- Artists Grid -->
2026-06-03 02:02:23 +03:00
< template x-if = "$store.library.view === 'artists' || $store.library.view === 'my_uploads'" >
2026-05-26 12:55:11 +03:00
< div >
2026-06-03 03:39:16 +03:00
< h1 class = "section-title" x-text = "$store.library.view === 'my_uploads' ? '{{ t.player_my_uploads }}' : '{{ t.player_global_library }}'" ></ h1 >
2026-05-26 12:55:11 +03:00
< div class = "card-grid" >
2026-06-03 03:45:23 +03:00
< template x-for = "(artist, idx) in $store.library.artists" :key = "artist.id" >
< div class = "artist-grid-entry" >
< div class = "artist-section-divider"
x-show = "$store.library.shouldShowFeaturedSeparator(idx)"
x-cloak >
< span > {{ t.player_featured_only_artists }}</ span >
</ div >
< div class = "card" @ click = "$store.library.openArtist(artist.id)" >
< div class = "card-img" >
< template x-if = "artist.image_url" >
2026-08-11 12:26:16 +01:00
< img :src = "artist.image_url" alt = "" aria-hidden = "true" loading = "lazy" >
2026-06-03 03:45:23 +03:00
</ template >
< template x-if = "!artist.image_url" >
< span class = "placeholder-icon" >< svg viewBox = "0 0 24 24" fill = "none" stroke = "currentColor" stroke-width = "1.5" >< circle cx = "12" cy = "8" r = "4" />< path d = "M20 21a8 8 0 10-16 0" /></ svg ></ span >
</ template >
2026-11-18 14:40:16 +00:00
< button data-member-only class = "artist-follow-card-btn"
2026-06-03 03:45:23 +03:00
:class = "{ followed: $store.follows.has(artist.id) }"
@ click . stop = "$store.follows.toggle(artist.id)"
:title = "$store.follows.has(artist.id) ? '{{ t.player_unfollow_artist }}' : '{{ t.player_follow_artist }}'" >
< svg viewBox = "0 0 24 24" fill = "none" stroke = "currentColor" stroke-width = "2" >
< path d = "M16 21v-2a4 4 0 00-4-4H6a4 4 0 00-4 4v2" />
< circle cx = "9" cy = "7" r = "4" />
< path x-show = "!$store.follows.has(artist.id)" d = "M19 8v6M16 11h6" />
< path x-show = "$store.follows.has(artist.id)" d = "M16 11l2 2 4-5" />
</ svg >
</ button >
</ div >
< div class = "card-title" x-text = "artist.name" ></ div >
< div class = "card-subtitle" x-text = "artist.release_count + ' {{ t.player_releases_count }} · ' + artist.track_count + ' {{ t.player_tracks_count }}'" ></ div >
2026-05-26 12:55:11 +03:00
</ div >
</ div >
</ template >
</ div >
2026-06-03 02:02:23 +03:00
< template x-if = "!$store.library.loading && $store.library.artists.length === 0" >
< div class = "empty-state" >
< p x-text = "$store.library.view === 'my_uploads' ? '{{ t.player_no_uploaded_tracks }}' : '{{ t.artists_empty }}'" ></ p >
</ div >
</ template >
2026-06-03 03:39:16 +03:00
< template x-if = "$store.library.loading && $store.library.artists.length === 0" >
2026-05-26 12:55:11 +03:00
< div class = "loading-spinner" >< div class = "spinner" ></ div ></ div >
</ template >
2026-06-03 03:39:16 +03:00
< div class = "scroll-load-indicator"
x-show = "$store.library.loading && $store.library.artists.length > 0"
x-cloak
role = "status"
aria-live = "polite" >
< div class = "scroll-load-spinner" ></ div >
< span > {{ t.player_loading_more }}</ span >
</ div >
2026-05-26 12:55:11 +03:00
< div id = "artist-sentinel" style = "height:1px" ></ div >
</ div >
</ template >
<!-- Artist Detail -->
< template x-if = "$store.library.view === 'artist_detail' && $store.library.currentArtist" >
< div >
< div class = "breadcrumb" >
2026-06-03 02:02:23 +03:00
< a @ click = "$store.library.artistFilter === 'uploads' ? $store.library.goMyUploads() : $store.library.goArtists()"
2026-06-03 03:39:16 +03:00
x-text = "$store.library.artistFilter === 'uploads' ? '{{ t.player_my_uploads }}' : '{{ t.player_global_library }}'" ></ a >
2026-05-26 12:55:11 +03:00
< span > /</ span >
< span x-text = "$store.library.currentArtist.name" ></ span >
</ div >
< div class = "artist-header" >
< div class = "artist-img" >
< template x-if = "$store.library.currentArtist.image_url" >
2026-07-27 16:44:16 +01:00
< img :src = "$store.library.currentArtist.image_url"
2026-08-11 12:26:16 +01:00
alt = "" aria-hidden = "true"
2026-07-27 16:44:16 +01:00
@ error = "$store.library.currentArtist.image_url = null" >
2026-05-26 12:55:11 +03:00
</ template >
< template x-if = "!$store.library.currentArtist.image_url" >
< svg viewBox = "0 0 24 24" fill = "none" stroke = "currentColor" stroke-width = "1.5" >< circle cx = "12" cy = "8" r = "4" />< path d = "M20 21a8 8 0 10-16 0" /></ svg >
</ template >
</ div >
< div >
< div class = "artist-name" x-text = "$store.library.currentArtist.name" ></ div >
< div class = "artist-stats" >
2026-07-27 16:44:16 +01:00
< span x-text = "($store.library.currentArtist.releases.length + $store.library.artistFederation.releases.length) + ' {{ t.player_releases_count }}'" ></ span >
2026-05-26 12:55:11 +03:00
< span > •</ span >
2026-07-27 16:44:16 +01:00
< span x-text = "($store.library.currentArtist.total_track_count + $store.library.artistFederation.tracks.length) + ' {{ t.player_tracks_count }}'" ></ span >
2026-05-26 12:55:11 +03:00
< span > •</ span >
2026-05-26 14:47:10 +03:00
< span x-text = "$store.library.currentArtist.total_play_count + ' {{ t.player_plays_count }}'" ></ span >
2026-07-27 16:44:16 +01:00
< span class = "federation-live-badge"
x-show = "$store.library.artistFederation.loading"
x-cloak > FEDERATION LIVE</ span >
2026-05-26 12:55:11 +03:00
</ div >
2026-05-29 17:04:30 +03:00
< div class = "release-actions artist-actions" >
< button class = "release-action-btn primary artist-listen-action"
2026-07-27 16:44:16 +01:00
:disabled = "!($store.library.currentArtist.top_tracks?.length || $store.library.artistFederation.tracks.length)"
2026-05-29 17:04:30 +03:00
@ click = "$store.library.playArtistTopTracks()"
title = "{{ t.player_listen_artist }}" >
< svg viewBox = "0 0 24 24" fill = "currentColor" stroke = "none" >
< path d = "M8 5v14l11-7z" />
</ svg >
< span > {{ t.player_listen }}</ span >
</ button >
2026-11-18 14:40:16 +00:00
< button data-member-only class = "release-action-btn secondary artist-follow-action"
2026-07-27 16:44:16 +01:00
x-show = "$store.library.currentArtist.id"
2026-05-26 12:55:11 +03:00
:class = "{ followed: $store.follows.has($store.library.currentArtist.id) }"
@ click = "$store.follows.toggle($store.library.currentArtist.id)"
2026-05-26 14:47:10 +03:00
:title = "$store.follows.has($store.library.currentArtist.id) ? '{{ t.player_unfollow_artist }}' : '{{ t.player_follow_artist }}'" >
2026-05-26 12:55:11 +03:00
< svg viewBox = "0 0 24 24" fill = "none" stroke = "currentColor" stroke-width = "2" >
< path d = "M16 21v-2a4 4 0 00-4-4H6a4 4 0 00-4 4v2" />
< circle cx = "9" cy = "7" r = "4" />
< path x-show = "!$store.follows.has($store.library.currentArtist.id)" d = "M19 8v6M16 11h6" />
< path x-show = "$store.follows.has($store.library.currentArtist.id)" d = "M16 11l2 2 4-5" />
</ svg >
2026-05-26 14:47:10 +03:00
< span x-text = "$store.follows.has($store.library.currentArtist.id) ? '{{ t.player_followed }}' : '{{ t.player_follow }}'" ></ span >
2026-05-26 12:55:11 +03:00
</ button >
</ div >
</ div >
</ div >
2026-06-09 17:18:55 +01:00
< template x-if = "$store.library.currentArtist.top_tracks && $store.library.currentArtist.top_tracks.length > 0" >
2026-07-28 22:46:43 +01:00
< section class = "artist-release-group" x-data = "{ expanded: false }" >
< div class = "artist-release-group-heading" >
< h2 class = "artist-release-group-title" > {{ t.player_top_tracks }}</ h2 >
< button class = "artist-top-tracks-toggle"
type = "button"
x-show = "$store.library.currentArtist.top_tracks.length > 5"
@ click = "expanded = !expanded"
:aria-expanded = "expanded"
x-cloak >
< span x-text = "expanded ? '{{ t.player_collapse }}' : '{{ t.player_expand_all }}'" ></ span >
< svg viewBox = "0 0 24 24" fill = "none" stroke = "currentColor" stroke-width = "2"
:class = "{ expanded: expanded }" >
< polyline points = "6 9 12 15 18 9" />
</ svg >
</ button >
</ div >
2026-06-09 17:18:55 +01:00
< div class = "track-list-header" >
< span > #</ span >
< span > {{ t.player_title }}</ span >
< span ></ span >
< span ></ span >
< span style = "text-align:right" > {{ t.player_duration }}</ span >
</ div >
2026-07-28 22:46:43 +01:00
< template x-for = "(track, idx) in (expanded
? $store.library.currentArtist.top_tracks
: $store.library.currentArtist.top_tracks.slice(0, 5))" :key = "track.id" >
2026-06-09 17:18:55 +01:00
< div class = "track-row artist-appearance-row"
:class = "{ playing: $store.player.currentTrack && $store.player.currentTrack.id === track.id }"
@ dblclick = "$store.queue.playRelease($store.library.currentArtist.top_tracks, idx)" >
< span class = "track-num" x-text = "idx + 1" ></ span >
< div class = "track-info" >
< button class = "artist-appearance-cover"
type = "button"
@ click . stop = "$store.library.openRelease(track.release_id)"
:title = "track.release_title"
aria-label = "{{ t.player_release }}" >
< template x-if = "track.cover_url" >
2026-08-11 12:26:16 +01:00
< img :src = "track.cover_url" alt = "" aria-hidden = "true" loading = "lazy" >
2026-06-09 17:18:55 +01:00
</ template >
< template x-if = "!track.cover_url" >
< svg viewBox = "0 0 24 24" fill = "none" stroke = "currentColor" stroke-width = "1.5" >< rect x = "3" y = "3" width = "18" height = "18" rx = "2" />< circle cx = "12" cy = "12" r = "4" /></ svg >
</ template >
</ button >
< div class = "artist-appearance-copy" >
< div class = "track-title" >
< span x-text = "track.title" ></ span >
< span style = "color:var(--text-subdued)" > · </ span >
< a class = "artist-link" @ click . stop = "$store.library.openRelease(track.release_id)" x-text = "track.release_title" ></ a >
</ div >
< div class = "track-artists-inline" >
< template x-for = "(artist, artistIdx) in $store.library.trackArtistLinks(track)" :key = "artist.label + '-' + artist.id + '-' + artistIdx" >
< span >
< template x-if = "artistIdx > 0" >< span > , </ span ></ template >
< a class = "artist-link" @ click . stop = "$store.library.openArtist(artist.id)" x-text = "artist.label" ></ a >
</ span >
</ template >
</ div >
</ div >
</ div >
< span ></ span >
< div class = "track-actions" >
2026-11-23 02:45:48 +02:00
< span class = "track-popularity-slot" >
< button class = "track-action-btn lyrics-presence" type = "button" x-show = "track.has_lyrics" @ click . stop = "$store.lyrics.open(track,false)" :title = "$store.lyrics.text('lyrics')" :aria-label = "$store.lyrics.text('lyrics')" >< svg viewBox = "0 0 24 24" fill = "none" stroke = "currentColor" stroke-width = "1.8" aria-hidden = "true" >< rect x = "4" y = "3" width = "16" height = "18" rx = "3" />< path d = "M8 8h8M8 12h6M8 16h4" /></ svg ></ button >
2026-11-23 01:45:22 +02:00
< button class = "track-action-btn info-btn popularity-info-btn"
2026-06-09 17:18:55 +01:00
:class = "{ 'has-popularity': $store.library.hasPopularity(track), 'no-popularity': !$store.library.hasPopularity(track) }"
:style = "$store.library.popularityStyle(track)"
@ click . stop = "$store.library.openTrackInfo(track)"
:title = "$store.library.trackInfoTitle(track)"
aria-label = "{{ t.player_track_info }}" >
< span x-show = "$store.library.hasPopularity(track)" x-text = "$store.library.popularityLabel(track)" ></ span >
< span x-show = "!$store.library.hasPopularity(track)" class = "info-letter" > i</ span >
</ button >
2026-11-23 02:45:48 +02:00
</ span >
2026-11-18 14:40:16 +00:00
< button data-member-only class = "like-btn" :class = "{ liked: $store.likes.has(track.id) }" @ click . stop = "$store.likes.toggle(track.id)" title = "{{ t.player_like }}" >
2026-06-09 17:18:55 +01:00
< svg viewBox = "0 0 24 24" :fill = "$store.likes.has(track.id) ? 'currentColor' : 'none'" stroke = "currentColor" stroke-width = "2" >< path d = "M20.84 4.61a5.5 5.5 0 00-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 00-7.78 7.78L12 21.23l8.84-8.84a5.5 5.5 0 000-7.78z" /></ svg >
</ button >
< button class = "track-action-btn queue-insert-btn queue-next-btn" @ click . stop = "$store.queue.addNextInQueue([track])" title = "{{ t.player_play_next }}" >
< svg viewBox = "0 0 24 24" fill = "none" stroke = "currentColor" stroke-width = "2" >< path d = "M5 6h10M5 12h7M5 18h10" />< path d = "M17 9l4 3-4 3" fill = "currentColor" stroke = "none" /></ svg >
</ button >
< button class = "track-action-btn queue-insert-btn queue-end-btn" @ click . stop = "$store.queue.addToEnd([track])" title = "{{ t.player_add_to_queue }}" >
< svg viewBox = "0 0 24 24" fill = "none" stroke = "currentColor" stroke-width = "2" >< path d = "M5 6h14M5 12h14M5 18h7" />< path d = "M17 15l4 3-4 3" fill = "currentColor" stroke = "none" /></ svg >
</ button >
2026-11-18 14:40:16 +00:00
< button data-member-only class = "track-action-btn track-share-btn" @ click . stop = "$store.sharing.copyTrack(track, $event.currentTarget)" title = "{{ t.player_share_track }}" aria-label = "{{ t.player_share_track }}" >
2026-06-09 17:18:55 +01:00
< svg viewBox = "0 0 24 24" fill = "none" stroke = "currentColor" stroke-width = "2" >< circle cx = "18" cy = "5" r = "3" />< circle cx = "6" cy = "12" r = "3" />< circle cx = "18" cy = "19" r = "3" />< path d = "M8.6 10.6l6.8-3.9M8.6 13.4l6.8 3.9" /></ svg >
</ button >
2026-11-18 14:40:16 +00:00
< button data-member-only class = "track-action-btn playlist-add-btn" @ click . stop = "$store.playlists.showPicker([track.id])" title = "{{ t.player_add_to_playlist }}" >
2026-06-09 17:18:55 +01:00
< svg viewBox = "0 0 24 24" fill = "none" stroke = "currentColor" stroke-width = "2" >< path d = "M8 6h13M8 12h13M8 18h13M3 6h.01M3 12h.01M3 18h.01" /></ svg >
</ button >
</ div >
< span class = "track-duration" x-text = "formatTime(track.duration_seconds)" ></ span >
</ div >
</ template >
</ section >
</ template >
2026-05-26 12:55:11 +03:00
< template x-for = "group in $store.library.artistReleaseGroups()" :key = "group.type" >
< section class = "artist-release-group" >
< h2 class = "artist-release-group-title" x-text = "group.label" ></ h2 >
< div class = "card-grid" >
< template x-for = "release in group.releases" :key = "release.id" >
< div class = "card" @ click = "$store.library.openRelease(release.id)" >
< div class = "card-img" >
< template x-if = "release.cover_url" >
2026-08-11 12:26:16 +01:00
< img :src = "release.cover_url" alt = "" aria-hidden = "true"
2026-07-27 16:44:16 +01:00
loading = "lazy" @ error = "release.cover_url = null" >
2026-05-26 12:55:11 +03:00
</ template >
< template x-if = "!release.cover_url" >
< span class = "placeholder-icon" >< svg viewBox = "0 0 24 24" fill = "none" stroke = "currentColor" stroke-width = "1.5" >< rect x = "3" y = "3" width = "18" height = "18" rx = "2" />< circle cx = "12" cy = "12" r = "4" /></ svg ></ span >
</ template >
2026-05-27 15:56:57 +03:00
< button class = "card-info-btn" @ click . stop = "$store.library.openReleaseInfo(release)" :title = "$store.library.releaseInfo(release)" aria-label = "{{ t.player_release_info }}" >
2026-05-26 14:49:56 +03:00
< svg viewBox = "0 0 24 24" fill = "none" stroke = "currentColor" stroke-width = "2" stroke-linecap = "round" stroke-linejoin = "round" >< circle cx = "12" cy = "12" r = "10" />< line x1 = "12" y1 = "16" x2 = "12" y2 = "12" />< line x1 = "12" y1 = "8" x2 = "12.01" y2 = "8" /></ svg >
2026-05-26 12:55:11 +03:00
</ button >
2026-05-26 14:47:10 +03:00
< button class = "card-enqueue-btn" @ click . stop = "$store.library.enqueueRelease(release.id)" title = "{{ t.player_add_to_queue }}" >
2026-05-26 12:55:11 +03:00
< svg viewBox = "0 0 24 24" fill = "none" stroke = "currentColor" stroke-width = "2" >< line x1 = "12" y1 = "5" x2 = "12" y2 = "19" />< line x1 = "5" y1 = "12" x2 = "19" y2 = "12" /></ svg >
</ button >
< button class = "card-play-btn" @ click . stop = "$store.library.playRelease(release.id)" >
< svg viewBox = "0 0 24 24" >< path d = "M8 5v14l11-7z" /></ svg >
</ button >
</ div >
< div class = "card-title" x-text = "release.title" ></ div >
< div class = "card-subtitle" >
< span x-text = "release.year || ''" ></ span >
2026-05-26 14:47:10 +03:00
< span x-text = "release.track_count + ' {{ t.player_tracks_count }}'" ></ span >
2026-05-26 12:55:11 +03:00
</ div >
</ div >
</ template >
</ div >
</ section >
</ template >
2026-07-27 16:44:16 +01:00
< template x-if = "$store.library.artistFederation.releases.length > 0" >
< section class = "artist-release-group federation-artist-section" >
< h2 class = "artist-release-group-title" > Federation</ h2 >
< div class = "card-grid" >
< template x-for = "release in $store.library.artistFederation.releases"
:key = "release.key" >
< div class = "card federation-release-card"
@ click = "$store.library.openFederatedRelease(release)" >
< div class = "card-img" >
< template x-if = "release.cover_url" >
2026-08-11 12:26:16 +01:00
< img :src = "release.cover_url" alt = "" aria-hidden = "true"
2026-07-27 16:44:16 +01:00
loading = "lazy" @ error = "release.cover_url = null" >
</ template >
< template x-if = "!release.cover_url" >
< span class = "placeholder-icon" >< svg viewBox = "0 0 24 24" fill = "none" stroke = "currentColor" stroke-width = "1.5" >< rect x = "3" y = "3" width = "18" height = "18" rx = "2" />< circle cx = "12" cy = "12" r = "4" /></ svg ></ span >
</ template >
< button class = "card-play-btn"
:disabled = "!release.tracks.length"
@ click . stop = "$store.library.playFederatedRelease(release)" >
< svg viewBox = "0 0 24 24" >< path d = "M8 5v14l11-7z" /></ svg >
</ button >
</ div >
< div class = "card-title" x-text = "release.title" ></ div >
< div class = "card-subtitle" >
< span x-text = "release.year || ''" ></ span >
< span x-text = "release.tracks.length + ' {{ t.player_tracks_count }}'" ></ span >
< span class = "federation-source-count"
x-text = "release.owners.length + ' peer' + (release.owners.length === 1 ? '' : 's')" ></ span >
</ div >
</ div >
</ template >
</ div >
</ section >
</ template >
< template x-if = "$store.library.artistFederation.tracks.length > 0" >
< section class = "artist-release-group federation-artist-section" >
< h2 class = "artist-release-group-title" > Federation tracks</ h2 >
< template x-for = "(track, idx) in $store.library.artistFederation.tracks"
:key = "track.key.content_id" >
< div class = "track-row federation-track-row"
@ dblclick = "$store.library.playFederatedTrack(track)" >
< span class = "track-num federation-track-status" >
2026-07-27 17:33:48 +01:00
< template x-if = "!$store.library.federationDownload(track.key.content_id) && !$store.library.federationFailure(track.key.content_id) && !$store.library.isTrackLocal(track)" >
2026-07-27 16:44:16 +01:00
< svg viewBox = "0 0 24 24" fill = "none" stroke = "currentColor" stroke-width = "1.8" >
< circle cx = "12" cy = "12" r = "3" />
< path d = "M5.6 8.5a7.5 7.5 0 000 7M18.4 8.5a7.5 7.5 0 010 7" />
</ svg >
</ template >
2026-07-27 17:33:48 +01:00
< template x-if = "$store.library.federationFailure(track.key.content_id) && !$store.library.isTrackLocal(track)" >
< span class = "federation-error-badge"
:title = "$store.library.federationFailure(track.key.content_id).message" > !</ span >
</ template >
2026-07-27 16:44:16 +01:00
< template x-if = "$store.library.federationDownload(track.key.content_id)" >
< span class = "federation-download-progress"
:class = "{ indeterminate: !$store.library.federationDownload(track.key.content_id).total }" >
< svg viewBox = "0 0 20 20" >
< circle class = "progress-track" cx = "10" cy = "10" r = "8" />
< circle class = "progress-value" cx = "10" cy = "10" r = "8"
:style = "`stroke-dashoffset: ${50.27 * (1 - $store.library.federationDownload(track.key.content_id).percent / 100)}`" />
</ svg >
< span class = "progress-percent"
x-show = "$store.library.federationDownload(track.key.content_id).total"
x-text = "Math.round($store.library.federationDownload(track.key.content_id).percent)" ></ span >
< span class = "federation-download-tooltip"
x-text = "$store.library.federationDownloadTooltip(track.key.content_id)" ></ span >
</ span >
</ template >
</ span >
< div class = "track-info" >
< div class = "track-title" x-text = "track.metadata.title" ></ div >
< div class = "track-artists-inline"
x-text = "[track.metadata.release?.title, $store.library.federationArtistLine(track)].filter(Boolean).join(' · ')" ></ div >
</ div >
< span ></ span >
< span class = "track-actions" >
< button class = "track-action-btn info-btn"
@ click . stop = "$store.library.openFederationTrackInfo(track)"
title = "{{ t.player_track_info }}" >
< span class = "info-letter" > i</ span >
</ button >
< button class = "like-btn"
:class = "{ liked: $store.library.federationIsLiked(track) }"
@ click . stop = "$store.library.toggleFederationLike(track)"
title = "{{ t.player_like }}" >
< svg viewBox = "0 0 24 24"
:fill = "$store.library.federationIsLiked(track) ? 'currentColor' : 'none'"
stroke = "currentColor" stroke-width = "2" >
< path d = "M20.84 4.61a5.5 5.5 0 00-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 00-7.78 7.78L12 21.23l8.84-8.84a5.5 5.5 0 000-7.78z" />
</ svg >
</ button >
< button class = "track-action-btn queue-insert-btn queue-next-btn"
@ click . stop = "$store.library.enqueueFederatedTrack(track, true)"
title = "{{ t.player_play_next }}" >
< svg viewBox = "0 0 24 24" fill = "none" stroke = "currentColor" stroke-width = "2" >< path d = "M5 6h10M5 12h7M5 18h10" />< path d = "M17 9l4 3-4 3" fill = "currentColor" stroke = "none" /></ svg >
</ button >
< button class = "track-action-btn queue-insert-btn queue-end-btn"
@ click . stop = "$store.library.enqueueFederatedTrack(track, false)"
title = "{{ t.player_add_to_queue }}" >
< svg viewBox = "0 0 24 24" fill = "none" stroke = "currentColor" stroke-width = "2" >< path d = "M5 6h14M5 12h14M5 18h7" />< path d = "M17 15l4 3-4 3" fill = "currentColor" stroke = "none" /></ svg >
</ button >
2026-11-18 14:40:16 +00:00
< button data-member-only class = "track-action-btn playlist-add-btn"
2026-07-27 16:44:16 +01:00
@ click . stop = "$store.playlists.showFederationPicker(track)"
title = "{{ t.player_add_to_playlist }}" >
< svg viewBox = "0 0 24 24" fill = "none" stroke = "currentColor" stroke-width = "2" >
< path d = "M8 6h13M8 12h13M8 18h13M3 6h.01M3 12h.01M3 18h.01" />
</ svg >
</ button >
</ span >
< span class = "track-duration"
x-text = "formatTime(track.metadata.duration_seconds)" ></ span >
</ div >
</ template >
</ section >
</ template >
< template x-if = "$store.library.artistFederation.error" >
< div class = "federation-search-status error"
x-text = "$store.library.artistFederation.error" ></ div >
</ template >
2026-05-26 12:55:11 +03:00
< template x-if = "$store.library.currentArtist.featured_tracks && $store.library.currentArtist.featured_tracks.length > 0" >
< section class = "artist-release-group" >
2026-05-26 14:47:10 +03:00
< h2 class = "artist-release-group-title" > {{ t.player_appears_on }}</ h2 >
2026-05-26 12:55:11 +03:00
< div class = "track-list-header" >
< span > #</ span >
2026-05-26 14:47:10 +03:00
< span > {{ t.player_title }}</ span >
2026-05-26 12:55:11 +03:00
< span ></ span >
< span ></ span >
2026-05-26 14:47:10 +03:00
< span style = "text-align:right" > {{ t.player_duration }}</ span >
2026-05-26 12:55:11 +03:00
</ div >
< template x-for = "(track, idx) in $store.library.currentArtist.featured_tracks" :key = "track.id" >
2026-06-02 20:45:00 +03:00
< div class = "track-row artist-appearance-row"
2026-05-26 12:55:11 +03:00
:class = "{ playing: $store.player.currentTrack && $store.player.currentTrack.id === track.id }"
@ dblclick = "$store.queue.playRelease($store.library.currentArtist.featured_tracks, idx)" >
< span class = "track-num" x-text = "idx + 1" ></ span >
< div class = "track-info" >
2026-06-02 20:45:00 +03:00
< button class = "artist-appearance-cover"
type = "button"
@ click . stop = "$store.library.openRelease(track.release_id)"
:title = "track.release_title"
aria-label = "{{ t.player_release }}" >
< template x-if = "track.cover_url" >
2026-08-11 12:26:16 +01:00
< img :src = "track.cover_url" alt = "" aria-hidden = "true" loading = "lazy" >
2026-05-26 12:55:11 +03:00
</ template >
2026-06-02 20:45:00 +03:00
< template x-if = "!track.cover_url" >
< svg viewBox = "0 0 24 24" fill = "none" stroke = "currentColor" stroke-width = "1.5" >< rect x = "3" y = "3" width = "18" height = "18" rx = "2" />< circle cx = "12" cy = "12" r = "4" /></ svg >
</ template >
</ button >
< div class = "artist-appearance-copy" >
< div class = "track-title" >
< span x-text = "track.title" ></ span >
< span style = "color:var(--text-subdued)" > · </ span >
< a class = "artist-link" @ click . stop = "$store.library.openRelease(track.release_id)" x-text = "track.release_title" ></ a >
</ div >
< div class = "track-artists-inline" >
< template x-for = "(artist, artistIdx) in $store.library.trackArtistLinks(track)" :key = "artist.label + '-' + artist.id + '-' + artistIdx" >
< span >
< template x-if = "artistIdx > 0" >< span > , </ span ></ template >
< a class = "artist-link" @ click . stop = "$store.library.openArtist(artist.id)" x-text = "artist.label" ></ a >
</ span >
</ template >
</ div >
2026-05-26 12:55:11 +03:00
</ div >
</ div >
< span ></ span >
< div class = "track-actions" >
2026-11-23 02:45:48 +02:00
< span class = "track-popularity-slot" >
< button class = "track-action-btn lyrics-presence" type = "button" x-show = "track.has_lyrics" @ click . stop = "$store.lyrics.open(track,false)" :title = "$store.lyrics.text('lyrics')" :aria-label = "$store.lyrics.text('lyrics')" >< svg viewBox = "0 0 24 24" fill = "none" stroke = "currentColor" stroke-width = "1.8" aria-hidden = "true" >< rect x = "4" y = "3" width = "16" height = "18" rx = "3" />< path d = "M8 8h8M8 12h6M8 16h4" /></ svg ></ button >
2026-11-23 01:45:22 +02:00
< button class = "track-action-btn info-btn popularity-info-btn"
2026-05-27 12:55:31 +03:00
:class = "{ 'has-popularity': $store.library.hasPopularity(track), 'no-popularity': !$store.library.hasPopularity(track) }"
:style = "$store.library.popularityStyle(track)"
@ click . stop = "$store.library.openTrackInfo(track)"
:title = "$store.library.trackInfoTitle(track)"
aria-label = "{{ t.player_track_info }}" >
< span x-show = "$store.library.hasPopularity(track)" x-text = "$store.library.popularityLabel(track)" ></ span >
< span x-show = "!$store.library.hasPopularity(track)" class = "info-letter" > i</ span >
2026-05-26 12:55:11 +03:00
</ button >
2026-11-23 02:45:48 +02:00
</ span >
2026-11-18 14:40:16 +00:00
< button data-member-only class = "like-btn" :class = "{ liked: $store.likes.has(track.id) }" @ click . stop = "$store.likes.toggle(track.id)" title = "{{ t.player_like }}" >
2026-05-26 12:55:11 +03:00
< svg viewBox = "0 0 24 24" :fill = "$store.likes.has(track.id) ? 'currentColor' : 'none'" stroke = "currentColor" stroke-width = "2" >< path d = "M20.84 4.61a5.5 5.5 0 00-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 00-7.78 7.78L12 21.23l8.84-8.84a5.5 5.5 0 000-7.78z" /></ svg >
</ button >
2026-05-29 01:13:04 +03:00
< button class = "track-action-btn queue-insert-btn queue-next-btn" @ click . stop = "$store.queue.addNextInQueue([track])" title = "{{ t.player_play_next }}" >
< svg viewBox = "0 0 24 24" fill = "none" stroke = "currentColor" stroke-width = "2" >< path d = "M5 6h10M5 12h7M5 18h10" />< path d = "M17 9l4 3-4 3" fill = "currentColor" stroke = "none" /></ svg >
2026-05-26 12:55:11 +03:00
</ button >
2026-05-29 01:13:04 +03:00
< button class = "track-action-btn queue-insert-btn queue-end-btn" @ click . stop = "$store.queue.addToEnd([track])" title = "{{ t.player_add_to_queue }}" >
< svg viewBox = "0 0 24 24" fill = "none" stroke = "currentColor" stroke-width = "2" >< path d = "M5 6h14M5 12h14M5 18h7" />< path d = "M17 15l4 3-4 3" fill = "currentColor" stroke = "none" /></ svg >
2026-05-26 12:55:11 +03:00
</ button >
2026-11-18 14:40:16 +00:00
< button data-member-only class = "track-action-btn track-share-btn" @ click . stop = "$store.sharing.copyTrack(track, $event.currentTarget)" title = "{{ t.player_share_track }}" aria-label = "{{ t.player_share_track }}" >
2026-06-03 17:35:55 +03:00
< svg viewBox = "0 0 24 24" fill = "none" stroke = "currentColor" stroke-width = "2" >< circle cx = "18" cy = "5" r = "3" />< circle cx = "6" cy = "12" r = "3" />< circle cx = "18" cy = "19" r = "3" />< path d = "M8.6 10.6l6.8-3.9M8.6 13.4l6.8 3.9" /></ svg >
</ button >
2026-11-18 14:40:16 +00:00
< button data-member-only class = "track-action-btn playlist-add-btn" @ click . stop = "$store.playlists.showPicker([track.id])" title = "{{ t.player_add_to_playlist }}" >
2026-05-26 12:55:11 +03:00
< svg viewBox = "0 0 24 24" fill = "none" stroke = "currentColor" stroke-width = "2" >< path d = "M8 6h13M8 12h13M8 18h13M3 6h.01M3 12h.01M3 18h.01" /></ svg >
</ button >
</ div >
< span class = "track-duration" x-text = "formatTime(track.duration_seconds)" ></ span >
</ div >
</ template >
</ section >
</ template >
</ div >
</ template >
<!-- Release Detail -->
< template x-if = "$store.library.view === 'release_detail' && $store.library.currentRelease" >
< div >
< div class = "breadcrumb" >
2026-06-03 02:02:23 +03:00
< a @ click = "$store.library.artistFilter === 'uploads' ? $store.library.goMyUploads() : $store.library.goArtists()"
2026-06-03 03:39:16 +03:00
x-text = "$store.library.artistFilter === 'uploads' ? '{{ t.player_my_uploads }}' : '{{ t.player_global_library }}'" ></ a >
2026-05-26 12:55:11 +03:00
< span > /</ span >
< template x-if = "$store.library.currentRelease.artists.length > 0" >
2026-07-27 16:44:16 +01:00
< a @ click = "$store.library.currentRelease.artists[0].id ? $store.library.openArtist($store.library.currentRelease.artists[0].id) : $store.library.openFederatedArtist($store.library.currentRelease.artists[0].name)"
x-text = "$store.library.currentRelease.artists[0].name" ></ a >
2026-05-26 12:55:11 +03:00
</ template >
< span > /</ span >
< span x-text = "$store.library.currentRelease.title" ></ span >
</ div >
< div class = "release-header" >
< div class = "release-cover" >
< template x-if = "$store.library.currentRelease.cover_url" >
2026-08-11 12:26:16 +01:00
< img :src = "$store.library.currentRelease.cover_url" alt = "" aria-hidden = "true" >
2026-05-26 12:55:11 +03:00
</ template >
< template x-if = "!$store.library.currentRelease.cover_url" >
< svg viewBox = "0 0 24 24" fill = "none" stroke = "currentColor" stroke-width = "1.5" >< rect x = "3" y = "3" width = "18" height = "18" rx = "2" />< circle cx = "12" cy = "12" r = "4" /></ svg >
</ template >
</ div >
< div class = "release-meta" >
2026-07-27 16:44:16 +01:00
< div class = "release-type" >
< span x-text = "$store.library.currentRelease.release_type" ></ span >
< span class = "federation-live-badge"
x-show = "$store.library.releaseFederationLoading"
x-cloak > FEDERATION LIVE</ span >
</ div >
2026-05-26 14:49:56 +03:00
< div class = "release-title-row" >
< div class = "release-title" x-text = "$store.library.currentRelease.title" ></ div >
< button class = "like-btn like-btn-lg release-title-like"
2026-07-27 16:44:16 +01:00
:class = "{ liked: $store.library.isMixedReleaseLiked($store.library.currentRelease) }"
@ click . stop = "$store.library.toggleMixedReleaseLike($store.library.currentRelease)"
2026-05-26 14:49:56 +03:00
title = "{{ t.player_like }}" >
2026-07-27 16:44:16 +01:00
< svg viewBox = "0 0 24 24" :fill = "$store.library.isMixedReleaseLiked($store.library.currentRelease) ? 'currentColor' : 'none'" stroke = "currentColor" stroke-width = "2" >< path d = "M20.84 4.61a5.5 5.5 0 00-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 00-7.78 7.78L12 21.23l8.84-8.84a5.5 5.5 0 000-7.78z" /></ svg >
2026-05-26 14:49:56 +03:00
</ button >
</ div >
2026-05-26 12:55:11 +03:00
< div class = "release-artists" >
< template x-for = "(artist, artistIdx) in $store.library.currentRelease.artists" :key = "artist.id" >
< span >
< template x-if = "artistIdx > 0" >< span > , </ span ></ template >
2026-07-27 16:44:16 +01:00
< a class = "artist-link"
@ click = "artist.id ? $store.library.openArtist(artist.id) : $store.library.openFederatedArtist(artist.name)"
x-text = "artist.name" ></ a >
2026-05-26 12:55:11 +03:00
</ span >
</ template >
</ div >
< div class = "release-year" x-text = "$store.library.currentRelease.year || ''" ></ div >
< div class = "release-actions" >
2026-06-03 17:35:55 +03:00
< div class = "release-action-row release-meta-actions" >
< button class = "release-action-btn secondary"
@ click . stop = "$store.library.openReleaseInfo($store.library.currentRelease)"
:title = "$store.library.releaseInfo($store.library.currentRelease)"
aria-label = "{{ t.player_release_info }}" >
< svg viewBox = "0 0 24 24" fill = "none" stroke = "currentColor" stroke-width = "2" stroke-linecap = "round" stroke-linejoin = "round" >< circle cx = "12" cy = "12" r = "10" />< line x1 = "12" y1 = "16" x2 = "12" y2 = "12" />< line x1 = "12" y1 = "8" x2 = "12.01" y2 = "8" /></ svg >
{{ t.player_info }}
</ button >
2026-11-18 14:40:16 +00:00
< button data-member-only class = "release-action-btn secondary release-share-btn"
2026-07-27 16:44:16 +01:00
x-show = "!$store.library.currentRelease.federated"
2026-06-03 17:35:55 +03:00
@ click . stop = "$store.sharing.copyRelease($store.library.currentRelease, $event.currentTarget)"
title = "{{ t.player_share }}"
aria-label = "{{ t.player_share }}" >
< svg viewBox = "0 0 24 24" fill = "none" stroke = "currentColor" stroke-width = "2" >< circle cx = "18" cy = "5" r = "3" />< circle cx = "6" cy = "12" r = "3" />< circle cx = "18" cy = "19" r = "3" />< path d = "M8.6 10.6l6.8-3.9M8.6 13.4l6.8 3.9" /></ svg >
{{ t.player_share }}
</ button >
</ div >
< div class = "release-action-row release-playback-actions" >
< button class = "release-action-btn primary" @ click = "$store.queue.playRelease($store.library.currentRelease.tracks, 0)" >
< svg viewBox = "0 0 24 24" fill = "currentColor" >< path d = "M8 5v14l11-7z" /></ svg >
{{ t.player_play }}
</ button >
< button class = "release-action-btn secondary" @ click = "$store.queue.addToEnd($store.library.currentRelease.tracks)" title = "{{ t.player_add_to_end_queue }}" >
< svg viewBox = "0 0 24 24" fill = "none" stroke = "currentColor" stroke-width = "2" >< line x1 = "12" y1 = "5" x2 = "12" y2 = "19" />< line x1 = "5" y1 = "12" x2 = "19" y2 = "12" /></ svg >
{{ t.player_queue }}
</ button >
< button class = "release-action-btn secondary" @ click = "$store.queue.addNextInQueue($store.library.currentRelease.tracks)" title = "{{ t.player_play_next }}" >
< svg viewBox = "0 0 24 24" fill = "none" stroke = "currentColor" stroke-width = "2" >< path d = "M5 6h14M5 12h8M5 18h14" />< path d = "M17 10l4 3-4 3" fill = "currentColor" stroke = "none" /></ svg >
{{ t.player_next }}
</ button >
</ div >
2026-05-26 12:55:11 +03:00
</ div >
</ div >
</ div >
<!-- Track list -->
< div class = "track-list-header" >
< span > #</ span >
2026-05-26 14:47:10 +03:00
< span > {{ t.player_title }}</ span >
2026-05-26 12:55:11 +03:00
< span ></ span >
< span ></ span >
2026-05-26 14:47:10 +03:00
< span style = "text-align:right" > {{ t.player_duration }}</ span >
2026-05-26 12:55:11 +03:00
</ div >
< template x-for = "(track, idx) in $store.library.currentRelease.tracks" :key = "track.id" >
< div class = "track-row"
2026-06-03 17:35:55 +03:00
:data-shared-track-id = "track.id"
:class = "{ playing: $store.player.currentTrack && $store.player.currentTrack.id === track.id, 'shared-target': $store.sharing.isSharedTrack(track) }"
2026-07-27 16:44:16 +01:00
@ dblclick = "$store.queue.playRelease($store.library.currentRelease.tracks, idx)" >
< span class = "track-num federation-track-status" >
< template x-if = "!track.federation_pending" >
< span x-text = "track.track_number || (idx + 1)" ></ span >
</ template >
2026-07-27 17:33:48 +01:00
< template x-if = "track.federation_pending && !$store.library.federationDownload(track.content_id) && !$store.library.federationFailure(track.content_id) && !$store.library.isTrackLocal(track._federationTrack)" >
2026-07-27 16:44:16 +01:00
< svg viewBox = "0 0 24 24" fill = "none" stroke = "currentColor" stroke-width = "1.8" >
< circle cx = "12" cy = "12" r = "3" />
< path d = "M5.6 8.5a7.5 7.5 0 000 7M18.4 8.5a7.5 7.5 0 010 7" />
< path d = "M2.8 5.8a11 11 0 000 12.4M21.2 5.8a11 11 0 010 12.4" />
</ svg >
</ template >
2026-07-27 17:33:48 +01:00
< template x-if = "track.federation_pending && $store.library.federationFailure(track.content_id) && !$store.library.isTrackLocal(track._federationTrack)" >
< span class = "federation-error-badge"
:title = "$store.library.federationFailure(track.content_id).message" > !</ span >
</ template >
2026-07-27 16:44:16 +01:00
< template x-if = "track.federation_pending && !$store.library.federationDownload(track.content_id) && $store.library.isTrackLocal(track._federationTrack)" >
< span x-text = "track.track_number || (idx + 1)" ></ span >
</ template >
< template x-if = "track.federation_pending && $store.library.federationDownload(track.content_id)" >
< span class = "federation-download-progress"
:class = "{ indeterminate: !$store.library.federationDownload(track.content_id).total }" >
< svg viewBox = "0 0 20 20" >
< circle class = "progress-track" cx = "10" cy = "10" r = "8" />
< circle class = "progress-value" cx = "10" cy = "10" r = "8"
:style = "`stroke-dashoffset: ${50.27 * (1 - $store.library.federationDownload(track.content_id).percent / 100)}`" />
</ svg >
< span class = "progress-percent"
x-show = "$store.library.federationDownload(track.content_id).total"
x-text = "Math.round($store.library.federationDownload(track.content_id).percent)" ></ span >
< span class = "federation-download-tooltip"
x-text = "$store.library.federationDownloadTooltip(track.content_id)" ></ span >
</ span >
</ template >
</ span >
2026-05-26 12:55:11 +03:00
< div class = "track-info" >
< div class = "track-title" x-text = "track.title" ></ div >
< div class = "track-artists-inline" >
< template x-for = "(artist, artistIdx) in $store.library.trackArtistLinks(track)" :key = "artist.label + '-' + artist.id + '-' + artistIdx" >
< span >
< template x-if = "artistIdx > 0" >< span > , </ span ></ template >
2026-07-27 16:44:16 +01:00
< a class = "artist-link"
@ click . stop = "artist.id ? $store.library.openArtist(artist.id) : $store.library.openFederatedArtist(artist.label.replace(/^ft\\.\\s*/, ''))"
x-text = "artist.label" ></ a >
2026-05-26 12:55:11 +03:00
</ span >
</ template >
</ div >
</ div >
< span ></ span >
< div class = "track-actions" >
2026-11-23 02:45:48 +02:00
< span class = "track-popularity-slot" >
< button class = "track-action-btn lyrics-presence" type = "button" x-show = "track.has_lyrics" @ click . stop = "$store.lyrics.open(track,false)" :title = "$store.lyrics.text('lyrics')" :aria-label = "$store.lyrics.text('lyrics')" >< svg viewBox = "0 0 24 24" fill = "none" stroke = "currentColor" stroke-width = "1.8" aria-hidden = "true" >< rect x = "4" y = "3" width = "16" height = "18" rx = "3" />< path d = "M8 8h8M8 12h6M8 16h4" /></ svg ></ button >
2026-11-23 01:45:22 +02:00
< button class = "track-action-btn info-btn popularity-info-btn"
2026-05-27 12:55:31 +03:00
:class = "{ 'has-popularity': $store.library.hasPopularity(track), 'no-popularity': !$store.library.hasPopularity(track) }"
:style = "$store.library.popularityStyle(track)"
2026-07-27 16:44:16 +01:00
@ click . stop = "track.federation_pending ? $store.library.openFederationTrackInfo(track._federationTrack) : $store.library.openTrackInfo(track)"
2026-05-27 12:55:31 +03:00
:title = "$store.library.trackInfoTitle(track)"
aria-label = "{{ t.player_track_info }}" >
< span x-show = "$store.library.hasPopularity(track)" x-text = "$store.library.popularityLabel(track)" ></ span >
< span x-show = "!$store.library.hasPopularity(track)" class = "info-letter" > i</ span >
2026-05-26 12:55:11 +03:00
</ button >
2026-11-23 02:45:48 +02:00
</ span >
2026-11-18 14:40:16 +00:00
< button data-member-only class = "like-btn"
2026-07-27 16:44:16 +01:00
:class = "{ liked: track.federation_pending ? $store.library.federationIsLiked(track._federationTrack) : $store.likes.has(track.id) }"
@ click . stop = "track.federation_pending ? $store.library.toggleFederationLike(track._federationTrack) : $store.likes.toggle(track.id)"
title = "{{ t.player_like }}" >
< svg viewBox = "0 0 24 24"
:fill = "track.federation_pending ? ($store.library.federationIsLiked(track._federationTrack) ? 'currentColor' : 'none') : ($store.likes.has(track.id) ? 'currentColor' : 'none')"
stroke = "currentColor" stroke-width = "2" >< path d = "M20.84 4.61a5.5 5.5 0 00-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 00-7.78 7.78L12 21.23l8.84-8.84a5.5 5.5 0 000-7.78z" /></ svg >
2026-05-26 12:55:11 +03:00
</ button >
2026-05-29 01:13:04 +03:00
< button class = "track-action-btn queue-insert-btn queue-next-btn" @ click . stop = "$store.queue.addNextInQueue([track])" title = "{{ t.player_play_next }}" >
< svg viewBox = "0 0 24 24" fill = "none" stroke = "currentColor" stroke-width = "2" >< path d = "M5 6h10M5 12h7M5 18h10" />< path d = "M17 9l4 3-4 3" fill = "currentColor" stroke = "none" /></ svg >
2026-05-26 12:55:11 +03:00
</ button >
2026-05-29 01:13:04 +03:00
< button class = "track-action-btn queue-insert-btn queue-end-btn" @ click . stop = "$store.queue.addToEnd([track])" title = "{{ t.player_add_to_queue }}" >
< svg viewBox = "0 0 24 24" fill = "none" stroke = "currentColor" stroke-width = "2" >< path d = "M5 6h14M5 12h14M5 18h7" />< path d = "M17 15l4 3-4 3" fill = "currentColor" stroke = "none" /></ svg >
2026-05-26 12:55:11 +03:00
</ button >
2026-11-18 14:40:16 +00:00
< button data-member-only class = "track-action-btn track-share-btn"
2026-07-27 16:44:16 +01:00
x-show = "!track.federation_pending"
@ click . stop = "$store.sharing.copyTrack(track, $event.currentTarget)" title = "{{ t.player_share_track }}" aria-label = "{{ t.player_share_track }}" >
2026-06-03 17:35:55 +03:00
< svg viewBox = "0 0 24 24" fill = "none" stroke = "currentColor" stroke-width = "2" >< circle cx = "18" cy = "5" r = "3" />< circle cx = "6" cy = "12" r = "3" />< circle cx = "18" cy = "19" r = "3" />< path d = "M8.6 10.6l6.8-3.9M8.6 13.4l6.8 3.9" /></ svg >
</ button >
2026-11-18 14:40:16 +00:00
< button data-member-only class = "track-action-btn playlist-add-btn"
2026-07-27 16:44:16 +01:00
@ click . stop = "track.federation_pending ? $store.playlists.showFederationPicker(track._federationTrack) : $store.playlists.showPicker([track.id])"
title = "{{ t.player_add_to_playlist }}" >
2026-05-26 12:55:11 +03:00
< svg viewBox = "0 0 24 24" fill = "none" stroke = "currentColor" stroke-width = "2" >< path d = "M8 6h13M8 12h13M8 18h13M3 6h.01M3 12h.01M3 18h.01" /></ svg >
</ button >
</ div >
< span class = "track-duration" x-text = "formatTime(track.duration_seconds)" ></ span >
</ div >
</ template >
</ div >
</ template >
<!-- Playlist Detail -->
< template x-if = "$store.library.view === 'playlist_detail' && $store.library.currentPlaylist" >
< div >
< div class = "breadcrumb" >
2026-05-26 14:47:10 +03:00
< a @ click = "$store.library.goArtists()" > {{ t.player_library }}</ a >
2026-05-26 12:55:11 +03:00
< span > /</ span >
2026-05-26 14:47:10 +03:00
< span x-text = "$store.playlists.displayTitle($store.library.currentPlaylist)" ></ span >
2026-05-26 12:55:11 +03:00
</ div >
2026-07-23 17:24:28 +03:00
< div class = "playlist-detail-heading" >
< h1 class = "section-title" x-text = "$store.playlists.displayTitle($store.library.currentPlaylist)" ></ h1 >
2026-11-18 14:40:16 +00:00
< button data-member-only class = "release-action-btn secondary playlist-edit-toggle"
2026-07-23 17:24:28 +03:00
x-show = "$store.playlists.canEditCurrent()"
x-cloak
@ click = "$store.playlists.toggleEditCurrent()"
:title = "$store.playlists.isEditingCurrent() ? '{{ t.player_done }}' : '{{ t.player_edit }}'" >
< svg x-show = "!$store.playlists.isEditingCurrent()" viewBox = "0 0 24 24" fill = "none" stroke = "currentColor" stroke-width = "2" >
< path d = "M11 4H4a2 2 0 00-2 2v14a2 2 0 002 2h14a2 2 0 002-2v-7" />
< path d = "M18.5 2.5a2.12 2.12 0 013 3L12 15l-4 1 1-4 9.5-9.5z" />
</ svg >
< svg x-show = "$store.playlists.isEditingCurrent()" viewBox = "0 0 24 24" fill = "none" stroke = "currentColor" stroke-width = "2" >
< path d = "M20 6L9 17l-5-5" />
</ svg >
< span x-text = "$store.playlists.isEditingCurrent() ? '{{ t.player_done }}' : '{{ t.player_edit }}'" ></ span >
</ button >
</ div >
2026-05-26 12:55:11 +03:00
< div class = "playlist-detail-meta"
x-show = "$store.library.currentPlaylist.owner_name || $store.library.currentPlaylist.is_public" >
< span x-show = "$store.library.currentPlaylist.owner_name"
2026-05-26 14:47:10 +03:00
x-text = "'{{ t.player_by }} ' + $store.library.currentPlaylist.owner_name" ></ span >
2026-05-26 12:55:11 +03:00
< span x-show = "$store.library.currentPlaylist.owner_name && $store.library.currentPlaylist.is_public" > · </ span >
< span class = "playlist-public-badge"
2026-05-26 14:47:10 +03:00
x-show = "$store.library.currentPlaylist.is_public" > {{ t.player_published }}</ span >
2026-05-26 12:55:11 +03:00
</ div >
< template x-if = "$store.library.currentPlaylist.description" >
< p style = "color:var(--text-subdued);margin-bottom:16px" x-text = "$store.library.currentPlaylist.description" ></ p >
</ template >
2026-07-23 17:24:28 +03:00
< div class = "track-list-header playlist-track-list-header"
:class = "{ editing: $store.playlists.isEditingCurrent() }" >
< span class = "playlist-edit-cell"
x-show = "$store.playlists.isEditingCurrent()"
x-cloak ></ span >
2026-05-26 12:55:11 +03:00
< span > #</ span >
2026-05-26 14:47:10 +03:00
< span > {{ t.player_title }}</ span >
2026-05-26 12:55:11 +03:00
< span ></ span >
< span ></ span >
2026-05-26 14:47:10 +03:00
< span style = "text-align:right" > {{ t.player_duration }}</ span >
2026-05-26 12:55:11 +03:00
</ div >
2026-07-23 17:24:28 +03:00
< template x-for = "(track, idx) in $store.library.currentPlaylist.tracks" :key = "track.playlist_track_id || (track.id + '-' + idx)" >
< div class = "track-row playlist-track-row"
:data-playlist-index = "idx"
:class = "{ playing: $store.player.currentTrack && $store.player.currentTrack.id === track.id, editing: $store.playlists.isEditingCurrent(), dragging: $store.playlists._dragIdx === idx }"
:draggable = "$store.playlists.isEditingCurrent() && !!track.playlist_track_id"
@ dblclick = "if (!$store.playlists.isEditingCurrent()) $store.queue.playRelease($store.library.currentPlaylist.tracks, idx)"
@ dragstart = "if (!$store.playlists.startDrag($event, idx)) $event.preventDefault()"
@ dragend = "$store.playlists.endDrag()"
@ dragover . prevent = "$store.playlists.dragOver($event, idx)"
@ dragleave = "$event.currentTarget.classList.remove('drag-over')"
@ drop . prevent = "$event.currentTarget.classList.remove('drag-over'); $store.playlists.dropOn(idx)" >
2026-11-18 14:40:16 +00:00
< button data-member-only class = "playlist-track-remove"
2026-07-23 17:24:28 +03:00
x-show = "$store.playlists.isEditingCurrent()"
x-cloak
@ click . stop = "$store.playlists.removeCurrentTrack(track, idx)"
title = "{{ t.player_remove }}"
aria-label = "{{ t.player_remove }}" >
< svg viewBox = "0 0 24 24" fill = "none" stroke = "currentColor" stroke-width = "2" >
< line x1 = "18" y1 = "6" x2 = "6" y2 = "18" />
< line x1 = "6" y1 = "6" x2 = "18" y2 = "18" />
</ svg >
</ button >
2026-07-27 16:44:16 +01:00
< span class = "track-num federation-track-status" >
< template x-if = "!track.federation_pending || $store.library.isTrackLocal(track._federationTrack)" >
< span x-text = "idx + 1" ></ span >
</ template >
2026-07-27 17:33:48 +01:00
< template x-if = "track.federation_pending && !$store.library.federationDownload(track.content_id) && !$store.library.federationFailure(track.content_id) && !$store.library.isTrackLocal(track._federationTrack)" >
2026-07-27 16:44:16 +01:00
< svg viewBox = "0 0 24 24" fill = "none" stroke = "currentColor" stroke-width = "1.8" >
< circle cx = "12" cy = "12" r = "3" />
< path d = "M5.6 8.5a7.5 7.5 0 000 7M18.4 8.5a7.5 7.5 0 010 7" />
< path d = "M2.8 5.8a11 11 0 000 12.4M21.2 5.8a11 11 0 010 12.4" />
</ svg >
</ template >
2026-07-27 17:33:48 +01:00
< template x-if = "track.federation_pending && $store.library.federationFailure(track.content_id) && !$store.library.isTrackLocal(track._federationTrack)" >
< span class = "federation-error-badge"
:title = "$store.library.federationFailure(track.content_id).message" > !</ span >
</ template >
2026-07-27 16:44:16 +01:00
< template x-if = "track.federation_pending && $store.library.federationDownload(track.content_id)" >
< span class = "federation-download-progress"
:class = "{ indeterminate: !$store.library.federationDownload(track.content_id).total }" >
< svg viewBox = "0 0 20 20" >
< circle class = "progress-track" cx = "10" cy = "10" r = "8" />
< circle class = "progress-value" cx = "10" cy = "10" r = "8"
:style = "`stroke-dashoffset: ${50.27 * (1 - $store.library.federationDownload(track.content_id).percent / 100)}`" />
</ svg >
< span class = "progress-percent"
x-show = "$store.library.federationDownload(track.content_id).total"
x-text = "Math.round($store.library.federationDownload(track.content_id).percent)" ></ span >
< span class = "federation-download-tooltip"
x-text = "$store.library.federationDownloadTooltip(track.content_id)" ></ span >
</ span >
</ template >
</ span >
2026-07-23 17:24:28 +03:00
< div class = "track-info playlist-track-info" >
2026-11-18 14:40:16 +00:00
< button data-member-only class = "playlist-drag-handle"
2026-07-23 17:24:28 +03:00
x-show = "$store.playlists.isEditingCurrent() && !!track.playlist_track_id"
x-cloak
@ mousedown . stop
@ click . stop
@ pointerdown . stop = "$store.playlists.startPointerReorder($event, idx)"
title = "{{ t.player_edit }}"
aria-label = "{{ t.player_edit }}" >
< svg viewBox = "0 0 24 24" fill = "currentColor" >< circle cx = "9" cy = "6" r = "1.5" />< circle cx = "15" cy = "6" r = "1.5" />< circle cx = "9" cy = "12" r = "1.5" />< circle cx = "15" cy = "12" r = "1.5" />< circle cx = "9" cy = "18" r = "1.5" />< circle cx = "15" cy = "18" r = "1.5" /></ svg >
</ button >
< div class = "playlist-track-copy" >
< div class = "track-title" x-text = "track.title" ></ div >
< div class = "track-artists-inline" >
< template x-for = "(artist, artistIdx) in $store.library.trackArtistLinks(track)" :key = "artist.label + '-' + artist.id + '-' + artistIdx" >
< span >
< template x-if = "artistIdx > 0" >< span > , </ span ></ template >
2026-07-27 16:44:16 +01:00
< a class = "artist-link"
@ click . stop = "artist.id ? $store.library.openArtist(artist.id) : $store.library.openFederatedArtist(artist.label.replace(/^ft\\.\\s*/, ''))"
x-text = "artist.label" ></ a >
2026-07-23 17:24:28 +03:00
</ span >
</ template >
</ div >
2026-05-26 12:55:11 +03:00
</ div >
</ div >
< span ></ span >
< div class = "track-actions" >
2026-11-23 02:45:48 +02:00
< span class = "track-popularity-slot" >
< button class = "track-action-btn lyrics-presence" type = "button" x-show = "track.has_lyrics" @ click . stop = "$store.lyrics.open(track,false)" :title = "$store.lyrics.text('lyrics')" :aria-label = "$store.lyrics.text('lyrics')" >< svg viewBox = "0 0 24 24" fill = "none" stroke = "currentColor" stroke-width = "1.8" aria-hidden = "true" >< rect x = "4" y = "3" width = "16" height = "18" rx = "3" />< path d = "M8 8h8M8 12h6M8 16h4" /></ svg ></ button >
2026-11-23 01:45:22 +02:00
< button class = "track-action-btn info-btn popularity-info-btn"
2026-05-27 12:55:31 +03:00
:class = "{ 'has-popularity': $store.library.hasPopularity(track), 'no-popularity': !$store.library.hasPopularity(track) }"
:style = "$store.library.popularityStyle(track)"
2026-07-27 16:44:16 +01:00
@ click . stop = "track.federation_pending ? $store.library.openFederationTrackInfo(track._federationTrack) : $store.library.openTrackInfo(track)"
2026-05-27 12:55:31 +03:00
:title = "$store.library.trackInfoTitle(track)"
aria-label = "{{ t.player_track_info }}" >
< span x-show = "$store.library.hasPopularity(track)" x-text = "$store.library.popularityLabel(track)" ></ span >
< span x-show = "!$store.library.hasPopularity(track)" class = "info-letter" > i</ span >
2026-05-26 12:55:11 +03:00
</ button >
2026-11-23 02:45:48 +02:00
</ span >
2026-11-18 14:40:16 +00:00
< button data-member-only class = "like-btn"
2026-07-27 16:44:16 +01:00
:class = "{ liked: track.federation_pending ? $store.library.federationIsLiked(track._federationTrack) : $store.likes.has(track.id) }"
@ click . stop = "track.federation_pending ? $store.library.toggleFederationLike(track._federationTrack) : $store.likes.toggle(track.id)"
title = "{{ t.player_like }}" >
< svg viewBox = "0 0 24 24"
:fill = "track.federation_pending ? ($store.library.federationIsLiked(track._federationTrack) ? 'currentColor' : 'none') : ($store.likes.has(track.id) ? 'currentColor' : 'none')"
stroke = "currentColor" stroke-width = "2" >< path d = "M20.84 4.61a5.5 5.5 0 00-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 00-7.78 7.78L12 21.23l8.84-8.84a5.5 5.5 0 000-7.78z" /></ svg >
2026-05-26 12:55:11 +03:00
</ button >
2026-05-29 01:13:04 +03:00
< button class = "track-action-btn queue-insert-btn queue-next-btn" @ click . stop = "$store.queue.addNextInQueue([track])" title = "{{ t.player_play_next }}" >
< svg viewBox = "0 0 24 24" fill = "none" stroke = "currentColor" stroke-width = "2" >< path d = "M5 6h10M5 12h7M5 18h10" />< path d = "M17 9l4 3-4 3" fill = "currentColor" stroke = "none" /></ svg >
2026-05-26 12:55:11 +03:00
</ button >
2026-05-29 01:13:04 +03:00
< button class = "track-action-btn queue-insert-btn queue-end-btn" @ click . stop = "$store.queue.addToEnd([track])" title = "{{ t.player_add_to_queue }}" >
< svg viewBox = "0 0 24 24" fill = "none" stroke = "currentColor" stroke-width = "2" >< path d = "M5 6h14M5 12h14M5 18h7" />< path d = "M17 15l4 3-4 3" fill = "currentColor" stroke = "none" /></ svg >
2026-05-26 12:55:11 +03:00
</ button >
2026-11-18 14:40:16 +00:00
< button data-member-only class = "track-action-btn track-share-btn" @ click . stop = "$store.sharing.copyTrack(track, $event.currentTarget)" title = "{{ t.player_share_track }}" aria-label = "{{ t.player_share_track }}" >
2026-06-03 17:35:55 +03:00
< svg viewBox = "0 0 24 24" fill = "none" stroke = "currentColor" stroke-width = "2" >< circle cx = "18" cy = "5" r = "3" />< circle cx = "6" cy = "12" r = "3" />< circle cx = "18" cy = "19" r = "3" />< path d = "M8.6 10.6l6.8-3.9M8.6 13.4l6.8 3.9" /></ svg >
</ button >
2026-11-18 14:40:16 +00:00
< button data-member-only class = "track-action-btn playlist-add-btn"
2026-07-27 16:44:16 +01:00
@ click . stop = "track.federation_pending ? $store.playlists.showFederationPicker(track._federationTrack) : $store.playlists.showPicker([track.id])"
title = "{{ t.player_add_to_playlist }}" >
2026-05-26 12:55:11 +03:00
< svg viewBox = "0 0 24 24" fill = "none" stroke = "currentColor" stroke-width = "2" >< path d = "M8 6h13M8 12h13M8 18h13M3 6h.01M3 12h.01M3 18h.01" /></ svg >
</ button >
</ div >
< span class = "track-duration" x-text = "formatTime(track.duration_seconds)" ></ span >
</ div >
</ template >
</ div >
</ template >
</ div >
<!-- Queue Panel -->
< div class = "queue-backdrop"
x-show = "$store.queue.visible"
x-cloak
@ click = "$store.queue.visible = false" ></ div >
< div class = "queue-panel" :class = "{ hidden: !$store.queue.visible }" >
< div class = "queue-header" >
2026-05-26 14:47:10 +03:00
< h3 > {{ t.player_queue }}</ h3 >
2026-06-03 17:35:55 +03:00
< div class = "queue-header-actions" >
2026-11-18 14:40:16 +00:00
< button data-member-only class = "queue-share-btn" @ click = "$store.sharing.copyQueue($event.currentTarget)" :disabled = "$store.queue.tracks.length === 0" title = "{{ t.player_share_queue }}" aria-label = "{{ t.player_share_queue }}" >
2026-06-03 17:35:55 +03:00
< svg viewBox = "0 0 24 24" fill = "none" stroke = "currentColor" stroke-width = "2" >< circle cx = "18" cy = "5" r = "3" />< circle cx = "6" cy = "12" r = "3" />< circle cx = "18" cy = "19" r = "3" />< path d = "M8.6 10.6l6.8-3.9M8.6 13.4l6.8 3.9" /></ svg >
</ button >
< button class = "queue-clear-btn" @ click = "$store.queue.clear()" > {{ t.player_clear }}</ button >
</ div >
2026-05-26 12:55:11 +03:00
</ div >
< div class = "queue-tracks" >
2026-06-08 17:59:46 +01:00
< template x-if = "$store.queue.displayItems().length === 0" >
2026-05-26 12:55:11 +03:00
< div class = "empty-state" >
< svg viewBox = "0 0 24 24" fill = "none" stroke = "currentColor" stroke-width = "1.5" >< path d = "M9 18V5l12-2v13" />< circle cx = "6" cy = "18" r = "3" />< circle cx = "18" cy = "16" r = "3" /></ svg >
2026-05-26 14:47:10 +03:00
< p > {{ t.player_queue_empty }}</ p >
2026-05-26 12:55:11 +03:00
</ div >
</ template >
2026-06-08 17:59:46 +01:00
< template x-for = "item in $store.queue.displayItems()" :key = "item.key" >
2026-05-26 12:55:11 +03:00
< div class = "queue-track"
2026-06-08 17:59:46 +01:00
:data-queue-index = "item.index"
:class = "{ active: item.state === 'current', current: item.state === 'current', played: item.state === 'played', dragging: $store.queue._dragIdx === item.index, synthetic: item.synthetic, 'foreign-jam-track': $store.queue.isForeignJamTrack(item.track) }"
:style = "$store.queue.isForeignJamTrack(item.track) ? $store.queue.contributorStyle(item.track) : ''"
@ click = "item.index >= 0 ? $store.queue.playFromIndex(item.index) : $store.player.play(item.track)"
:draggable = "!item.synthetic"
@ dragstart = "if (item.synthetic) { $event.preventDefault(); } else { $store.queue._dragIdx = item.index; $event.dataTransfer.effectAllowed = 'move'; }"
2026-05-26 12:55:11 +03:00
@ dragend = "$store.queue._dragIdx = null; document.querySelectorAll('.drag-over').forEach(el => el.classList.remove('drag-over'))"
@ dragover . prevent = "$event.dataTransfer.dropEffect = 'move'; $event.currentTarget.classList.add('drag-over')"
@ dragleave = "$event.currentTarget.classList.remove('drag-over')"
2026-06-08 17:59:46 +01:00
@ drop . prevent = "$event.currentTarget.classList.remove('drag-over'); if (!item.synthetic && $store.queue._dragIdx !== null) { $store.queue.moveTrack($store.queue._dragIdx, item.index); $store.queue._dragIdx = null; }" >
2026-05-29 13:08:33 +03:00
< div class = "queue-drag-handle"
2026-06-08 17:59:46 +01:00
x-show = "!item.synthetic"
2026-05-29 13:08:33 +03:00
@ mousedown . stop
@ click . stop
2026-06-08 17:59:46 +01:00
@ pointerdown . stop = "$store.queue.startPointerReorder($event, item.index)" >
2026-05-26 12:55:11 +03:00
< svg viewBox = "0 0 24 24" fill = "currentColor" >< circle cx = "9" cy = "6" r = "1.5" />< circle cx = "15" cy = "6" r = "1.5" />< circle cx = "9" cy = "12" r = "1.5" />< circle cx = "15" cy = "12" r = "1.5" />< circle cx = "9" cy = "18" r = "1.5" />< circle cx = "15" cy = "18" r = "1.5" /></ svg >
</ div >
< div class = "queue-track-cover" >
2026-08-11 12:26:16 +01:00
< svg viewBox = "0 0 24 24" fill = "none" stroke = "currentColor" stroke-width = "1.5" >< path d = "M9 18V5l12-2v13" />< circle cx = "6" cy = "18" r = "3" />< circle cx = "18" cy = "16" r = "3" /></ svg >
2026-06-08 17:59:46 +01:00
< template x-if = "item.track.cover_url" >
2026-08-11 12:26:16 +01:00
< img class = "artwork-image" :src = "item.track.cover_url" alt = "" aria-hidden = "true" loading = "lazy" @ load = "$event.currentTarget.classList.add('artwork-loaded')" @ error = "$event.currentTarget.classList.remove('artwork-loaded')" >
2026-05-26 12:55:11 +03:00
</ template >
2026-07-27 16:44:16 +01:00
< span class = "queue-federation-status federation-track-status"
x-show = "item.track.federation_pending"
x-cloak >
2026-07-27 17:33:48 +01:00
< template x-if = "!$store.library.federationDownload(item.track.content_id) && !$store.library.federationFailure(item.track.content_id)" >
2026-07-27 16:44:16 +01:00
< svg viewBox = "0 0 24 24" fill = "none" stroke = "currentColor" stroke-width = "1.8" >
< circle cx = "12" cy = "12" r = "3" />
< path d = "M5.6 8.5a7.5 7.5 0 000 7M18.4 8.5a7.5 7.5 0 010 7" />
</ svg >
</ template >
2026-07-27 17:33:48 +01:00
< template x-if = "$store.library.federationFailure(item.track.content_id)" >
< span class = "federation-error-badge"
:title = "$store.library.federationFailure(item.track.content_id).message" > !</ span >
</ template >
2026-07-27 16:44:16 +01:00
< template x-if = "$store.library.federationDownload(item.track.content_id)" >
< span class = "federation-download-progress"
:class = "{ indeterminate: !$store.library.federationDownload(item.track.content_id).total }" >
< svg viewBox = "0 0 20 20" >
< circle class = "progress-track" cx = "10" cy = "10" r = "8" />
< circle class = "progress-value" cx = "10" cy = "10" r = "8"
:style = "`stroke-dashoffset: ${50.27 * (1 - $store.library.federationDownload(item.track.content_id).percent / 100)}`" />
</ svg >
< span class = "progress-percent"
x-show = "$store.library.federationDownload(item.track.content_id).total"
x-text = "Math.round($store.library.federationDownload(item.track.content_id).percent)" ></ span >
< span class = "federation-download-tooltip"
x-text = "$store.library.federationDownloadTooltip(item.track.content_id)" ></ span >
</ span >
</ template >
</ span >
2026-05-26 12:55:11 +03:00
</ div >
< div class = "queue-track-info" >
2026-06-08 17:59:46 +01:00
< div class = "queue-track-title" x-text = "item.track.title" ></ div >
2026-05-26 12:55:11 +03:00
< div class = "queue-track-artist" >
2026-06-08 17:59:46 +01:00
< template x-for = "(artist, artistIdx) in $store.library.trackArtistLinks(item.track)" :key = "artist.label + '-' + artist.id + '-' + artistIdx" >
2026-05-26 12:55:11 +03:00
< span >
< template x-if = "artistIdx > 0" >< span > , </ span ></ template >
2026-07-27 16:44:16 +01:00
< a class = "artist-link"
@ click . stop = "artist.id ? $store.library.openArtist(artist.id) : $store.library.openFederatedArtist(artist.label.replace(/^ft\\.\\s*/, ''))"
x-text = "artist.label" ></ a >
2026-05-26 12:55:11 +03:00
</ span >
</ template >
</ div >
</ div >
< div class = "queue-track-actions" >
2026-11-23 02:45:48 +02:00
< span class = "track-popularity-slot" >
< button class = "track-action-btn lyrics-presence" type = "button" x-show = "item.track.has_lyrics" @ click . stop = "$store.lyrics.open(item.track,false)" :title = "$store.lyrics.text('lyrics')" :aria-label = "$store.lyrics.text('lyrics')" >< svg viewBox = "0 0 24 24" fill = "none" stroke = "currentColor" stroke-width = "1.8" aria-hidden = "true" >< rect x = "4" y = "3" width = "16" height = "18" rx = "3" />< path d = "M8 8h8M8 12h6M8 16h4" /></ svg ></ button >
2026-11-23 01:45:22 +02:00
< button class = "queue-track-remove info-btn popularity-info-btn"
2026-06-08 17:59:46 +01:00
:class = "{ 'has-popularity': $store.library.hasPopularity(item.track), 'no-popularity': !$store.library.hasPopularity(item.track) }"
:style = "$store.library.popularityStyle(item.track)"
2026-07-27 16:44:16 +01:00
@ click . stop = "item.track.federation_pending ? $store.library.openFederationTrackInfo(item.track._federationTrack) : $store.library.openTrackInfo(item.track)"
2026-06-08 17:59:46 +01:00
:title = "$store.library.trackInfoTitle(item.track)"
2026-05-27 12:55:31 +03:00
aria-label = "{{ t.player_track_info }}" >
2026-06-08 17:59:46 +01:00
< span x-show = "$store.library.hasPopularity(item.track)" x-text = "$store.library.popularityLabel(item.track)" ></ span >
< span x-show = "!$store.library.hasPopularity(item.track)" class = "info-letter" > i</ span >
2026-05-26 12:55:11 +03:00
</ button >
2026-11-23 02:45:48 +02:00
</ span >
2026-06-08 17:59:46 +01:00
< button class = "queue-track-remove" x-show = "!item.synthetic" @ click . stop = "$store.queue.remove(item.index)" title = "{{ t.player_remove }}" >
2026-05-26 12:55:11 +03:00
< svg viewBox = "0 0 24 24" fill = "none" stroke = "currentColor" stroke-width = "2" width = "14" height = "14" >< line x1 = "18" y1 = "6" x2 = "6" y2 = "18" />< line x1 = "6" y1 = "6" x2 = "18" y2 = "18" /></ svg >
</ button >
</ div >
</ div >
</ template >
</ div >
</ div >
</ div >
<!-- Player Bar -->
2026-05-29 02:37:21 +03:00
< div class = "player-bar"
2026-06-01 14:53:51 +03:00
:class = "{ 'mobile-expanded': $store.mobile.playerExpanded }" >
< div class = "mobile-full-player" >
< button class = "mobile-player-collapse-btn" type = "button" @ click . stop = "$store.mobile.closePlayerFullscreen()" title = "{{ t.player_close }}" aria-label = "{{ t.player_close }}" >
< svg viewBox = "0 0 24 24" fill = "none" stroke = "currentColor" stroke-width = "2.4" >
< path d = "M6 9l6 6 6-6" />
</ svg >
</ button >
< div class = "player-now-playing" >
2026-05-26 12:55:11 +03:00
< template x-if = "$store.player.currentTrack" >
2026-06-03 17:35:55 +03:00
< div class = "player-current-track" >
2026-05-29 02:37:21 +03:00
< div class = "player-cover"
2026-05-29 02:56:14 +03:00
@ click . stop = "$store.mobile.openPlayerFullscreen()" >
2026-05-26 12:55:11 +03:00
< template x-if = "$store.player.currentTrack.cover_url" >
2026-08-11 12:26:16 +01:00
< img :src = "$store.player.currentTrack.cover_url" alt = "" aria-hidden = "true" >
2026-05-26 12:55:11 +03:00
</ template >
< template x-if = "!$store.player.currentTrack.cover_url" >
< svg viewBox = "0 0 24 24" fill = "none" stroke = "currentColor" stroke-width = "1.5" >< path d = "M9 18V5l12-2v13" />< circle cx = "6" cy = "18" r = "3" />< circle cx = "18" cy = "16" r = "3" /></ svg >
</ template >
</ div >
< div class = "player-track-info" >
2026-05-27 15:56:57 +03:00
< div class = "player-track-title-row" >
< div class = "player-track-title" x-text = "$store.player.currentTrack.title" ></ div >
2026-11-18 14:40:16 +00:00
< button data-member-only class = "like-btn player-current-like"
2026-05-27 15:56:57 +03:00
:class = "{ liked: $store.likes.has($store.player.currentTrack.id) }"
@ click . stop = "$store.likes.toggle($store.player.currentTrack.id)"
title = "{{ t.player_like }}"
aria-label = "{{ t.player_like }}" >
< svg viewBox = "0 0 24 24" :fill = "$store.likes.has($store.player.currentTrack.id) ? 'currentColor' : 'none'" stroke = "currentColor" stroke-width = "2" >< path d = "M20.84 4.61a5.5 5.5 0 00-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 00-7.78 7.78L12 21.23l8.84-8.84a5.5 5.5 0 000-7.78z" /></ svg >
</ button >
2026-11-18 14:40:16 +00:00
< button data-member-only class = "track-action-btn player-current-share"
2026-06-03 17:35:55 +03:00
@ click . stop = "$store.sharing.copyTrack($store.player.currentTrack, $event.currentTarget)"
title = "{{ t.player_share_track }}"
aria-label = "{{ t.player_share_track }}" >
< svg viewBox = "0 0 24 24" fill = "none" stroke = "currentColor" stroke-width = "2" >< circle cx = "18" cy = "5" r = "3" />< circle cx = "6" cy = "12" r = "3" />< circle cx = "18" cy = "19" r = "3" />< path d = "M8.6 10.6l6.8-3.9M8.6 13.4l6.8 3.9" /></ svg >
</ button >
2026-05-27 15:56:57 +03:00
</ div >
2026-05-26 12:55:11 +03:00
< div class = "player-track-artist" >
< template x-for = "(artist, artistIdx) in $store.library.trackArtistLinks($store.player.currentTrack)" :key = "artist.label + '-' + artist.id + '-' + artistIdx" >
< span >
< template x-if = "artistIdx > 0" >< span > , </ span ></ template >
< a class = "artist-link" @ click . stop = "$store.library.openArtist(artist.id)" x-text = "artist.label" ></ a >
</ span >
</ template >
< template x-if = "$store.player.currentTrack.release_year" >
< span class = "player-release-year" x-text = "' · ' + $store.player.currentTrack.release_year" ></ span >
</ template >
</ div >
2026-05-29 02:37:21 +03:00
< div class = "player-track-release" x-show = "$store.player.currentTrack.release_title" >
< a class = "artist-link" @ click . stop = "$store.player.currentTrack.release_id && $store.library.openRelease($store.player.currentTrack.release_id)" x-text = "$store.player.currentTrack.release_title" ></ a >
</ div >
2026-05-26 12:55:11 +03:00
</ div >
</ div >
</ template >
2026-06-01 14:53:51 +03:00
</ div >
2026-05-26 12:55:11 +03:00
2026-06-01 14:53:51 +03:00
< div class = "player-controls" >
2026-05-26 12:55:11 +03:00
< div class = "player-buttons" >
2026-05-26 14:47:10 +03:00
< button class = "player-btn" :class = "{ active: $store.player.shuffle }" @ click = "$store.player.toggleShuffle()" title = "{{ t.player_shuffle }}" >
2026-05-26 12:55:11 +03:00
< svg viewBox = "0 0 24 24" fill = "none" stroke = "currentColor" stroke-width = "2" >< polyline points = "16 3 21 3 21 8" />< line x1 = "4" y1 = "20" x2 = "21" y2 = "3" />< polyline points = "21 16 21 21 16 21" />< line x1 = "15" y1 = "15" x2 = "21" y2 = "21" />< line x1 = "4" y1 = "4" x2 = "9" y2 = "9" /></ svg >
</ button >
2026-11-23 01:45:22 +02:00
< button class = "player-btn lyrics-toggle lyrics-toggle-mobile" type = "button" @ click . stop = "$store.lyrics.open($store.player.currentTrack,true)" :disabled = "!$store.player.currentTrack || !!$store.player.currentTrack.podcast" :title = "$store.lyrics.text('lyrics')" :aria-label = "$store.lyrics.text('lyrics')" >
< svg viewBox = "0 0 24 24" fill = "none" stroke = "currentColor" stroke-width = "1.8" aria-hidden = "true" >< rect x = "4" y = "3" width = "16" height = "18" rx = "3" />< path d = "M8 8h8M8 12h6M8 16h4" /></ svg >
</ button >
2026-06-03 17:35:55 +03:00
< button class = "player-btn player-btn-prev" @ click = "$store.player.prev()" title = "{{ t.player_previous }}" >
2026-05-26 12:55:11 +03:00
< svg viewBox = "0 0 24 24" fill = "currentColor" >< path d = "M6 6h2v12H6zm3.5 6l8.5 6V6z" /></ svg >
</ button >
< button class = "player-btn player-btn-play" @ click = "$store.player.toggle()" >
< template x-if = "!$store.player.isPlaying" >
< svg viewBox = "0 0 24 24" fill = "currentColor" >< path d = "M8 5v14l11-7z" /></ svg >
</ template >
< template x-if = "$store.player.isPlaying" >
< svg viewBox = "0 0 24 24" fill = "currentColor" >< path d = "M6 4h4v16H6zM14 4h4v16h-4z" /></ svg >
</ template >
</ button >
2026-06-03 17:35:55 +03:00
< button class = "player-btn player-btn-next" @ click = "$store.player.next()" title = "{{ t.player_next }}" >
2026-05-26 12:55:11 +03:00
< svg viewBox = "0 0 24 24" fill = "currentColor" >< path d = "M6 18l8.5-6L6 6v12zM16 6v12h2V6h-2z" /></ svg >
</ button >
2026-05-26 14:47:10 +03:00
< button class = "player-btn" :class = "{ active: $store.player.repeatMode !== 'off' }" @ click = "$store.player.cycleRepeat()" title = "{{ t.player_repeat }}" >
2026-05-26 12:55:11 +03:00
< template x-if = "$store.player.repeatMode !== 'one'" >
< svg viewBox = "0 0 24 24" fill = "none" stroke = "currentColor" stroke-width = "2" >< polyline points = "17 1 21 5 17 9" />< path d = "M3 11V9a4 4 0 014-4h14" />< polyline points = "7 23 3 19 7 15" />< path d = "M21 13v2a4 4 0 01-4 4H3" /></ svg >
</ template >
< template x-if = "$store.player.repeatMode === 'one'" >
< svg viewBox = "0 0 24 24" fill = "none" stroke = "currentColor" stroke-width = "2" >< polyline points = "17 1 21 5 17 9" />< path d = "M3 11V9a4 4 0 014-4h14" />< polyline points = "7 23 3 19 7 15" />< path d = "M21 13v2a4 4 0 01-4 4H3" />< text x = "12" y = "14" font-size = "8" fill = "currentColor" text-anchor = "middle" font-weight = "bold" > 1</ text ></ svg >
</ template >
</ button >
</ div >
< div class = "player-timeline" >
< span class = "player-time" x-text = "formatTime($store.player.currentTime)" ></ span >
2026-06-03 17:35:55 +03:00
< div class = "progress-bar"
@ pointerdown . prevent = "$store.player.startProgressDrag($event)"
aria-label = "{{ t.player_duration }}" >
2026-05-26 12:55:11 +03:00
< div class = "progress-bar-fill" :style = "'width:' + $store.player.progress + '%'" >
< div class = "progress-bar-thumb" ></ div >
</ div >
</ div >
2026-05-29 02:56:14 +03:00
< div class = "player-progress-strip-times"
x-text = "'-' + formatTime(Math.max(0, $store.player.duration - $store.player.currentTime)) + ' / ' + formatTime($store.player.duration)" ></ div >
2026-05-26 12:55:11 +03:00
< span class = "player-time" x-text = "formatTime($store.player.duration)" ></ span >
</ div >
2026-07-27 23:41:29 +01:00
< a class = "player-version-chip"
href = "https://github.com/house-of-vanity/furumusic"
target = "_blank"
rel = "noopener noreferrer"
aria-label = "Furumusic on GitHub" > v{{ t.app_version() }}</ a >
2026-06-01 14:53:51 +03:00
</ div >
2026-05-26 12:55:11 +03:00
2026-06-01 14:53:51 +03:00
< div class = "player-right" >
2026-11-23 01:45:22 +02:00
< button class = "player-btn lyrics-toggle" type = "button" @ click . stop = "$store.lyrics.open($store.player.currentTrack,true)" :disabled = "!$store.player.currentTrack || !!$store.player.currentTrack.podcast" :title = "$store.lyrics.text('lyrics')" :aria-label = "$store.lyrics.text('lyrics')" >
< svg viewBox = "0 0 24 24" fill = "none" stroke = "currentColor" stroke-width = "1.8" aria-hidden = "true" >< rect x = "4" y = "3" width = "16" height = "18" rx = "3" />< path d = "M8 8h8M8 12h6M8 16h4" /></ svg >
</ button >
2026-05-26 12:55:11 +03:00
< div class = "volume-control" >
< button class = "volume-btn" @ click = "$store.player.toggleMute()" >
< template x-if = "$store.player.volume === 0" >
< svg viewBox = "0 0 24 24" fill = "none" stroke = "currentColor" stroke-width = "2" >< polygon points = "11 5 6 9 2 9 2 15 6 15 11 19 11 5" />< line x1 = "23" y1 = "9" x2 = "17" y2 = "15" />< line x1 = "17" y1 = "9" x2 = "23" y2 = "15" /></ svg >
</ template >
< template x-if = "$store.player.volume > 0 && $store.player.volume < 0.5" >
< svg viewBox = "0 0 24 24" fill = "none" stroke = "currentColor" stroke-width = "2" >< polygon points = "11 5 6 9 2 9 2 15 6 15 11 19 11 5" />< path d = "M15.54 8.46a5 5 0 010 7.07" /></ svg >
</ template >
< template x-if = "$store.player.volume >= 0.5" >
< svg viewBox = "0 0 24 24" fill = "none" stroke = "currentColor" stroke-width = "2" >< polygon points = "11 5 6 9 2 9 2 15 6 15 11 19 11 5" />< path d = "M19.07 4.93a10 10 0 010 14.14M15.54 8.46a5 5 0 010 7.07" /></ svg >
</ template >
</ button >
< div class = "volume-slider"
@ pointerdown . prevent = "$store.player.startVolumeDrag($event)"
2026-05-26 14:47:10 +03:00
aria-label = "{{ t.player_volume }}" >
2026-05-28 23:38:07 +03:00
< div class = "volume-slider-fill" :style = "'width:' + $store.player.volumeSliderPercent() + '%'" >
2026-05-26 12:55:11 +03:00
< div class = "volume-slider-thumb" ></ div >
</ div >
</ div >
</ div >
2026-05-26 14:47:10 +03:00
< button class = "queue-toggle-btn" :class = "{ active: $store.queue.visible }" @ click = "$store.queue.visible = !$store.queue.visible" title = "{{ t.player_queue }}" >
2026-05-26 12:55:11 +03:00
< svg viewBox = "0 0 24 24" fill = "none" stroke = "currentColor" stroke-width = "2" >< line x1 = "8" y1 = "6" x2 = "21" y2 = "6" />< line x1 = "8" y1 = "12" x2 = "21" y2 = "12" />< line x1 = "8" y1 = "18" x2 = "21" y2 = "18" />< line x1 = "3" y1 = "6" x2 = "3.01" y2 = "6" />< line x1 = "3" y1 = "12" x2 = "3.01" y2 = "12" />< line x1 = "3" y1 = "18" x2 = "3.01" y2 = "18" /></ svg >
</ button >
2026-05-28 13:15:42 +03:00
< div class = "device-picker" @ click . outside = "$store.devices.open = false" >
2026-06-02 20:45:00 +03:00
< template x-if = "$store.devices.remoteHintVisible" >
2026-11-18 14:40:16 +00:00
< button data-member-only class = "remote-playback-hint"
2026-06-02 20:45:00 +03:00
type = "button"
@ click = "$store.devices.dismissRemoteHint()"
x-transition
x-cloak >
< span class = "remote-playback-hint-text" x-text = "$store.devices.remoteHintText()" ></ span >
< span class = "remote-playback-hint-progress" ></ span >
</ button >
</ template >
2026-11-18 14:40:16 +00:00
< button data-member-only class = "queue-toggle-btn device-toggle-btn"
2026-05-28 15:17:59 +03:00
:class = "{ active: $store.devices.isActive() }"
2026-05-28 13:15:42 +03:00
@ click = "$store.devices.toggle()"
:title = "$store.devices.activeLabel()"
aria-label = "Devices" >
< svg viewBox = "0 0 24 24" fill = "none" stroke = "currentColor" stroke-width = "2" >
< rect x = "3" y = "4" width = "18" height = "12" rx = "2" />
< path d = "M8 20h8" />
< path d = "M12 16v4" />
</ svg >
2026-05-29 13:08:33 +03:00
< span class = "jam-member-squares"
x-show = "$store.devices.activeJamMembers().length > 0"
x-cloak >
< template x-for = "member in $store.devices.activeJamMembers().slice(0, 8)" :key = "'device-jam-member-' + member.user_id" >
< span class = "jam-member-square" :style = "$store.devices.userColorStyle(member.user_id, member.name)" ></ span >
</ template >
</ span >
2026-05-28 13:15:42 +03:00
</ button >
< div class = "device-popover" x-show = "$store.devices.open" x-transition x-cloak >
2026-07-27 16:44:16 +01:00
< div class = "device-section-label" > Web players</ div >
< template x-for = "device in $store.devices.webDevices()" :key = "device.id" >
2026-11-18 14:40:16 +00:00
< button data-member-only class = "device-row"
2026-05-28 17:34:37 +03:00
:class = "{ active: device.is_active, 'current-device': device.is_current }"
2026-05-28 13:15:42 +03:00
@ click = "$store.devices.select(device.id)" >
< span class = "device-row-icon" >
< template x-if = "device.kind === 'phone'" >
< svg viewBox = "0 0 24 24" fill = "none" stroke = "currentColor" stroke-width = "2" >
< rect x = "7" y = "2" width = "10" height = "20" rx = "2" />
< path d = "M11 18h2" />
</ svg >
</ template >
< template x-if = "device.kind !== 'phone'" >
< svg viewBox = "0 0 24 24" fill = "none" stroke = "currentColor" stroke-width = "2" >
< rect x = "3" y = "4" width = "18" height = "12" rx = "2" />
< path d = "M8 20h8" />
< path d = "M12 16v4" />
</ svg >
</ template >
</ span >
< span class = "device-row-main" >
< span class = "device-row-name" x-text = "device.name" ></ span >
2026-05-28 15:17:59 +03:00
< span class = "device-row-current" x-show = "device.is_current" > This device</ span >
2026-05-28 13:15:42 +03:00
</ span >
< span class = "device-row-check" x-show = "device.is_active" >
< svg viewBox = "0 0 24 24" fill = "none" stroke = "currentColor" stroke-width = "2.4" >
< polyline points = "20 6 9 17 4 12" />
</ svg >
</ span >
</ button >
</ template >
2026-07-27 16:44:16 +01:00
< template x-if = "$store.devices.playbackFedDevices().length > 0" >
< div class = "device-group-divider" >
< span > Trusted federation devices</ span >
2026-07-24 16:45:11 +03:00
</ div >
2026-07-27 16:44:16 +01:00
</ template >
< template x-for = "device in $store.devices.playbackFedDevices()" :key = "device.id" >
2026-11-18 14:40:16 +00:00
< button data-member-only class = "device-row federation-device-row"
2026-07-27 16:44:16 +01:00
:class = "{ active: device.is_active }"
@ click = "$store.devices.select(device.id)" >
< span class = "device-row-icon federation-device-icon" >
< svg viewBox = "0 0 24 24" fill = "none" stroke = "currentColor" stroke-width = "1.8" >
< circle cx = "12" cy = "12" r = "3" />
< path d = "M5.6 8.5a7.5 7.5 0 000 7M18.4 8.5a7.5 7.5 0 010 7" />
< path d = "M2.8 5.8a11 11 0 000 12.4M21.2 5.8a11 11 0 010 12.4" />
</ svg >
</ span >
< span class = "device-row-main" >
< span class = "device-row-name" x-text = "device.name" ></ span >
< span class = "device-row-current"
x-text = "device.is_active ? 'Active federation device' : 'Available for playback transfer'" ></ span >
</ span >
< span class = "device-row-check" x-show = "device.is_active" >
< svg viewBox = "0 0 24 24" fill = "none" stroke = "currentColor" stroke-width = "2.4" >
< polyline points = "20 6 9 17 4 12" />
</ svg >
</ span >
</ button >
</ template >
2026-05-28 17:34:37 +03:00
< template x-if = "$store.devices.jams.length > 0" >
< div class = "device-section-label jam-section-label" > Jams</ div >
</ template >
< template x-for = "jam in $store.devices.jams" :key = "jam.id" >
2026-11-18 14:40:16 +00:00
< button data-member-only class = "device-row jam-row"
2026-05-28 17:34:37 +03:00
:class = "{ active: jam.is_active, pending: jam.is_pending }"
2026-05-29 13:08:33 +03:00
@ click = "$store.devices.handleJamRowClick(jam)" >
2026-05-28 17:34:37 +03:00
< span class = "device-row-icon" >
< svg viewBox = "0 0 24 24" fill = "none" stroke = "currentColor" stroke-width = "2" >
< circle cx = "8" cy = "8" r = "3" />
< circle cx = "16" cy = "8" r = "3" />
< path d = "M4 20v-1a4 4 0 014-4h0a4 4 0 014 4v1" />
< path d = "M12 20v-1a4 4 0 014-4h0a4 4 0 014 4v1" />
</ svg >
</ span >
< span class = "device-row-main" >
< span class = "device-row-name" x-text = "jam.name" ></ span >
< span class = "device-row-current"
x-text = "!jam.host_device_online ? 'Host offline' : (jam.is_pending ? 'Invite pending' : (jam.is_owner ? 'Your Jam' : 'Shared queue'))" ></ span >
</ span >
< span class = "device-row-check" x-show = "jam.is_active" >
< svg viewBox = "0 0 24 24" fill = "none" stroke = "currentColor" stroke-width = "2.4" >
< polyline points = "20 6 9 17 4 12" />
</ svg >
</ span >
</ button >
</ template >
2026-11-18 14:40:16 +00:00
< button data-member-only class = "device-row start-jam-row" x-show = "!$store.devices.hasJoinedJam()" @ click = "$store.devices.openJamPanel()" >
2026-05-28 17:34:37 +03:00
< span class = "device-row-icon" >
< svg viewBox = "0 0 24 24" fill = "none" stroke = "currentColor" stroke-width = "2" >
< path d = "M12 5v14" />
< path d = "M5 12h14" />
</ svg >
</ span >
< span class = "device-row-main" >
< span class = "device-row-name" > Start Jam</ span >
< span class = "device-row-current" > Invite listeners</ span >
</ span >
</ button >
< div class = "jam-create-panel" x-show = "$store.devices.jamPanelOpen" x-transition x-cloak >
2026-05-29 13:08:33 +03:00
< div class = "jam-panel-title" x-text = "$store.devices.jamPanelMode === 'manage' ? 'Invite listeners' : 'Start Jam'" ></ div >
2026-06-03 17:35:55 +03:00
< label class = "jam-local-playback-toggle"
x-show = "$store.devices.jamPanelMode === 'manage' && $store.devices.canPlayJamLocally()"
x-cloak >
< input type = "checkbox"
:checked = "$store.devices.jamLocalPlayback"
@ change = "$store.devices.setJamLocalPlayback($event.target.checked)" >
< span > {{ t.player_jam_play_on_this_device }}</ span >
</ label >
2026-05-28 17:34:37 +03:00
< div class = "jam-selected-users" x-show = "$store.devices.jamSelectedUsers.length > 0" >
< template x-for = "user in $store.devices.jamSelectedUsers" :key = "user.id" >
2026-11-18 14:40:16 +00:00
< button data-member-only class = "jam-user-chip" @ click = "$store.devices.removeJamInvitee(user.id)" >
2026-05-28 17:34:37 +03:00
< span x-text = "user.display_name || user.username" ></ span >
< span aria-hidden = "true" > × </ span >
</ button >
</ template >
</ div >
< input class = "jam-user-search"
type = "search"
placeholder = "Search users"
x-model = "$store.devices.jamQuery"
@ input = "$store.devices.queueJamSearch()" >
< div class = "jam-search-results" x-show = "$store.devices.jamUsers.length > 0" >
< template x-for = "user in $store.devices.jamUsers" :key = "user.id" >
2026-11-18 14:40:16 +00:00
< button data-member-only class = "jam-search-row" @ click = "$store.devices.addJamInvitee(user)" >
2026-05-28 17:34:37 +03:00
< span x-text = "user.display_name || user.username" ></ span >
< small x-text = "user.email || user.username" ></ small >
</ button >
</ template >
</ div >
2026-05-29 13:08:33 +03:00
< div class = "jam-panel-actions" >
2026-11-18 14:40:16 +00:00
< button data-member-only class = "jam-create-btn"
2026-05-29 13:08:33 +03:00
:disabled = "$store.devices.jamSelectedUsers.length === 0 && $store.devices.jamPanelMode === 'manage'"
@ click = "$store.devices.submitJamPanel()"
x-text = "$store.devices.jamPanelMode === 'manage' ? 'Invite' : 'Create Jam'" ></ button >
2026-11-18 14:40:16 +00:00
< button data-member-only class = "jam-leave-btn"
2026-05-29 13:08:33 +03:00
x-show = "$store.devices.jamPanelMode === 'manage'"
@ click = "$store.devices.leaveJam($store.devices.jamPanelJamId)" > Leave</ button >
</ div >
2026-05-28 17:34:37 +03:00
</ div >
2026-05-28 13:15:42 +03:00
</ div >
</ div >
2026-06-01 14:53:51 +03:00
</ div >
< div class = "mobile-expanded-queue" >
2026-05-29 02:37:21 +03:00
< div class = "mobile-expanded-queue-title" > {{ t.player_queue }}</ div >
2026-06-08 17:59:46 +01:00
< template x-if = "$store.queue.displayItems().length === 0" >
2026-05-29 02:37:21 +03:00
< div class = "mobile-expanded-queue-empty" > {{ t.player_queue_empty }}</ div >
</ template >
2026-06-08 17:59:46 +01:00
< template x-for = "item in $store.queue.displayItems()" :key = "'mobile-expanded-queue-' + item.key" >
2026-05-29 13:08:33 +03:00
< button class = "mobile-expanded-queue-row"
2026-06-08 17:59:46 +01:00
:class = "{ current: item.state === 'current', played: item.state === 'played', 'foreign-jam-track': $store.queue.isForeignJamTrack(item.track) }"
:style = "$store.queue.isForeignJamTrack(item.track) ? $store.queue.contributorStyle(item.track) : ''"
2026-05-29 13:08:33 +03:00
type = "button"
2026-06-08 17:59:46 +01:00
@ click = "item.index >= 0 ? $store.queue.playFromIndex(item.index) : $store.player.play(item.track)" >
2026-05-29 02:37:21 +03:00
< div class = "mobile-expanded-queue-cover" >
2026-08-11 12:26:16 +01:00
< svg viewBox = "0 0 24 24" fill = "none" stroke = "currentColor" stroke-width = "1.5" >< path d = "M9 18V5l12-2v13" />< circle cx = "6" cy = "18" r = "3" />< circle cx = "18" cy = "16" r = "3" /></ svg >
2026-06-08 17:59:46 +01:00
< template x-if = "item.track.cover_url" >
2026-08-11 12:26:16 +01:00
< img class = "artwork-image" :src = "item.track.cover_url" alt = "" aria-hidden = "true" loading = "lazy" @ load = "$event.currentTarget.classList.add('artwork-loaded')" @ error = "$event.currentTarget.classList.remove('artwork-loaded')" >
2026-05-29 02:37:21 +03:00
</ template >
</ div >
< div class = "mobile-expanded-queue-info" >
2026-06-08 17:59:46 +01:00
< div class = "mobile-expanded-queue-name" x-text = "item.track.title" ></ div >
2026-05-29 02:37:21 +03:00
< div class = "mobile-expanded-queue-artist" >
2026-06-08 17:59:46 +01:00
< template x-for = "(artist, artistIdx) in $store.library.trackArtistLinks(item.track)" :key = "artist.label + '-' + artist.id + '-' + artistIdx" >
2026-05-29 02:37:21 +03:00
< span >
< template x-if = "artistIdx > 0" >< span > , </ span ></ template >
< span x-text = "artist.label" ></ span >
</ span >
</ template >
</ div >
</ div >
2026-06-08 17:59:46 +01:00
< span class = "mobile-expanded-queue-time" x-text = "formatTime(item.track.duration_seconds)" ></ span >
2026-05-29 02:37:21 +03:00
</ button >
</ template >
2026-06-01 14:53:51 +03:00
</ div >
2026-05-29 02:37:21 +03:00
</ div >
2026-05-26 12:55:11 +03:00
</ div >