@ngxsplayer/ngx-smart-player-ui-audio 0.2.2 → 0.3.1-next.555
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ngxsplayer-ngx-smart-player-ui-audio.mjs","names":[],"sources":["../../../projects/ngx-smart-player-ui-audio/src/lib/audio-player-ui.component.ts","../../../projects/ngx-smart-player-ui-audio/src/lib/audio-ui.module.ts"],"sourcesContent":["import { AfterViewChecked, ChangeDetectionStrategy, ChangeDetectorRef, Component, ElementRef, EventEmitter, Input, Output, ViewChild, inject } from '@angular/core';\nimport { CommonModule, DOCUMENT } from '@angular/common';\nimport type { EngineFactory, PlayerConfig, PlayerPlugin, PlayerPorts, PlayerState, SmartCompactMode, SmartPlayerIconName, SmartPlayerProgress, SmartSettingAction, SmartSettingChange, SmartSettingsSection } from '@ngxsplayer/ngx-smart-player';\nimport { SmartPlayerComponent, SmartPlayerIconComponent, SmartSettingsComponent } from '@ngxsplayer/ngx-smart-player';\nimport { NgxspTimeSlider, NgxspVolumeControl } from '@ngxsplayer/ngx-smart-player-ui-core';\n\nexport interface AudioUiListItem {\n id: string;\n title: string;\n subtitle?: string;\n meta?: string;\n artist?: string;\n album?: string;\n genre?: string;\n duration?: string;\n artworkUrl?: string;\n favorite?: boolean;\n /** Whether this track is kept behind the lock. Only ever true while the vault is open to show it. */\n locked?: boolean;\n lastPlayedLabel?: string;\n progressPercent?: number;\n active?: boolean;\n}\n\n/** Form shown above a library view, to add a station by its address. */\nexport interface AudioUiStationForm {\n title: string;\n namePlaceholder: string;\n urlPlaceholder: string;\n submitLabel: string;\n hint?: string;\n}\n\n/** A server type of the connection form. */\nexport interface AudioUiServerKind {\n id: string;\n label: string;\n /** False for servers without accounts (DLNA): the user name and password fields are hidden. */\n credentials?: boolean;\n /** Placeholder of the address field for this type. */\n addressPlaceholder?: string;\n /** The app can look for servers of this type on the local network. */\n discoverable?: boolean;\n}\n\nexport interface AudioUiServerDiscovery {\n searchLabel: string;\n searchingLabel: string;\n connectLabel: string;\n /** Shown after a search that found nothing. */\n emptyLabel?: string;\n busy?: boolean;\n servers: Array<{ id: string; name: string; subtitle?: string }>;\n}\n\n/** Form shown above a library view, to connect a media server. */\nexport interface AudioUiServerForm {\n title: string;\n /** Server types to choose from; the first one is selected by default. */\n kinds?: AudioUiServerKind[];\n kindLabel?: string;\n addressPlaceholder: string;\n usernamePlaceholder: string;\n passwordPlaceholder: string;\n submitLabel: string;\n hint?: string;\n busy?: boolean;\n /** Servers found on the local network, for the kinds marked `discoverable`. */\n discovery?: AudioUiServerDiscovery;\n}\n\nexport interface AudioUiBrowseChip {\n id: string;\n label: string;\n count?: number;\n active?: boolean;\n}\n\nexport interface AudioUiBrowseSection {\n id: string;\n title: string;\n layout?: 'list' | 'cards';\n items: AudioUiListItem[];\n}\n\nexport interface AudioUiDeviceItem {\n id: string;\n name: string;\n subtitle?: string;\n active?: boolean;\n /** The play button's text, for devices where it does something else (another app: \"Transfer\"). */\n actionLabel?: string;\n /** False where there is nothing to stop (another app takes playback over for good). */\n stoppable?: boolean;\n}\n\nexport interface AudioUiPlaylistOption {\n id: string;\n name: string;\n trackCount?: number;\n}\n\nexport interface AudioUiLanguageOption {\n id: string;\n label: string;\n}\n\nexport type AudioUiStatusKind = 'info' | 'success' | 'error';\nexport type AudioUiPlaybackIntent = 'play' | 'pause';\nexport type AudioUiPanelTab = 'queue' | 'playlists' | 'devices' | 'lyrics';\n\n/** One line of lyrics; timed lines can be clicked to play from there, and the player follows them by itself. */\nexport interface AudioUiLyricsLine {\n text: string;\n timeSec?: number;\n}\n\n/** Lyrics of the playing track, timed when the source has them. */\nexport interface AudioUiLyricsPanel {\n title: string;\n /** Where they come from, or why there are none. */\n status?: string;\n lines: AudioUiLyricsLine[];\n searchLabel?: string;\n busy?: boolean;\n /** Prefix of the label of a clickable line, e.g. \"Play from\". */\n seekLabel?: string;\n}\n\nconst COLLECTION_VIEW_IDS = ['favorites', 'recents', 'playlists'];\n/** Views of the app rather than of the library, listed last. */\nconst APP_VIEW_IDS = ['settings'];\n\nconst VIEW_ICONS: Record<string, SmartPlayerIconName> = {\n home: 'home',\n tracks: 'music',\n albums: 'disc',\n artists: 'user',\n genres: 'tag',\n favorites: 'heart',\n recents: 'clock',\n playlists: 'list',\n servers: 'server',\n webradios: 'radio',\n settings: 'settings',\n};\n\nconst WAVEFORM_BARS = [\n 32, 48, 40, 62, 54, 72, 46, 38, 58, 80, 66, 50, 42, 60, 76, 88, 70, 56, 44, 64, 82, 94, 74, 60,\n 48, 68, 86, 78, 62, 50, 40, 58, 72, 90, 76, 64, 52, 44, 60, 74, 66, 54, 42, 50, 62, 48, 38, 30,\n];\n\n@Component({\n selector: 'ngxsp-audio-player-ui',\n standalone: true,\n imports: [CommonModule, SmartPlayerComponent, SmartPlayerIconComponent, SmartSettingsComponent, NgxspTimeSlider, NgxspVolumeControl],\n template: `\n <section\n class=\"ngxsp-wmp-shell\"\n [class.ngxsp-wmp-dragActive]=\"fileDragActive\"\n [class.ngxsp-wmp-browseMode]=\"!isHomeView\"\n [class.ngxsp-wmp-playing]=\"isPlaying\"\n [class.ngxsp-wmp-panelHidden]=\"!queuePanelOpen\"\n [class.ngxsp-wmp-compact]=\"compactMode !== 'full'\"\n [class.ngxsp-wmp-compactMini]=\"compactMode === 'mini'\"\n [class.ngxsp-wmp-compactBar]=\"compactMode === 'bar'\"\n [class.ngxsp-wmp-compactMiniLyrics]=\"compactMode === 'mini' && showCompactLyrics\"\n [class.ngxsp-wmp-compactBarLyrics]=\"compactMode === 'bar' && showCompactLyrics && activeLyricsIndex >= 0\"\n (dragenter)=\"onFileDragEnter($event)\"\n (dragover)=\"onFileDragOver($event)\"\n (dragleave)=\"onFileDragLeave($event)\"\n (drop)=\"onFileDrop($event)\"\n >\n @if (fileDragActive) {\n <div class=\"ngxsp-wmp-dropOverlay\" aria-hidden=\"true\">\n <span class=\"ngxsp-wmp-dropIcon\"><ngxsp-smart-icon name=\"folder\" /></span>\n <strong>{{ sourceDropTitle || sourceChangeTitle || sourceChangeLabel }}</strong>\n @if (sourceDropHint) {\n <span>{{ sourceDropHint }}</span>\n }\n </div>\n }\n\n @if (config) {\n <div class=\"ngxsp-wmp-engineMount\" aria-hidden=\"true\" inert>\n <ngx-smart-player\n [config]=\"config\"\n [plugins]=\"plugins\"\n [ports]=\"ports\"\n [engines]=\"engines\"\n [debug]=\"debug\"\n [startTimeSec]=\"startTimeSec\"\n [autoplayOnInit]=\"autoplayOnInit\"\n [playRequest]=\"playRequest\"\n [canPrev]=\"canPrev\"\n [canNext]=\"canNext\"\n [shuffleActive]=\"shuffleActive\"\n [shuffleLabel]=\"shuffleLabel\"\n [repeatMode]=\"repeatMode\"\n [repeatLabel]=\"repeatLabel\"\n [hasPlaylistControls]=\"hasPlaylistControls\"\n [mediaMode]=\"'audio'\"\n [castEnabled]=\"castEnabled\"\n (ended)=\"ended.emit()\"\n (videoSize)=\"videoSize.emit($event)\"\n (prev)=\"prev.emit()\"\n (next)=\"next.emit()\"\n (toggleShuffle)=\"toggleShuffle.emit()\"\n (cycleRepeat)=\"cycleRepeat.emit()\"\n (cast)=\"cast.emit()\"\n (subtitles)=\"subtitles.emit()\"\n (progress)=\"onPlayerProgress($event)\"\n (stateChange)=\"onPlayerStateChange($event)\"\n />\n </div>\n }\n\n <header class=\"ngxsp-wmp-titlebar\" data-tauri-drag-region>\n <div class=\"ngxsp-wmp-brand\">\n @if (brandLogoSrc) {\n <img class=\"ngxsp-wmp-brandLogo\" [src]=\"brandLogoSrc\" alt=\"\" width=\"26\" height=\"26\" />\n } @else {\n <span class=\"ngxsp-wmp-brandIcon\" aria-hidden=\"true\"><ngxsp-smart-icon name=\"music\" /></span>\n }\n <span class=\"ngxsp-wmp-brandName\">NGXSP Audio</span>\n </div>\n\n <label class=\"ngxsp-wmp-search\">\n <ngxsp-smart-icon name=\"search\" />\n <input type=\"search\" [placeholder]=\"searchPlaceholder\" [value]=\"searchTerm\" (input)=\"onSearchInput($event)\" [attr.aria-label]=\"searchLabel\" />\n </label>\n\n <div class=\"ngxsp-wmp-titleActions\">\n @if (statusMessage) {\n <div class=\"ngxsp-wmp-status\" [class.success]=\"statusKind === 'success'\" [class.error]=\"statusKind === 'error'\" [attr.role]=\"statusKind === 'error' ? 'alert' : 'status'\" [attr.aria-live]=\"statusKind === 'error' ? 'assertive' : 'polite'\" aria-atomic=\"true\" [title]=\"statusMessage\">\n {{ statusMessage }}\n </div>\n }\n <!-- The import action lives in the top bar, as in the video player. A folder is what\n builds the library, so it is the action wherever one can be loaded. -->\n @if (folderImportLabel) {\n <button class=\"ngxsp-wmp-sourceButton\" type=\"button\" [disabled]=\"libraryBusy\" [title]=\"folderImportLabel\" [attr.aria-label]=\"folderImportLabel\" (click)=\"addFolder.emit()\">\n <ngxsp-smart-icon name=\"folder\" />\n <span>{{ folderImportLabel }}</span>\n </button>\n } @else {\n <button class=\"ngxsp-wmp-sourceButton\" type=\"button\" [title]=\"sourceChangeTitle || sourceChangeLabel\" [attr.aria-label]=\"sourceChangeTitle || sourceChangeLabel\" (click)=\"audioFileInput.click()\">\n <ngxsp-smart-icon name=\"folder\" />\n <span>{{ sourceChangeLabel }}</span>\n </button>\n }\n <input #audioFileInput class=\"ngxsp-wmp-fileInput\" type=\"file\" [accept]=\"sourceChangeAccept\" aria-hidden=\"true\" tabindex=\"-1\" (change)=\"onSourceFileInput($event)\" />\n @if (languageOptions.length) {\n <div class=\"ngxsp-wmp-segmented ngxsp-wmp-languageSwitch\" role=\"group\" [attr.aria-label]=\"languageLabel\">\n @for (language of languageOptions; track language.id) {\n <button type=\"button\" [class.active]=\"language.id === activeLanguage\" [attr.aria-pressed]=\"language.id === activeLanguage\" (click)=\"languageChange.emit(language.id)\">\n {{ language.label }}\n </button>\n }\n </div>\n }\n <button class=\"ngxsp-wmp-iconButton\" type=\"button\" [class.active]=\"queuePanelOpen\" [attr.aria-pressed]=\"queuePanelOpen\" [title]=\"queueTitle\" [attr.aria-label]=\"queueTitle\" (click)=\"toggleQueuePanel()\">\n <ngxsp-smart-icon name=\"panel-right\" />\n </button>\n </div>\n </header>\n\n <aside class=\"ngxsp-wmp-rail\" [attr.aria-label]=\"libraryTitle\">\n @if (libraryViews.length) {\n <nav class=\"ngxsp-wmp-nav\" [attr.aria-label]=\"libraryViewsLabel\">\n @for (view of primaryViews; track view.id) {\n <button class=\"ngxsp-wmp-navItem\" [class.active]=\"view.active\" type=\"button\" [attr.aria-current]=\"view.active ? 'page' : null\" [attr.aria-label]=\"view.count !== undefined ? view.label + ' ' + view.count : view.label\" (click)=\"selectLibraryView.emit(view.id)\">\n <ngxsp-smart-icon [name]=\"viewIcon(view.id)\" />\n <span>{{ view.label }}</span>\n @if (view.count !== undefined) {\n <small>{{ view.count }}</small>\n }\n </button>\n }\n @if (collectionViews.length) {\n <span class=\"ngxsp-wmp-navDivider\" aria-hidden=\"true\"></span>\n @for (view of collectionViews; track view.id) {\n <button class=\"ngxsp-wmp-navItem\" [class.active]=\"view.active\" type=\"button\" [attr.aria-current]=\"view.active ? 'page' : null\" [attr.aria-label]=\"view.count !== undefined ? view.label + ' ' + view.count : view.label\" (click)=\"selectLibraryView.emit(view.id)\">\n <ngxsp-smart-icon [name]=\"viewIcon(view.id)\" />\n <span>{{ view.label }}</span>\n @if (view.count !== undefined) {\n <small>{{ view.count }}</small>\n }\n </button>\n }\n }\n @if (appViews.length) {\n <span class=\"ngxsp-wmp-navDivider\" aria-hidden=\"true\"></span>\n @for (view of appViews; track view.id) {\n <button class=\"ngxsp-wmp-navItem\" [class.active]=\"view.active\" type=\"button\" [attr.aria-current]=\"view.active ? 'page' : null\" [attr.aria-label]=\"view.label\" (click)=\"selectLibraryView.emit(view.id)\">\n <ngxsp-smart-icon [name]=\"viewIcon(view.id)\" />\n <span>{{ view.label }}</span>\n </button>\n }\n }\n </nav>\n }\n\n <div class=\"ngxsp-wmp-railTools\">\n <div class=\"ngxsp-wmp-libraryInfo\">\n <strong>{{ libraryTitle }}</strong>\n @if (libraryMeta) {\n <small>{{ libraryMeta }}</small>\n }\n @if (libraryStatus) {\n <small class=\"ngxsp-wmp-libraryStatus\" [class.busy]=\"libraryBusy\" role=\"status\" aria-live=\"polite\">{{ libraryStatus }}</small>\n }\n </div>\n </div>\n </aside>\n\n <section #libraryScroll class=\"ngxsp-wmp-main\" [attr.aria-label]=\"libraryContentTitle || libraryTitle\">\n @if (isHomeView) {\n <section class=\"ngxsp-wmp-nowPanel\" [attr.aria-label]=\"nowListeningLabel\">\n <div class=\"ngxsp-wmp-art ngxsp-wmp-cover\" [class.has-image]=\"!!artworkSrc(currentArtworkUrl)\" [attr.data-tone]=\"artTone(currentTrackId || currentTitle)\">\n @if (artworkSrc(currentArtworkUrl); as artworkUrl) {\n <img [src]=\"artworkUrl\" alt=\"\" (error)=\"markArtworkFailed(artworkUrl)\" />\n } @else {\n <span class=\"ngxsp-wmp-artNote\" aria-hidden=\"true\"><ngxsp-smart-icon name=\"music\" /></span>\n }\n </div>\n\n <div class=\"ngxsp-wmp-playerSurface\">\n @if (config) {\n <div class=\"ngxsp-wmp-nowCopy\">\n <span class=\"ngxsp-wmp-eyebrow\">\n @if (isPlaying) { <i class=\"ngxsp-wmp-liveDot\" aria-hidden=\"true\"></i> }\n {{ nowListeningLabel }}\n </span>\n <h1>{{ currentTitle || noTrackTitle }}</h1>\n <p>{{ currentSubtitle || readyLabel }}</p>\n @if (currentMeta) { <small>{{ currentMeta }}</small> }\n </div>\n <div class=\"ngxsp-wmp-nowActions\">\n <button class=\"ngxsp-wmp-primaryButton\" type=\"button\" [attr.aria-label]=\"isPlaying ? pauseLabel : playLabel\" (click)=\"togglePrimaryPlayback()\">\n @if (isPlaying) { <ngxsp-smart-icon name=\"pause\" /> } @else { <ngxsp-smart-icon name=\"play\" /> }\n <span>{{ isPlaying ? pauseLabel : playLabel }}</span>\n </button>\n <button class=\"ngxsp-wmp-iconButton outlined\" type=\"button\" [class.active]=\"favoriteActive\" [attr.aria-pressed]=\"favoriteActive\" [title]=\"favoriteActive ? favoriteActiveLabel : favoriteLabel\" [attr.aria-label]=\"favoriteActive ? favoriteActiveLabel : favoriteLabel\" (click)=\"toggleFavorite.emit(currentTrackId)\">\n <ngxsp-smart-icon name=\"heart\" />\n </button>\n <button class=\"ngxsp-wmp-iconButton outlined\" type=\"button\" [class.active]=\"shuffleActive\" [attr.aria-pressed]=\"shuffleActive\" [title]=\"shuffleLabel\" [attr.aria-label]=\"shuffleLabel\" (click)=\"toggleShuffle.emit()\">\n <ngxsp-smart-icon name=\"shuffle\" />\n </button>\n <button class=\"ngxsp-wmp-iconButton outlined\" type=\"button\" [class.active]=\"repeatMode !== 'off'\" [attr.aria-pressed]=\"repeatMode !== 'off'\" [title]=\"repeatLabel\" [attr.aria-label]=\"repeatLabel\" (click)=\"cycleRepeat.emit()\">\n <ngxsp-smart-icon [name]=\"repeatMode === 'one' ? 'repeat-one' : 'repeat'\" />\n </button>\n @if (revealFileLabel) {\n <button class=\"ngxsp-wmp-iconButton outlined\" type=\"button\" [title]=\"revealFileLabel\" [attr.aria-label]=\"revealFileLabel\" (click)=\"revealFile.emit(currentTrackId)\">\n <ngxsp-smart-icon name=\"folder\" />\n </button>\n }\n </div>\n <div class=\"ngxsp-wmp-nowOscillogram\" aria-hidden=\"true\">\n <div class=\"ngxsp-wmp-nowWaveform\">\n @for (bar of visualizerBars; track $index) {\n <span [class.played]=\"isBarPlayed($index)\" [style.height.%]=\"bar\"></span>\n }\n </div>\n <div class=\"ngxsp-wmp-nowProgressLine\">\n <i [style.width.%]=\"progressPercent\"></i>\n </div>\n <span class=\"ngxsp-wmp-nowTime\">\n <small>{{ elapsedLabel }}</small>\n <small>{{ displayDurationLabel }}</small>\n </span>\n </div>\n } @else {\n <div class=\"ngxsp-wmp-emptyPlayer\">\n <h1>{{ selectTrackTitle }}</h1>\n <p>{{ selectTrackBody }}</p>\n <button class=\"ngxsp-wmp-primaryButton\" type=\"button\" (click)=\"audioFileInput.click()\">\n <ngxsp-smart-icon name=\"folder\" />\n <span>{{ sourceChangeLabel }}</span>\n </button>\n </div>\n }\n </div>\n </section>\n }\n\n <section class=\"ngxsp-wmp-librarySurface\">\n <header class=\"ngxsp-wmp-sectionHeader\">\n @if (backLabel) {\n <button class=\"ngxsp-wmp-backButton\" type=\"button\" [attr.aria-label]=\"backLabel\" [title]=\"backLabel\" (click)=\"back.emit()\">\n <ngxsp-smart-icon name=\"chevron-left\" />\n <span>{{ backLabel }}</span>\n </button>\n }\n <span>{{ libraryEyebrow }}</span>\n @if (isHomeView) {\n <h2>{{ libraryContentTitle || libraryTitle }}</h2>\n } @else {\n <h1>{{ libraryContentTitle || libraryTitle }}</h1>\n }\n </header>\n <div class=\"ngxsp-wmp-sectionScroll\">\n @if (serverForm; as form) {\n <form class=\"ngxsp-wmp-stationForm\" (submit)=\"submitServer($event)\">\n <span class=\"ngxsp-wmp-stationTitle\">{{ form.title }}</span>\n @if (form.kinds && form.kinds.length > 1) {\n <select class=\"ngxsp-wmp-serverKind\" [value]=\"serverKindDraft || form.kinds[0].id\" (change)=\"onServerKindChange($event)\" [attr.aria-label]=\"form.kindLabel || form.title\">\n @for (kind of form.kinds; track kind.id) {\n <option [value]=\"kind.id\">{{ kind.label }}</option>\n }\n </select>\n }\n @let serverKind = selectedServerKind(form);\n <input type=\"text\" inputmode=\"url\" [value]=\"serverAddressDraft\" (input)=\"onServerAddressInput($event)\" [placeholder]=\"serverKind?.addressPlaceholder || form.addressPlaceholder\" [attr.aria-label]=\"serverKind?.addressPlaceholder || form.addressPlaceholder\" />\n @if (serverKind?.credentials !== false) {\n <input type=\"text\" autocomplete=\"username\" [value]=\"serverUsernameDraft\" (input)=\"onServerUsernameInput($event)\" [placeholder]=\"form.usernamePlaceholder\" [attr.aria-label]=\"form.usernamePlaceholder\" />\n <input type=\"password\" autocomplete=\"current-password\" [value]=\"serverPasswordDraft\" (input)=\"onServerPasswordInput($event)\" [placeholder]=\"form.passwordPlaceholder\" [attr.aria-label]=\"form.passwordPlaceholder\" />\n }\n <button class=\"ngxsp-wmp-smallButton primary\" type=\"submit\" [disabled]=\"form.busy || !serverAddressDraft.trim()\">{{ form.submitLabel }}</button>\n @if (form.discovery && serverKind?.discoverable) {\n <button class=\"ngxsp-wmp-smallButton\" type=\"button\" [disabled]=\"form.discovery.busy\" (click)=\"discoverServers.emit(serverKind!.id)\">{{ form.discovery.busy ? form.discovery.searchingLabel : form.discovery.searchLabel }}</button>\n }\n @if (form.hint) { <small class=\"ngxsp-wmp-stationHint\">{{ form.hint }}</small> }\n @if (form.discovery && serverKind?.discoverable && (form.discovery.servers.length || form.discovery.emptyLabel)) {\n <ul class=\"ngxsp-wmp-discovered\" [attr.aria-label]=\"form.discovery.searchLabel\">\n @for (server of form.discovery.servers; track server.id) {\n <li>\n <span><strong>{{ server.name }}</strong>@if (server.subtitle) { <small>{{ server.subtitle }}</small> }</span>\n <button class=\"ngxsp-wmp-smallButton\" type=\"button\" [disabled]=\"form.busy\" [attr.aria-label]=\"form.discovery.connectLabel + ' - ' + server.name\" (click)=\"connectDiscoveredServer.emit(server.id)\">{{ form.discovery.connectLabel }}</button>\n </li>\n } @empty {\n <li class=\"empty\">{{ form.discovery.emptyLabel }}</li>\n }\n </ul>\n }\n </form>\n }\n @if (stationForm; as form) {\n <form class=\"ngxsp-wmp-stationForm\" (submit)=\"submitStation($event)\">\n <span class=\"ngxsp-wmp-stationTitle\">{{ form.title }}</span>\n <input type=\"text\" [value]=\"stationNameDraft\" (input)=\"onStationNameInput($event)\" [placeholder]=\"form.namePlaceholder\" [attr.aria-label]=\"form.namePlaceholder\" />\n <input type=\"url\" inputmode=\"url\" [value]=\"stationUrlDraft\" (input)=\"onStationUrlInput($event)\" [placeholder]=\"form.urlPlaceholder\" [attr.aria-label]=\"form.urlPlaceholder\" />\n <button class=\"ngxsp-wmp-smallButton primary\" type=\"submit\" [disabled]=\"!stationUrlDraft.trim()\">{{ form.submitLabel }}</button>\n @if (form.hint) { <small class=\"ngxsp-wmp-stationHint\">{{ form.hint }}</small> }\n </form>\n }\n @if (settingsSections.length) {\n <ngxsp-settings [sections]=\"settingsSections\" (settingChange)=\"settingChange.emit($event)\" (settingAction)=\"settingAction.emit($event)\" />\n }\n @for (section of librarySections; track section.id) {\n <section class=\"ngxsp-wmp-section\">\n @if (section.title !== (libraryContentTitle || libraryTitle)) {\n @if (isHomeView) { <h3>{{ section.title }}</h3> } @else { <h2>{{ section.title }}</h2> }\n }\n @if (section.layout === 'cards') {\n <div class=\"ngxsp-wmp-cardGrid\">\n @for (item of section.items; track item.id) {\n <div class=\"ngxsp-wmp-card\" [class.active]=\"item.active\">\n <button class=\"ngxsp-wmp-cardSelect\" type=\"button\" [attr.aria-current]=\"item.active ? 'true' : null\" (click)=\"selectLibraryItem.emit(item.id)\">\n <span class=\"ngxsp-wmp-thumb ngxsp-wmp-cover\" [class.has-image]=\"!!artworkSrc(item.artworkUrl)\" [attr.data-tone]=\"artTone(item.id)\">\n @if (artworkSrc(item.artworkUrl); as artworkUrl) {\n <img [src]=\"artworkUrl\" alt=\"\" (error)=\"markArtworkFailed(artworkUrl)\" />\n } @else {\n <ngxsp-smart-icon name=\"music\" />\n }\n @if (showResumeProgress && item.progressPercent && item.progressPercent > 0) {\n <span class=\"ngxsp-wmp-rowProgress\" aria-hidden=\"true\"><i [style.width.%]=\"item.progressPercent\"></i></span>\n }\n </span>\n <span class=\"ngxsp-wmp-cardCopy\">\n <strong>{{ item.title }}</strong>\n @if (item.subtitle) { <small>{{ item.subtitle }}</small> }\n @if (item.meta) { <em>{{ item.meta }}</em> }\n </span>\n </button>\n <span class=\"ngxsp-wmp-cardPlaySlot\">\n <button class=\"ngxsp-wmp-cardPlay\" type=\"button\" [title]=\"playLabel\" [attr.aria-label]=\"playLabel + ' ' + item.title\" (click)=\"playItem(item.id)\">\n @if (item.active && isPlaying) { <ngxsp-smart-icon name=\"waveform\" /> } @else { <ngxsp-smart-icon name=\"play\" /> }\n </button>\n </span>\n <span class=\"ngxsp-wmp-cardActions\">\n <button class=\"ngxsp-wmp-cardAction\" type=\"button\" [title]=\"queueNextLabel\" [attr.aria-label]=\"queueNextLabel + ' ' + item.title\" (click)=\"addLibraryItemNext.emit(item.id)\">\n <ngxsp-smart-icon name=\"next\" />\n </button>\n <button class=\"ngxsp-wmp-cardAction\" type=\"button\" [title]=\"queueAddLabel\" [attr.aria-label]=\"queueAddLabel + ' ' + item.title\" (click)=\"addLibraryItemToQueue.emit(item.id)\">\n <ngxsp-smart-icon name=\"playlist-plus\" />\n </button>\n @if (ringtoneAvailable) {\n <button class=\"ngxsp-wmp-cardAction\" type=\"button\" [title]=\"ringtoneLabel\" [attr.aria-label]=\"ringtoneLabel + ' - ' + item.title\" (click)=\"makeRingtone.emit(item.id)\">\n <ngxsp-smart-icon name=\"bell\" />\n </button>\n }\n @if (lockAvailable) {\n <button\n class=\"ngxsp-wmp-cardAction\"\n type=\"button\"\n [class.active]=\"item.locked\"\n [attr.aria-pressed]=\"!!item.locked\"\n [title]=\"item.locked ? unlockLabel : lockLabel\"\n [attr.aria-label]=\"(item.locked ? unlockLabel : lockLabel) + ' - ' + item.title\"\n (click)=\"toggleLock.emit(item.id)\"\n >\n <ngxsp-smart-icon [name]=\"item.locked ? 'check' : 'tag'\" />\n </button>\n }\n @if (isRemovable(item.id)) {\n <button class=\"ngxsp-wmp-cardAction danger\" type=\"button\" [title]=\"removeItemLabel\" [attr.aria-label]=\"removeItemLabel + ' - ' + item.title\" (click)=\"removeLibraryItem.emit(item.id)\">\n <ngxsp-smart-icon name=\"close\" />\n </button>\n }\n </span>\n </div>\n }\n </div>\n } @else {\n <div class=\"ngxsp-wmp-table\" role=\"table\" [attr.aria-label]=\"tracksLabel\" [style.--wmp-actions-w]=\"rowActionsWidth(section.items)\">\n <div class=\"ngxsp-wmp-tableHead\" role=\"row\">\n <span role=\"columnheader\">#</span>\n <span role=\"columnheader\">{{ titleColumnLabel }}</span>\n <span role=\"columnheader\">{{ artistColumnLabel }}</span>\n <span role=\"columnheader\">{{ albumColumnLabel }}</span>\n <span role=\"columnheader\" class=\"ngxsp-wmp-timeHead\" [attr.aria-label]=\"timeColumnLabel\" [title]=\"timeColumnLabel\"><ngxsp-smart-icon name=\"clock\" /></span>\n </div>\n @for (item of section.items; track item.id; let index = $index) {\n <div class=\"ngxsp-wmp-trackRow\" [class.active]=\"item.active\" role=\"row\">\n <button class=\"ngxsp-wmp-trackSelect\" type=\"button\" [attr.aria-current]=\"item.active ? 'true' : null\" (click)=\"selectLibraryItem.emit(item.id)\">\n <span class=\"ngxsp-wmp-trackIndex\">\n @if (item.active) { <ngxsp-smart-icon name=\"waveform\" /> } @else { <span class=\"ngxsp-wmp-indexNumber\">{{ index + 1 }}</span><ngxsp-smart-icon class=\"ngxsp-wmp-indexPlay\" name=\"play\" /> }\n </span>\n <span class=\"ngxsp-wmp-trackTitle\">\n <span class=\"ngxsp-wmp-rowIcon ngxsp-wmp-cover\" [class.has-image]=\"!!artworkSrc(item.artworkUrl)\" [attr.data-tone]=\"artTone(item.id)\">\n @if (artworkSrc(item.artworkUrl); as artworkUrl) {\n <img [src]=\"artworkUrl\" alt=\"\" (error)=\"markArtworkFailed(artworkUrl)\" />\n } @else {\n <ngxsp-smart-icon name=\"music\" />\n }\n </span>\n <span class=\"ngxsp-wmp-rowCopy\">\n <strong>{{ item.title }}</strong>\n @if (item.genre) { <small>{{ item.genre }}</small> }\n </span>\n </span>\n <span class=\"ngxsp-wmp-trackCell\">{{ artistOf(item) }}</span>\n <span class=\"ngxsp-wmp-trackCell ngxsp-wmp-albumCell\">{{ albumOf(item) }}</span>\n <span class=\"ngxsp-wmp-trackTime\">{{ durationOf(item) }}</span>\n </button>\n <span class=\"ngxsp-wmp-rowActions\">\n <button class=\"ngxsp-wmp-rowFavorite\" [class.active]=\"item.favorite\" type=\"button\" [attr.aria-pressed]=\"!!item.favorite\" [title]=\"item.favorite ? favoriteActiveLabel : favoriteLabel\" [attr.aria-label]=\"item.favorite ? favoriteActiveLabel : favoriteLabel\" (click)=\"toggleFavorite.emit(item.id)\">\n <ngxsp-smart-icon name=\"heart\" />\n </button>\n <button class=\"ngxsp-wmp-rowQueueAction\" type=\"button\" [title]=\"queueNextLabel\" [attr.aria-label]=\"queueNextLabel + ' ' + item.title\" (click)=\"addLibraryItemNext.emit(item.id)\">\n <ngxsp-smart-icon name=\"next\" />\n </button>\n <button class=\"ngxsp-wmp-rowQueueAction\" type=\"button\" [title]=\"queueAddLabel\" [attr.aria-label]=\"queueAddLabel + ' ' + item.title\" (click)=\"addLibraryItemToQueue.emit(item.id)\">\n <ngxsp-smart-icon name=\"playlist-plus\" />\n </button>\n @if (hasPlaylists) {\n <button class=\"ngxsp-wmp-rowQueueAction\" type=\"button\" [class.active]=\"playlistTargetTrack?.id === item.id\" [title]=\"addToPlaylistLabel\" [attr.aria-label]=\"addToPlaylistLabel + ' - ' + item.title\" (click)=\"requestPlaylistTarget.emit(item.id)\">\n <ngxsp-smart-icon name=\"list\" />\n </button>\n }\n @if (ringtoneAvailable) {\n <button class=\"ngxsp-wmp-rowQueueAction\" type=\"button\" [title]=\"ringtoneLabel\" [attr.aria-label]=\"ringtoneLabel + ' - ' + item.title\" (click)=\"makeRingtone.emit(item.id)\">\n <ngxsp-smart-icon name=\"bell\" />\n </button>\n }\n @if (lockAvailable) {\n <button\n class=\"ngxsp-wmp-rowQueueAction\"\n type=\"button\"\n [class.active]=\"item.locked\"\n [attr.aria-pressed]=\"!!item.locked\"\n [title]=\"item.locked ? unlockLabel : lockLabel\"\n [attr.aria-label]=\"(item.locked ? unlockLabel : lockLabel) + ' - ' + item.title\"\n (click)=\"toggleLock.emit(item.id)\"\n >\n <ngxsp-smart-icon [name]=\"item.locked ? 'check' : 'tag'\" />\n </button>\n }\n @if (isRemovable(item.id)) {\n <button class=\"ngxsp-wmp-rowQueueAction danger\" type=\"button\" [title]=\"removeItemLabel\" [attr.aria-label]=\"removeItemLabel + ' - ' + item.title\" (click)=\"removeLibraryItem.emit(item.id)\">\n <ngxsp-smart-icon name=\"close\" />\n </button>\n }\n </span>\n @if (showResumeProgress && item.progressPercent && item.progressPercent > 0) {\n <span class=\"ngxsp-wmp-rowProgress\" aria-hidden=\"true\"><i [style.width.%]=\"item.progressPercent\"></i></span>\n }\n </div>\n }\n </div>\n }\n </section>\n } @empty {\n @if (!settingsSections.length) {\n <div class=\"ngxsp-wmp-emptyLibrary\">\n <ngxsp-smart-icon name=\"music\" />\n <span>{{ emptyLibraryLabel }}</span>\n </div>\n }\n }\n </div>\n </section>\n </section>\n\n <aside\n class=\"ngxsp-wmp-playlist\"\n #panel\n tabindex=\"-1\"\n [class.sheet]=\"panelSheetOpen\"\n [attr.role]=\"panelSheetOpen ? 'dialog' : null\"\n [attr.aria-modal]=\"panelSheetOpen ? 'true' : null\"\n [attr.aria-label]=\"queueTitle\"\n (keydown.escape)=\"closePanelSheet()\"\n >\n @if (panelSheetOpen) {\n <div class=\"ngxsp-wmp-sheetHeader\">\n <strong>{{ currentTitle || noTrackTitle }}</strong>\n <button class=\"ngxsp-wmp-smallButton\" type=\"button\" (click)=\"closePanelSheet()\">{{ closeLabel }}</button>\n </div>\n <div class=\"ngxsp-wmp-sheetToggles\" role=\"group\" [attr.aria-label]=\"queueTitle\">\n @for (panel of panelSwitches; track panel.id) {\n <button class=\"ngxsp-wmp-iconButton\" type=\"button\" [class.active]=\"isPanelOpen(panel.id)\" [attr.aria-pressed]=\"isPanelOpen(panel.id)\" [title]=\"panel.label\" [attr.aria-label]=\"panel.label\" (click)=\"togglePanel(panel.id)\">\n <ngxsp-smart-icon [name]=\"panel.icon\" />\n </button>\n }\n </div>\n }\n <div class=\"ngxsp-wmp-panelStack\">\n @if (isPanelOpen('queue')) {\n <section class=\"ngxsp-wmp-stackItem\" [class.collapsed]=\"isPanelCollapsed('queue')\">\n <header class=\"ngxsp-wmp-stackHead\">\n <strong>{{ queueTitle }}</strong>\n <button class=\"ngxsp-wmp-stackIcon\" type=\"button\" [attr.aria-expanded]=\"!isPanelCollapsed('queue')\" [attr.aria-label]=\"queueTitle\" (click)=\"togglePanelCollapsed('queue')\">\n <ngxsp-smart-icon [name]=\"isPanelCollapsed('queue') ? 'chevron-down' : 'chevron-up'\" />\n </button>\n <button class=\"ngxsp-wmp-stackIcon\" type=\"button\" [title]=\"closeLabel\" [attr.aria-label]=\"closeLabel\" (click)=\"togglePanel('queue')\">\n <ngxsp-smart-icon name=\"close\" />\n </button>\n </header>\n @if (!isPanelCollapsed('queue')) {\n <div class=\"ngxsp-wmp-sectionHeader slim\">\n <span>{{ queueEyebrow }}</span>\n <strong>{{ queueItems.length }} {{ tracksCountLabel }}</strong>\n </div>\n <div class=\"ngxsp-wmp-queueList\" #queueList>\n @for (item of queueItems; track item.id) {\n <button class=\"ngxsp-wmp-queueItem\" [class.active]=\"item.active\" type=\"button\" [attr.aria-current]=\"item.active ? 'true' : null\" (click)=\"selectQueueItem.emit(item.id)\">\n <span class=\"ngxsp-wmp-queueCover ngxsp-wmp-cover\" [class.has-image]=\"!!artworkSrc(item.artworkUrl)\" [attr.data-tone]=\"artTone(item.id)\">\n @if (artworkSrc(item.artworkUrl); as artworkUrl) {\n <img [src]=\"artworkUrl\" alt=\"\" (error)=\"markArtworkFailed(artworkUrl)\" />\n } @else {\n <ngxsp-smart-icon name=\"music\" />\n }\n @if (item.active) {\n <span class=\"ngxsp-wmp-queueNow\" aria-hidden=\"true\"><ngxsp-smart-icon [name]=\"isPlaying ? 'waveform' : 'pause'\" /></span>\n }\n </span>\n <span class=\"ngxsp-wmp-rowCopy\">\n <strong>{{ item.title }}</strong>\n @if (item.subtitle) { <small>{{ item.subtitle }}</small> }\n @if (item.favorite || item.lastPlayedLabel) {\n <span class=\"ngxsp-wmp-rowBadges\">\n @if (item.favorite) {\n <em class=\"favorite\"><ngxsp-smart-icon name=\"heart\" /> {{ favoritesLabel }}</em>\n }\n @if (item.lastPlayedLabel) {\n <em>{{ item.lastPlayedLabel }}</em>\n }\n </span>\n }\n </span>\n @if (item.meta) { <span class=\"ngxsp-wmp-rowMeta\">{{ item.meta }}</span> }\n </button>\n } @empty {\n <div class=\"ngxsp-wmp-emptyLibrary\">{{ emptyQueueLabel }}</div>\n }\n </div>\n }\n </section>\n }\n @if (isPanelOpen('lyrics') && !!lyricsPanel) {\n <section class=\"ngxsp-wmp-stackItem\" [class.collapsed]=\"isPanelCollapsed('lyrics')\">\n <header class=\"ngxsp-wmp-stackHead\">\n <strong>{{ lyricsTitle }}</strong>\n <button class=\"ngxsp-wmp-stackIcon\" type=\"button\" [attr.aria-expanded]=\"!isPanelCollapsed('lyrics')\" [attr.aria-label]=\"lyricsTitle\" (click)=\"togglePanelCollapsed('lyrics')\">\n <ngxsp-smart-icon [name]=\"isPanelCollapsed('lyrics') ? 'chevron-down' : 'chevron-up'\" />\n </button>\n <button class=\"ngxsp-wmp-stackIcon\" type=\"button\" [title]=\"closeLabel\" [attr.aria-label]=\"closeLabel\" (click)=\"togglePanel('lyrics')\">\n <ngxsp-smart-icon name=\"close\" />\n </button>\n </header>\n @if (!isPanelCollapsed('lyrics')) {\n @if (lyricsPanel; as lyrics) {\n <section class=\"ngxsp-wmp-lyrics\" [attr.aria-label]=\"lyrics.title\" [attr.aria-busy]=\"lyrics.busy ? 'true' : null\">\n <div class=\"ngxsp-wmp-sectionHeader slim\">\n <strong>{{ currentTitle }}</strong>\n @if (lyrics.searchLabel) {\n <button class=\"ngxsp-wmp-smallButton\" type=\"button\" [disabled]=\"lyrics.busy\" (click)=\"refreshLyrics.emit()\">{{ lyrics.searchLabel }}</button>\n }\n </div>\n @if (lyrics.status) { <p class=\"ngxsp-wmp-lyricsStatus\">{{ lyrics.status }}</p> }\n <div class=\"ngxsp-wmp-lyricsLines\" #lyricsLines>\n @for (line of lyrics.lines; track $index) {\n @if (line.timeSec !== undefined) {\n <button type=\"button\" class=\"ngxsp-wmp-lyricsLine\" [class.active]=\"$index === activeLyricsIndex\" [attr.aria-current]=\"$index === activeLyricsIndex ? 'true' : null\" [attr.aria-label]=\"(lyrics.seekLabel ? lyrics.seekLabel + ' - ' : '') + line.text\" (click)=\"playFromLyrics(line.timeSec)\">{{ line.text || '♪' }}</button>\n } @else {\n <p class=\"ngxsp-wmp-lyricsLine plain\">{{ line.text }}</p>\n }\n }\n </div>\n </section>\n }\n }\n </section>\n }\n @if (isPanelOpen('devices') && showDeviceButton) {\n <section class=\"ngxsp-wmp-stackItem\" [class.collapsed]=\"isPanelCollapsed('devices')\">\n <header class=\"ngxsp-wmp-stackHead\">\n <strong>{{ devicesLabel }}</strong>\n <button class=\"ngxsp-wmp-stackIcon\" type=\"button\" [attr.aria-expanded]=\"!isPanelCollapsed('devices')\" [attr.aria-label]=\"devicesLabel\" (click)=\"togglePanelCollapsed('devices')\">\n <ngxsp-smart-icon [name]=\"isPanelCollapsed('devices') ? 'chevron-down' : 'chevron-up'\" />\n </button>\n <button class=\"ngxsp-wmp-stackIcon\" type=\"button\" [title]=\"closeLabel\" [attr.aria-label]=\"closeLabel\" (click)=\"togglePanel('devices')\">\n <ngxsp-smart-icon name=\"close\" />\n </button>\n </header>\n @if (!isPanelCollapsed('devices')) {\n <section class=\"ngxsp-wmp-devices\">\n <div class=\"ngxsp-wmp-sectionHeader slim\">\n <strong>{{ remotePlaybackLabel }}</strong>\n <button class=\"ngxsp-wmp-smallButton\" type=\"button\" (click)=\"refreshDevices.emit()\">{{ refreshLabel }}</button>\n </div>\n @for (device of deviceItems; track device.id) {\n <div class=\"ngxsp-wmp-device\" [class.active]=\"device.active\">\n <span class=\"ngxsp-wmp-targetIcon\" aria-hidden=\"true\"><ngxsp-smart-icon [name]=\"device.active ? 'devices-active' : 'devices'\" /></span>\n <span class=\"ngxsp-wmp-rowCopy\">\n <strong>{{ device.name }}</strong>\n @if (device.subtitle) { <small>{{ device.subtitle }}</small> }\n </span>\n <span class=\"ngxsp-wmp-deviceActions\">\n <button class=\"ngxsp-wmp-smallButton\" type=\"button\" [attr.aria-label]=\"(device.actionLabel ?? playLabel) + ' - ' + device.name\" (click)=\"playOnDevice.emit(device.id)\">{{ device.actionLabel ?? playLabel }}</button>\n @if (device.stoppable !== false) {\n <button class=\"ngxsp-wmp-smallButton\" type=\"button\" [attr.aria-label]=\"stopLabel + ' - ' + device.name\" (click)=\"stopOnDevice.emit(device.id)\">{{ stopLabel }}</button>\n }\n </span>\n </div>\n } @empty {\n <div class=\"ngxsp-wmp-emptyLibrary\">{{ emptyDevicesLabel }}</div>\n }\n </section>\n }\n </section>\n }\n @if (isPanelOpen('playlists')) {\n <section class=\"ngxsp-wmp-stackItem\" [class.collapsed]=\"isPanelCollapsed('playlists')\">\n <header class=\"ngxsp-wmp-stackHead\">\n <strong>{{ playlistsLabel }}</strong>\n <button class=\"ngxsp-wmp-stackIcon\" type=\"button\" [attr.aria-expanded]=\"!isPanelCollapsed('playlists')\" [attr.aria-label]=\"playlistsLabel\" (click)=\"togglePanelCollapsed('playlists')\">\n <ngxsp-smart-icon [name]=\"isPanelCollapsed('playlists') ? 'chevron-down' : 'chevron-up'\" />\n </button>\n <button class=\"ngxsp-wmp-stackIcon\" type=\"button\" [title]=\"closeLabel\" [attr.aria-label]=\"closeLabel\" (click)=\"togglePanel('playlists')\">\n <ngxsp-smart-icon name=\"close\" />\n </button>\n </header>\n @if (!isPanelCollapsed('playlists')) {\n <section class=\"ngxsp-wmp-management\">\n <div class=\"ngxsp-wmp-inlineForm\">\n <input [value]=\"playlistDraftName\" (input)=\"onPlaylistDraftInput($event)\" (keydown.enter)=\"submitCreatePlaylist()\" type=\"text\" [placeholder]=\"newPlaylistPlaceholder\" [attr.aria-label]=\"newPlaylistPlaceholder\" />\n <button class=\"ngxsp-wmp-smallButton primary\" type=\"button\" (click)=\"submitCreatePlaylist()\" [disabled]=\"!playlistDraftName.trim()\">{{ createLabel }}</button>\n </div>\n @if (playlistTargetTrack; as target) {\n <div class=\"ngxsp-wmp-targetBanner\">\n <span>{{ playlistTargetLabel }}<strong>{{ target.title }}</strong></span>\n <button class=\"ngxsp-wmp-smallButton\" type=\"button\" (click)=\"cancelPlaylistTarget.emit()\">{{ cancelLabel }}</button>\n </div>\n }\n <div class=\"ngxsp-wmp-targets\">\n @for (playlist of playlistOptions; track playlist.id) {\n <div class=\"ngxsp-wmp-target\">\n <div class=\"ngxsp-wmp-targetMain\">\n <span class=\"ngxsp-wmp-targetIcon\" aria-hidden=\"true\"><ngxsp-smart-icon name=\"list\" /></span>\n <span class=\"ngxsp-wmp-rowCopy\">\n <strong>{{ playlist.name }}</strong>\n @if (playlist.trackCount !== undefined) { <small>{{ playlist.trackCount }} {{ tracksCountLabel }}</small> }\n </span>\n @if (playlistTargetTrack || currentTrackAvailable) {\n <button class=\"ngxsp-wmp-smallButton\" type=\"button\" [attr.aria-label]=\"addLabel + ' - ' + playlist.name\" (click)=\"addToPlaylist(playlist.id)\">\n <ngxsp-smart-icon name=\"plus\" />\n <span>{{ addLabel }}</span>\n </button>\n }\n </div>\n @if (editingPlaylistId === playlist.id) {\n <div class=\"ngxsp-wmp-inlineForm\">\n <input [value]=\"renameDraftName\" (input)=\"onRenameDraftInput($event)\" (keydown.enter)=\"submitRenamePlaylist()\" type=\"text\" [placeholder]=\"renamePlaylistPlaceholder\" [attr.aria-label]=\"renamePlaylistPlaceholder\" />\n <button class=\"ngxsp-wmp-smallButton primary\" type=\"button\" (click)=\"submitRenamePlaylist()\" [disabled]=\"!renameDraftName.trim()\">{{ saveLabel }}</button>\n <button class=\"ngxsp-wmp-smallButton\" type=\"button\" (click)=\"cancelRenamePlaylist()\">{{ cancelLabel }}</button>\n </div>\n } @else {\n <div class=\"ngxsp-wmp-targetActions\">\n <button type=\"button\" (click)=\"startRenamePlaylist(playlist.id, playlist.name)\">{{ renameLabel }}</button>\n <button type=\"button\" class=\"danger\" (click)=\"deletePlaylist.emit(playlist.id)\">{{ deleteLabel }}</button>\n </div>\n }\n </div>\n } @empty {\n <div class=\"ngxsp-wmp-emptyLibrary\">{{ emptyPlaylistTargetsLabel }}</div>\n }\n </div>\n @if (!playlistTargetTrack && !currentTrackAvailable && playlistOptions.length) {\n <div class=\"ngxsp-wmp-emptyLibrary\">{{ selectTrackForPlaylistLabel }}</div>\n }\n </section>\n }\n </section>\n }\n </div>\n </aside>\n\n <footer class=\"ngxsp-wmp-transport\" [attr.aria-label]=\"transportLabel\">\n <div class=\"ngxsp-wmp-miniNow\">\n <span class=\"ngxsp-wmp-miniArt ngxsp-wmp-cover\" [class.has-image]=\"!!artworkSrc(currentArtworkUrl)\" [attr.data-tone]=\"artTone(currentTrackId || currentTitle)\" aria-hidden=\"true\">\n @if (artworkSrc(currentArtworkUrl); as artworkUrl) {\n <img [src]=\"artworkUrl\" alt=\"\" (error)=\"markArtworkFailed(artworkUrl)\" />\n } @else {\n <ngxsp-smart-icon name=\"music\" />\n }\n </span>\n <span class=\"ngxsp-wmp-miniCopy\">\n <strong>{{ currentTitle || noTrackTitle }}</strong>\n <small>{{ currentSubtitle || currentMeta || readyLabel }}</small>\n </span>\n <button class=\"ngxsp-wmp-iconButton\" type=\"button\" [class.active]=\"favoriteActive\" [attr.aria-pressed]=\"favoriteActive\" [title]=\"favoriteActive ? favoriteActiveLabel : favoriteLabel\" [attr.aria-label]=\"favoriteActive ? favoriteActiveLabel : favoriteLabel\" (click)=\"toggleFavorite.emit(currentTrackId)\">\n <ngxsp-smart-icon name=\"heart\" />\n </button>\n <!-- Phones only: the panel is a sheet opened from here instead of a block stacked under the page. -->\n <button class=\"ngxsp-wmp-iconButton ngxsp-wmp-sheetButton\" #sheetButton type=\"button\" [attr.aria-expanded]=\"panelSheetOpen\" [title]=\"queueTitle\" [attr.aria-label]=\"queueTitle\" (click)=\"openPanelSheet()\">\n <ngxsp-smart-icon name=\"list\" />\n </button>\n </div>\n @if (compactMode === 'mini' && showCompactLyrics) {\n <!-- The mini window's lyrics: the whole text, the line being sung in sight. -->\n <div class=\"ngxsp-wmp-compactLyrics\" #compactLyricsLines [attr.aria-label]=\"compactLyricsLabel\">\n @for (line of lyricsPanel!.lines; track $index) {\n @if (line.timeSec !== undefined) {\n <button type=\"button\" class=\"ngxsp-wmp-compactLyricsLine\" [class.active]=\"$index === activeLyricsIndex\" [attr.aria-current]=\"$index === activeLyricsIndex ? 'true' : null\" (click)=\"playFromLyrics(line.timeSec)\">{{ line.text || '♪' }}</button>\n } @else {\n <p class=\"ngxsp-wmp-compactLyricsLine plain\">{{ line.text }}</p>\n }\n }\n </div>\n }\n @if (compactMode === 'bar' && showCompactLyrics && activeLyricsIndex >= 0) {\n <!-- The bottom strip's lyrics: the line being sung, and the next one. -->\n <div class=\"ngxsp-wmp-barLyrics\" [attr.aria-label]=\"compactLyricsLabel\">\n <strong>{{ lyricsPanel!.lines[activeLyricsIndex].text || '♪' }}</strong>\n @if (lyricsPanel!.lines[activeLyricsIndex + 1]; as next) { <span>{{ next.text }}</span> }\n </div>\n }\n\n <div class=\"ngxsp-wmp-transportCenter\">\n <div class=\"ngxsp-wmp-transportButtons\">\n <button class=\"ngxsp-wmp-iconButton\" type=\"button\" [class.active]=\"shuffleActive\" [attr.aria-pressed]=\"shuffleActive\" [title]=\"shuffleLabel\" [attr.aria-label]=\"shuffleLabel\" (click)=\"toggleShuffle.emit()\">\n <ngxsp-smart-icon name=\"shuffle\" />\n </button>\n <button class=\"ngxsp-wmp-iconButton\" type=\"button\" [disabled]=\"!canPrev\" [title]=\"previousLabel\" [attr.aria-label]=\"previousLabel\" (click)=\"prev.emit()\">\n <ngxsp-smart-icon name=\"prev\" />\n </button>\n <button class=\"ngxsp-wmp-playButton\" type=\"button\" [attr.aria-label]=\"isPlaying ? pauseLabel : playLabel\" [title]=\"isPlaying ? pauseLabel : playLabel\" (click)=\"togglePrimaryPlayback()\">\n @if (isPlaying) { <ngxsp-smart-icon name=\"pause\" /> } @else { <ngxsp-smart-icon name=\"play\" /> }\n </button>\n <button class=\"ngxsp-wmp-iconButton\" type=\"button\" [disabled]=\"!canNext\" [title]=\"nextLabel\" [attr.aria-label]=\"nextLabel\" (click)=\"next.emit()\">\n <ngxsp-smart-icon name=\"next\" />\n </button>\n <button class=\"ngxsp-wmp-iconButton\" type=\"button\" [class.active]=\"repeatMode !== 'off'\" [attr.aria-pressed]=\"repeatMode !== 'off'\" [title]=\"repeatLabel\" [attr.aria-label]=\"repeatLabel\" (click)=\"cycleRepeat.emit()\">\n <ngxsp-smart-icon [name]=\"repeatMode === 'one' ? 'repeat-one' : 'repeat'\" />\n </button>\n </div>\n <div class=\"ngxsp-wmp-seekRow\">\n <small>{{ elapsedLabel }}</small>\n <ngxsp-time-slider\n class=\"ngxsp-wmp-seek\"\n [currentTime]=\"currentTimeSec\"\n [duration]=\"durationSec\"\n [profile]=\"'audio'\"\n [disabled]=\"!config || durationSec <= 0\"\n [ariaLabel]=\"seekLabel\"\n (seek)=\"seekTo($event)\"\n />\n <small>{{ displayDurationLabel }}</small>\n </div>\n </div>\n\n <div class=\"ngxsp-wmp-transportModes\">\n @for (panel of panelSwitches; track panel.id) {\n <button class=\"ngxsp-wmp-iconButton\" type=\"button\" [class.ngxsp-wmp-devicesButton]=\"panel.id === 'devices'\" [class.active]=\"isPanelShowing(panel.id)\" [attr.aria-pressed]=\"isPanelShowing(panel.id)\" [title]=\"panel.label\" [attr.aria-label]=\"panel.label\" (click)=\"togglePanelFromBar(panel.id)\">\n <ngxsp-smart-icon [name]=\"panel.icon\" />\n </button>\n }\n @if (compactModes && compactMode === 'full') {\n <button class=\"ngxsp-wmp-iconButton ngxsp-wmp-windowButton\" type=\"button\" [title]=\"compactMiniLabel\" [attr.aria-label]=\"compactMiniLabel\" (click)=\"compactModeChange.emit('mini')\">\n <ngxsp-smart-icon name=\"window-mini\" />\n </button>\n }\n <ngxsp-volume-control\n class=\"ngxsp-wmp-volumeControl ngxsp-wmp-footerVolume\"\n [volume]=\"outputVolume / 100\"\n [step]=\"0.05\"\n [volumeLabel]=\"outputVolumeLabel\"\n [muteLabel]=\"outputMuteLabel\"\n [unmuteLabel]=\"outputUnmuteLabel\"\n (muteToggle)=\"outputMuteToggle.emit()\"\n (volumeChange)=\"onOutputVolumeRatioChange($event)\"\n />\n @if (compactMode !== 'full') {\n <span class=\"ngxsp-wmp-compactActions\">\n @if (hasCompactLyrics) {\n <button type=\"button\" [class.active]=\"compactLyrics\" [attr.aria-pressed]=\"compactLyrics\" [title]=\"compactLyricsLabel\" [attr.aria-label]=\"compactLyricsLabel\" (click)=\"compactLyricsToggle.emit()\"><ngxsp-smart-icon name=\"lyrics\" /></button>\n }\n @if (compactMode === 'mini') {\n <button type=\"button\" [title]=\"compactBarLabel\" [attr.aria-label]=\"compactBarLabel\" (click)=\"compactModeChange.emit('bar')\"><ngxsp-smart-icon name=\"window-bar\" /></button>\n } @else {\n <button type=\"button\" [title]=\"compactMiniLabel\" [attr.aria-label]=\"compactMiniLabel\" (click)=\"compactModeChange.emit('mini')\"><ngxsp-smart-icon name=\"window-mini\" /></button>\n }\n <button type=\"button\" [title]=\"compactRestoreLabel\" [attr.aria-label]=\"compactRestoreLabel\" (click)=\"compactModeChange.emit('full')\"><ngxsp-smart-icon name=\"window-restore\" /></button>\n </span>\n }\n </div>\n </footer>\n </section>\n`,\n styles: [`\n :host{\n display:block;\n height:100%;\n min-height:0;\n color:var(--nsp-text, #ededf0);\n font-family:var(--nsp-font, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Ubuntu, sans-serif);\n font-size:13px;\n line-height:1.4;\n }\n .ngxsp-wmp-shell{\n --wmp-bg:var(--nsp-bg, #0d0e11);\n --wmp-s0:var(--nsp-surface-0, #121317);\n --wmp-s1:var(--nsp-surface-1, #17181d);\n --wmp-s2:var(--nsp-surface-2, #1e1f25);\n --wmp-s3:var(--nsp-surface-3, #26272e);\n --wmp-line:var(--nsp-line, rgb(255 255 255 / .07));\n --wmp-line-strong:var(--nsp-line-strong, rgb(255 255 255 / .13));\n --wmp-text:var(--nsp-text, #ededf0);\n --wmp-text-2:var(--nsp-text-2, #a3a5ae);\n --wmp-text-3:var(--nsp-text-3, #80828c);\n --wmp-accent:var(--nsp-accent, #8b90ff);\n --wmp-accent-strong:var(--nsp-accent-strong, #5d63ee);\n --wmp-accent-soft:var(--nsp-accent-soft, rgb(139 144 255 / .14));\n --wmp-on-accent:var(--nsp-on-accent, #fff);\n --wmp-success:var(--nsp-success, #3ecf8e);\n --wmp-danger:var(--nsp-danger, #f25f5c);\n --wmp-danger-text:var(--nsp-danger-text, #ffb4b2);\n --wmp-r-sm:var(--nsp-radius-sm, 6px);\n --wmp-r-md:var(--nsp-radius-md, 10px);\n --wmp-ease:var(--nsp-ease, cubic-bezier(.2,0,0,1));\n --wmp-dur:var(--nsp-dur, 140ms);\n --wmp-title-h:var(--nsp-titlebar-height, 48px);\n --wmp-rail-w:232px;\n --wmp-panel-w:320px;\n --wmp-transport-h:84px;\n position:relative;\n height:100%;\n min-height:600px;\n display:grid;\n grid-template-columns:var(--wmp-rail-w) minmax(0,1fr) var(--wmp-panel-w);\n grid-template-rows:var(--wmp-title-h) minmax(0,1fr) var(--wmp-transport-h);\n grid-template-areas:\n \"title title title\"\n \"rail main panel\"\n \"transport transport transport\";\n overflow:hidden;\n background:var(--wmp-bg);\n color:var(--wmp-text);\n box-sizing:border-box;\n }\n .ngxsp-wmp-shell.ngxsp-wmp-panelHidden{\n grid-template-columns:var(--wmp-rail-w) minmax(0,1fr);\n grid-template-areas:\n \"title title\"\n \"rail main\"\n \"transport transport\";\n }\n .ngxsp-wmp-shell.ngxsp-wmp-panelHidden .ngxsp-wmp-playlist{display:none}\n .ngxsp-wmp-shell *{box-sizing:border-box;letter-spacing:0}\n .ngxsp-wmp-shell *::-webkit-scrollbar{width:10px;height:10px}\n .ngxsp-wmp-shell *::-webkit-scrollbar-track{background:transparent}\n .ngxsp-wmp-shell *::-webkit-scrollbar-thumb{background:var(--wmp-s3);border-radius:999px;border:3px solid transparent;background-clip:padding-box}\n .ngxsp-wmp-shell *::-webkit-scrollbar-thumb:hover{background-color:var(--wmp-line-strong)}\n button,input{font:inherit;color:inherit}\n button{cursor:pointer}\n img{display:block;width:100%;height:100%;object-fit:cover}\n h1,h2,h3,p{margin:0}\n ngxsp-smart-icon{width:18px;height:18px}\n .ngxsp-wmp-fileInput{display:none}\n\n .ngxsp-wmp-shell button:focus-visible,\n .ngxsp-wmp-shell input:focus-visible{\n outline:2px solid var(--wmp-accent);\n outline-offset:2px;\n }\n\n /* Hidden audio engine */\n .ngxsp-wmp-engineMount{position:absolute;width:1px;height:1px;overflow:hidden;opacity:0;pointer-events:none}\n .ngxsp-wmp-engineMount ngx-smart-player{display:block;width:1px;height:1px;min-height:0;border:0}\n\n /* Buttons */\n .ngxsp-wmp-iconButton{\n width:32px;\n height:32px;\n flex:0 0 auto;\n display:inline-grid;\n place-items:center;\n padding:0;\n border:1px solid transparent;\n border-radius:var(--wmp-r-sm);\n background:transparent;\n color:var(--wmp-text-2);\n transition:background-color var(--wmp-dur) var(--wmp-ease), color var(--wmp-dur) var(--wmp-ease), border-color var(--wmp-dur) var(--wmp-ease);\n }\n .ngxsp-wmp-iconButton:hover:not(:disabled){background:var(--wmp-s2);color:var(--wmp-text)}\n .ngxsp-wmp-iconButton.active,\n .ngxsp-wmp-iconButton.active:hover:not(:disabled){color:var(--wmp-accent)}\n .ngxsp-wmp-iconButton.outlined{width:40px;height:40px;border-color:var(--wmp-line-strong);border-radius:999px}\n .ngxsp-wmp-iconButton:disabled{opacity:.35;cursor:default}\n .ngxsp-wmp-iconButton.active ngxsp-smart-icon[name=\"heart\"] ::ng-deep path{fill:currentColor}\n .ngxsp-wmp-playButton{\n width:36px;\n height:36px;\n display:inline-grid;\n place-items:center;\n padding:0;\n border:0;\n border-radius:999px;\n background:var(--wmp-text);\n color:var(--wmp-bg);\n transition:transform var(--wmp-dur) var(--wmp-ease), background-color var(--wmp-dur) var(--wmp-ease);\n }\n .ngxsp-wmp-playButton:hover{transform:scale(1.05)}\n .ngxsp-wmp-primaryButton{\n height:40px;\n display:inline-flex;\n align-items:center;\n gap:8px;\n padding:0 20px 0 16px;\n border:0;\n border-radius:999px;\n background:var(--wmp-accent-strong);\n color:var(--wmp-on-accent);\n font-weight:600;\n transition:filter var(--wmp-dur) var(--wmp-ease), transform var(--wmp-dur) var(--wmp-ease);\n }\n .ngxsp-wmp-primaryButton:hover{filter:brightness(1.1)}\n .ngxsp-wmp-primaryButton:active{transform:scale(.98)}\n .ngxsp-wmp-smallButton{\n height:32px;\n display:inline-flex;\n align-items:center;\n justify-content:center;\n gap:6px;\n padding:0 10px;\n border:1px solid var(--wmp-line-strong);\n border-radius:var(--wmp-r-sm);\n background:transparent;\n color:var(--wmp-text);\n font-size:12px;\n font-weight:500;\n white-space:nowrap;\n }\n .ngxsp-wmp-smallButton ngxsp-smart-icon{width:14px;height:14px}\n .ngxsp-wmp-smallButton:hover:not(:disabled){background:var(--wmp-s2)}\n .ngxsp-wmp-smallButton.primary{border-color:transparent;background:var(--wmp-accent-strong);color:var(--wmp-on-accent)}\n .ngxsp-wmp-smallButton.primary:hover:not(:disabled){background:var(--wmp-accent-strong);filter:brightness(1.1)}\n .ngxsp-wmp-smallButton:disabled{opacity:.45;cursor:default}\n .ngxsp-wmp-segmented{\n display:inline-flex;\n align-items:center;\n gap:2px;\n padding:2px;\n border-radius:8px;\n background:var(--wmp-s2);\n }\n .ngxsp-wmp-segmented button{\n height:32px;\n min-width:0;\n padding:0 10px;\n border:0;\n border-radius:6px;\n background:transparent;\n color:var(--wmp-text-2);\n font-size:12px;\n font-weight:500;\n white-space:nowrap;\n overflow:hidden;\n text-overflow:ellipsis;\n }\n .ngxsp-wmp-segmented button:hover{color:var(--wmp-text)}\n .ngxsp-wmp-segmented button.active{background:var(--wmp-s3);color:var(--wmp-text);box-shadow:0 1px 2px rgb(0 0 0 / .3)}\n\n /* Title bar */\n .ngxsp-wmp-titlebar{\n grid-area:title;\n min-width:0;\n display:grid;\n grid-template-columns:calc(var(--wmp-rail-w) - 16px) minmax(0,1fr) minmax(0,max-content);\n align-items:center;\n gap:16px;\n padding:0 calc(12px + var(--nsp-titlebar-inset-end, 0px)) 0 calc(16px + var(--nsp-titlebar-inset-start, 0px));\n border-bottom:1px solid var(--wmp-line);\n background:var(--wmp-s0);\n -webkit-app-region:drag;\n user-select:none;\n }\n .ngxsp-wmp-titlebar button,\n .ngxsp-wmp-titlebar input,\n .ngxsp-wmp-titlebar label,\n .ngxsp-wmp-titlebar .ngxsp-wmp-status{-webkit-app-region:no-drag}\n .ngxsp-wmp-brand{min-width:0;display:flex;align-items:center;gap:10px}\n .ngxsp-wmp-brandIcon{\n width:26px;\n height:26px;\n flex:0 0 auto;\n display:grid;\n place-items:center;\n border-radius:7px;\n color:#fff;\n background:linear-gradient(145deg, #8b90ff 0%, #5d63ee 55%, #4146c9 100%);\n box-shadow:inset 0 1px 0 rgb(255 255 255 / .22);\n }\n .ngxsp-wmp-brandIcon ngxsp-smart-icon{width:15px;height:15px}\n .ngxsp-wmp-brandLogo{width:26px;height:26px;flex:0 0 auto;display:block}\n .ngxsp-wmp-brandName{font-size:13px;font-weight:600;white-space:nowrap}\n .ngxsp-wmp-search{\n position:relative;\n justify-self:center;\n width:100%;\n max-width:440px;\n height:34px;\n display:block;\n color:var(--wmp-text-3);\n }\n .ngxsp-wmp-search ngxsp-smart-icon{position:absolute;left:11px;top:50%;width:16px;height:16px;transform:translateY(-50%);pointer-events:none}\n .ngxsp-wmp-search input{\n width:100%;\n height:100%;\n padding:0 10px 0 35px;\n border:1px solid transparent;\n border-radius:8px;\n outline:0;\n background:var(--wmp-s2);\n color:var(--wmp-text);\n font-size:13px;\n transition:border-color var(--wmp-dur) var(--wmp-ease), background-color var(--wmp-dur) var(--wmp-ease), box-shadow var(--wmp-dur) var(--wmp-ease);\n }\n .ngxsp-wmp-search input:hover{border-color:var(--wmp-line-strong)}\n .ngxsp-wmp-shell .ngxsp-wmp-search input:focus,\n .ngxsp-wmp-shell .ngxsp-wmp-search input:focus-visible{outline:0;border-color:var(--wmp-accent);background:var(--wmp-s1);box-shadow:0 0 0 3px var(--wmp-accent-soft)}\n .ngxsp-wmp-search input::placeholder{color:var(--wmp-text-3)}\n .ngxsp-wmp-titleActions{min-width:0;display:flex;align-items:center;justify-content:flex-end;gap:8px}\n .ngxsp-wmp-status{\n min-width:0;\n max-width:300px;\n height:26px;\n display:inline-flex;\n align-items:center;\n gap:7px;\n padding:0 10px;\n border-radius:999px;\n background:var(--wmp-s2);\n color:var(--wmp-text-2);\n font-size:12px;\n white-space:nowrap;\n overflow:hidden;\n text-overflow:ellipsis;\n }\n .ngxsp-wmp-status::before{content:'';width:6px;height:6px;flex:0 0 auto;border-radius:50%;background:var(--wmp-accent)}\n .ngxsp-wmp-status.success::before{background:var(--wmp-success)}\n .ngxsp-wmp-status.error{color:var(--wmp-danger-text);background:rgb(242 95 92 / .16)}\n .ngxsp-wmp-status.error::before{background:var(--wmp-danger)}\n\n /* Rail */\n .ngxsp-wmp-rail{\n grid-area:rail;\n min-width:0;\n min-height:0;\n display:flex;\n flex-direction:column;\n border-right:1px solid var(--wmp-line);\n background:var(--wmp-s0);\n }\n .ngxsp-wmp-nav{flex:1;min-height:0;display:flex;flex-direction:column;gap:1px;padding:12px 8px;overflow:auto}\n .ngxsp-wmp-navItem{\n width:100%;\n height:34px;\n flex:0 0 auto;\n display:grid;\n grid-template-columns:18px minmax(0,1fr) auto;\n align-items:center;\n gap:10px;\n padding:0 10px;\n border:0;\n border-radius:var(--wmp-r-sm);\n background:transparent;\n color:var(--wmp-text-2);\n text-align:left;\n transition:background-color var(--wmp-dur) var(--wmp-ease), color var(--wmp-dur) var(--wmp-ease);\n }\n .ngxsp-wmp-navItem span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:500}\n .ngxsp-wmp-navItem small{color:var(--wmp-text-3);font-size:11px;font-variant-numeric:tabular-nums}\n .ngxsp-wmp-navItem:hover{background:var(--wmp-s2);color:var(--wmp-text)}\n .ngxsp-wmp-navItem.active{background:var(--wmp-s3);color:var(--wmp-text)}\n .ngxsp-wmp-navItem.active ngxsp-smart-icon{color:var(--wmp-accent)}\n .ngxsp-wmp-navItem.active small{color:var(--wmp-text-2)}\n .ngxsp-wmp-navDivider{display:block;flex:0 0 auto;height:1px;margin:10px;background:var(--wmp-line)}\n ngxsp-settings{\n --ngxsp-settings-surface:var(--wmp-s1);\n --ngxsp-settings-text:var(--wmp-text);\n --ngxsp-settings-muted:var(--wmp-text-2);\n --ngxsp-settings-line:var(--wmp-line);\n --ngxsp-settings-control:var(--wmp-s3);\n --ngxsp-settings-accent:var(--wmp-accent);\n --ngxsp-settings-radius:var(--wmp-r-md, 10px);\n }\n .ngxsp-wmp-railTools{display:grid;gap:12px;padding:12px;border-top:1px solid var(--wmp-line)}\n /* Same as the video player's top-bar import action. */\n .ngxsp-wmp-sourceButton{\n flex:0 0 auto;\n height:32px;\n display:inline-flex;\n align-items:center;\n gap:7px;\n padding:0 12px 0 10px;\n border:0;\n border-radius:var(--wmp-r-sm);\n background:var(--wmp-accent-strong);\n color:var(--wmp-on-accent);\n font-size:12px;\n font-weight:600;\n white-space:nowrap;\n cursor:pointer;\n }\n .ngxsp-wmp-sourceButton ngxsp-smart-icon{width:16px;height:16px}\n .ngxsp-wmp-sourceButton:hover{filter:brightness(1.1)}\n .ngxsp-wmp-sourceButton:disabled{opacity:.7;cursor:progress}\n .ngxsp-wmp-libraryInfo{min-width:0;display:grid;gap:2px;padding:0 4px}\n .ngxsp-wmp-libraryInfo strong,\n .ngxsp-wmp-libraryInfo small{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}\n .ngxsp-wmp-libraryInfo strong{font-size:12px;font-weight:600}\n .ngxsp-wmp-libraryInfo small{color:var(--wmp-text-3);font-size:11px}\n .ngxsp-wmp-libraryStatus{display:flex;align-items:center;gap:6px}\n .ngxsp-wmp-libraryStatus::before{content:'';width:6px;height:6px;flex:0 0 auto;border-radius:50%;background:var(--wmp-success)}\n .ngxsp-wmp-libraryStatus.busy::before{background:var(--wmp-accent);animation:ngxsp-wmp-pulse 1.2s ease-in-out infinite}\n @keyframes ngxsp-wmp-pulse{0%,100%{opacity:.35}50%{opacity:1}}\n\n /* Main */\n .ngxsp-wmp-main{\n grid-area:main;\n min-width:0;\n min-height:0;\n display:flex;\n flex-direction:column;\n overflow:auto;\n background:var(--wmp-bg);\n }\n .ngxsp-wmp-nowPanel{\n position:relative;\n flex:0 0 auto;\n display:grid;\n grid-template-columns:184px minmax(0,1fr);\n align-items:end;\n gap:28px;\n padding:32px 32px 28px;\n background:\n radial-gradient(120% 140% at 0% 0%, rgb(93 99 238 / .2) 0%, transparent 60%),\n linear-gradient(180deg, var(--wmp-s1) 0%, var(--wmp-bg) 100%);\n border-bottom:1px solid var(--wmp-line);\n }\n .ngxsp-wmp-art{\n width:184px;\n height:184px;\n display:grid;\n place-items:center;\n overflow:hidden;\n border-radius:var(--wmp-r-md);\n background:linear-gradient(145deg, var(--wmp-s3), var(--wmp-s1));\n color:var(--wmp-text-3);\n box-shadow:var(--nsp-shadow-media, 0 18px 40px rgb(0 0 0 / .45));\n }\n .ngxsp-wmp-artNote ngxsp-smart-icon{width:56px;height:56px}\n .ngxsp-wmp-playerSurface{min-width:0;min-height:160px;display:flex;flex-direction:column;justify-content:flex-end;gap:16px}\n .ngxsp-wmp-nowCopy{min-width:0;display:grid;gap:4px}\n .ngxsp-wmp-eyebrow{\n display:inline-flex;\n align-items:center;\n gap:8px;\n color:var(--wmp-text-2);\n font-size:11px;\n font-weight:600;\n }\n .ngxsp-wmp-liveDot{width:6px;height:6px;border-radius:50%;background:var(--wmp-success);box-shadow:0 0 0 3px rgb(62 207 142 / .18)}\n .ngxsp-wmp-nowCopy h1{\n min-width:0;\n overflow:hidden;\n text-overflow:ellipsis;\n white-space:nowrap;\n font-size:32px;\n line-height:1.15;\n font-weight:700;\n }\n .ngxsp-wmp-shell .ngxsp-wmp-nowCopy h1{letter-spacing:-.015em}\n .ngxsp-wmp-nowCopy p{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--wmp-text);font-size:14px;font-weight:500}\n .ngxsp-wmp-nowCopy small{color:var(--wmp-text-2);font-size:12px}\n .ngxsp-wmp-nowActions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}\n .ngxsp-wmp-nowOscillogram{min-width:0;min-height:48px;display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:40px 2px;column-gap:14px;row-gap:6px;align-items:end}\n .ngxsp-wmp-nowWaveform{grid-column:1;grid-row:1;height:40px;display:flex;align-items:flex-end;gap:3px;overflow:hidden}\n .ngxsp-wmp-nowWaveform span{\n flex:1 1 0;\n min-width:2px;\n border-radius:2px 2px 0 0;\n background:var(--wmp-line-strong);\n transform-origin:bottom;\n transition:background-color 240ms var(--wmp-ease);\n }\n .ngxsp-wmp-nowWaveform span.played{background:var(--wmp-accent)}\n .ngxsp-wmp-nowProgressLine{grid-column:1;grid-row:2;position:relative;height:2px;border-radius:999px;background:var(--wmp-line);overflow:hidden}\n .ngxsp-wmp-nowProgressLine i{position:absolute;inset:0 auto 0 0;background:var(--wmp-accent);border-radius:inherit}\n .ngxsp-wmp-nowTime{grid-column:2;grid-row:1 / span 2;align-self:end;display:flex;gap:4px;color:var(--wmp-text-2);font-size:12px;font-variant-numeric:tabular-nums}\n .ngxsp-wmp-nowTime small + small::before{content:'/ ';color:var(--wmp-text-3)}\n .ngxsp-wmp-emptyPlayer{display:grid;justify-items:start;gap:10px}\n .ngxsp-wmp-emptyPlayer h1{font-size:28px;font-weight:700}\n .ngxsp-wmp-emptyPlayer p{color:var(--wmp-text-2);max-width:52ch}\n\n /* Generated covers */\n .ngxsp-wmp-shell .ngxsp-wmp-cover:not(.has-image){\n color:rgb(255 255 255 / .6);\n background:radial-gradient(90% 70% at 20% 10%, rgb(255 255 255 / .16), transparent 60%), linear-gradient(140deg, var(--tone-a), var(--tone-b));\n }\n .ngxsp-wmp-cover[data-tone=\"0\"]{--tone-a:#4a4fc4;--tone-b:#1d1e45}\n .ngxsp-wmp-cover[data-tone=\"1\"]{--tone-a:#1f8078;--tone-b:#0e2a2c}\n .ngxsp-wmp-cover[data-tone=\"2\"]{--tone-a:#b3782a;--tone-b:#35230f}\n .ngxsp-wmp-cover[data-tone=\"3\"]{--tone-a:#a83a62;--tone-b:#2e1120}\n .ngxsp-wmp-cover[data-tone=\"4\"]{--tone-a:#2f6fa8;--tone-b:#0f2031}\n .ngxsp-wmp-cover[data-tone=\"5\"]{--tone-a:#6f7f2e;--tone-b:#1f240f}\n .ngxsp-wmp-cover[data-tone=\"6\"]{--tone-a:#7a48b8;--tone-b:#231436}\n .ngxsp-wmp-cover[data-tone=\"7\"]{--tone-a:#b0543a;--tone-b:#321710}\n\n /* Library */\n .ngxsp-wmp-librarySurface{flex:1 0 auto;min-width:0;display:flex;flex-direction:column}\n .ngxsp-wmp-sectionHeader{display:grid;gap:2px;padding:24px 32px 8px}\n .ngxsp-wmp-sectionHeader > span{color:var(--wmp-text-2);font-size:12px;font-weight:600;}\n .ngxsp-wmp-backButton{justify-self:start;display:inline-flex;align-items:center;gap:4px;max-width:100%;height:28px;margin:0 0 6px -8px;padding:0 10px 0 4px;border:0;border-radius:999px;background:transparent;color:var(--wmp-text-2);font:inherit;font-size:13px;font-weight:600;cursor:pointer}\n .ngxsp-wmp-backButton ngxsp-smart-icon{flex:none;width:18px;height:18px}\n .ngxsp-wmp-backButton span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}\n .ngxsp-wmp-backButton:hover{background:var(--wmp-s2, rgb(127 127 127 / .14));color:var(--wmp-text)}\n .ngxsp-wmp-shell .ngxsp-wmp-sectionHeader > span{}\n .ngxsp-wmp-sectionHeader h1,\n .ngxsp-wmp-sectionHeader h2{font-size:22px;line-height:1.2;font-weight:700}\n .ngxsp-wmp-sectionHeader.slim{grid-template-columns:minmax(0,1fr) auto;align-items:center;column-gap:8px;padding:14px 20px 8px}\n .ngxsp-wmp-sectionHeader.slim > span{grid-column:1}\n .ngxsp-wmp-sectionHeader.slim strong{grid-column:1;font-size:13px;font-weight:600}\n .ngxsp-wmp-sectionHeader.slim .ngxsp-wmp-smallButton{grid-column:2;grid-row:1 / span 2}\n .ngxsp-wmp-sectionScroll{display:grid;gap:28px;padding:8px 24px 32px}\n .ngxsp-wmp-section{min-width:0;display:grid;gap:10px}\n .ngxsp-wmp-section > h2,\n .ngxsp-wmp-section > h3{padding:0 8px;font-size:15px;font-weight:600}\n\n /* Cards */\n .ngxsp-wmp-cardGrid{display:grid;grid-template-columns:repeat(auto-fill, minmax(168px, 1fr));gap:4px}\n .ngxsp-wmp-card{position:relative;min-width:0;container-type:inline-size;border-radius:var(--wmp-r-md);transition:background-color var(--wmp-dur) var(--wmp-ease)}\n .ngxsp-wmp-card:hover,\n .ngxsp-wmp-card:focus-within{background:var(--wmp-s1)}\n .ngxsp-wmp-cardSelect{width:100%;min-width:0;display:grid;gap:10px;padding:10px;border:0;border-radius:inherit;background:transparent;text-align:left}\n .ngxsp-wmp-thumb{\n position:relative;\n width:100%;\n aspect-ratio:1;\n display:grid;\n place-items:center;\n overflow:hidden;\n border-radius:8px;\n background:linear-gradient(145deg, var(--wmp-s3), var(--wmp-s1));\n color:var(--wmp-text-3);\n box-shadow:var(--nsp-shadow-card, 0 6px 18px rgb(0 0 0 / .3));\n }\n .ngxsp-wmp-thumb > ngxsp-smart-icon{width:36px;height:36px}\n /* Sits on the artwork's bottom-right corner: the square thumb is the card width minus its 10px padding. */\n .ngxsp-wmp-cardPlaySlot{\n position:absolute;\n top:calc(100cqw - 58px);\n right:18px;\n display:flex;\n opacity:0;\n transform:translateY(6px);\n transition:opacity var(--wmp-dur) var(--wmp-ease), transform var(--wmp-dur) var(--wmp-ease);\n }\n .ngxsp-wmp-card:hover .ngxsp-wmp-cardPlaySlot,\n .ngxsp-wmp-card:focus-within .ngxsp-wmp-cardPlaySlot,\n .ngxsp-wmp-card.active .ngxsp-wmp-cardPlaySlot{opacity:1;transform:none}\n .ngxsp-wmp-cardPlay{\n width:40px;\n height:40px;\n display:grid;\n place-items:center;\n padding:0;\n border:0;\n border-radius:999px;\n background:var(--wmp-accent-strong);\n color:#fff;\n box-shadow:0 8px 20px rgb(0 0 0 / .4);\n }\n .ngxsp-wmp-cardPlay ngxsp-smart-icon{width:18px;height:18px}\n .ngxsp-wmp-cardCopy{min-width:0;display:grid;gap:2px}\n .ngxsp-wmp-cardCopy strong,\n .ngxsp-wmp-cardCopy small,\n .ngxsp-wmp-cardCopy em{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}\n .ngxsp-wmp-cardCopy strong{font-size:13px;font-weight:600}\n .ngxsp-wmp-card.active .ngxsp-wmp-cardCopy strong{color:var(--wmp-accent)}\n .ngxsp-wmp-cardCopy small{color:var(--wmp-text-2);font-size:12px}\n .ngxsp-wmp-cardCopy em{color:var(--wmp-text-3);font-size:11px;font-style:normal}\n .ngxsp-wmp-cardActions{position:absolute;top:18px;right:18px;display:flex;gap:4px;opacity:0;transition:opacity var(--wmp-dur) var(--wmp-ease)}\n .ngxsp-wmp-card:hover .ngxsp-wmp-cardActions,\n .ngxsp-wmp-card:focus-within .ngxsp-wmp-cardActions{opacity:1}\n .ngxsp-wmp-cardAction{\n width:32px;\n height:32px;\n display:grid;\n place-items:center;\n padding:0;\n border:0;\n border-radius:999px;\n background:rgb(13 14 17 / .8);\n color:#fff;\n backdrop-filter:blur(8px);\n }\n .ngxsp-wmp-cardAction ngxsp-smart-icon{width:14px;height:14px}\n .ngxsp-wmp-cardAction:hover{background:rgb(13 14 17 / .95)}\n\n /* Track table */\n .ngxsp-wmp-table{min-width:0;display:grid}\n .ngxsp-wmp-tableHead,\n .ngxsp-wmp-trackSelect{\n display:grid;\n grid-template-columns:36px minmax(0,2.4fr) minmax(0,1.3fr) minmax(0,1.3fr) 48px;\n align-items:center;\n gap:14px;\n }\n .ngxsp-wmp-tableHead{\n position:sticky;\n top:0;\n z-index:1;\n height:34px;\n margin-bottom:4px;\n /* The actions column, then the gap before it. */\n padding:0 calc(var(--wmp-actions-w, 112px) + 8px) 0 10px;\n border-bottom:1px solid var(--wmp-line);\n background:var(--wmp-bg);\n color:var(--wmp-text-2);\n font-size:11px;\n font-weight:600;\n }\n .ngxsp-wmp-tableHead > span:first-child{text-align:center}\n .ngxsp-wmp-timeHead{display:flex;justify-content:flex-end}\n .ngxsp-wmp-timeHead ngxsp-smart-icon{width:15px;height:15px}\n .ngxsp-wmp-trackRow{\n position:relative;\n min-width:0;\n display:grid;\n /* The actions get a column of their own, as wide as the buttons the table shows, so they never cover the\n duration. */\n grid-template-columns:minmax(0,1fr) var(--wmp-actions-w, 112px);\n align-items:center;\n gap:8px;\n border-radius:var(--wmp-r-sm);\n transition:background-color var(--wmp-dur) var(--wmp-ease);\n }\n .ngxsp-wmp-trackRow:hover,\n .ngxsp-wmp-trackRow:focus-within{background:var(--wmp-s1)}\n .ngxsp-wmp-trackRow.active{background:var(--wmp-accent-soft)}\n .ngxsp-wmp-trackSelect{min-width:0;height:52px;padding:0 0 0 10px;border:0;border-radius:inherit;background:transparent;color:var(--wmp-text-2);text-align:left}\n .ngxsp-wmp-trackIndex{position:relative;display:grid;place-items:center;color:var(--wmp-text-2);font-variant-numeric:tabular-nums}\n .ngxsp-wmp-trackIndex > ngxsp-smart-icon{width:16px;height:16px}\n .ngxsp-wmp-trackRow.active .ngxsp-wmp-trackIndex{color:var(--wmp-accent)}\n .ngxsp-wmp-indexPlay{position:absolute;opacity:0;color:var(--wmp-text)}\n .ngxsp-wmp-trackRow:hover .ngxsp-wmp-indexNumber{opacity:0}\n .ngxsp-wmp-trackRow:hover .ngxsp-wmp-indexPlay{opacity:1}\n .ngxsp-wmp-trackTitle{min-width:0;display:flex;align-items:center;gap:12px}\n .ngxsp-wmp-rowIcon{\n width:36px;\n height:36px;\n flex:0 0 auto;\n display:grid;\n place-items:center;\n overflow:hidden;\n border-radius:4px;\n background:var(--wmp-s2);\n color:var(--wmp-text-3);\n }\n .ngxsp-wmp-rowIcon ngxsp-smart-icon{width:16px;height:16px}\n .ngxsp-wmp-rowCopy{min-width:0;display:grid;gap:1px}\n .ngxsp-wmp-rowCopy strong,\n .ngxsp-wmp-rowCopy small{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}\n .ngxsp-wmp-rowCopy strong{color:var(--wmp-text);font-size:13px;font-weight:500}\n .ngxsp-wmp-rowCopy small{color:var(--wmp-text-2);font-size:12px}\n .ngxsp-wmp-trackRow.active .ngxsp-wmp-rowCopy strong{color:var(--wmp-accent)}\n .ngxsp-wmp-trackCell{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}\n .ngxsp-wmp-trackTime{text-align:right;font-variant-numeric:tabular-nums}\n .ngxsp-wmp-rowActions{display:flex;align-items:center;justify-content:flex-end;gap:2px;padding-right:8px}\n .ngxsp-wmp-rowFavorite,\n .ngxsp-wmp-rowQueueAction{\n flex:0 0 32px;\n width:32px;\n height:32px;\n display:grid;\n place-items:center;\n padding:0;\n border:0;\n border-radius:var(--wmp-r-sm);\n background:transparent;\n color:var(--wmp-text-2);\n opacity:0;\n transition:opacity var(--wmp-dur) var(--wmp-ease), background-color var(--wmp-dur) var(--wmp-ease), color var(--wmp-dur) var(--wmp-ease);\n }\n .ngxsp-wmp-rowFavorite ngxsp-smart-icon,\n .ngxsp-wmp-rowQueueAction ngxsp-smart-icon{width:16px;height:16px}\n .ngxsp-wmp-rowFavorite:hover,\n .ngxsp-wmp-rowQueueAction:hover{background:var(--wmp-s3);color:var(--wmp-text)}\n .ngxsp-wmp-trackRow:hover .ngxsp-wmp-rowFavorite,\n .ngxsp-wmp-trackRow:hover .ngxsp-wmp-rowQueueAction,\n .ngxsp-wmp-trackRow:focus-within .ngxsp-wmp-rowFavorite,\n .ngxsp-wmp-trackRow:focus-within .ngxsp-wmp-rowQueueAction,\n .ngxsp-wmp-rowFavorite.active{opacity:1}\n .ngxsp-wmp-rowFavorite.active{color:var(--wmp-accent)}\n .ngxsp-wmp-rowFavorite.active ngxsp-smart-icon ::ng-deep path{fill:currentColor}\n .ngxsp-wmp-rowProgress{position:absolute;left:10px;right:10px;bottom:3px;height:2px;border-radius:999px;background:var(--wmp-line);overflow:hidden;pointer-events:none}\n .ngxsp-wmp-thumb .ngxsp-wmp-rowProgress{left:0;right:0;bottom:0;border-radius:0}\n .ngxsp-wmp-rowProgress i{position:absolute;inset:0 auto 0 0;background:var(--wmp-accent)}\n .ngxsp-wmp-emptyLibrary{\n display:grid;\n justify-items:center;\n gap:8px;\n padding:32px 16px;\n border:1px dashed var(--wmp-line-strong);\n border-radius:var(--wmp-r-md);\n color:var(--wmp-text-2);\n text-align:center;\n }\n .ngxsp-wmp-emptyLibrary ngxsp-smart-icon{width:28px;height:28px;color:var(--wmp-text-3)}\n\n /* Right panel */\n .ngxsp-wmp-playlist{\n grid-area:panel;\n min-width:0;\n min-height:0;\n display:flex;\n flex-direction:column;\n border-left:1px solid var(--wmp-line);\n background:var(--wmp-s0);\n overflow:hidden;\n }\n .ngxsp-wmp-sheetToggles{display:flex;justify-content:center;gap:4px;padding:4px 12px 0}\n\n /* The column's height is the window's, so the open panels divide it: one fills it, two take\n half each, and each scrolls inside its own share rather than pushing the others down. */\n .ngxsp-wmp-panelStack{flex:1;display:flex;flex-direction:column;gap:10px;padding:12px;overflow:hidden;min-height:0}\n .ngxsp-wmp-stackItem{flex:1 1 0;border:1px solid var(--wmp-border,#d9d9d9);border-radius:10px;overflow:hidden;display:flex;flex-direction:column;min-height:0}\n /* A folded panel is its header and nothing else, and leaves its share to the others. */\n .ngxsp-wmp-stackItem.collapsed{flex:0 0 auto}\n .ngxsp-wmp-stackHead{display:flex;align-items:center;gap:8px;padding:7px 8px 7px 11px;background:var(--wmp-surface-2,rgba(127,127,127,.08))}\n .ngxsp-wmp-stackHead strong{font-size:12.5px;font-weight:600}\n .ngxsp-wmp-stackIcon{display:grid;place-items:center;width:24px;height:24px;padding:0;border:0;border-radius:6px;background:transparent;color:inherit;cursor:pointer;opacity:.65}\n .ngxsp-wmp-stackIcon:hover,.ngxsp-wmp-stackIcon:focus-visible{opacity:1}\n .ngxsp-wmp-stackIcon + .ngxsp-wmp-stackIcon{margin-left:-2px}\n .ngxsp-wmp-stackHead .ngxsp-wmp-stackIcon:first-of-type{margin-left:auto}\n .ngxsp-wmp-stackItem svg{width:14px;height:14px}\n .ngxsp-wmp-queueList{flex:1;min-height:0;display:grid;align-content:start;gap:1px;padding:0 8px 12px;overflow:auto}\n .ngxsp-wmp-queueItem{\n width:100%;\n min-width:0;\n min-height:56px;\n display:grid;\n grid-template-columns:40px minmax(0,1fr) auto;\n align-items:center;\n gap:12px;\n padding:8px;\n border:0;\n border-radius:var(--wmp-r-sm);\n background:transparent;\n text-align:left;\n transition:background-color var(--wmp-dur) var(--wmp-ease);\n }\n .ngxsp-wmp-queueItem:hover{background:var(--wmp-s2)}\n .ngxsp-wmp-queueItem.active{background:var(--wmp-accent-soft)}\n .ngxsp-wmp-queueItem.active .ngxsp-wmp-rowCopy strong{color:var(--wmp-accent)}\n .ngxsp-wmp-queueCover{\n position:relative;\n width:40px;\n height:40px;\n display:grid;\n place-items:center;\n overflow:hidden;\n border-radius:4px;\n background:var(--wmp-s2);\n color:var(--wmp-text-3);\n }\n .ngxsp-wmp-queueCover > ngxsp-smart-icon{width:16px;height:16px}\n .ngxsp-wmp-queueNow{position:absolute;inset:0;display:grid;place-items:center;background:rgb(13 14 17 / .6);color:#fff}\n .ngxsp-wmp-rowBadges{display:flex;flex-wrap:wrap;gap:4px;margin-top:3px}\n .ngxsp-wmp-rowBadges em{\n display:inline-flex;\n align-items:center;\n gap:3px;\n height:18px;\n padding:0 6px;\n border-radius:4px;\n background:var(--wmp-s3);\n color:var(--wmp-text-2);\n font-size:10px;\n font-style:normal;\n font-weight:500;\n }\n .ngxsp-wmp-rowBadges em ngxsp-smart-icon{width:10px;height:10px}\n .ngxsp-wmp-rowBadges em.favorite{color:var(--wmp-accent)}\n .ngxsp-wmp-rowMeta{color:var(--wmp-text-2);font-size:12px;font-variant-numeric:tabular-nums}\n .ngxsp-wmp-management,\n .ngxsp-wmp-devices{flex:1;min-height:0;display:grid;align-content:start;gap:10px;padding:10px 12px 16px;overflow:auto}\n .ngxsp-wmp-devices .ngxsp-wmp-sectionHeader.slim{padding:4px 4px 6px}\n .ngxsp-wmp-inlineForm{display:flex;gap:6px}\n .ngxsp-wmp-inlineForm input{\n flex:1;\n min-width:0;\n height:32px;\n padding:0 10px;\n border:1px solid var(--wmp-line-strong);\n border-radius:var(--wmp-r-sm);\n background:var(--wmp-s1);\n color:var(--wmp-text);\n font-size:12px;\n }\n .ngxsp-wmp-inlineForm input::placeholder{color:var(--wmp-text-3)}\n .ngxsp-wmp-shell .ngxsp-wmp-inlineForm input:focus-visible{outline:0;border-color:var(--wmp-accent);box-shadow:0 0 0 2px var(--wmp-accent-soft)}\n .ngxsp-wmp-stationForm{\n display:flex;\n flex-wrap:wrap;\n align-items:center;\n gap:8px;\n margin-bottom:14px;\n padding:10px 12px;\n border:1px solid var(--wmp-line);\n border-radius:var(--wmp-r-md);\n background:var(--wmp-s1);\n }\n .ngxsp-wmp-stationTitle{font-size:12px;font-weight:600;color:var(--wmp-text-2)}\n .ngxsp-wmp-discovered{flex:1 1 100%;display:grid;gap:4px;margin:0;padding:0;list-style:none}\n .ngxsp-wmp-discovered li{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:36px;padding:2px 0 2px 8px;border-top:1px solid var(--wmp-line)}\n .ngxsp-wmp-discovered li span{display:grid;min-width:0}\n .ngxsp-wmp-discovered strong{overflow:hidden;font-size:13px;font-weight:600;text-overflow:ellipsis;white-space:nowrap}\n .ngxsp-wmp-discovered small,.ngxsp-wmp-discovered li.empty{overflow:hidden;color:var(--wmp-text-2);font-size:12px;text-overflow:ellipsis;white-space:nowrap}\n .ngxsp-wmp-serverKind{\n height:32px;\n padding:0 8px;\n border:1px solid var(--wmp-line-strong);\n border-radius:var(--wmp-r-sm);\n background:var(--wmp-s0);\n color:var(--wmp-text);\n font-size:12px;\n }\n .ngxsp-wmp-stationForm input{\n flex:1 1 180px;\n min-width:0;\n height:32px;\n padding:0 10px;\n border:1px solid var(--wmp-line-strong);\n border-radius:var(--wmp-r-sm);\n background:var(--wmp-s0);\n color:var(--wmp-text);\n font-size:12px;\n }\n .ngxsp-wmp-stationForm input::placeholder{color:var(--wmp-text-3)}\n .ngxsp-wmp-shell .ngxsp-wmp-stationForm input:focus-visible{outline:0;border-color:var(--wmp-accent);box-shadow:0 0 0 2px var(--wmp-accent-soft)}\n .ngxsp-wmp-stationHint{flex:1 0 100%;color:var(--wmp-text-3);font-size:11px}\n .ngxsp-wmp-targetBanner{\n display:flex;\n align-items:center;\n justify-content:space-between;\n gap:8px;\n padding:8px 10px;\n border:1px solid var(--wmp-accent-soft);\n border-radius:var(--wmp-r-sm);\n background:var(--wmp-accent-soft);\n color:var(--wmp-text);\n font-size:12px;\n }\n .ngxsp-wmp-targetBanner strong{margin-left:4px}\n .ngxsp-wmp-rowQueueAction.danger:hover,\n .ngxsp-wmp-cardAction.danger:hover{color:var(--wmp-danger, #e5484d)}\n .ngxsp-wmp-rowQueueAction.active{color:var(--wmp-accent)}\n .ngxsp-wmp-targets{display:grid;gap:6px}\n .ngxsp-wmp-target,\n .ngxsp-wmp-device{display:grid;gap:8px;padding:10px;border:1px solid var(--wmp-line);border-radius:var(--wmp-r-md);background:var(--wmp-s1)}\n .ngxsp-wmp-sheetButton{display:none}\n .ngxsp-wmp-sheetHeader{display:none}\n .ngxsp-wmp-lyrics{flex:1;display:grid;gap:8px;min-height:0;grid-template-rows:auto auto minmax(0,1fr)}\n .ngxsp-wmp-lyricsStatus{margin:0;color:var(--wmp-text-2);font-size:12px}\n .ngxsp-wmp-lyricsLines{display:grid;gap:2px;overflow-y:auto;padding-right:4px;scroll-behavior:smooth}\n .ngxsp-wmp-lyricsLine{margin:0;padding:6px 8px;border:0;border-radius:var(--wmp-r-sm);background:transparent;color:var(--wmp-text-2);font-size:13px;line-height:1.45;text-align:left;white-space:pre-wrap}\n button.ngxsp-wmp-lyricsLine{cursor:pointer}\n button.ngxsp-wmp-lyricsLine:hover{background:var(--wmp-s2);color:var(--wmp-text)}\n .ngxsp-wmp-lyricsLine.active{background:var(--wmp-s2);color:var(--wmp-text);font-weight:600}\n @media (prefers-reduced-motion: reduce){.ngxsp-wmp-lyricsLines{scroll-behavior:auto}}\n .ngxsp-wmp-targetMain{min-width:0;display:grid;grid-template-columns:32px minmax(0,1fr) auto;align-items:center;gap:10px}\n .ngxsp-wmp-targetIcon{width:32px;height:32px;display:grid;place-items:center;border-radius:var(--wmp-r-sm);background:var(--wmp-s3);color:var(--wmp-text-2)}\n .ngxsp-wmp-targetIcon ngxsp-smart-icon{width:16px;height:16px}\n .ngxsp-wmp-targetActions{display:flex;gap:4px;padding-left:38px}\n .ngxsp-wmp-targetActions button{height:32px;padding:0 8px;border:0;border-radius:4px;background:transparent;color:var(--wmp-text-2);font-size:12px}\n .ngxsp-wmp-targetActions button:hover{background:var(--wmp-s3);color:var(--wmp-text)}\n .ngxsp-wmp-targetActions button.danger:hover{color:var(--wmp-danger-text);background:rgb(242 95 92 / .16)}\n .ngxsp-wmp-device{grid-template-columns:32px minmax(0,1fr);align-items:center;column-gap:10px}\n .ngxsp-wmp-device.active{border-color:rgb(139 144 255 / .4);background:var(--wmp-accent-soft)}\n .ngxsp-wmp-device.active .ngxsp-wmp-targetIcon{color:var(--wmp-accent)}\n .ngxsp-wmp-deviceActions{grid-column:2;display:flex;gap:6px}\n\n /* Transport */\n .ngxsp-wmp-transport{\n grid-area:transport;\n min-width:0;\n display:grid;\n /* The switches and the volume are the one column that cannot give: below its content the\n volume slider is crushed to a stub. The seek row yields instead, having room to. */\n grid-template-columns:minmax(0,1fr) minmax(320px, 620px) minmax(min-content,1fr);\n align-items:center;\n gap:24px;\n padding:0 16px;\n border-top:1px solid var(--wmp-line);\n background:var(--wmp-s0);\n }\n .ngxsp-wmp-miniNow{min-width:0;display:grid;grid-template-columns:52px minmax(0,1fr) auto;align-items:center;gap:12px}\n .ngxsp-wmp-miniArt{\n width:52px;\n height:52px;\n display:grid;\n place-items:center;\n overflow:hidden;\n border-radius:6px;\n background:var(--wmp-s2);\n color:var(--wmp-text-3);\n }\n .ngxsp-wmp-miniCopy{min-width:0;display:grid;gap:2px}\n .ngxsp-wmp-miniCopy strong,\n .ngxsp-wmp-miniCopy small{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}\n .ngxsp-wmp-miniCopy strong{font-size:13px;font-weight:600}\n .ngxsp-wmp-miniCopy small{color:var(--wmp-text-2);font-size:12px}\n .ngxsp-wmp-transportCenter{min-width:0;display:grid;justify-items:center;gap:0}\n .ngxsp-wmp-transportButtons{display:flex;align-items:center;gap:12px}\n .ngxsp-wmp-seekRow{width:100%;display:grid;grid-template-columns:44px minmax(0,1fr) 44px;align-items:center;gap:10px;color:var(--wmp-text-2);font-size:11px;font-variant-numeric:tabular-nums}\n .ngxsp-wmp-seekRow small:first-child{text-align:right}\n .ngxsp-wmp-seek{\n min-height:32px;\n --ngxsp-track-size:4px;\n --ngxsp-track-bg:var(--wmp-s3);\n --ngxsp-buffered-bg:transparent;\n --ngxsp-accent:var(--wmp-text);\n --ngxsp-thumb-size:12px;\n --ngxsp-thumb-bg:var(--wmp-text);\n --ngxsp-preview-bg:var(--wmp-s2);\n --ngxsp-preview-border:var(--wmp-line-strong);\n }\n .ngxsp-wmp-seek:hover{--ngxsp-accent:var(--wmp-accent)}\n .ngxsp-wmp-seek ::ng-deep .ngxsp-ts-thumb{opacity:0;transition:opacity var(--wmp-dur) var(--wmp-ease)}\n .ngxsp-wmp-seek:hover ::ng-deep .ngxsp-ts-thumb,\n .ngxsp-wmp-seek:focus-visible ::ng-deep .ngxsp-ts-thumb{opacity:1}\n .ngxsp-wmp-transportModes{min-width:0;display:flex;align-items:center;justify-content:flex-end;gap:6px}\n .ngxsp-wmp-volumeControl{\n --ngxsp-control-size:32px;\n --ngxsp-volume-range-min:72px;\n --ngxsp-volume-range-max:112px;\n --ngxsp-volume-gap:4px;\n --ngxsp-volume-button-border:1px solid transparent;\n --ngxsp-volume-button-radius:6px;\n --ngxsp-volume-accent:var(--wmp-text);\n --ngxsp-volume-track-bg:var(--wmp-s3);\n --ngxsp-volume-thumb-bg:var(--wmp-text);\n --ngxsp-volume-thumb-size:12px;\n --ngxsp-volume-thumb-shadow:none;\n --ngxsp-focus-ring:0 0 0 2px var(--wmp-accent);\n color:var(--wmp-text-2);\n }\n .ngxsp-wmp-volumeControl:hover{--ngxsp-volume-accent:var(--wmp-accent);color:var(--wmp-text)}\n\n /* Drop overlay */\n .ngxsp-wmp-dropOverlay{\n position:absolute;\n inset:12px;\n z-index:40;\n display:grid;\n place-content:center;\n justify-items:center;\n gap:10px;\n border:2px dashed var(--wmp-accent);\n border-radius:14px;\n background:var(--nsp-scrim, rgb(13 14 17 / .88));\n backdrop-filter:blur(6px);\n color:var(--wmp-text);\n text-align:center;\n pointer-events:none;\n }\n .ngxsp-wmp-dropIcon{width:56px;height:56px;display:grid;place-items:center;border-radius:14px;background:var(--wmp-accent-soft);color:var(--wmp-accent)}\n .ngxsp-wmp-dropIcon ngxsp-smart-icon{width:28px;height:28px}\n .ngxsp-wmp-dropOverlay strong{font-size:16px;font-weight:600}\n .ngxsp-wmp-dropOverlay span:last-child{color:var(--wmp-text-2)}\n\n @media (hover:none), (pointer:coarse){\n .ngxsp-wmp-rowFavorite,\n .ngxsp-wmp-rowQueueAction,\n .ngxsp-wmp-cardActions{opacity:1}\n .ngxsp-wmp-cardPlaySlot{opacity:1;transform:none}\n }\n\n /* Compact desktop */\n @media (max-width:1180px){\n .ngxsp-wmp-shell{--wmp-rail-w:208px;--wmp-panel-w:284px}\n .ngxsp-wmp-sourceButton span{display:none}\n .ngxsp-wmp-sourceButton{width:32px;padding:0;justify-content:center}\n .ngxsp-wmp-tableHead,\n .ngxsp-wmp-trackSelect{grid-template-columns:32px minmax(0,2fr) minmax(0,1fr) 48px}\n .ngxsp-wmp-tableHead > span:nth-child(4),\n .ngxsp-wmp-albumCell{display:none}\n .ngxsp-wmp-nowPanel{grid-template-columns:148px minmax(0,1fr);gap:22px;padding:24px}\n .ngxsp-wmp-art{width:148px;height:148px}\n .ngxsp-wmp-nowCopy h1{font-size:26px}\n .ngxsp-wmp-transport{grid-template-columns:minmax(0,1fr) minmax(240px, 1.4fr) minmax(min-content,1fr);gap:16px}\n .ngxsp-wmp-miniNow{grid-template-columns:44px minmax(0,1fr) auto}\n .ngxsp-wmp-miniArt{width:44px;height:44px}\n .ngxsp-wmp-volumeControl{--ngxsp-volume-range-min:56px;--ngxsp-volume-range-max:84px}\n }\n\n @media (max-width:960px) and (min-width:721px){\n .ngxsp-wmp-shell{--wmp-rail-w:188px;--wmp-panel-w:260px}\n .ngxsp-wmp-titleActions .ngxsp-wmp-status{display:none}\n /* The panel is still docked at this width, so the mini player keeps no panel button. */\n .ngxsp-wmp-miniNow > .ngxsp-wmp-iconButton{display:none}\n }\n\n @media (max-height:760px) and (min-width:721px){\n .ngxsp-wmp-nowPanel{padding-top:20px;padding-bottom:20px}\n }\n\n /* Mobile */\n @media (max-width:720px){\n .ngxsp-wmp-shell,\n .ngxsp-wmp-shell.ngxsp-wmp-panelHidden{\n height:auto;\n min-height:100%;\n grid-template-columns:minmax(0,1fr);\n grid-template-rows:auto auto auto auto;\n grid-template-areas:\n \"title\"\n \"rail\"\n \"main\"\n \"panel\";\n --wmp-transport-h:100px;\n padding-bottom:calc(var(--wmp-transport-h) + env(safe-area-inset-bottom, 0px));\n overflow:visible;\n }\n .ngxsp-wmp-shell.ngxsp-wmp-panelHidden .ngxsp-wmp-playlist{display:flex}\n .ngxsp-wmp-titlebar{grid-template-columns:minmax(0,1fr) auto;grid-template-rows:48px auto;row-gap:0;padding:0 12px 10px}\n .ngxsp-wmp-search{grid-column:1 / -1;grid-row:2;justify-self:stretch;width:100%}\n .ngxsp-wmp-titleActions .ngxsp-wmp-status{display:none}\n .ngxsp-wmp-titleActions > .ngxsp-wmp-iconButton{display:none}\n .ngxsp-wmp-rail{border-right:0;border-bottom:1px solid var(--wmp-line)}\n .ngxsp-wmp-nav{flex-direction:row;gap:4px;padding:8px 12px;overflow-x:auto}\n .ngxsp-wmp-navItem{width:auto;flex:0 0 auto;grid-template-columns:16px auto auto;height:32px;gap:6px}\n .ngxsp-wmp-navDivider{width:1px;height:20px;margin:6px 4px}\n /* The library summary is a desktop sidebar thing; the import action is in the top bar. */\n .ngxsp-wmp-railTools{display:none}\n /* Inside the sheet the lyrics take the room that is left. */\n .ngxsp-wmp-lyricsLines{min-height:50vh}\n .ngxsp-wmp-main{overflow:visible}\n .ngxsp-wmp-nowPanel{grid-template-columns:96px minmax(0,1fr);align-items:center;gap:16px;padding:16px}\n .ngxsp-wmp-art{width:96px;height:96px;align-self:start}\n .ngxsp-wmp-playerSurface{min-height:120px;gap:10px}\n .ngxsp-wmp-nowCopy h1{font-size:20px}\n .ngxsp-wmp-nowOscillogram{grid-template-columns:minmax(0,1fr)}\n .ngxsp-wmp-nowTime{display:none}\n .ngxsp-wmp-nowActions{gap:8px}\n .ngxsp-wmp-nowActions .ngxsp-wmp-iconButton.outlined{width:36px;height:36px}\n .ngxsp-wmp-primaryButton{height:36px}\n .ngxsp-wmp-sectionHeader{padding:16px 16px 4px}\n .ngxsp-wmp-sectionScroll{padding:4px 8px 16px;gap:18px}\n .ngxsp-wmp-shell:not(.ngxsp-wmp-browseMode) .ngxsp-wmp-cardGrid{grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:minmax(132px, 42%);overflow-x:auto;scroll-snap-type:x mandatory;padding-bottom:4px}\n .ngxsp-wmp-card{scroll-snap-align:start}\n .ngxsp-wmp-shell:not(.ngxsp-wmp-browseMode) .ngxsp-wmp-cardGrid .ngxsp-wmp-card:nth-child(n+5){display:none}\n .ngxsp-wmp-browseMode .ngxsp-wmp-cardGrid{grid-template-columns:repeat(auto-fill, minmax(140px, 1fr));gap:8px}\n .ngxsp-wmp-shell:not(.ngxsp-wmp-browseMode) .ngxsp-wmp-sectionScroll > .ngxsp-wmp-section:nth-child(n+2){display:none}\n .ngxsp-wmp-cardActions{top:14px;right:14px}\n .ngxsp-wmp-shell:not(.ngxsp-wmp-browseMode) .ngxsp-wmp-table .ngxsp-wmp-trackRow:nth-of-type(n+6){display:none}\n .ngxsp-wmp-tableHead{display:none}\n .ngxsp-wmp-trackRow{grid-template-columns:minmax(0,1fr) auto}\n .ngxsp-wmp-trackSelect{grid-template-columns:28px minmax(0,1fr) 44px;gap:10px}\n .ngxsp-wmp-trackSelect > .ngxsp-wmp-trackCell{display:none}\n .ngxsp-wmp-rowQueueAction{display:none}\n .ngxsp-wmp-rowActions{padding-right:4px}\n /* The panel no longer sits under the page: it opens over it, from the mini player. */\n .ngxsp-wmp-playlist,\n .ngxsp-wmp-shell.ngxsp-wmp-panelHidden .ngxsp-wmp-playlist{display:none}\n .ngxsp-wmp-playlist.sheet,\n .ngxsp-wmp-shell.ngxsp-wmp-panelHidden .ngxsp-wmp-playlist.sheet{\n display:flex;\n position:fixed;\n left:0;\n right:0;\n top:0;\n /* Stops above the mini player: the listener keeps play, pause and skip while browsing. */\n bottom:calc(var(--wmp-transport-h) + env(safe-area-inset-bottom, 0px));\n z-index:40;\n border:0;\n border-bottom:1px solid var(--wmp-line);\n overflow-y:auto;\n background:var(--wmp-s0);\n padding-top:env(safe-area-inset-top, 0px);\n }\n /* The page truncates its queue for room; the sheet has none of that problem. */\n .ngxsp-wmp-playlist.sheet .ngxsp-wmp-queueList .ngxsp-wmp-queueItem:nth-child(n+5){display:grid}\n .ngxsp-wmp-sheetHeader{\n display:flex;\n align-items:center;\n justify-content:space-between;\n gap:12px;\n padding:12px 16px;\n border-bottom:1px solid var(--wmp-line);\n }\n .ngxsp-wmp-sheetHeader strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:15px}\n .ngxsp-wmp-queueList{overflow:visible}\n .ngxsp-wmp-queueList .ngxsp-wmp-queueItem:nth-child(n+5){display:none}\n .ngxsp-wmp-transport{\n position:fixed;\n left:0;\n right:0;\n bottom:0;\n z-index:30;\n height:calc(var(--wmp-transport-h) + env(safe-area-inset-bottom, 0px));\n grid-template-columns:minmax(0,1fr) auto;\n grid-template-rows:minmax(0,1fr) auto;\n gap:0 8px;\n padding:10px 12px calc(6px + env(safe-area-inset-bottom, 0px));\n box-shadow:0 -12px 32px rgb(0 0 0 / .35);\n }\n .ngxsp-wmp-miniNow{grid-template-columns:44px minmax(0,1fr) auto}\n .ngxsp-wmp-miniNow > .ngxsp-wmp-iconButton{display:none}\n /* The sheet is the only way to the queue and the lyrics here, so its button stays. */\n .ngxsp-wmp-miniNow > .ngxsp-wmp-sheetButton{display:grid}\n .ngxsp-wmp-miniArt{width:44px;height:44px}\n .ngxsp-wmp-transportCenter{display:contents}\n .ngxsp-wmp-transportButtons{grid-column:2;grid-row:1;gap:4px}\n .ngxsp-wmp-transportButtons > .ngxsp-wmp-iconButton:first-child,\n .ngxsp-wmp-transportButtons > .ngxsp-wmp-iconButton:last-child{display:none}\n .ngxsp-wmp-seekRow{grid-column:1;grid-row:2;grid-template-columns:minmax(0,1fr)}\n .ngxsp-wmp-seekRow small{display:none}\n /* The seek row gives way before the switches do: a narrower window is a shorter bar to\n drag, which is a smaller loss than a button one can no longer reach. */\n .ngxsp-wmp-transportModes{grid-column:2;grid-row:2;gap:0}\n .ngxsp-wmp-volumeControl{--ngxsp-volume-range-min:56px;--ngxsp-volume-range-max:72px}\n }\n\n /* Narrower than this the seek row has nothing left to give — under 120px it is a stub, not a\n bar — so the switches step aside. The sheet holds all four, which is where they were going\n anyway; what has no other door stays: the speakers, and the mini window. */\n @media (max-width:480px){\n .ngxsp-wmp-transportModes > .ngxsp-wmp-iconButton{display:none}\n .ngxsp-wmp-transportModes > .ngxsp-wmp-devicesButton,\n .ngxsp-wmp-transportModes > .ngxsp-wmp-windowButton{display:grid}\n }\n\n /* Compact windows (desktop): only the player bar stays, fills the window and moves it. The mini window is narrow\n enough to take the phone layout of the bar (two rows); the bottom strip keeps the desktop one. The window is the\n player: its height is the viewport's, whatever the host page does with its own. Outside macOS the window\n controls stay in an overlay along the top: that strip is left to them. */\n .ngxsp-wmp-shell.ngxsp-wmp-compact{height:100vh;min-height:0;display:grid;grid-template:minmax(0,1fr) / minmax(0,1fr);padding:env(titlebar-area-height, 0px) 0 0}\n .ngxsp-wmp-shell.ngxsp-wmp-compact > :not(.ngxsp-wmp-transport){display:none!important}\n .ngxsp-wmp-shell.ngxsp-wmp-compact .ngxsp-wmp-transport{\n grid-area:1 / 1;\n position:static;\n height:auto;\n min-height:0;\n border-top:0;\n box-shadow:none;\n user-select:none;\n -webkit-app-region:drag;\n }\n .ngxsp-wmp-compact .ngxsp-wmp-transport :is(button, ngxsp-time-slider, ngxsp-volume-control){-webkit-app-region:no-drag}\n .ngxsp-wmp-compact .ngxsp-wmp-sheetButton,\n .ngxsp-wmp-compact .ngxsp-wmp-transportModes > .ngxsp-wmp-iconButton{display:none}\n /* The window buttons are in the compact actions beside the volume, but nothing else in a mini\n window reaches a speaker: that one stays, and the seek row is what gives way for it. */\n .ngxsp-wmp-compact .ngxsp-wmp-transportModes > .ngxsp-wmp-devicesButton{display:grid}\n .ngxsp-wmp-compactMini .ngxsp-wmp-transport{align-content:center;padding:10px 12px 8px}\n /* Mini window with lyrics: the pane on top (the window grows for it), the player's two rows under it. */\n .ngxsp-wmp-compactMiniLyrics .ngxsp-wmp-transport{grid-template-rows:minmax(0,1fr) auto auto;align-content:stretch;row-gap:4px}\n .ngxsp-wmp-compactMiniLyrics .ngxsp-wmp-compactLyrics{grid-column:1 / -1;grid-row:1;align-self:stretch}\n .ngxsp-wmp-compactMiniLyrics .ngxsp-wmp-miniNow,\n .ngxsp-wmp-compactMiniLyrics .ngxsp-wmp-transportButtons{grid-row:2}\n .ngxsp-wmp-compactMiniLyrics .ngxsp-wmp-seekRow,\n .ngxsp-wmp-compactMiniLyrics .ngxsp-wmp-transportModes{grid-row:3}\n .ngxsp-wmp-compactLyrics{\n position:relative;\n min-height:0;\n display:grid;\n align-content:start;\n gap:2px;\n overflow-y:auto;\n padding:6px 4px 10px;\n border-bottom:1px solid var(--wmp-line);\n -webkit-app-region:no-drag;\n mask-image:linear-gradient(transparent, #000 18%, #000 82%, transparent);\n }\n .ngxsp-wmp-compactLyrics::-webkit-scrollbar{display:none}\n .ngxsp-wmp-compactLyricsLine{\n margin:0;\n padding:3px 6px;\n border:0;\n border-radius:var(--wmp-r-sm);\n background:none;\n color:var(--wmp-text-3);\n font:inherit;\n font-size:13px;\n line-height:1.35;\n text-align:left;\n cursor:pointer;\n transition:color var(--wmp-dur) var(--wmp-ease), font-size var(--wmp-dur) var(--wmp-ease);\n }\n .ngxsp-wmp-compactLyricsLine.plain{cursor:default;color:var(--wmp-text-2)}\n .ngxsp-wmp-compactLyricsLine.active{color:var(--wmp-text);font-size:15px;font-weight:650}\n .ngxsp-wmp-compactLyricsLine:not(.plain):hover{color:var(--wmp-text-2)}\n /* Bottom strip with lyrics: the line being sung and the next one, between the track and the controls. */\n .ngxsp-wmp-shell.ngxsp-wmp-compactBarLyrics .ngxsp-wmp-transport{grid-template-columns:minmax(0,1fr) minmax(0,1.2fr) minmax(280px,560px) minmax(0,1fr)}\n .ngxsp-wmp-barLyrics{min-width:0;display:grid;gap:2px;text-align:center}\n .ngxsp-wmp-barLyrics strong,.ngxsp-wmp-barLyrics span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}\n .ngxsp-wmp-barLyrics strong{color:var(--wmp-text);font-size:15px;font-weight:650}\n .ngxsp-wmp-barLyrics span{color:var(--wmp-text-3);font-size:12px}\n .ngxsp-wmp-compactActions{display:inline-flex;align-items:center;gap:2px}\n .ngxsp-wmp-compactActions button{width:28px;height:28px;display:grid;place-items:center;padding:0;border:0;border-radius:var(--wmp-r-sm);background:transparent;color:var(--wmp-text-2);cursor:pointer}\n .ngxsp-wmp-compactActions button:hover{background:var(--wmp-s2);color:var(--wmp-text)}\n .ngxsp-wmp-compactActions button:focus-visible{outline:2px solid var(--wmp-accent);outline-offset:1px}\n .ngxsp-wmp-compactActions ngxsp-smart-icon{width:16px;height:16px}\n\n @media (prefers-reduced-motion:reduce){\n .ngxsp-wmp-shell *,\n .ngxsp-wmp-shell *::before,\n .ngxsp-wmp-shell *::after{animation:none!important;transition:none!important}\n }\n`],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class NgxSmartPlayerAudioUiComponent implements AfterViewChecked {\n readonly visualizerBars = WAVEFORM_BARS;\n private readonly cdr = inject(ChangeDetectorRef);\n private readonly host = inject<ElementRef<HTMLElement>>(ElementRef);\n private readonly failedArtworkUrls = new Set<string>();\n\n @Input() config: PlayerConfig | null = null;\n @Input() plugins: PlayerPlugin[] = [];\n @Input() ports?: Partial<PlayerPorts>;\n @Input() engines?: EngineFactory[];\n @Input() debug = false;\n @Input() startTimeSec: number | null = null;\n /** A music library opens silently; playback starts when the listener picks something. */\n @Input() autoplayOnInit = false;\n /** Incremented by the host when the listener picks something to play. */\n @Input() playRequest = 0;\n @Input() canPrev = false;\n @Input() canNext = false;\n @Input() shuffleActive = false;\n @Input() shuffleLabel = 'Shuffle: off';\n @Input() repeatMode: 'off' | 'one' | 'all' = 'off';\n @Input() repeatLabel = 'Repeat: off';\n @Input() hasPlaylistControls = false;\n @Input() castEnabled = false;\n @Input() libraryViewsLabel = 'Audio library views';\n @Input() transportLabel = 'Audio transport';\n @Input() seekLabel = 'Playback position';\n @Input() libraryTitle = 'Local library';\n @Input() libraryContentTitle = '';\n /** \"Back to Albums\": shown above the title while something is open; null at the start of a view. */\n @Input() backLabel: string | null = null;\n @Input() libraryMeta = '';\n @Input() libraryEyebrow = 'Music library';\n @Input() searchPlaceholder = 'Search';\n @Input() searchLabel = 'Search audio library';\n @Input() searchTerm = '';\n @Input() libraryViews: AudioUiBrowseChip[] = [];\n @Input() activeLibraryView = 'tracks';\n @Input() librarySections: AudioUiBrowseSection[] = [];\n @Input() queueTitle = 'Up next';\n @Input() queueEyebrow = 'Playlist';\n @Input() tracksLabel = 'Tracks';\n @Input() titleColumnLabel = 'Title';\n @Input() artistColumnLabel = 'Artist';\n @Input() albumColumnLabel = 'Album';\n @Input() timeColumnLabel = 'Time';\n @Input() nowPlayingLabel = 'Now playing';\n @Input() nowListeningLabel = 'Now listening';\n @Input() noTrackTitle = 'No track selected';\n @Input() miniPlayerLabel = 'Audio mini-player';\n @Input() readyLabel = 'Ready for local playback';\n @Input() selectTrackTitle = 'Select a track';\n @Input() selectTrackBody = 'Open local files or choose a queue item.';\n @Input() emptyLibraryLabel = 'No tracks indexed yet.';\n @Input() playlistsLabel = 'Playlists';\n @Input() hidePlaylistsLabel = 'Hide playlists';\n @Input() devicesLabel = 'Devices';\n /** The window's size (desktop): the whole app, a floating mini player or a bottom strip. */\n @Input() compactMode: SmartCompactMode = 'full';\n /** True where the host can resize its window: shows the buttons that switch between the three. */\n @Input() compactModes = false;\n @Input() compactMiniLabel = 'Mini player';\n @Input() compactBarLabel = 'Bottom bar';\n @Input() compactRestoreLabel = 'Full window';\n @Output() compactModeChange = new EventEmitter<SmartCompactMode>();\n /** Lyrics in the compact windows: a pane above the mini player, the line being sung in the bottom strip. */\n @Input() compactLyrics = false;\n @Input() compactLyricsLabel = 'Lyrics';\n @Output() compactLyricsToggle = new EventEmitter<void>();\n /** The host app's logo in the title bar (an image URL); without it, a generic music tile. */\n @Input() brandLogoSrc = '';\n @Input() hideDevicesLabel = 'Hide devices';\n @Input() previousLabel = 'Previous';\n @Input() nextLabel = 'Next';\n @Input() playLabel = 'Play';\n @Input() pauseLabel = 'Pause';\n @Input() stopLabel = 'Stop';\n @Input() addLabel = 'Add';\n @Input() queueNextLabel = 'Play next';\n @Input() queueAddLabel = 'Add to queue';\n @Input() createLabel = 'Create';\n @Input() renameLabel = 'Rename';\n @Input() deleteLabel = 'Delete';\n @Input() saveLabel = 'Save';\n @Input() cancelLabel = 'Cancel';\n @Input() refreshLabel = 'Refresh';\n @Input() tracksCountLabel = 'track(s)';\n @Input() newPlaylistPlaceholder = 'New playlist name';\n @Input() renamePlaylistPlaceholder = 'Rename playlist';\n @Input() remotePlaybackLabel = 'Remote playback';\n @Input() emptyQueueLabel = 'Queue is empty.';\n @Input() emptyPlaylistTargetsLabel = 'Create a playlist to save the current track.';\n @Input() selectTrackForPlaylistLabel = 'Select a track to add it to a playlist.';\n @Input() addToPlaylistLabel = 'Add to a list';\n @Input() playlistTargetLabel = 'Add to a list: ';\n @Input() removeItemLabel = 'Remove';\n @Input() emptyDevicesLabel = 'No playback device available.';\n @Input() currentDuration = '';\n @Input() currentTrackId = '';\n @Input() currentTitle = '';\n @Input() currentSubtitle = '';\n @Input() currentMeta = '';\n @Input() currentArtworkUrl = '';\n @Input() favoriteActive = false;\n @Input() favoriteLabel = 'Add to favorites';\n /** Whether anything can be locked: there has to be a code to unlock with first. */\n @Input() lockAvailable = false;\n /** Whether a piece of a track can be made into a ringtone here. */\n @Input() ringtoneAvailable = false;\n @Input() ringtoneLabel = 'Make a ringtone';\n @Input() lockLabel = 'Lock';\n @Input() unlockLabel = 'Take out of the vault';\n @Input() favoriteActiveLabel = 'Remove from favorites';\n @Input() favoritesLabel = 'Favorites';\n @Input() queueItems: AudioUiListItem[] = [];\n @Input() currentTrackAvailable = false;\n @Input() playlistOptions: AudioUiPlaylistOption[] = [];\n /** Track waiting to be filed, chosen from a library row; without it the playing track is the target. */\n @Input() set playlistTargetTrack(track: { id: string; title: string } | null) {\n this.playlistTarget = track;\n // The panel shows the lists as soon as a track waits for one.\n if (track) {\n this.playlistToolsOpen = true;\n this.revealPanel();\n }\n }\n\n get playlistTargetTrack(): { id: string; title: string } | null {\n return this.playlistTarget;\n }\n\n private playlistTarget: { id: string; title: string } | null = null;\n /** Items the listener may remove where they are shown: an own station, a track inside an open playlist. */\n @Input() removableItemIds: readonly string[] = [];\n /** Shown above the library sections, to add a station by its address. */\n @Input() stationForm: AudioUiStationForm | null = null;\n /** The Settings view's sections, shown in place of the library while the host passes them. */\n @Input() settingsSections: SmartSettingsSection[] = [];\n /** Shown above the library sections, to connect a media server. */\n @Input() serverForm: AudioUiServerForm | null = null;\n @Input() devicesOpen = false;\n /** Lyrics of the playing track; the panel tab only appears when the host provides them. */\n @Input() lyricsPanel: AudioUiLyricsPanel | null = null;\n @Input() showDeviceButton = true;\n @Input() deviceItems: AudioUiDeviceItem[] = [];\n @Input() closeLabel = 'Close';\n @Input() sourceChangeLabel = 'Open file';\n @Input() sourceChangeTitle = '';\n @Input() sourceDropTitle = '';\n @Input() sourceDropHint = '';\n @Input() sourceChangeAccept = 'audio/*';\n /** When set (desktop shell), the rail offers folder import and keeps single-file import as a secondary action. */\n @Input() folderImportLabel = '';\n @Input() libraryStatus = '';\n @Input() libraryBusy = false;\n @Input() languageLabel = 'Language';\n @Input() activeLanguage = '';\n @Input() languageOptions: AudioUiLanguageOption[] = [];\n @Input() statusMessage = '';\n @Input() statusKind: AudioUiStatusKind = 'info';\n @Input() showResumeProgress = false;\n @Input() outputVolume = 100;\n @Input() outputVolumeLabel = 'Output volume';\n @Input() outputMuteLabel = 'Mute output';\n @Input() outputUnmuteLabel = 'Restore sound';\n\n // Public media output aliases intentionally mirror native media event names.\n // eslint-disable-next-line @angular-eslint/no-output-native\n @Output() ended = new EventEmitter<void>();\n @Output() videoSize = new EventEmitter<{ width: number; height: number }>();\n // eslint-disable-next-line @angular-eslint/no-output-native\n @Output() progress = new EventEmitter<SmartPlayerProgress>();\n @Output() prev = new EventEmitter<void>();\n @Output() next = new EventEmitter<void>();\n @Output() toggleShuffle = new EventEmitter<void>();\n @Output() cycleRepeat = new EventEmitter<void>();\n @Output() cast = new EventEmitter<void>();\n @Output() subtitles = new EventEmitter<void>();\n @Output() selectLibraryView = new EventEmitter<string>();\n /** Back to the screen the open album, artist, genre or list came from (see `backLabel`). */\n @Output() back = new EventEmitter<void>();\n @Output() settingChange = new EventEmitter<SmartSettingChange>();\n @Output() settingAction = new EventEmitter<SmartSettingAction>();\n @Output() selectLibraryItem = new EventEmitter<string>();\n /** Plays a whole card (album, artist, playlist). Falls back to `selectLibraryItem` when nobody listens. */\n @Output() playLibraryItem = new EventEmitter<string>();\n @Output() addLibraryItemNext = new EventEmitter<string>();\n @Output() addLibraryItemToQueue = new EventEmitter<string>();\n @Output() selectQueueItem = new EventEmitter<string>();\n @Output() createPlaylist = new EventEmitter<string>();\n @Output() addCurrentToPlaylist = new EventEmitter<string>();\n @Output() addTrackToPlaylist = new EventEmitter<{ trackId: string; playlistId: string }>();\n /** A library row asks to be filed: the host answers by setting `playlistTargetTrack`. */\n @Output() requestPlaylistTarget = new EventEmitter<string>();\n @Output() cancelPlaylistTarget = new EventEmitter<void>();\n @Output() removeLibraryItem = new EventEmitter<string>();\n @Output() addStation = new EventEmitter<{ name: string; url: string }>();\n @Output() connectServer = new EventEmitter<{ kind?: string; address: string; username: string; password: string }>();\n /** Looks for servers of this kind on the local network. */\n @Output() discoverServers = new EventEmitter<string>();\n @Output() connectDiscoveredServer = new EventEmitter<string>();\n @Output() renamePlaylist = new EventEmitter<{ id: string; name: string }>();\n @Output() deletePlaylist = new EventEmitter<string>();\n @Output() toggleDevices = new EventEmitter<void>();\n @Output() refreshDevices = new EventEmitter<void>();\n /** The listener opened the lyrics; the host can look them up then, instead of for every track played. */\n @Output() openLyrics = new EventEmitter<void>();\n /** Looks for the lyrics of the playing track again. */\n @Output() refreshLyrics = new EventEmitter<void>();\n /** Plays from the start of a lyrics line. */\n @Output() seekLyrics = new EventEmitter<number>();\n @Output() playOnDevice = new EventEmitter<string>();\n @Output() stopOnDevice = new EventEmitter<string>();\n @Output() primaryPlay = new EventEmitter<void>();\n @Output() primaryPlaybackToggle = new EventEmitter<AudioUiPlaybackIntent>();\n @Output() playerStateChange = new EventEmitter<PlayerState>();\n @Output() toggleFavorite = new EventEmitter<string>();\n @Output() toggleLock = new EventEmitter<string>();\n @Output() makeRingtone = new EventEmitter<string>();\n /** \"Show in Finder\" for the track playing, where the host can show its file (desktop); empty hides the button. */\n @Input() revealFileLabel = '';\n @Output() revealFile = new EventEmitter<string>();\n @Output() sourceFileChange = new EventEmitter<File>();\n @Output() addFolder = new EventEmitter<void>();\n @Output() languageChange = new EventEmitter<string>();\n @Output() searchTermChange = new EventEmitter<string>();\n @Output() outputVolumeChange = new EventEmitter<number>();\n @Output() outputMuteToggle = new EventEmitter<void>();\n\n @ViewChild(SmartPlayerComponent) private smartPlayer?: SmartPlayerComponent;\n @ViewChild('audioFileInput') private audioFileInput?: ElementRef<HTMLInputElement>;\n private readonly document = inject(DOCUMENT);\n @ViewChild('libraryScroll') private libraryScroll?: ElementRef<HTMLElement>;\n @ViewChild('lyricsLines') private lyricsLinesEl?: ElementRef<HTMLElement>;\n @ViewChild('queueList') private queueListEl?: ElementRef<HTMLElement>;\n @ViewChild('compactLyricsLines') private compactLyricsEl?: ElementRef<HTMLElement>;\n private compactLyricsFollowed = '';\n @ViewChild('panel') private panelEl?: ElementRef<HTMLElement>;\n @ViewChild('sheetButton') private sheetButtonEl?: ElementRef<HTMLElement>;\n private lyricsFollowed = '';\n private queueFollowed = '';\n\n fileDragActive = false;\n /** Phones only: the queue, lists, devices and lyrics live in a sheet the listener opens. */\n panelSheetOpen = false;\n playlistToolsOpen = false;\n lyricsOpen = false;\n queuePanelOpen = true;\n /** The queue's own switch. It used to be the panel shown whenever no other one was. */\n queueOpen = true;\n /**\n * The stack's order, fixed rather than the order they were opened in: a panel always in the\n * same place is found by eye instead of by memory.\n */\n private readonly panelOrder: AudioUiPanelTab[] = ['queue', 'lyrics', 'devices', 'playlists'];\n private readonly collapsedPanels = new Set<AudioUiPanelTab>();\n playlistDraftName = '';\n stationNameDraft = '';\n stationUrlDraft = '';\n serverKindDraft = '';\n serverAddressDraft = '';\n serverUsernameDraft = '';\n serverPasswordDraft = '';\n editingPlaylistId: string | null = null;\n renameDraftName = '';\n playerState: PlayerState | null = null;\n progressPercent = 0;\n currentTimeSec = 0;\n durationSec = 0;\n elapsedLabel = '0:00';\n detectedDurationLabel = '';\n private fileDragDepth = 0;\n\n get isPlaying(): boolean {\n return this.playerState?.kind === 'playing';\n }\n\n get isHomeView(): boolean {\n return this.activeLibraryView === 'home';\n }\n\n get primaryViews(): AudioUiBrowseChip[] {\n return this.libraryViews.filter((view) => !COLLECTION_VIEW_IDS.includes(view.id) && !APP_VIEW_IDS.includes(view.id));\n }\n\n get appViews(): AudioUiBrowseChip[] {\n return this.libraryViews.filter((view) => APP_VIEW_IDS.includes(view.id));\n }\n\n get collectionViews(): AudioUiBrowseChip[] {\n return this.libraryViews.filter((view) => COLLECTION_VIEW_IDS.includes(view.id));\n }\n\n /** The first open panel, for the few places that still speak of one at a time. */\n get panelTab(): AudioUiPanelTab {\n return this.panelOrder.find((panel) => this.isPanelOpen(panel)) ?? 'queue';\n }\n\n get lyricsTitle(): string {\n return this.lyricsPanel?.title ?? '';\n }\n\n isPanelOpen(panel: AudioUiPanelTab): boolean {\n if (panel === 'queue') return this.queueOpen;\n if (panel === 'lyrics') return this.lyricsOpen;\n // Devices is the host's to own: it holds the connection, so the switch lives up there.\n if (panel === 'devices') return this.devicesOpen;\n return this.playlistToolsOpen;\n }\n\n isPanelCollapsed(panel: AudioUiPanelTab): boolean {\n return this.collapsedPanels.has(panel);\n }\n\n /** Folds a panel to its header, so four open ones still fit without hiding any of them. */\n togglePanelCollapsed(panel: AudioUiPanelTab): void {\n if (!this.collapsedPanels.delete(panel)) this.collapsedPanels.add(panel);\n }\n\n /** Opens or closes one panel and leaves the others where they are. */\n togglePanel(panel: AudioUiPanelTab): void {\n const wasOpen = this.isPanelOpen(panel);\n if (!wasOpen) {\n this.revealPanel();\n this.collapsedPanels.delete(panel);\n }\n if (panel === 'devices') {\n this.toggleDevices.emit();\n return;\n }\n if (panel === 'lyrics') {\n this.lyricsOpen = !wasOpen;\n if (!wasOpen) {\n this.lyricsFollowed = '';\n this.openLyrics.emit();\n }\n return;\n }\n if (panel === 'playlists') {\n this.playlistToolsOpen = !wasOpen;\n return;\n }\n this.queueOpen = !wasOpen;\n }\n\n get displayDurationLabel(): string {\n return this.detectedDurationLabel || this.currentDuration || this.durationFromMeta() || '0:00';\n }\n\n viewIcon(id: string): SmartPlayerIconName {\n return VIEW_ICONS[id] ?? 'layers';\n }\n\n playItem(id: string): void {\n if (this.playLibraryItem.observed) {\n this.playLibraryItem.emit(id);\n } else {\n this.selectLibraryItem.emit(id);\n }\n }\n\n /** Artwork that failed to load (dead favicon, removed cover) falls back to the placeholder icon. */\n artworkSrc(url: string | undefined): string {\n return url && !this.failedArtworkUrls.has(url) ? url : '';\n }\n\n markArtworkFailed(url: string): void {\n if (this.failedArtworkUrls.has(url)) return;\n this.failedArtworkUrls.add(url);\n this.cdr.markForCheck();\n }\n\n artTone(seed: string): number {\n let hash = 0;\n for (let i = 0; i < seed.length; i += 1) hash = (hash * 31 + seed.charCodeAt(i)) >>> 0;\n return hash % 8;\n }\n\n isBarPlayed(index: number): boolean {\n return ((index + 0.5) / this.visualizerBars.length) * 100 <= this.progressPercent;\n }\n\n artistOf(item: AudioUiListItem): string {\n return item.artist || this.splitSubtitle(item.subtitle)[0] || '-';\n }\n\n albumOf(item: AudioUiListItem): string {\n return item.album || this.splitSubtitle(item.subtitle)[1] || item.meta || '-';\n }\n\n durationOf(item: AudioUiListItem): string {\n return item.duration || item.meta || '';\n }\n\n togglePrimaryPlayback(): void {\n if (this.config && this.smartPlayer) {\n const intent: AudioUiPlaybackIntent = this.isPlaying ? 'pause' : 'play';\n this.smartPlayer.togglePlay();\n this.primaryPlaybackToggle.emit(intent);\n return;\n }\n this.primaryPlay.emit();\n }\n\n openSourcePicker(): void {\n this.audioFileInput?.nativeElement.click();\n }\n\n seekTo(timeSec: number): void {\n this.smartPlayer?.seekTo(timeSec);\n }\n\n /**\n * How far the library is scrolled. A host that moves between screens reads it before leaving one, so coming\n * back can put the listener where they were rather than at the top of a list they had already walked down.\n * On a narrow layout the page scrolls instead of the panel, so whichever one moved is the one reported.\n */\n contentScrollTop(): number {\n const panel = this.libraryScroll?.nativeElement;\n if (panel && panel.scrollTop > 0) return panel.scrollTop;\n return this.document.defaultView?.scrollY ?? 0;\n }\n\n /** Puts the library back where it was, or at the top with 0 on entering a screen for the first time. */\n setContentScrollTop(value: number): void {\n const top = Number.isFinite(value) && value > 0 ? value : 0;\n const panel = this.libraryScroll?.nativeElement;\n // After the new screen's rows exist, otherwise there is nothing tall enough to scroll through yet.\n requestAnimationFrame(() => {\n if (panel) panel.scrollTop = top;\n this.document.defaultView?.scrollTo({ top, behavior: 'auto' });\n });\n }\n\n setOutputVolumePercent(value: number): void {\n this.smartPlayer?.onVolume(this.normalizeOutputVolume(value) / 100);\n }\n\n onOutputVolumeRatioChange(value: number): void {\n const nextVolume = this.normalizeOutputVolume(value * 100);\n this.setOutputVolumePercent(nextVolume);\n this.outputVolumeChange.emit(nextVolume);\n }\n\n onSourceFileInput(event: Event): void {\n const input = event.target as HTMLInputElement | null;\n const file = input?.files?.[0];\n if (file) this.sourceFileChange.emit(file);\n if (input) {\n input.value = '';\n input.blur();\n }\n }\n\n onSearchInput(event: Event): void {\n this.searchTermChange.emit((event.target as HTMLInputElement | null)?.value ?? '');\n }\n\n onFileDragEnter(event: DragEvent): void {\n if (!this.dragHasFiles(event)) return;\n event.preventDefault();\n this.fileDragDepth += 1;\n this.fileDragActive = true;\n this.cdr.markForCheck();\n }\n\n onFileDragOver(event: DragEvent): void {\n if (!this.dragHasFiles(event)) return;\n event.preventDefault();\n if (event.dataTransfer) event.dataTransfer.dropEffect = 'copy';\n }\n\n onFileDragLeave(event: DragEvent): void {\n if (!this.dragHasFiles(event)) return;\n event.preventDefault();\n this.fileDragDepth = Math.max(0, this.fileDragDepth - 1);\n if (this.fileDragDepth === 0) this.fileDragActive = false;\n this.cdr.markForCheck();\n }\n\n onFileDrop(event: DragEvent): void {\n if (!this.dragHasFiles(event)) return;\n event.preventDefault();\n this.fileDragDepth = 0;\n this.fileDragActive = false;\n const file = event.dataTransfer?.files?.[0];\n if (file) this.sourceFileChange.emit(file);\n this.cdr.markForCheck();\n }\n\n onPlayerStateChange(state: PlayerState): void {\n this.playerState = state;\n this.playerStateChange.emit(state);\n this.cdr.markForCheck();\n }\n\n onPlayerProgress(event: SmartPlayerProgress): void {\n this.progress.emit(event);\n const duration = Number.isFinite(event.duration) ? event.duration : 0;\n this.currentTimeSec = Number.isFinite(event.currentTime) ? Math.max(0, event.currentTime) : 0;\n this.durationSec = Math.max(0, duration);\n this.progressPercent = duration > 0 ? Math.max(0, Math.min(100, (event.currentTime / duration) * 100)) : 0;\n this.elapsedLabel = this.formatTime(event.currentTime);\n this.detectedDurationLabel = duration > 0 ? this.formatTime(duration) : '';\n this.cdr.markForCheck();\n }\n\n toggleQueuePanel(): void {\n if (this.isSheetLayout()) {\n if (this.panelSheetOpen) this.closePanelSheet();\n else this.openPanelSheet();\n return;\n }\n this.queuePanelOpen = !this.queuePanelOpen;\n }\n\n /** The panels as their switches show them — order, icon and name, named once for both places. */\n get panelSwitches(): Array<{ id: AudioUiPanelTab; icon: SmartPlayerIconName; label: string }> {\n const switches: Array<{ id: AudioUiPanelTab; icon: SmartPlayerIconName; label: string }> = [\n { id: 'queue', icon: 'list', label: this.queueTitle },\n ];\n if (this.lyricsPanel) switches.push({ id: 'lyrics', icon: 'lyrics', label: this.lyricsTitle });\n if (this.showDeviceButton) {\n switches.push({\n id: 'devices',\n icon: this.devicesOpen ? 'devices-active' : 'devices',\n label: this.devicesOpen ? this.hideDevicesLabel : this.devicesLabel,\n });\n }\n switches.push({ id: 'playlists', icon: 'layers', label: this.playlistsLabel });\n return switches;\n }\n\n /** Whether a panel is on screen: open, and in a column that is not itself put away. */\n isPanelShowing(panel: AudioUiPanelTab): boolean {\n return this.queuePanelOpen && this.isPanelOpen(panel);\n }\n\n /**\n * The transport bar's switch for one panel. Turning one on opens the column, or the sheet on a\n * phone; turning the last one off puts the column away rather than leaving it empty.\n */\n togglePanelFromBar(panel: AudioUiPanelTab): void {\n if (!this.isPanelShowing(panel)) {\n this.selectPanelTab(panel);\n return;\n }\n // Devices belongs to the host, so its input only turns over on the next round: what decides\n // is whether anything other than the panel just closed is still open.\n const othersOpen = this.panelOrder.some((one) => one !== panel && this.isPanelOpen(one));\n this.togglePanel(panel);\n if (othersOpen) return;\n if (this.isSheetLayout()) this.closePanelSheet();\n else this.queuePanelOpen = false;\n }\n\n /** Makes sure a panel is showing, without closing the ones already there. */\n selectPanelTab(tab: AudioUiPanelTab): void {\n if (!this.isPanelOpen(tab)) this.togglePanel(tab);\n else this.revealPanel();\n }\n\n /** The viewport the sheet styles use: below it the panel only exists as a sheet. */\n private isSheetLayout(): boolean {\n return typeof matchMedia === 'function' && matchMedia('(max-width: 720px)').matches;\n }\n\n /** Shows the panel, which on a phone means opening the sheet it lives in. */\n private revealPanel(): void {\n this.queuePanelOpen = true;\n // Already open: tapping a tab inside the sheet must not take focus back to its header.\n if (this.isSheetLayout() && !this.panelSheetOpen) this.openPanelSheet();\n }\n\n /** Opens the sheet that holds the queue, the lists, the devices and the lyrics on a phone. */\n openPanelSheet(): void {\n this.panelSheetOpen = true;\n this.queuePanelOpen = true;\n // The close button is the first thing a screen reader should land on.\n setTimeout(() => this.panelEl?.nativeElement.querySelector<HTMLElement>('.ngxsp-wmp-sheetHeader button')?.focus());\n }\n\n closePanelSheet(): void {\n if (!this.panelSheetOpen) return;\n this.panelSheetOpen = false;\n setTimeout(() => this.sheetButtonEl?.nativeElement.focus());\n }\n\n /** The track playing has lyrics a compact window can show. */\n get hasCompactLyrics(): boolean {\n return (this.lyricsPanel?.lines.length ?? 0) > 0;\n }\n\n get showCompactLyrics(): boolean {\n return this.compactLyrics && this.hasCompactLyrics;\n }\n\n /** The line being sung, from the position the player reports; -1 before the first one or without timed lines. */\n get activeLyricsIndex(): number {\n const lines = this.lyricsPanel?.lines ?? [];\n let found = -1;\n for (let index = 0; index < lines.length; index++) {\n const time = lines[index].timeSec;\n if (time === undefined || time > this.currentTimeSec + 0.001) break;\n found = index;\n }\n return found;\n }\n\n /** Plays from the start of a line, and tells the host so it can record the move. */\n playFromLyrics(timeSec: number): void {\n this.smartPlayer?.seekTo(timeSec);\n this.seekLyrics.emit(timeSec);\n }\n\n /**\n * Keeps what is playing in sight: the track in the queue, and the line being sung in the\n * lyrics panel and in the mini window. Each only scrolls when what it follows changes, and\n * each scrolls inside its own list rather than moving the page under everything else.\n */\n ngAfterViewChecked(): void {\n const reduced = typeof matchMedia === 'function' && matchMedia('(prefers-reduced-motion: reduce)').matches;\n // A queue one has scrolled away from is a queue that has lost the track it is about, and\n // the next track arrives on its own: nobody is there to scroll back to it.\n const queue = this.queueListEl?.nativeElement;\n const playing = queue?.querySelector<HTMLElement>('.ngxsp-wmp-queueItem.active');\n const queueKey = playing && queue\n ? `${Array.prototype.indexOf.call(queue.children, playing)}:${queue.clientHeight}`\n : '';\n if (queue && playing && queueKey !== this.queueFollowed) {\n this.queueFollowed = queueKey;\n // Measured against the list itself: offsetTop answers for whichever ancestor happens to be\n // positioned, which is not this one, and the answer is then a scroll to nowhere.\n const box = queue.getBoundingClientRect();\n const row = playing.getBoundingClientRect();\n queue.scrollTo({\n top: queue.scrollTop + (row.top - box.top) - (box.height - row.height) / 2,\n behavior: reduced ? 'auto' : 'smooth',\n });\n }\n const compact = this.compactLyricsEl?.nativeElement;\n const compactActive = compact?.querySelector<HTMLElement>('.ngxsp-wmp-compactLyricsLine.active');\n // The pane's height is in the key: the window grows for it after it shows, and the line is centred again then.\n const compactKey = compactActive && compact ? `${this.currentTrackId}:${this.activeLyricsIndex}:${compact.clientHeight}` : '';\n if (compact && compactActive && compactKey !== this.compactLyricsFollowed) {\n this.compactLyricsFollowed = compactKey;\n // Scrolled within the pane only: the window itself does not move.\n compact.scrollTo({ top: compactActive.offsetTop - compact.clientHeight / 2 + compactActive.offsetHeight / 2, behavior: 'smooth' });\n }\n if (this.panelTab !== 'lyrics') return;\n const container = this.lyricsLinesEl?.nativeElement;\n const active = container?.querySelector<HTMLElement>('.ngxsp-wmp-lyricsLine.active');\n const key = active && container ? `${Array.prototype.indexOf.call(container.children, active)}:${active.textContent}` : '';\n if (!active || key === this.lyricsFollowed) return;\n this.lyricsFollowed = key;\n active.scrollIntoView({ block: 'center', behavior: reduced ? 'auto' : 'smooth' });\n }\n\n togglePlaylistTools(): void {\n this.playlistToolsOpen = !this.playlistToolsOpen;\n }\n\n get hasPlaylists(): boolean {\n return this.playlistOptions.length > 0;\n }\n\n isRemovable(itemId: string): boolean {\n return this.removableItemIds.includes(itemId);\n }\n\n /** Files the chosen track, or the playing one when the listener did not pick a row. */\n /** Width of the row actions column: favourite, play next and add to queue, then a list and a remove button when a row has them. */\n rowActionsWidth(items: ReadonlyArray<{ id: string }>): string {\n const buttons = 3 + (this.hasPlaylists ? 1 : 0) + (items.some((item) => this.isRemovable(item.id)) ? 1 : 0);\n return `${buttons * 32 + (buttons - 1) * 2 + 8}px`;\n }\n\n addToPlaylist(playlistId: string): void {\n const target = this.playlistTargetTrack;\n if (target) this.addTrackToPlaylist.emit({ trackId: target.id, playlistId });\n else this.addCurrentToPlaylist.emit(playlistId);\n }\n\n onServerKindChange(event: Event): void {\n this.serverKindDraft = (event.target as HTMLSelectElement | null)?.value ?? '';\n }\n\n onServerAddressInput(event: Event): void {\n this.serverAddressDraft = (event.target as HTMLInputElement | null)?.value ?? '';\n }\n\n onServerUsernameInput(event: Event): void {\n this.serverUsernameDraft = (event.target as HTMLInputElement | null)?.value ?? '';\n }\n\n onServerPasswordInput(event: Event): void {\n this.serverPasswordDraft = (event.target as HTMLInputElement | null)?.value ?? '';\n }\n\n selectedServerKind(form: AudioUiServerForm): AudioUiServerKind | undefined {\n const id = this.serverKindDraft || form.kinds?.[0]?.id;\n return form.kinds?.find((kind) => kind.id === id);\n }\n\n submitServer(event: Event): void {\n event.preventDefault();\n const address = this.serverAddressDraft.trim();\n if (!address) return;\n const kind = this.serverForm ? this.selectedServerKind(this.serverForm) : undefined;\n const credentials = kind?.credentials !== false;\n this.connectServer.emit({\n ...(kind ? { kind: kind.id } : {}),\n address,\n username: credentials ? this.serverUsernameDraft.trim() : '',\n password: credentials ? this.serverPasswordDraft : '',\n });\n // The password is handed over once and never kept in the form.\n this.serverPasswordDraft = '';\n }\n\n onStationNameInput(event: Event): void {\n this.stationNameDraft = (event.target as HTMLInputElement | null)?.value ?? '';\n }\n\n onStationUrlInput(event: Event): void {\n this.stationUrlDraft = (event.target as HTMLInputElement | null)?.value ?? '';\n }\n\n submitStation(event: Event): void {\n event.preventDefault();\n const url = this.stationUrlDraft.trim();\n if (!url) return;\n this.addStation.emit({ name: this.stationNameDraft.trim(), url });\n this.stationNameDraft = '';\n this.stationUrlDraft = '';\n }\n\n onPlaylistDraftInput(event: Event): void {\n this.playlistDraftName = (event.target as HTMLInputElement | null)?.value ?? '';\n }\n\n submitCreatePlaylist(): void {\n const name = this.playlistDraftName.trim();\n if (!name) return;\n this.createPlaylist.emit(name);\n this.playlistDraftName = '';\n this.playlistToolsOpen = true;\n }\n\n startRenamePlaylist(id: string, name: string): void {\n this.editingPlaylistId = id;\n this.renameDraftName = name;\n this.playlistToolsOpen = true;\n }\n\n onRenameDraftInput(event: Event): void {\n this.renameDraftName = (event.target as HTMLInputElement | null)?.value ?? '';\n }\n\n cancelRenamePlaylist(): void {\n this.editingPlaylistId = null;\n this.renameDraftName = '';\n }\n\n submitRenamePlaylist(): void {\n if (!this.editingPlaylistId || !this.renameDraftName.trim()) return;\n this.renamePlaylist.emit({ id: this.editingPlaylistId, name: this.renameDraftName.trim() });\n this.cancelRenamePlaylist();\n }\n\n private splitSubtitle(subtitle: string | undefined): [string, string] {\n const [artist = '', ...albumParts] = (subtitle ?? '').split(' - ');\n return [artist.trim(), albumParts.join(' - ').trim()];\n }\n\n private durationFromMeta(): string {\n const match = this.currentMeta.match(/(?:^|[-\\s])(\\d{1,2}:\\d{2})(?:\\s|$)/);\n return match?.[1] ?? '';\n }\n\n private formatTime(value: number): string {\n if (!Number.isFinite(value) || value < 0) return '0:00';\n const totalSeconds = Math.floor(value);\n const minutes = Math.floor(totalSeconds / 60);\n const seconds = totalSeconds % 60;\n return `${minutes}:${seconds.toString().padStart(2, '0')}`;\n }\n\n private normalizeOutputVolume(value: number): number {\n return Math.max(0, Math.min(100, Math.round(Number.isFinite(value) ? value : this.outputVolume)));\n }\n\n private dragHasFiles(event: DragEvent): boolean {\n return Array.from(event.dataTransfer?.types ?? []).includes('Files');\n }\n}\n","import { NgModule } from '@angular/core';\nimport { NgxSmartPlayerAudioUiComponent } from './audio-player-ui.component';\n\n@NgModule({\n imports: [NgxSmartPlayerAudioUiComponent],\n exports: [NgxSmartPlayerAudioUiComponent],\n})\nexport class NgxSmartPlayerAudioUiModule {}\n"],"mappings":";;;;;AAiIA,MAAM,sBAAsB;CAAC;CAAa;CAAW;AAAW;AAEhE,MAAM,eAAe,CAAC,UAAU;AAEhC,MAAM,aAAkD;CACtD,MAAM;CACN,QAAQ;CACR,QAAQ;CACR,SAAS;CACT,QAAQ;CACR,WAAW;CACX,SAAS;CACT,WAAW;CACX,SAAS;CACT,WAAW;CACX,UAAU;AACX;AAED,MAAM,gBAAgB;CACpB;CAAI;CAAI;CAAI;CAAI;CAAI;CAAI;CAAI;CAAI;CAAI;CAAI;CAAI;CAAI;CAAI;CAAI;CAAI;CAAI;CAAI;CAAI;CAAI;CAAI;CAAI;CAAI;CAAI;CAC5F;CAAI;CAAI;CAAI;CAAI;CAAI;CAAI;CAAI;CAAI;CAAI;CAAI;CAAI;CAAI;CAAI;CAAI;CAAI;CAAI;CAAI;CAAI;CAAI;CAAI;CAAI;CAAI;CAAI;AAC7F;AAq3DD,IAAa,iCAAb,MAAa,+BAA8B;CAChC,iBAAiB;CACT,MAAM,OAAO,iBAAiB;CAC9B,OAAO,OAAgC,UAAU;CACjD,oCAAoB,IAAI,IAAG;CAEnC,SAA8B;CAC9B,UAA0B,CAAA;CAC1B;CACA;CACA,QAAQ;CACR,eAA8B;CAE9B,iBAAiB;CAEjB,cAAc;CACd,UAAU;CACV,UAAU;CACV,gBAAgB;CAChB,eAAe;CACf,aAAoC;CACpC,cAAc;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.ts","../../../projects/ngx-smart-player-ui-audio/src/lib/audio-ui.module.ts"],"sourcesContent":["import { AfterViewChecked, ChangeDetectionStrategy, ChangeDetectorRef, Component, DestroyRef, ElementRef, EventEmitter, HostListener, Input, Output, ViewChild, inject } from '@angular/core';\nimport { CommonModule, DOCUMENT } from '@angular/common';\nimport type { EngineFactory, PlayerConfig, PlayerPlugin, PlayerPorts, PlayerState, SmartCompactMode, SmartPlayerIconName, SmartPlayerProgress, SmartSettingAction, SmartSettingChange, SmartSettingsSection } from '@ngxsplayer/ngx-smart-player';\nimport { SmartEmptyPageComponent, SmartNotificationsComponent, SmartPlayerComponent, SmartPlayerIconComponent, SmartSettingsComponent, type CastLabels, type SmartEmptyPage, type SmartNotificationsPage } from '@ngxsplayer/ngx-smart-player';\nimport { MENU_WALK, NgxspTimeSlider, NgxspVolumeControl, isShown, keepTabInside, walkWithArrows } from '@ngxsplayer/ngx-smart-player-ui-core';\n\nexport interface AudioUiListItem {\n id: string;\n title: string;\n subtitle?: string;\n meta?: string;\n artist?: string;\n album?: string;\n genre?: string;\n duration?: string;\n artworkUrl?: string;\n favorite?: boolean;\n lastPlayedLabel?: string;\n progressPercent?: number;\n active?: boolean;\n /**\n * A live stream rather than a file: it plays, it goes in a list and it can be a favourite, but\n * there is nothing in it to cut a ringtone out of — no duration, and no end. The bell is not\n * drawn on it, which is the only thing this changes.\n */\n live?: boolean;\n}\n\n/** Form shown above a library view, to add a station by its address. */\nexport interface AudioUiStationForm {\n title: string;\n namePlaceholder: string;\n urlPlaceholder: string;\n submitLabel: string;\n hint?: string;\n}\n\n/** A server type of the connection form. */\nexport interface AudioUiServerKind {\n id: string;\n label: string;\n /** False for servers without accounts (DLNA): the user name and password fields are hidden. */\n credentials?: boolean;\n /** Placeholder of the address field for this type. */\n addressPlaceholder?: string;\n /** The app can look for servers of this type on the local network. */\n discoverable?: boolean;\n}\n\nexport interface AudioUiServerDiscovery {\n searchLabel: string;\n searchingLabel: string;\n connectLabel: string;\n /** Shown after a search that found nothing. */\n emptyLabel?: string;\n busy?: boolean;\n servers: Array<{ id: string; name: string; subtitle?: string }>;\n}\n\n/** Form shown above a library view, to connect a media server. */\nexport interface AudioUiServerForm {\n title: string;\n /** Server types to choose from; the first one is selected by default. */\n kinds?: AudioUiServerKind[];\n kindLabel?: string;\n addressPlaceholder: string;\n usernamePlaceholder: string;\n passwordPlaceholder: string;\n submitLabel: string;\n hint?: string;\n busy?: boolean;\n /** Servers found on the local network, for the kinds marked `discoverable`. */\n discovery?: AudioUiServerDiscovery;\n}\n\nexport interface AudioUiBrowseChip {\n id: string;\n label: string;\n count?: number;\n active?: boolean;\n /**\n * The facets this view opens onto, listed under it in the rail and only while it is active.\n * A rail of three entries that each hold their facets reads in one glance, where twelve flat\n * entries did not. Leave it out for a view that is a destination rather than a family.\n */\n children?: readonly AudioUiBrowseChip[];\n}\n\n/** The way to the rest of a shelf that arrives a page at a time. */\nexport interface AudioUiSectionMore {\n label: string;\n /** Where one is, under the label: « 24 sur 412 ». */\n detail?: string;\n /** While the rest is on its way. */\n busy?: boolean;\n}\n\nexport interface AudioUiBrowseSection {\n id: string;\n title: string;\n layout?: 'list' | 'cards';\n /**\n * What the items are. A card is drawn the same way for a track and for an album, and the\n * actions are not the same: one is a favourite with a ringtone in it, the other is a heading\n * that stands for several. Tracks when nothing says otherwise, which is what a shelf holds.\n */\n kind?: 'tracks' | 'groups';\n items: AudioUiListItem[];\n /**\n * Ce que la section dit quand elle ne tient rien.\n *\n * Une étagère vide d'une page qui en a d'autres n'a rien à dire — elle s'efface. Mais une\n * liste qu'on vient de créer est une page entière faite d'une seule section vide : sans un\n * mot, elle s'ouvre sur son nom et un grand blanc.\n */\n emptyLabel?: string;\n /** Left out by a shelf that is whole, which is most of them. */\n more?: AudioUiSectionMore;\n}\n\nexport interface AudioUiDeviceItem {\n id: string;\n name: string;\n subtitle?: string;\n active?: boolean;\n /** The play button's text, for devices where it does something else (another app: \"Transfer\"). */\n actionLabel?: string;\n /** False where there is nothing to stop (another app takes playback over for good). */\n stoppable?: boolean;\n}\n\n/**\n * A way out for the sound on this machine: speakers, a headset, whatever the system offers.\n *\n * It is not a device in the sense above — nothing is handed over, the player keeps playing and only\n * the speakers change — which is why the two sit in groups of their own in the panel.\n */\nexport interface AudioUiOutputItem {\n id: string;\n label: string;\n /** What is worth adding about it, usually that it is the one the system chose. */\n detail?: string;\n active?: boolean;\n}\n\nexport interface AudioUiPlaylistOption {\n id: string;\n name: string;\n /** How much it holds, in the host's own words: \"1 titre\", \"12 titres\". */\n countLabel?: string;\n}\n\nexport interface AudioUiLanguageOption {\n id: string;\n label: string;\n}\n\nexport type AudioUiStatusKind = 'info' | 'success' | 'error';\nexport type AudioUiPlaybackIntent = 'play' | 'pause';\n/**\n * What the side column and the bar's switches can show.\n *\n * The lyrics were one of these and are not any more: Audio-Lecteur.dc.html puts them in the\n * player, where the track is, and a column panel repeating them was the same words twice.\n */\nexport type AudioUiPanelTab = 'queue' | 'devices';\n\n/** A step of the trail: the family, the facet, then what is open. */\n/** Something the page one has opened is for: listening to it, or doing to the whole of it. */\nexport interface AudioUiDetailHeadAction {\n id: string;\n label: string;\n icon?: SmartPlayerIconName;\n /** The one the page is for: drawn in the accent. Give it first; it is drawn where it is put. */\n primary?: boolean;\n /** Drawn as its icon alone, its label becoming its name. For a habit, not for a sentence. */\n compact?: boolean;\n /** For an action one turns on and off: said out loud, and drawn as held down. */\n active?: boolean;\n disabled?: boolean;\n}\n\n/**\n * The head of what one has opened: an album, an artist, a genre, a list.\n *\n * A page one has gone into says what it is before it says what it holds — the cover, the name,\n * what it is made of, how it was recorded, and what it is for. Leave it out and the page keeps\n * the plain heading a list has.\n */\nexport interface AudioUiDetailHead {\n title: string;\n /** What it is made of: who made it, when, how many, how long. */\n meta?: string;\n /** How it was recorded and where it comes from, said more quietly. */\n format?: string;\n artworkUrl?: string;\n actions?: readonly AudioUiDetailHeadAction[];\n}\n\n/**\n * Listening with the screen to itself: what the board draws when a track is the page rather than a\n * line in a list — its cover, its name, what it is made of, and the words beside it.\n */\nexport interface AudioUiPlayerPage {\n title: string;\n artist?: string;\n /** How it was recorded and where it comes from: \"Racines · 2021 · FLAC 44,1 kHz\". */\n meta?: string;\n artworkUrl?: string;\n /** The way out, naming the view one came from; nothing drawn without it. */\n backLabel?: string;\n /** What one does with the track rather than with its playback; the transport holds the rest. */\n actions?: readonly AudioUiDetailHeadAction[];\n}\n\n/**\n * One facet of the page one is reading, as a chip that narrows it to that facet. The boards draw\n * them under the page's own title, where the rail used to hold them as entries of a family.\n */\nexport interface AudioUiViewFacet {\n id: string;\n label: string;\n count?: number;\n active?: boolean;\n disabled?: boolean;\n}\n\n/** One kind of result, as a chip that narrows what is shown to it. */\nexport interface AudioUiSearchFilter {\n id: string;\n label: string;\n count?: number;\n active?: boolean;\n disabled?: boolean;\n}\n\n/**\n * The one result that answers best, which the board draws apart from the rest: what it is, where\n * it was left, and the things one does with it rather than with a list.\n */\nexport interface AudioUiSearchBest {\n item: AudioUiListItem;\n /** A line of its own: where it was left, and where it comes from. */\n note?: string;\n actions?: readonly AudioUiDetailHeadAction[];\n}\n\n/** One place the music comes from: what it is, what it holds, and whether it is the one in use. */\nexport interface AudioUiSourceRow {\n id: string;\n title: string;\n detail?: string;\n icon?: SmartPlayerIconName;\n /** The word for its state — in use, connected, idle — shown as a pill. */\n state?: string;\n /** The one feeding playback: drawn in the accent, as the board draws it. */\n active?: boolean;\n actions?: readonly AudioUiDetailHeadAction[];\n}\n\n/** Sources of a kind: what this machine holds, and what answers over the network. */\nexport interface AudioUiSourceGroup {\n id: string;\n title: string;\n rows: readonly AudioUiSourceRow[];\n}\n\n/**\n * Where the music comes from, all of it on one page. The rail's own entries open each kind; this\n * is the family's page, which says what there is and which one is feeding playback.\n */\nexport interface AudioUiSourcesPage {\n title: string;\n summary?: string;\n /** The button beside the title, for adding one. */\n addLabel?: string;\n groups: readonly AudioUiSourceGroup[];\n /** The way to a source that takes an address rather than a folder. */\n footerLabel?: string;\n footerHint?: string;\n}\n\n/** How a view is laid out: a grid of covers, or a list one reads down. */\nexport type AudioUiViewMode = 'grid' | 'list';\n\nexport interface AudioUiTrailStep {\n id: string;\n label: string;\n}\n\n/** One line of lyrics; timed lines can be clicked to play from there, and the player follows them by itself. */\nexport interface AudioUiLyricsLine {\n text: string;\n timeSec?: number;\n}\n\n/** Lyrics of the playing track, timed when the source has them. */\nexport interface AudioUiLyricsPanel {\n title: string;\n /** Where they come from, or why there are none. */\n status?: string;\n lines: AudioUiLyricsLine[];\n searchLabel?: string;\n busy?: boolean;\n /** Prefix of the label of a clickable line, e.g. \"Play from\". */\n seekLabel?: string;\n}\n\n/**\n * Views of what one has gathered, drawn under the families rather than among them.\n *\n * The lists left this group: the boards put them in the rail at the level of Sources, where one\n * goes to a place rather than to a shelf of one's own making.\n */\nconst COLLECTION_VIEW_IDS = ['favorites', 'recents'];\n/** Views of the app rather than of the library, listed last. */\nconst APP_VIEW_IDS = ['settings'];\n\nconst VIEW_ICONS: Record<string, SmartPlayerIconName> = {\n home: 'home',\n // The three families, which a phone draws side by side at the bottom: without one each they\n // were the same glyph three times over.\n library: 'grid',\n activity: 'clock',\n sources: 'folder',\n tracks: 'music',\n albums: 'disc',\n artists: 'user',\n genres: 'tag',\n favorites: 'heart',\n recents: 'clock',\n playlists: 'list',\n servers: 'server',\n webradios: 'radio',\n settings: 'settings',\n};\n\n/** What a time looks like: 4:12, 1:04:12, --:--. Anything else is not one. */\nconst TIME_LIKE = /^[\\d-]{1,2}(:[\\d-]{2}){1,2}$/;\n\nconst WAVEFORM_BARS = [\n 32, 48, 40, 62, 54, 72, 46, 38, 58, 80, 66, 50, 42, 60, 76, 88, 70, 56, 44, 64, 82, 94, 74, 60,\n 48, 68, 86, 78, 62, 50, 40, 58, 72, 90, 76, 64, 52, 44, 60, 74, 66, 54, 42, 50, 62, 48, 38, 30,\n];\n\n@Component({\n selector: 'ngxsp-audio-player-ui',\n standalone: true,\n imports: [CommonModule, SmartPlayerComponent, SmartPlayerIconComponent, SmartSettingsComponent, SmartNotificationsComponent, SmartEmptyPageComponent, NgxspTimeSlider, NgxspVolumeControl],\n template: `\n <section\n class=\"ngxsp-wmp-shell\"\n [class.ngxsp-wmp-dragActive]=\"fileDragActive\"\n [class.ngxsp-wmp-browseMode]=\"!isHomeView\"\n [class.ngxsp-wmp-playing]=\"isPlaying\"\n [class.ngxsp-wmp-panelHidden]=\"!queuePanelOpen\"\n [class.ngxsp-wmp-compact]=\"compactMode !== 'full'\"\n [class.ngxsp-wmp-compactMini]=\"compactMode === 'mini'\"\n [class.ngxsp-wmp-compactBar]=\"compactMode === 'bar'\"\n [class.ngxsp-wmp-compactMiniLyrics]=\"compactMode === 'mini' && showCompactLyrics\"\n [class.ngxsp-wmp-compactBarLyrics]=\"compactMode === 'bar' && showCompactLyrics && activeLyricsIndex >= 0\"\n (dragenter)=\"onFileDragEnter($event)\"\n (dragover)=\"onFileDragOver($event)\"\n (dragleave)=\"onFileDragLeave($event)\"\n (drop)=\"onFileDrop($event)\"\n >\n @if (trackMenu) {\n <button\n class=\"ngxsp-wmp-trackMenuScrim\"\n type=\"button\"\n [attr.aria-label]=\"closeLabel + ' - ' + trackMenu.title\"\n (click)=\"dismissTrackMenu()\"\n (contextmenu)=\"$event.preventDefault(); dismissTrackMenu()\"\n ></button>\n <div\n #trackMenuBox\n class=\"ngxsp-wmp-trackMenu\"\n role=\"menu\"\n tabindex=\"-1\"\n [attr.aria-label]=\"trackMenu.title\"\n [style.left.px]=\"trackMenu.x\"\n [style.top.px]=\"trackMenu.y\"\n (keydown)=\"onMenuKeys($event)\"\n >\n <!-- Le nom de la boîte le dit déjà : laissé dans l'arbre, il s'entendait deux fois. -->\n <strong class=\"ngxsp-wmp-trackMenuTitle\" aria-hidden=\"true\">{{ trackMenu.title }}</strong>\n <button type=\"button\" role=\"menuitem\" (click)=\"runTrackAction('next')\">\n <ngxsp-smart-icon name=\"next\" /><span>{{ queueNextLabel }}</span>\n </button>\n <button type=\"button\" role=\"menuitem\" (click)=\"runTrackAction('queue')\">\n <ngxsp-smart-icon name=\"playlist-plus\" /><span>{{ queueAddLabel }}</span>\n </button>\n @if (isRemovable(trackMenu.id)) {\n <button type=\"button\" role=\"menuitem\" class=\"danger\" (click)=\"runTrackAction('remove')\">\n <ngxsp-smart-icon name=\"close\" /><span>{{ removeItemLabel }}</span>\n </button>\n }\n </div>\n }\n\n @if (fileDragActive) {\n <div class=\"ngxsp-wmp-dropOverlay\" aria-hidden=\"true\">\n <span class=\"ngxsp-wmp-dropIcon\"><ngxsp-smart-icon name=\"folder\" /></span>\n <strong>{{ sourceDropTitle || sourceChangeTitle || sourceChangeLabel }}</strong>\n @if (sourceDropHint) {\n <span>{{ sourceDropHint }}</span>\n }\n </div>\n }\n\n @if (config) {\n <!-- The engine, and only the engine: the cover and the waveform of this application are its\n own, so the player is mounted in a box of a pixel. Its own stage for a sound — a disc\n turning, five bars pulsing — went on turning inside that box, clipped away. -->\n <div class=\"ngxsp-wmp-engineMount\" aria-hidden=\"true\" inert>\n <ngx-smart-player\n [config]=\"config\"\n [plugins]=\"plugins\"\n [ports]=\"ports\"\n [engines]=\"engines\"\n [debug]=\"debug\"\n [handlingFailure]=\"handlingFailure\"\n [startTimeSec]=\"startTimeSec\"\n [autoplayOnInit]=\"autoplayOnInit\"\n [playRequest]=\"playRequest\"\n [canPrev]=\"canPrev\"\n [canNext]=\"canNext\"\n [shuffleActive]=\"shuffleActive\"\n [shuffleLabel]=\"shuffleLabel\"\n [repeatMode]=\"repeatMode\"\n [repeatLabel]=\"repeatLabel\"\n [hasPlaylistControls]=\"hasPlaylistControls\"\n [mediaMode]=\"'audio'\"\n [showAudioVisual]=\"false\"\n [castEnabled]=\"castEnabled\"\n [castLabels]=\"castLabels\"\n\n (ended)=\"ended.emit()\"\n (videoSize)=\"videoSize.emit($event)\"\n (prev)=\"prev.emit()\"\n (next)=\"next.emit()\"\n (toggleShuffle)=\"toggleShuffle.emit()\"\n (cycleRepeat)=\"cycleRepeat.emit()\"\n (cast)=\"cast.emit()\"\n (subtitles)=\"subtitles.emit()\"\n (progress)=\"onPlayerProgress($event)\"\n (stateChange)=\"onPlayerStateChange($event)\"\n />\n </div>\n }\n\n <header class=\"ngxsp-wmp-titlebar\" data-tauri-drag-region>\n <div class=\"ngxsp-wmp-brand\">\n @if (brandLogoSrc) {\n <img class=\"ngxsp-wmp-brandLogo\" [src]=\"brandLogoSrc\" alt=\"\" width=\"26\" height=\"26\" />\n } @else {\n <span class=\"ngxsp-wmp-brandIcon\" aria-hidden=\"true\"><ngxsp-smart-icon name=\"music\" /></span>\n }\n <span class=\"ngxsp-wmp-brandName\">NGXSP Audio</span>\n </div>\n\n <label class=\"ngxsp-wmp-search\">\n <ngxsp-smart-icon name=\"search\" />\n <input type=\"search\" [placeholder]=\"searchPlaceholder\" [value]=\"searchTerm\" (input)=\"onSearchInput($event)\" [attr.aria-label]=\"searchLabel\" />\n </label>\n\n <div class=\"ngxsp-wmp-titleActions\">\n @if (statusMessage) {\n <div class=\"ngxsp-wmp-status\" [class.success]=\"statusKind === 'success'\" [class.error]=\"statusKind === 'error'\" [attr.role]=\"statusKind === 'error' ? 'alert' : 'status'\" [attr.aria-live]=\"statusKind === 'error' ? 'assertive' : 'polite'\" aria-atomic=\"true\" [title]=\"statusMessage\">\n {{ statusMessage }}\n </div>\n }\n <!--\n What the top bar carries, when it carries anything. A host whose Sources page owns the\n folders says so by turning this off: one place for one thing beats two that can give\n different answers. A host without such a page keeps it, and that is the default.\n -->\n @if (showSourceButton) {\n <!-- The import action lives in the top bar, as in the video player. A folder is what\n builds the library, so it is the action wherever one can be loaded. -->\n @if (folderImportLabel) {\n <button class=\"ngxsp-wmp-sourceButton\" type=\"button\" [disabled]=\"libraryBusy\" [title]=\"folderImportLabel\" [attr.aria-label]=\"folderImportLabel\" (click)=\"addFolder.emit()\">\n <ngxsp-smart-icon name=\"folder\" />\n <span>{{ folderImportLabel }}</span>\n </button>\n } @else {\n <button class=\"ngxsp-wmp-sourceButton\" type=\"button\" [title]=\"sourceChangeTitle || sourceChangeLabel\" [attr.aria-label]=\"sourceChangeTitle || sourceChangeLabel\" (click)=\"audioFileInput.click()\">\n <ngxsp-smart-icon name=\"folder\" />\n <span>{{ sourceChangeLabel }}</span>\n </button>\n }\n }\n <input #audioFileInput class=\"ngxsp-wmp-fileInput\" type=\"file\" [accept]=\"sourceChangeAccept\" aria-hidden=\"true\" tabindex=\"-1\" (change)=\"onSourceFileInput($event)\" />\n @if (languageOptions.length) {\n <div class=\"ngxsp-wmp-segmented ngxsp-wmp-languageSwitch\" role=\"group\" [attr.aria-label]=\"languageLabel\">\n @for (language of languageOptions; track language.id) {\n <button type=\"button\" [class.active]=\"language.id === activeLanguage\" [attr.aria-pressed]=\"language.id === activeLanguage\" (click)=\"languageChange.emit(language.id)\">\n {{ language.label }}\n </button>\n }\n </div>\n }\n <button class=\"ngxsp-wmp-iconButton\" type=\"button\" [class.active]=\"queuePanelOpen\" [attr.aria-pressed]=\"queuePanelOpen\" [title]=\"queueTitle\" [attr.aria-label]=\"queueTitle\" (click)=\"toggleQueuePanel()\">\n <ngxsp-smart-icon name=\"queue\" />\n </button>\n <!-- The bell the compact boards draw, with the dot that says something happened and\n nobody has looked. The video player has had one; this side had none. -->\n <!--\n What the application did without being asked is read in passing, over whatever one\n was doing. Notifications.dc.html hangs it under the bell: a page took the whole\n window away to say it, and then had to be left again.\n -->\n <!-- Escape closes it, wherever the keyboard is: on the bell, or inside the dialog. -->\n <span class=\"ngxsp-wmp-bellWrap\">\n <!-- Escape closes it from here as well as from inside: a dialog one cannot dismiss by\n key is a trap, and the hand is usually still on the button that opened it. -->\n <button class=\"ngxsp-wmp-iconButton ngxsp-wmp-bellButton\" type=\"button\" aria-haspopup=\"dialog\" [class.active]=\"!!notificationsPage\" [attr.aria-expanded]=\"!!notificationsPage\" [attr.aria-label]=\"notificationsUnread ? notificationsLabel + ' (' + notificationsUnread + ')' : notificationsLabel\" [title]=\"notificationsLabel\" (click)=\"notificationsOpen.emit()\">\n <ngxsp-smart-icon name=\"bell\" />\n @if (notificationsUnread) { <i class=\"ngxsp-wmp-bellDot\" aria-hidden=\"true\"></i> }\n </button>\n @if (notificationsPage) {\n <div class=\"ngxsp-wmp-notificationsPopover\" role=\"dialog\" [attr.aria-label]=\"notificationsLabel\">\n <ngxsp-notifications [page]=\"notificationsPage\" (entryAction)=\"notificationAction.emit($event)\" (markAllRead)=\"notificationsRead.emit()\" />\n </div>\n }\n </span>\n @if (quickViews.length) {\n <!-- On a phone the rail is a strip one scrolls, and these views sat at the far end of\n it: settings were eight drags away, for the view a listener opens most. They move\n up here, on the actions side, and leave the strip at that width rather than being\n listed twice, which is what data-quick does below. Icon only: four more words\n beside the folder button would read as a menu rather than as a way out of one. -->\n <nav class=\"ngxsp-wmp-quickViews\" [attr.aria-label]=\"quickViewsLabel\">\n @for (view of quickViews; track view.id) {\n <button\n class=\"ngxsp-wmp-quickView\"\n type=\"button\"\n [class.active]=\"view.active\"\n [attr.aria-current]=\"view.active ? 'page' : null\"\n [title]=\"view.label\"\n [attr.aria-label]=\"view.label\"\n (click)=\"selectLibraryView.emit(view.id)\"\n >\n <ngxsp-smart-icon [name]=\"viewIcon(view.id)\" />\n </button>\n }\n </nav>\n }\n </div>\n </header>\n\n <aside class=\"ngxsp-wmp-rail\" [attr.aria-label]=\"libraryTitle\">\n @if (libraryViews.length) {\n <nav class=\"ngxsp-wmp-nav\" [attr.aria-label]=\"libraryViewsLabel\">\n @for (view of primaryViews; track view.id) {\n <button class=\"ngxsp-wmp-navItem\" [attr.data-quick]=\"hasQuickView(view.id) ? '' : null\" [class.active]=\"view.active\" type=\"button\" [attr.aria-current]=\"view.active ? 'page' : null\" [attr.aria-expanded]=\"view.children?.length ? !!view.active : null\" [attr.aria-label]=\"view.count !== undefined ? view.label + ' ' + view.count : view.label\" (click)=\"selectLibraryView.emit(view.id)\">\n <ngxsp-smart-icon [name]=\"viewIcon(view.id)\" />\n <span>{{ view.label }}</span>\n @if (view.children?.length) {\n <ngxsp-smart-icon class=\"ngxsp-wmp-navChevron\" [name]=\"view.active ? 'chevron-down' : 'chevron-right'\" />\n } @else if (view.count !== undefined) {\n <small>{{ view.count }}</small>\n }\n </button>\n @if (view.active) {\n @for (child of view.children ?? []; track child.id) {\n <button class=\"ngxsp-wmp-navItem ngxsp-wmp-navChild\" [class.active]=\"child.active\" type=\"button\" [attr.aria-current]=\"child.active ? 'page' : null\" [attr.aria-label]=\"child.count !== undefined ? child.label + ' ' + child.count : child.label\" (click)=\"selectLibraryView.emit(child.id)\">\n <span>{{ child.label }}</span>\n @if (child.count !== undefined) {\n <small>{{ child.count }}</small>\n }\n </button>\n }\n }\n }\n @if (collectionViews.length) {\n <span class=\"ngxsp-wmp-navDivider\" aria-hidden=\"true\"></span>\n @for (view of collectionViews; track view.id) {\n <button class=\"ngxsp-wmp-navItem\" [attr.data-quick]=\"hasQuickView(view.id) ? '' : null\" [class.active]=\"view.active\" type=\"button\" [attr.aria-current]=\"view.active ? 'page' : null\" [attr.aria-label]=\"view.count !== undefined ? view.label + ' ' + view.count : view.label\" (click)=\"selectLibraryView.emit(view.id)\">\n <ngxsp-smart-icon [name]=\"viewIcon(view.id)\" />\n <span>{{ view.label }}</span>\n @if (view.count !== undefined) {\n <small>{{ view.count }}</small>\n }\n </button>\n }\n }\n @if (appViews.length) {\n <span class=\"ngxsp-wmp-navDivider\" aria-hidden=\"true\"></span>\n @for (view of appViews; track view.id) {\n <button class=\"ngxsp-wmp-navItem\" [attr.data-quick]=\"hasQuickView(view.id) ? '' : null\" [class.active]=\"view.active\" type=\"button\" [attr.aria-current]=\"view.active ? 'page' : null\" [attr.aria-label]=\"view.label\" (click)=\"selectLibraryView.emit(view.id)\">\n <ngxsp-smart-icon [name]=\"viewIcon(view.id)\" />\n <span>{{ view.label }}</span>\n </button>\n }\n }\n </nav>\n }\n\n <div class=\"ngxsp-wmp-railTools\">\n <div class=\"ngxsp-wmp-libraryInfo\">\n <strong>{{ libraryTitle }}</strong>\n @if (libraryMeta) {\n <small>{{ libraryMeta }}</small>\n }\n @if (libraryStatus) {\n <small class=\"ngxsp-wmp-libraryStatus\" [class.busy]=\"libraryBusy\" role=\"status\" aria-live=\"polite\">{{ libraryStatus }}</small>\n }\n </div>\n </div>\n </aside>\n\n <!-- A phone puts the families where a thumb reaches them. The rail flattened the whole tree\n into one strip one had to scroll sideways; the boards draw three fixed targets at the\n bottom, and the facets of the open family at the top of what it holds. -->\n <nav class=\"ngxsp-wmp-tabBar\" [attr.aria-label]=\"libraryViewsLabel\">\n @for (view of primaryViews; track view.id) {\n @if (!hasQuickView(view.id)) {\n <button class=\"ngxsp-wmp-tab\" type=\"button\" [class.active]=\"view.active\" [attr.aria-current]=\"view.active ? 'page' : null\" (click)=\"selectLibraryView.emit(view.id)\">\n <ngxsp-smart-icon [name]=\"viewIcon(view.id)\" />\n <span>{{ view.label }}</span>\n </button>\n }\n }\n </nav>\n\n <section #libraryScroll class=\"ngxsp-wmp-main\" [attr.aria-label]=\"libraryContentTitle || libraryTitle\">\n @if (playerPage; as page) {\n <!-- A track as a page: the board draws the cover large, what it is made of under it, and\n the words beside it. The video player has had a page of its own since it became a\n place one goes into; this side listened from the bottom bar and nowhere else. -->\n <section class=\"ngxsp-wmp-playerPage\" [attr.aria-label]=\"page.title\">\n @if (page.backLabel) {\n <button class=\"ngxsp-wmp-playerBack\" type=\"button\" [attr.aria-label]=\"page.backLabel\" [title]=\"page.backLabel\" (click)=\"playerBack.emit()\">\n <ngxsp-smart-icon name=\"chevron-left\" />\n <span>{{ page.backLabel }}</span>\n </button>\n }\n <div class=\"ngxsp-wmp-playerStage\">\n <div class=\"ngxsp-wmp-playerSide\">\n <div class=\"ngxsp-wmp-playerArt ngxsp-wmp-cover\" [class.has-image]=\"!!artworkSrc(page.artworkUrl)\" [attr.data-tone]=\"artTone(currentTrackId || page.title)\">\n @if (artworkSrc(page.artworkUrl); as artworkUrl) {\n <img [src]=\"artworkUrl\" alt=\"\" (error)=\"markArtworkFailed(artworkUrl)\" />\n } @else {\n <ngxsp-smart-icon name=\"music\" />\n }\n </div>\n <div class=\"ngxsp-wmp-playerCopy\">\n <h1>{{ page.title }}</h1>\n @if (page.artist) { <p>{{ page.artist }}</p> }\n @if (page.meta) { <small>{{ page.meta }}</small> }\n @if (page.actions?.length) {\n <div class=\"ngxsp-wmp-detailActions\">\n @for (action of page.actions; track action.id) {\n <button\n class=\"ngxsp-wmp-detailAction\"\n type=\"button\"\n [class.primary]=\"action.primary\"\n [class.compact]=\"action.compact\"\n [class.active]=\"action.active\"\n [disabled]=\"action.disabled\"\n [attr.aria-pressed]=\"action.active === undefined ? null : action.active\"\n [attr.aria-label]=\"action.label\"\n [title]=\"action.label\"\n (click)=\"playerPageAction.emit(action.id)\"\n >\n @if (action.icon) { <ngxsp-smart-icon [name]=\"action.icon\" /> }\n @if (!action.compact) { <span>{{ action.label }}</span> }\n </button>\n }\n </div>\n }\n </div>\n <!-- A sound has no picture of its own to show: the bars say how far it has gone. -->\n <div class=\"ngxsp-wmp-playerWave\" aria-hidden=\"true\">\n @for (bar of waveformBars; track $index) {\n <span [class.played]=\"$index < playedBars\" [style.height.%]=\"bar\"></span>\n }\n </div>\n </div>\n @if (lyricsPanel; as lyrics) {\n <section class=\"ngxsp-wmp-playerLyrics\" [attr.aria-label]=\"lyrics.title\" [attr.aria-busy]=\"lyrics.busy ? 'true' : null\">\n <div class=\"ngxsp-wmp-playerLyricsHead\">\n <ngxsp-smart-icon name=\"lyrics\" />\n <span>{{ lyrics.status || lyrics.title }}</span>\n @if (lyrics.searchLabel) {\n <button class=\"ngxsp-wmp-smallButton\" type=\"button\" [disabled]=\"lyrics.busy\" (click)=\"refreshLyrics.emit()\">{{ lyrics.searchLabel }}</button>\n }\n </div>\n <div class=\"ngxsp-wmp-playerLyricsLines\" #playerLyricsLines>\n @for (line of lyrics.lines; track $index) {\n @if (line.timeSec !== undefined) {\n <button type=\"button\" [class.active]=\"$index === activeLyricsIndex\" [attr.aria-current]=\"$index === activeLyricsIndex ? 'true' : null\" [attr.aria-label]=\"(lyrics.seekLabel ? lyrics.seekLabel + ' - ' : '') + line.text\" (click)=\"playFromLyrics(line.timeSec)\">{{ line.text || '♪' }}</button>\n } @else {\n <p>{{ line.text }}</p>\n }\n }\n </div>\n </section>\n }\n </div>\n </section>\n }\n @if (!playerPage) {\n @if (openViewChildren.length) {\n <div class=\"ngxsp-wmp-tabFacets\" role=\"group\" [attr.aria-label]=\"libraryViewsLabel\">\n @for (child of openViewChildren; track child.id) {\n <button type=\"button\" [class.active]=\"child.active\" [attr.aria-current]=\"child.active ? 'page' : null\" (click)=\"selectLibraryView.emit(child.id)\">\n <span>{{ child.label }}</span>\n @if (child.count !== undefined) { <small>{{ child.count }}</small> }\n </button>\n }\n </div>\n }\n <!--\n Where one is, and the way back up through it. The video player has had this since its\n views became places one goes into; an album one has opened is as deep as a season, and\n the listener was told as little about it as a Back button can say.\n -->\n @if (trail.length > 1) {\n <nav class=\"ngxsp-wmp-trail\" [attr.aria-label]=\"trailLabel\">\n @for (step of trail; track step.id; let last = $last) {\n @if (last) {\n <b aria-current=\"page\">{{ step.label }}</b>\n } @else {\n <button class=\"ngxsp-wmp-trailStep\" type=\"button\" (click)=\"trailStep.emit(step.id)\">{{ step.label }}</button>\n <span aria-hidden=\"true\">›</span>\n }\n }\n </nav>\n }\n @if (isHomeView) {\n <section class=\"ngxsp-wmp-nowPanel\" [attr.aria-label]=\"nowListeningLabel\">\n <div class=\"ngxsp-wmp-art ngxsp-wmp-cover\" [class.has-image]=\"!!artworkSrc(currentArtworkUrl)\" [attr.data-tone]=\"artTone(currentTrackId || currentTitle)\">\n @if (artworkSrc(currentArtworkUrl); as artworkUrl) {\n <img [src]=\"artworkUrl\" alt=\"\" (error)=\"markArtworkFailed(artworkUrl)\" />\n } @else {\n <span class=\"ngxsp-wmp-artNote\" aria-hidden=\"true\"><ngxsp-smart-icon name=\"music\" /></span>\n }\n </div>\n\n <div class=\"ngxsp-wmp-playerSurface\">\n @if (config) {\n <div class=\"ngxsp-wmp-nowCopy\">\n <span class=\"ngxsp-wmp-eyebrow\">\n @if (isPlaying) { <i class=\"ngxsp-wmp-liveDot\" aria-hidden=\"true\"></i> }\n {{ nowListeningLabel }}\n </span>\n <h1>{{ currentTitle || noTrackTitle }}</h1>\n <p>{{ currentSubtitle || readyLabel }}</p>\n @if (currentMeta) { <small>{{ currentMeta }}</small> }\n </div>\n <div class=\"ngxsp-wmp-nowActions\">\n <button class=\"ngxsp-wmp-primaryButton\" type=\"button\" [attr.aria-label]=\"isPlaying ? pauseLabel : playLabel\" (click)=\"togglePrimaryPlayback()\">\n @if (isPlaying) { <ngxsp-smart-icon name=\"pause\" /> } @else { <ngxsp-smart-icon name=\"play\" /> }\n <span>{{ isPlaying ? pauseLabel : playLabel }}</span>\n </button>\n <button class=\"ngxsp-wmp-iconButton outlined\" type=\"button\" [class.active]=\"favoriteActive\" [attr.aria-pressed]=\"favoriteActive\" [title]=\"favoriteActive ? favoriteActiveLabel : favoriteLabel\" [attr.aria-label]=\"favoriteActive ? favoriteActiveLabel : favoriteLabel\" (click)=\"toggleFavorite.emit(currentTrackId)\">\n <ngxsp-smart-icon name=\"heart\" />\n </button>\n <button class=\"ngxsp-wmp-iconButton outlined\" type=\"button\" [class.active]=\"shuffleActive\" [attr.aria-pressed]=\"shuffleActive\" [title]=\"shuffleLabel\" [attr.aria-label]=\"shuffleLabel\" (click)=\"toggleShuffle.emit()\">\n <ngxsp-smart-icon name=\"shuffle\" />\n </button>\n <button class=\"ngxsp-wmp-iconButton outlined\" type=\"button\" [class.active]=\"repeatMode !== 'off'\" [attr.aria-pressed]=\"repeatMode !== 'off'\" [title]=\"repeatLabel\" [attr.aria-label]=\"repeatLabel\" (click)=\"cycleRepeat.emit()\">\n <ngxsp-smart-icon [name]=\"repeatMode === 'one' ? 'repeat-one' : 'repeat'\" />\n </button>\n @if (revealFileLabel) {\n <button class=\"ngxsp-wmp-iconButton outlined\" type=\"button\" [title]=\"revealFileLabel\" [attr.aria-label]=\"revealFileLabel\" (click)=\"revealFile.emit(currentTrackId)\">\n <ngxsp-smart-icon name=\"folder\" />\n </button>\n }\n </div>\n <div class=\"ngxsp-wmp-nowOscillogram\" aria-hidden=\"true\">\n <div class=\"ngxsp-wmp-nowWaveform\">\n @for (bar of visualizerBars; track $index) {\n <span [class.played]=\"isBarPlayed($index)\" [style.height.%]=\"bar\"></span>\n }\n </div>\n <div class=\"ngxsp-wmp-nowProgressLine\">\n <i [style.width.%]=\"progressPercent\"></i>\n </div>\n <span class=\"ngxsp-wmp-nowTime\">\n <small>{{ elapsedLabel }}</small>\n <small>{{ displayDurationLabel }}</small>\n </span>\n </div>\n } @else {\n <div class=\"ngxsp-wmp-emptyPlayer\">\n <h1>{{ selectTrackTitle }}</h1>\n <p>{{ selectTrackBody }}</p>\n <button class=\"ngxsp-wmp-primaryButton\" type=\"button\" (click)=\"audioFileInput.click()\">\n <ngxsp-smart-icon name=\"folder\" />\n <span>{{ sourceChangeLabel }}</span>\n </button>\n </div>\n }\n </div>\n </section>\n }\n\n <section class=\"ngxsp-wmp-librarySurface\">\n <!-- A page with a head of its own does not take the view's as well: Sources says its\n own name, and the eyebrow above it would say the family a second time.\n\n The notifications are not one of those pages any more. They hang off the bell as a\n dialog over the view, and the view is still there underneath: listed here, opening\n the bell tore the heading, the back button and the detail block off the page one was\n reading, which then came back on its own when the dialog closed. -->\n @if (!sourcesPage && !emptyPage && !playlistsPageOpen) {\n <header class=\"ngxsp-wmp-sectionHeader\">\n @if (backLabel) {\n <button class=\"ngxsp-wmp-backButton\" type=\"button\" [attr.aria-label]=\"backLabel\" [title]=\"backLabel\" (click)=\"back.emit()\">\n <ngxsp-smart-icon name=\"chevron-left\" />\n <span>{{ backLabel }}</span>\n </button>\n }\n @if (detailHead; as head) {\n <!-- What one has opened says what it is: the eyebrow is the trail's business now, and\n the plain heading would say the name a second time. -->\n <div class=\"ngxsp-wmp-detailHead\">\n <div class=\"ngxsp-wmp-detailArt\">\n @if (head.artworkUrl) {\n <img [src]=\"head.artworkUrl\" alt=\"\" loading=\"lazy\" decoding=\"async\" />\n }\n </div>\n <div class=\"ngxsp-wmp-detailText\">\n <h1>{{ head.title }}</h1>\n @if (head.meta) { <p class=\"ngxsp-wmp-detailMeta\">{{ head.meta }}</p> }\n @if (head.format) { <p class=\"ngxsp-wmp-detailFormat\">{{ head.format }}</p> }\n @if (head.actions?.length) {\n <div class=\"ngxsp-wmp-detailActions\">\n @for (action of head.actions; track action.id) {\n <button\n class=\"ngxsp-wmp-detailAction\"\n type=\"button\"\n [class.primary]=\"action.primary\"\n [class.compact]=\"action.compact\"\n [class.active]=\"action.active\"\n [disabled]=\"action.disabled\"\n [attr.aria-pressed]=\"action.active === undefined ? null : action.active\"\n [attr.aria-label]=\"action.label\"\n [title]=\"action.label\"\n (click)=\"detailHeadAction.emit(action.id)\"\n >\n @if (action.icon) { <ngxsp-smart-icon [name]=\"action.icon\" /> }\n @if (!action.compact) { <span>{{ action.label }}</span> }\n </button>\n }\n </div>\n }\n </div>\n </div>\n } @else if (hasSearchQuery) {\n <!-- A search is a page of its own: what was looked for, and how much answered. The\n view's own name would say where one happens to stand, which is not the subject. -->\n <h1 class=\"ngxsp-wmp-searchTitle\">{{ searchResultsTitle }}</h1>\n @if (searchResultsSummary) { <p class=\"ngxsp-wmp-searchSummary\">{{ searchResultsSummary }}</p> }\n } @else {\n <!-- A page that says what it is for says it under its own name, and nothing above it:\n the boards draw one line there, not two that say different things. -->\n @if (!viewIntro) { <span>{{ libraryEyebrow }}</span> }\n @if (isHomeView) {\n <h2>{{ libraryContentTitle || libraryTitle }}</h2>\n } @else {\n <h1>{{ libraryContentTitle || libraryTitle }}</h1>\n }\n <!-- What the page is for, said once under its name. -->\n @if (viewIntro) { <p class=\"ngxsp-wmp-viewIntro\">{{ viewIntro }}</p> }\n <!-- The shape the view is read in, which the boards draw beside its name — on a list,\n not on what one has opened: an album is its tracks, in order, and not on a page of\n counters over one list, which is not a shelf one reshapes. -->\n @if (gridLabel && tableLabel && !viewFacets.length && !settingsSections.length) {\n <div class=\"ngxsp-wmp-viewSwitch\" role=\"group\" [attr.aria-label]=\"viewSwitchLabel\">\n <button type=\"button\" [class.active]=\"viewMode === 'grid'\" [attr.aria-pressed]=\"viewMode === 'grid'\" (click)=\"viewModeChange.emit('grid')\">{{ gridLabel }}</button>\n <button type=\"button\" [class.active]=\"viewMode === 'list'\" [attr.aria-pressed]=\"viewMode === 'list'\" (click)=\"viewModeChange.emit('list')\">{{ tableLabel }}</button>\n </div>\n }\n }\n </header>\n }\n <div class=\"ngxsp-wmp-sectionScroll\">\n @if (serverForm; as form) {\n <form class=\"ngxsp-wmp-stationForm\" (submit)=\"submitServer($event)\">\n <span class=\"ngxsp-wmp-stationTitle\">{{ form.title }}</span>\n @if (form.kinds && form.kinds.length > 1) {\n <select class=\"ngxsp-wmp-serverKind\" [value]=\"serverKindDraft || form.kinds[0].id\" (change)=\"onServerKindChange($event)\" [attr.aria-label]=\"form.kindLabel || form.title\">\n @for (kind of form.kinds; track kind.id) {\n <option [value]=\"kind.id\">{{ kind.label }}</option>\n }\n </select>\n }\n @let serverKind = selectedServerKind(form);\n <input type=\"text\" inputmode=\"url\" [value]=\"serverAddressDraft\" (input)=\"onServerAddressInput($event)\" [placeholder]=\"serverKind?.addressPlaceholder || form.addressPlaceholder\" [attr.aria-label]=\"serverKind?.addressPlaceholder || form.addressPlaceholder\" />\n @if (serverKind?.credentials !== false) {\n <input type=\"text\" autocomplete=\"username\" [value]=\"serverUsernameDraft\" (input)=\"onServerUsernameInput($event)\" [placeholder]=\"form.usernamePlaceholder\" [attr.aria-label]=\"form.usernamePlaceholder\" />\n <input type=\"password\" autocomplete=\"current-password\" [value]=\"serverPasswordDraft\" (input)=\"onServerPasswordInput($event)\" [placeholder]=\"form.passwordPlaceholder\" [attr.aria-label]=\"form.passwordPlaceholder\" />\n }\n <button class=\"ngxsp-wmp-smallButton primary\" type=\"submit\" [disabled]=\"form.busy || !serverAddressDraft.trim()\">{{ form.submitLabel }}</button>\n @if (form.discovery && serverKind?.discoverable) {\n <button class=\"ngxsp-wmp-smallButton\" type=\"button\" [disabled]=\"form.discovery.busy\" (click)=\"discoverServers.emit(serverKind!.id)\">{{ form.discovery.busy ? form.discovery.searchingLabel : form.discovery.searchLabel }}</button>\n }\n @if (form.hint) { <small class=\"ngxsp-wmp-stationHint\">{{ form.hint }}</small> }\n @if (form.discovery && serverKind?.discoverable && (form.discovery.servers.length || form.discovery.emptyLabel)) {\n <ul class=\"ngxsp-wmp-discovered\" [attr.aria-label]=\"form.discovery.searchLabel\">\n @for (server of form.discovery.servers; track server.id) {\n <li>\n <span><strong>{{ server.name }}</strong>@if (server.subtitle) { <small>{{ server.subtitle }}</small> }</span>\n <button class=\"ngxsp-wmp-smallButton\" type=\"button\" [disabled]=\"form.busy\" [attr.aria-label]=\"form.discovery.connectLabel + ' - ' + server.name\" (click)=\"connectDiscoveredServer.emit(server.id)\">{{ form.discovery.connectLabel }}</button>\n </li>\n } @empty {\n <li class=\"empty\">{{ form.discovery.emptyLabel }}</li>\n }\n </ul>\n }\n </form>\n }\n @if (stationForm; as form) {\n <form class=\"ngxsp-wmp-stationForm\" (submit)=\"submitStation($event)\">\n <span class=\"ngxsp-wmp-stationTitle\">{{ form.title }}</span>\n <input type=\"text\" [value]=\"stationNameDraft\" (input)=\"onStationNameInput($event)\" [placeholder]=\"form.namePlaceholder\" [attr.aria-label]=\"form.namePlaceholder\" />\n <input type=\"url\" inputmode=\"url\" [value]=\"stationUrlDraft\" (input)=\"onStationUrlInput($event)\" [placeholder]=\"form.urlPlaceholder\" [attr.aria-label]=\"form.urlPlaceholder\" />\n <button class=\"ngxsp-wmp-smallButton primary\" type=\"submit\" [disabled]=\"!stationUrlDraft.trim()\">{{ form.submitLabel }}</button>\n @if (form.hint) { <small class=\"ngxsp-wmp-stationHint\">{{ form.hint }}</small> }\n </form>\n }\n @if (emptyPage) {\n <!-- The first opening: nothing has been loaded, and the page says what to do about it.\n Drawn by the shared component, so both players say it the same way. -->\n <ngxsp-empty-page [page]=\"emptyPage\" (pageAction)=\"emptyPageAction.emit($event)\" />\n }\n @if (settingsSections.length) {\n <!-- The settings have always been a page here rather than a panel over one, but a page\n needs a way out, and theirs was the rail's own entry. That entry leaves the strip\n on a phone now that the title bar carries it, so the page says where it goes back\n to, as the video player's does. -->\n @if (settingsBackLabel) {\n <button class=\"ngxsp-wmp-backButton\" type=\"button\" [attr.aria-label]=\"settingsBackLabel\" [title]=\"settingsBackLabel\" (click)=\"settingsBack.emit()\">\n <ngxsp-smart-icon name=\"chevron-left\" />\n <span>{{ settingsBackLabel }}</span>\n </button>\n }\n <ngxsp-settings [sections]=\"settingsSections\" (settingChange)=\"settingChange.emit($event)\" (settingAction)=\"settingAction.emit($event)\" />\n }\n @if (playlistsPageOpen) {\n <!--\n The lists are a view of the rail, beside Sources. They were a page of the title bar,\n which is where the three that belong to no family are reached — and a list of one's\n own making belongs to the library's side of the window, not to that row.\n An entry of the rail is a destination, so there is nothing to unwind and no way back\n to draw: one leaves it by going somewhere, which is what the rail is for.\n -->\n <section class=\"ngxsp-wmp-playlistsPage\" [attr.aria-label]=\"playlistsLabel\">\n <div class=\"ngxsp-wmp-playlistsHead\">\n <h1>{{ playlistsLabel }}</h1>\n <!-- Combien il y en a, et ce qu'elles sont : la maquette écrit cette ligne sous le\n titre, comme la page des sources écrit la sienne. -->\n @if (playlistsSummary) { <p>{{ playlistsSummary }}</p> }\n </div>\n <section class=\"ngxsp-wmp-management\">\n <div class=\"ngxsp-wmp-inlineForm\">\n <input [value]=\"playlistDraftName\" (input)=\"onPlaylistDraftInput($event)\" (keydown.enter)=\"submitCreatePlaylist()\" type=\"text\" [placeholder]=\"newPlaylistPlaceholder\" [attr.aria-label]=\"newPlaylistPlaceholder\" />\n <button class=\"ngxsp-wmp-smallButton primary\" type=\"button\" (click)=\"submitCreatePlaylist()\" [disabled]=\"!playlistDraftName.trim()\">{{ createLabel }}</button>\n </div>\n @if (playlistTargetTrack; as target) {\n <div class=\"ngxsp-wmp-targetBanner\">\n <span>{{ playlistTargetLabel }}<strong>{{ target.title }}</strong></span>\n <button class=\"ngxsp-wmp-smallButton\" type=\"button\" (click)=\"cancelPlaylistTarget.emit()\">{{ cancelLabel }}</button>\n </div>\n }\n <div class=\"ngxsp-wmp-targets\">\n @for (playlist of playlistOptions; track playlist.id) {\n <div class=\"ngxsp-wmp-target\">\n <div class=\"ngxsp-wmp-targetMain\">\n <span class=\"ngxsp-wmp-targetIcon\" aria-hidden=\"true\"><ngxsp-smart-icon name=\"list\" /></span>\n <span class=\"ngxsp-wmp-rowCopy\">\n <strong>{{ playlist.name }}</strong>\n @if (playlist.countLabel) { <small>{{ playlist.countLabel }}</small> }\n </span>\n @if (playlistTargetTrack || currentTrackAvailable) {\n <button class=\"ngxsp-wmp-smallButton\" type=\"button\" [attr.aria-label]=\"addLabel + ' - ' + playlist.name\" (click)=\"addToPlaylist(playlist.id)\">\n <ngxsp-smart-icon name=\"plus\" />\n <span>{{ addLabel }}</span>\n </button>\n }\n </div>\n @if (editingPlaylistId === playlist.id) {\n <div class=\"ngxsp-wmp-inlineForm\">\n <input [value]=\"renameDraftName\" (input)=\"onRenameDraftInput($event)\" (keydown.enter)=\"submitRenamePlaylist()\" type=\"text\" [placeholder]=\"renamePlaylistPlaceholder\" [attr.aria-label]=\"renamePlaylistPlaceholder\" />\n <button class=\"ngxsp-wmp-smallButton primary\" type=\"button\" (click)=\"submitRenamePlaylist()\" [disabled]=\"!renameDraftName.trim()\">{{ saveLabel }}</button>\n <button class=\"ngxsp-wmp-smallButton\" type=\"button\" (click)=\"cancelRenamePlaylist()\">{{ cancelLabel }}</button>\n </div>\n } @else {\n <div class=\"ngxsp-wmp-targetActions\">\n <button type=\"button\" (click)=\"startRenamePlaylist(playlist.id, playlist.name)\">{{ renameLabel }}</button>\n <button type=\"button\" class=\"danger\" (click)=\"deletePlaylist.emit(playlist.id)\">{{ deleteLabel }}</button>\n </div>\n }\n </div>\n } @empty {\n <div class=\"ngxsp-wmp-emptyLibrary\">{{ emptyPlaylistTargetsLabel }}</div>\n }\n </div>\n @if (!playlistTargetTrack && !currentTrackAvailable && playlistOptions.length) {\n <div class=\"ngxsp-wmp-emptyLibrary\">{{ selectTrackForPlaylistLabel }}</div>\n }\n </section>\n </section>\n }\n @if (sourcesPage; as page) {\n <section class=\"ngxsp-wmp-sourcesPage\" [attr.aria-label]=\"page.title\">\n <div class=\"ngxsp-wmp-sourcesHead\">\n <div>\n <h1>{{ page.title }}</h1>\n @if (page.summary) { <p>{{ page.summary }}</p> }\n </div>\n @if (page.addLabel) {\n <button class=\"ngxsp-wmp-detailAction accent\" type=\"button\" (click)=\"sourceAction.emit({ sourceId: '', actionId: 'add' })\">{{ page.addLabel }}</button>\n }\n </div>\n @for (group of page.groups; track group.id) {\n <h2 class=\"ngxsp-wmp-sourceGroupTitle\">{{ group.title }}</h2>\n <div class=\"ngxsp-wmp-sourceRows\">\n @for (row of group.rows; track row.id) {\n <div class=\"ngxsp-wmp-sourceRow\" [class.active]=\"row.active\">\n <span class=\"ngxsp-wmp-sourceIcon\" aria-hidden=\"true\"><ngxsp-smart-icon [name]=\"row.icon || 'folder'\" /></span>\n <span class=\"ngxsp-wmp-sourceCopy\">\n <strong>{{ row.title }}</strong>\n @if (row.detail) { <small>{{ row.detail }}</small> }\n </span>\n @if (row.state) { <span class=\"ngxsp-wmp-sourceState\">{{ row.state }}</span> }\n @for (action of row.actions ?? []; track action.id) {\n <button class=\"ngxsp-wmp-detailAction\" type=\"button\" [disabled]=\"action.disabled\" (click)=\"sourceAction.emit({ sourceId: row.id, actionId: action.id })\">{{ action.label }}</button>\n }\n </div>\n }\n </div>\n }\n @if (page.footerLabel) {\n <button class=\"ngxsp-wmp-sourceRow footer\" type=\"button\" (click)=\"sourceAction.emit({ sourceId: '', actionId: 'add-server' })\">\n <span class=\"ngxsp-wmp-sourceIcon dashed\" aria-hidden=\"true\"><ngxsp-smart-icon name=\"plus\" /></span>\n <span class=\"ngxsp-wmp-sourceCopy\">\n <strong>{{ page.footerLabel }}</strong>\n @if (page.footerHint) { <small>{{ page.footerHint }}</small> }\n </span>\n </button>\n }\n </section>\n }\n <!-- The facets of the page, which the boards put here rather than in the rail: a page\n with one list under a row of counters, not two entries nobody counted. A search\n replaces the page's content, and brings chips of its own. -->\n @if (viewFacets.length && !hasSearchQuery) {\n <div class=\"ngxsp-wmp-searchFilters ngxsp-wmp-viewFacets\" role=\"group\" [attr.aria-label]=\"viewFacetLabel\">\n @for (facet of viewFacets; track facet.id) {\n <button type=\"button\" [class.active]=\"facet.active\" [disabled]=\"facet.disabled\" [attr.aria-pressed]=\"!!facet.active\" (click)=\"selectViewFacet(facet)\">\n <span>{{ facet.label }}</span>\n @if (facet.count !== undefined) { <small>{{ facet.count }}</small> }\n </button>\n }\n </div>\n }\n @if (hasSearchQuery) {\n @if (searchFilters.length) {\n <div class=\"ngxsp-wmp-searchFilters\" role=\"group\" [attr.aria-label]=\"searchFilterLabel\">\n @for (filter of searchFilters; track filter.id) {\n <button type=\"button\" [class.active]=\"filter.active\" [disabled]=\"filter.disabled\" [attr.aria-pressed]=\"!!filter.active\" (click)=\"selectSearchFilter(filter)\">\n <span>{{ filter.label }}</span>\n @if (filter.count !== undefined) { <small>{{ filter.count }}</small> }\n </button>\n }\n </div>\n }\n @if (searchBest; as best) {\n <section class=\"ngxsp-wmp-searchBestBlock\">\n <h2 class=\"ngxsp-wmp-sourceGroupTitle\">{{ searchBestTitle }}</h2>\n <article class=\"ngxsp-wmp-searchBest\">\n <button class=\"ngxsp-wmp-searchBestArt ngxsp-wmp-cover\" type=\"button\" [class.has-image]=\"!!artworkSrc(best.item.artworkUrl)\" [attr.data-tone]=\"artTone(best.item.id)\" [attr.aria-label]=\"playLabel + ' ' + best.item.title\" (click)=\"searchBestAction.emit('open')\">\n @if (artworkSrc(best.item.artworkUrl); as artworkUrl) {\n <img [src]=\"artworkUrl\" alt=\"\" (error)=\"markArtworkFailed(artworkUrl)\" loading=\"lazy\" decoding=\"async\" />\n } @else {\n <ngxsp-smart-icon name=\"music\" />\n }\n </button>\n <div class=\"ngxsp-wmp-searchBestCopy\">\n <h3>@for (part of searchParts(best.item.title); track $index) {@if (part.hit) {<mark>{{ part.text }}</mark>} @else {<span>{{ part.text }}</span>}}</h3>\n @if (searchBestMeta(best); as meta) { <p>{{ meta }}</p> }\n @if (best.note) { <small>{{ best.note }}</small> }\n @if (best.actions?.length) {\n <div class=\"ngxsp-wmp-detailActions\">\n @for (action of best.actions; track action.id) {\n <button class=\"ngxsp-wmp-detailAction\" type=\"button\" [class.primary]=\"action.primary\" [disabled]=\"action.disabled\" [attr.aria-label]=\"action.label\" [title]=\"action.label\" (click)=\"searchBestAction.emit(action.id)\">\n @if (action.icon) { <ngxsp-smart-icon [name]=\"action.icon\" /> }\n <span>{{ action.label }}</span>\n </button>\n }\n </div>\n }\n </div>\n </article>\n </section>\n }\n }\n @for (section of librarySections; track section.id) {\n <section class=\"ngxsp-wmp-section\">\n <!-- A lone list under chips that already name it does not need a heading saying so. -->\n @if (section.title !== (libraryContentTitle || libraryTitle) && !(viewFacets.length && librarySections.length === 1)) {\n @if (isHomeView) { <h3>{{ section.title }}</h3> } @else { <h2>{{ section.title }}</h2> }\n }\n @if (section.layout === 'cards') {\n <div class=\"ngxsp-wmp-cardGrid\">\n @for (item of section.items; track item.id) {\n <div class=\"ngxsp-wmp-card\" [class.active]=\"item.active\" (contextmenu)=\"section.kind === 'groups' ? null : openTrackMenu($event, item)\">\n <button class=\"ngxsp-wmp-cardSelect\" type=\"button\" [attr.aria-current]=\"item.active ? 'true' : null\" (click)=\"selectLibraryItem.emit(item.id)\">\n <span class=\"ngxsp-wmp-thumb ngxsp-wmp-cover\" [class.has-image]=\"!!artworkSrc(item.artworkUrl)\" [attr.data-tone]=\"artTone(item.id)\">\n @if (artworkSrc(item.artworkUrl); as artworkUrl) {\n <img [src]=\"artworkUrl\" alt=\"\" (error)=\"markArtworkFailed(artworkUrl)\" loading=\"lazy\" decoding=\"async\" />\n } @else {\n <ngxsp-smart-icon name=\"music\" />\n }\n @if (showResumeProgress && item.progressPercent && item.progressPercent > 0) {\n <span class=\"ngxsp-wmp-rowProgress\" aria-hidden=\"true\"><i [style.width.%]=\"item.progressPercent\"></i></span>\n }\n </span>\n <span class=\"ngxsp-wmp-cardCopy\">\n <strong>@for (part of searchParts(item.title); track $index) {@if (part.hit) {<mark>{{ part.text }}</mark>} @else {<span>{{ part.text }}</span>}}</strong>\n @if (item.subtitle) { <small>{{ item.subtitle }}</small> }\n @if (item.meta) { <em>{{ item.meta }}</em> }\n </span>\n </button>\n <span class=\"ngxsp-wmp-cardPlaySlot\">\n <button class=\"ngxsp-wmp-cardPlay\" type=\"button\" [title]=\"playLabel\" [attr.aria-label]=\"playLabel + ' ' + item.title\" (click)=\"playItem(item.id)\">\n @if (item.active && isPlaying) { <ngxsp-smart-icon name=\"waveform\" /> } @else { <ngxsp-smart-icon name=\"play\" /> }\n </button>\n </span>\n <span class=\"ngxsp-wmp-cardActions\">\n @if (section.kind === 'groups') {\n <!--\n An album, an artist, a genre: a heading that stands for several tracks. What\n one does with it is put it in the queue, so those buttons stay where they are.\n -->\n <button class=\"ngxsp-wmp-cardAction\" type=\"button\" [title]=\"queueNextLabel\" [attr.aria-label]=\"queueNextLabel + ' ' + item.title\" (click)=\"addLibraryItemNext.emit(item.id)\">\n <ngxsp-smart-icon name=\"next\" />\n </button>\n <button class=\"ngxsp-wmp-cardAction\" type=\"button\" [title]=\"queueAddLabel\" [attr.aria-label]=\"queueAddLabel + ' ' + item.title\" (click)=\"addLibraryItemToQueue.emit(item.id)\">\n <ngxsp-smart-icon name=\"playlist-plus\" />\n </button>\n @if (isRemovable(item.id)) {\n <button class=\"ngxsp-wmp-cardAction danger\" type=\"button\" [title]=\"removeItemLabel\" [attr.aria-label]=\"removeItemLabel + ' - ' + item.title\" (click)=\"removeLibraryItem.emit(item.id)\">\n <ngxsp-smart-icon name=\"close\" />\n </button>\n }\n } @else {\n <!-- The same three a row offers, and the same menu: a grid and a table say one thing. -->\n <button class=\"ngxsp-wmp-cardAction ngxsp-wmp-cardFavorite\" [class.active]=\"item.favorite\" type=\"button\" [attr.aria-pressed]=\"!!item.favorite\" [title]=\"item.favorite ? favoriteActiveLabel : favoriteLabel\" [attr.aria-label]=\"item.favorite ? favoriteActiveLabel : favoriteLabel\" (click)=\"toggleFavorite.emit(item.id)\">\n <ngxsp-smart-icon name=\"heart\" />\n </button>\n @if (hasPlaylists) {\n <button class=\"ngxsp-wmp-cardAction\" type=\"button\" [class.active]=\"playlistTargetTrack?.id === item.id\" [title]=\"addToPlaylistLabel\" [attr.aria-label]=\"addToPlaylistLabel + ' - ' + item.title\" (click)=\"requestPlaylistTarget.emit(item.id)\">\n <ngxsp-smart-icon name=\"list\" />\n </button>\n }\n @if (ringtoneAvailable && !item.live) {\n <button class=\"ngxsp-wmp-cardAction\" type=\"button\" [title]=\"ringtoneLabel\" [attr.aria-label]=\"ringtoneLabel + ' - ' + item.title\" (click)=\"makeRingtone.emit(item.id)\">\n <ngxsp-smart-icon name=\"bell\" />\n </button>\n }\n <button class=\"ngxsp-wmp-cardAction ngxsp-wmp-cardMore\" type=\"button\" aria-haspopup=\"menu\" [class.active]=\"trackMenu?.id === item.id\" [attr.aria-expanded]=\"trackMenu?.id === item.id\" [title]=\"trackActionsLabel\" [attr.aria-label]=\"trackActionsLabel + ' - ' + item.title\" (click)=\"openTrackMenu($event, item)\">\n <ngxsp-smart-icon name=\"more\" />\n </button>\n }\n </span>\n </div>\n }\n </div>\n } @else {\n <div class=\"ngxsp-wmp-table\" role=\"table\" [attr.aria-label]=\"tracksLabel\" [style.--wmp-actions-w]=\"rowActionsWidth(section)\">\n <div class=\"ngxsp-wmp-tableHead\" role=\"row\">\n <span role=\"columnheader\">#</span>\n <span role=\"columnheader\">{{ titleColumnLabel }}</span>\n <span role=\"columnheader\">{{ artistColumnLabel }}</span>\n <span role=\"columnheader\">{{ albumColumnLabel }}</span>\n <span role=\"columnheader\" class=\"ngxsp-wmp-timeHead\" [attr.aria-label]=\"timeColumnLabel\" [title]=\"timeColumnLabel\"><ngxsp-smart-icon name=\"clock\" /></span>\n </div>\n @for (item of section.items; track item.id; let index = $index) {\n <div class=\"ngxsp-wmp-trackRow\" [class.active]=\"item.active\" role=\"row\" (contextmenu)=\"section.kind === 'groups' ? null : openTrackMenu($event, item)\">\n <button class=\"ngxsp-wmp-trackSelect\" type=\"button\" [title]=\"rowTooltip(item)\" [attr.aria-current]=\"item.active ? 'true' : null\" (click)=\"selectLibraryItem.emit(item.id)\">\n <span class=\"ngxsp-wmp-trackIndex\">\n @if (item.active) { <ngxsp-smart-icon name=\"waveform\" /> } @else { <span class=\"ngxsp-wmp-indexNumber\">{{ index + 1 }}</span><ngxsp-smart-icon class=\"ngxsp-wmp-indexPlay\" name=\"play\" /> }\n </span>\n <span class=\"ngxsp-wmp-trackTitle\">\n <span class=\"ngxsp-wmp-rowIcon ngxsp-wmp-cover\" [class.has-image]=\"!!artworkSrc(item.artworkUrl)\" [attr.data-tone]=\"artTone(item.id)\">\n @if (artworkSrc(item.artworkUrl); as artworkUrl) {\n <img [src]=\"artworkUrl\" alt=\"\" (error)=\"markArtworkFailed(artworkUrl)\" loading=\"lazy\" decoding=\"async\" />\n } @else {\n <ngxsp-smart-icon name=\"music\" />\n }\n </span>\n <span class=\"ngxsp-wmp-rowCopy\">\n <strong>@for (part of searchParts(item.title); track $index) {@if (part.hit) {<mark>{{ part.text }}</mark>} @else {<span>{{ part.text }}</span>}}</strong>\n @if (item.genre) { <small>{{ item.genre }}</small> }\n </span>\n </span>\n <span class=\"ngxsp-wmp-trackCell\">{{ artistOf(item) }}</span>\n <span class=\"ngxsp-wmp-trackCell ngxsp-wmp-albumCell\">{{ albumOf(item) }}</span>\n <span class=\"ngxsp-wmp-trackTime\">{{ durationOf(item) }}</span>\n </button>\n <!--\n Three things a track offers, and a menu for the rest. There were six buttons\n on a row — and the room of four, so the heart was drawn over the duration.\n A section of albums can be read as a table too, and an album is not a track:\n it keeps the buttons it had.\n -->\n <span class=\"ngxsp-wmp-rowActions\">\n @if (section.kind === 'groups') {\n <button class=\"ngxsp-wmp-rowQueueAction\" type=\"button\" [title]=\"queueNextLabel\" [attr.aria-label]=\"queueNextLabel + ' ' + item.title\" (click)=\"addLibraryItemNext.emit(item.id)\">\n <ngxsp-smart-icon name=\"next\" />\n </button>\n <button class=\"ngxsp-wmp-rowQueueAction\" type=\"button\" [title]=\"queueAddLabel\" [attr.aria-label]=\"queueAddLabel + ' ' + item.title\" (click)=\"addLibraryItemToQueue.emit(item.id)\">\n <ngxsp-smart-icon name=\"playlist-plus\" />\n </button>\n @if (isRemovable(item.id)) {\n <button class=\"ngxsp-wmp-rowQueueAction danger\" type=\"button\" [title]=\"removeItemLabel\" [attr.aria-label]=\"removeItemLabel + ' - ' + item.title\" (click)=\"removeLibraryItem.emit(item.id)\">\n <ngxsp-smart-icon name=\"close\" />\n </button>\n }\n } @else {\n <button class=\"ngxsp-wmp-rowFavorite\" [class.active]=\"item.favorite\" type=\"button\" [attr.aria-pressed]=\"!!item.favorite\" [title]=\"item.favorite ? favoriteActiveLabel : favoriteLabel\" [attr.aria-label]=\"item.favorite ? favoriteActiveLabel : favoriteLabel\" (click)=\"toggleFavorite.emit(item.id)\">\n <ngxsp-smart-icon name=\"heart\" />\n </button>\n @if (hasPlaylists) {\n <button class=\"ngxsp-wmp-rowQueueAction\" type=\"button\" [class.active]=\"playlistTargetTrack?.id === item.id\" [title]=\"addToPlaylistLabel\" [attr.aria-label]=\"addToPlaylistLabel + ' - ' + item.title\" (click)=\"requestPlaylistTarget.emit(item.id)\">\n <ngxsp-smart-icon name=\"list\" />\n </button>\n }\n @if (ringtoneAvailable && !item.live) {\n <button class=\"ngxsp-wmp-rowQueueAction\" type=\"button\" [title]=\"ringtoneLabel\" [attr.aria-label]=\"ringtoneLabel + ' - ' + item.title\" (click)=\"makeRingtone.emit(item.id)\">\n <ngxsp-smart-icon name=\"bell\" />\n </button>\n }\n <button class=\"ngxsp-wmp-rowQueueAction ngxsp-wmp-rowMore\" type=\"button\" aria-haspopup=\"menu\" [class.active]=\"trackMenu?.id === item.id\" [attr.aria-expanded]=\"trackMenu?.id === item.id\" [title]=\"trackActionsLabel\" [attr.aria-label]=\"trackActionsLabel + ' - ' + item.title\" (click)=\"openTrackMenu($event, item)\">\n <ngxsp-smart-icon name=\"more\" />\n </button>\n }\n </span>\n @if (showResumeProgress && item.progressPercent && item.progressPercent > 0) {\n <span class=\"ngxsp-wmp-rowProgress\" aria-hidden=\"true\"><i [style.width.%]=\"item.progressPercent\"></i></span>\n }\n </div>\n }\n </div>\n }\n @if (!section.items.length && section.emptyLabel) {\n <div class=\"ngxsp-wmp-emptyLibrary\">\n <ngxsp-smart-icon name=\"list\" />\n <span>{{ section.emptyLabel }}</span>\n </div>\n }\n <!-- The rest of a shelf that comes a page at a time: under it, where one stops\n reading, and not among the tracks. -->\n @if (section.more) {\n <button class=\"ngxsp-wmp-shelfMore\" type=\"button\" [disabled]=\"!!section.more.busy\" (click)=\"sectionMore.emit(section.id)\">\n <span>{{ section.more.label }}</span>\n @if (section.more.detail) { <small>{{ section.more.detail }}</small> }\n </button>\n }\n </section>\n } @empty {\n <!-- A page that is the view's own content says what there is: \"no track indexed\" under\n the sources page would answer a question nobody asked there. -->\n @if (!settingsSections.length && !sourcesPage && !playlistsPageOpen) {\n <div class=\"ngxsp-wmp-emptyLibrary\">\n <ngxsp-smart-icon name=\"music\" />\n <span>{{ emptyLibraryLabel }}</span>\n </div>\n }\n }\n </div>\n </section>\n }\n </section>\n\n <aside\n class=\"ngxsp-wmp-playlist\"\n #panel\n tabindex=\"-1\"\n [class.sheet]=\"panelSheetOpen\"\n [attr.role]=\"panelSheetOpen ? 'dialog' : null\"\n [attr.aria-modal]=\"panelSheetOpen ? 'true' : null\"\n [attr.aria-label]=\"queueTitle\"\n (keydown.escape)=\"closePanelSheet()\"\n (keydown)=\"onSheetKeys($event)\"\n >\n @if (panelSheetOpen) {\n <div class=\"ngxsp-wmp-sheetHeader\">\n <strong>{{ currentTitle || noTrackTitle }}</strong>\n <button class=\"ngxsp-wmp-smallButton\" type=\"button\" [attr.aria-label]=\"closeLabel + ' - ' + queueTitle\" (click)=\"closePanelSheet()\">{{ closeLabel }}</button>\n </div>\n <!--\n What the column can open, and only that. The sheet stops above the transport bar, so\n the bar is still on screen underneath it: the devices keep the button they have there\n and never become a switch in here. Compact-Lecteur-Audio.dc.html draws them that way,\n off a button of their own, and Appareils.dc.html opens its dialog over that button.\n -->\n @if (columnSwitches.length) {\n <div class=\"ngxsp-wmp-sheetToggles\" role=\"group\" [attr.aria-label]=\"queueTitle\">\n @for (panel of columnSwitches; track panel.id) {\n <button class=\"ngxsp-wmp-iconButton\" type=\"button\" [class.active]=\"isPanelOpen(panel.id)\" [attr.aria-pressed]=\"isPanelOpen(panel.id)\" [title]=\"panel.label\" [attr.aria-label]=\"panel.label\" (click)=\"togglePanel(panel.id)\">\n <ngxsp-smart-icon [name]=\"panel.icon\" />\n </button>\n }\n </div>\n }\n }\n <div class=\"ngxsp-wmp-panelStack\">\n <!--\n The board's pills, which name what can be opened over the queue. In the sheet the same\n switches are already drawn as icons above, so the row would say everything twice.\n -->\n @if (!panelSheetOpen && columnSwitches.length) {\n <div class=\"ngxsp-wmp-panelTabs\" role=\"group\" [attr.aria-label]=\"queueTitle\">\n @for (panel of columnSwitches; track panel.id) {\n <button type=\"button\" class=\"ngxsp-wmp-panelPill\" [class.active]=\"isPanelOpen(panel.id)\" [attr.aria-pressed]=\"isPanelOpen(panel.id)\" (click)=\"togglePanel(panel.id)\">{{ panel.label }}</button>\n }\n </div>\n }\n @if (hasSearchQuery && recentSearches.length) {\n <!-- The board puts them in this column, beside what the search found. -->\n <section class=\"ngxsp-wmp-stackItem collapsed\">\n <header class=\"ngxsp-wmp-stackHead\"><strong>{{ recentSearchesTitle }}</strong></header>\n <div class=\"ngxsp-wmp-recentSearches\">\n @for (term of recentSearches; track term) {\n <button type=\"button\" [class.active]=\"term === searchTerm\" (click)=\"searchAgain.emit(term)\">\n <ngxsp-smart-icon name=\"clock\" />\n <span>{{ term }}</span>\n </button>\n }\n </div>\n </section>\n }\n <!--\n The queue is the column, not a panel folded away inside it. Commun-Audio.dc.html draws\n the pills at the head of the column and the queue below them, in full — no chevron, and\n nothing that folds it down to a header. Its switch is the one in the top bar, which shows\n and hides the whole column; the video player's column had already been through this.\n -->\n <section class=\"ngxsp-wmp-stackItem\">\n <header class=\"ngxsp-wmp-stackHead\"><strong>{{ queueTitle }}</strong></header>\n <div class=\"ngxsp-wmp-sectionHeader slim\">\n <span>{{ queueEyebrow }}</span>\n <strong>{{ queueCountLabel }}</strong>\n </div>\n <div class=\"ngxsp-wmp-queueList\" #queueList (scroll)=\"onQueueScroll()\">\n @if (queueSpaceBefore) { <div class=\"ngxsp-wmp-queueSpace\" [style.height.px]=\"queueSpaceBefore\" aria-hidden=\"true\"></div> }\n @for (item of windowedQueue; track item.id) {\n <!--\n La rangée tient deux choses : le bouton qui joue le titre, et les gestes qui touchent\n à la file elle-même. Elle n'en tenait qu'une — on ne pouvait rien en retirer ni rien\n y déplacer, alors que la file du lecteur vidéo le permet depuis toujours.\n -->\n <div class=\"ngxsp-wmp-queueRow\" [class.active]=\"item.active\">\n <button class=\"ngxsp-wmp-queueItem\" [class.active]=\"item.active\" type=\"button\" [title]=\"rowTooltip(item)\" [attr.aria-current]=\"item.active ? 'true' : null\" (click)=\"selectQueueItem.emit(item.id)\">\n <span class=\"ngxsp-wmp-queueCover ngxsp-wmp-cover\" [class.has-image]=\"!!artworkSrc(item.artworkUrl)\" [attr.data-tone]=\"artTone(item.id)\">\n @if (artworkSrc(item.artworkUrl); as artworkUrl) {\n <img [src]=\"artworkUrl\" alt=\"\" (error)=\"markArtworkFailed(artworkUrl)\" loading=\"lazy\" decoding=\"async\" />\n } @else {\n <ngxsp-smart-icon name=\"music\" />\n }\n @if (item.active) {\n <span class=\"ngxsp-wmp-queueNow\" aria-hidden=\"true\"><ngxsp-smart-icon [name]=\"isPlaying ? 'waveform' : 'pause'\" /></span>\n }\n </span>\n <span class=\"ngxsp-wmp-rowCopy\">\n <strong>{{ item.title }}</strong>\n @if (item.subtitle) { <small>{{ item.subtitle }}</small> }\n @if (item.favorite || item.lastPlayedLabel) {\n <span class=\"ngxsp-wmp-rowBadges\">\n @if (item.favorite) {\n <em class=\"favorite\"><ngxsp-smart-icon name=\"heart\" /> {{ favoritesLabel }}</em>\n }\n @if (item.lastPlayedLabel) {\n <em>{{ item.lastPlayedLabel }}</em>\n }\n </span>\n }\n </span>\n @if (item.meta) { <span class=\"ngxsp-wmp-rowMeta\">{{ item.meta }}</span> }\n </button>\n @if (queueEditable) {\n <span class=\"ngxsp-wmp-queueControls\">\n <button type=\"button\" [disabled]=\"!canMoveQueueItem(item.id, 'up')\" [title]=\"queueMoveUpLabel\" [attr.aria-label]=\"queueMoveUpLabel + ' - ' + item.title\" (click)=\"queueMoveUp.emit(item.id)\">\n <ngxsp-smart-icon name=\"chevron-up\" />\n </button>\n <button type=\"button\" [disabled]=\"!canMoveQueueItem(item.id, 'down')\" [title]=\"queueMoveDownLabel\" [attr.aria-label]=\"queueMoveDownLabel + ' - ' + item.title\" (click)=\"queueMoveDown.emit(item.id)\">\n <ngxsp-smart-icon name=\"chevron-down\" />\n </button>\n @if (hasPlaylists) {\n <button type=\"button\" [class.active]=\"playlistTargetTrack?.id === item.id\" [title]=\"addToPlaylistLabel\" [attr.aria-label]=\"addToPlaylistLabel + ' - ' + item.title\" (click)=\"requestPlaylistTarget.emit(item.id)\">\n <ngxsp-smart-icon name=\"list\" />\n </button>\n }\n <button type=\"button\" [title]=\"queueRemoveLabel\" [attr.aria-label]=\"queueRemoveLabel + ' - ' + item.title\" (click)=\"queueRemove.emit(item.id)\">\n <ngxsp-smart-icon name=\"close\" />\n </button>\n </span>\n }\n </div>\n } @empty {\n <div class=\"ngxsp-wmp-emptyLibrary\">{{ emptyQueueLabel }}</div>\n }\n @if (queueSpaceAfter) { <div class=\"ngxsp-wmp-queueSpace\" [style.height.px]=\"queueSpaceAfter\" aria-hidden=\"true\"></div> }\n </div>\n <!--\n Commun-Audio.dc.html ends the column on it. A queue built by hand over an evening is\n exactly what a playlist is, and until now the only way to keep one was to build it a\n second time, track by track, in the Lists page.\n -->\n @if (keepQueueLabel && queueItems.length) {\n <button class=\"ngxsp-wmp-keepQueue\" type=\"button\" (click)=\"keepQueueAsPlaylist.emit()\">\n <ngxsp-smart-icon name=\"plus\" />\n <span>{{ keepQueueLabel }}</span>\n </button>\n }\n </section>\n </div>\n </aside>\n\n <footer class=\"ngxsp-wmp-transport\" [attr.aria-label]=\"transportLabel\">\n <div class=\"ngxsp-wmp-miniNow\">\n <span class=\"ngxsp-wmp-miniArt ngxsp-wmp-cover\" [class.has-image]=\"!!artworkSrc(currentArtworkUrl)\" [attr.data-tone]=\"artTone(currentTrackId || currentTitle)\" aria-hidden=\"true\">\n @if (artworkSrc(currentArtworkUrl); as artworkUrl) {\n <img [src]=\"artworkUrl\" alt=\"\" (error)=\"markArtworkFailed(artworkUrl)\" />\n } @else {\n <ngxsp-smart-icon name=\"music\" />\n }\n </span>\n <!-- The way into the page, which is where the video player puts its own. -->\n <button class=\"ngxsp-wmp-miniCopy\" type=\"button\" [attr.aria-label]=\"playerOpenLabel + ' - ' + (currentTitle || noTrackTitle)\" [title]=\"playerOpenLabel\" (click)=\"playerOpen.emit()\">\n <strong>{{ currentTitle || noTrackTitle }}</strong>\n <small>{{ currentSubtitle || currentMeta || readyLabel }}</small>\n </button>\n <button class=\"ngxsp-wmp-iconButton\" type=\"button\" [class.active]=\"favoriteActive\" [attr.aria-pressed]=\"favoriteActive\" [title]=\"favoriteActive ? favoriteActiveLabel : favoriteLabel\" [attr.aria-label]=\"favoriteActive ? favoriteActiveLabel : favoriteLabel\" (click)=\"toggleFavorite.emit(currentTrackId)\">\n <ngxsp-smart-icon name=\"heart\" />\n </button>\n <!-- Phones only: the panel is a sheet opened from here instead of a block stacked under the page. -->\n <button class=\"ngxsp-wmp-iconButton ngxsp-wmp-sheetButton\" #sheetButton type=\"button\" [attr.aria-expanded]=\"panelSheetOpen\" [title]=\"queueTitle\" [attr.aria-label]=\"queueTitle\" (click)=\"openPanelSheet()\">\n <ngxsp-smart-icon name=\"list\" />\n </button>\n </div>\n @if (compactMode === 'mini' && showCompactLyrics) {\n <!-- The mini window's lyrics: the whole text, the line being sung in sight. -->\n <div class=\"ngxsp-wmp-compactLyrics\" #compactLyricsLines [attr.aria-label]=\"compactLyricsLabel\">\n @for (line of lyricsPanel!.lines; track $index) {\n @if (line.timeSec !== undefined) {\n <button type=\"button\" class=\"ngxsp-wmp-compactLyricsLine\" [class.active]=\"$index === activeLyricsIndex\" [attr.aria-current]=\"$index === activeLyricsIndex ? 'true' : null\" (click)=\"playFromLyrics(line.timeSec)\">{{ line.text || '♪' }}</button>\n } @else {\n <p class=\"ngxsp-wmp-compactLyricsLine plain\">{{ line.text }}</p>\n }\n }\n </div>\n }\n @if (compactMode === 'bar' && showCompactLyrics && activeLyricsIndex >= 0) {\n <!-- The bottom strip's lyrics: the line being sung, and the next one. -->\n <div class=\"ngxsp-wmp-barLyrics\" [attr.aria-label]=\"compactLyricsLabel\">\n <strong>{{ lyricsPanel!.lines[activeLyricsIndex].text || '♪' }}</strong>\n @if (lyricsPanel!.lines[activeLyricsIndex + 1]; as next) { <span>{{ next.text }}</span> }\n </div>\n }\n\n <div class=\"ngxsp-wmp-transportCenter\">\n <div class=\"ngxsp-wmp-transportButtons\">\n <button class=\"ngxsp-wmp-iconButton\" type=\"button\" [class.active]=\"shuffleActive\" [attr.aria-pressed]=\"shuffleActive\" [title]=\"shuffleLabel\" [attr.aria-label]=\"shuffleLabel\" (click)=\"toggleShuffle.emit()\">\n <ngxsp-smart-icon name=\"shuffle\" />\n </button>\n <button class=\"ngxsp-wmp-iconButton\" type=\"button\" [disabled]=\"!canPrev\" [title]=\"previousLabel\" [attr.aria-label]=\"previousLabel\" (click)=\"prev.emit()\">\n <ngxsp-smart-icon name=\"prev\" />\n </button>\n <button class=\"ngxsp-wmp-playButton\" type=\"button\" [attr.aria-label]=\"isPlaying ? pauseLabel : playLabel\" [title]=\"isPlaying ? pauseLabel : playLabel\" (click)=\"togglePrimaryPlayback()\">\n @if (isPlaying) { <ngxsp-smart-icon name=\"pause\" /> } @else { <ngxsp-smart-icon name=\"play\" /> }\n </button>\n <button class=\"ngxsp-wmp-iconButton\" type=\"button\" [disabled]=\"!canNext\" [title]=\"nextLabel\" [attr.aria-label]=\"nextLabel\" (click)=\"next.emit()\">\n <ngxsp-smart-icon name=\"next\" />\n </button>\n <button class=\"ngxsp-wmp-iconButton\" type=\"button\" [class.active]=\"repeatMode !== 'off'\" [attr.aria-pressed]=\"repeatMode !== 'off'\" [title]=\"repeatLabel\" [attr.aria-label]=\"repeatLabel\" (click)=\"cycleRepeat.emit()\">\n <ngxsp-smart-icon [name]=\"repeatMode === 'one' ? 'repeat-one' : 'repeat'\" />\n </button>\n </div>\n <div class=\"ngxsp-wmp-seekRow\">\n <small>{{ elapsedLabel }}</small>\n <ngxsp-time-slider\n class=\"ngxsp-wmp-seek\"\n [currentTime]=\"currentTimeSec\"\n [duration]=\"durationSec\"\n [profile]=\"'audio'\"\n [disabled]=\"!config || durationSec <= 0\"\n [ariaLabel]=\"seekLabel\"\n (seek)=\"seekTo($event)\"\n />\n <small>{{ displayDurationLabel }}</small>\n </div>\n </div>\n\n <div class=\"ngxsp-wmp-transportModes\">\n @for (panel of panelSwitches; track panel.id) {\n <span class=\"ngxsp-wmp-switchWrap\">\n <button class=\"ngxsp-wmp-iconButton\" type=\"button\" [class.ngxsp-wmp-devicesButton]=\"panel.id === 'devices'\" [class.active]=\"isPanelShowing(panel.id)\" [attr.aria-pressed]=\"isPanelShowing(panel.id)\" [attr.aria-haspopup]=\"panel.id === 'devices' ? 'dialog' : null\" [attr.aria-expanded]=\"panel.id === 'devices' ? isPanelShowing(panel.id) : null\" [title]=\"panel.label\" [attr.aria-label]=\"panel.label\" (click)=\"togglePanelFromBar(panel.id)\">\n <ngxsp-smart-icon [name]=\"panel.icon\" />\n </button>\n <!--\n The devices are a small dialog over the button that opens them, which is what the\n boards draw: where the sound goes is about what is playing, not about the page being\n read, and a column panel put it as far from its own switch as the window allows.\n -->\n @if (panel.id === 'devices' && isPanelShowing('devices') && showDeviceButton) {\n <div class=\"ngxsp-wmp-devicesPopover\" role=\"dialog\" [attr.aria-label]=\"devicesLabel\">\n <header class=\"ngxsp-wmp-popoverHead\">\n <strong>{{ devicesLabel }}</strong>\n <button class=\"ngxsp-wmp-stackIcon\" type=\"button\" [title]=\"searchDevicesLabel\" [attr.aria-label]=\"searchDevicesLabel\" (click)=\"refreshDevices.emit()\">\n <ngxsp-smart-icon name=\"refresh\" />\n </button>\n <button class=\"ngxsp-wmp-stackIcon\" type=\"button\" [title]=\"closeLabel\" [attr.aria-label]=\"closeLabel + ' - ' + devicesLabel\" (click)=\"dismissDevices()\">\n <ngxsp-smart-icon name=\"close\" />\n </button>\n </header>\n <section class=\"ngxsp-wmp-devices\">\n <!--\n Two lists sit here, and a reader who cannot tell them apart will send the sound to the\n wrong place: one hands the track to a machine that plays it itself, the other only\n changes which speakers this player uses. Each says which it is, in a line.\n -->\n <h3 class=\"ngxsp-wmp-deviceGroup\">{{ castGroupLabel }}</h3>\n @if (castGroupHint) { <p class=\"ngxsp-wmp-deviceHint\">{{ castGroupHint }}</p> }\n @for (device of deviceItems; track device.id) {\n <div class=\"ngxsp-wmp-device\" [class.active]=\"device.active\">\n <span class=\"ngxsp-wmp-targetIcon\" aria-hidden=\"true\"><ngxsp-smart-icon [name]=\"device.active ? 'devices-active' : 'devices'\" /></span>\n <span class=\"ngxsp-wmp-rowCopy\">\n <strong>{{ device.name }}</strong>\n @if (device.subtitle) { <small>{{ device.subtitle }}</small> }\n </span>\n <span class=\"ngxsp-wmp-deviceActions\">\n <button class=\"ngxsp-wmp-smallButton\" type=\"button\" [attr.aria-label]=\"(device.actionLabel ?? playLabel) + ' - ' + device.name\" (click)=\"playOnDevice.emit(device.id)\">{{ device.actionLabel ?? playLabel }}</button>\n @if (device.stoppable !== false) {\n <button class=\"ngxsp-wmp-smallButton\" type=\"button\" [attr.aria-label]=\"stopLabel + ' - ' + device.name\" (click)=\"stopOnDevice.emit(device.id)\">{{ stopLabel }}</button>\n }\n </span>\n </div>\n } @empty {\n <div class=\"ngxsp-wmp-emptyLibrary\">{{ emptyDevicesLabel }}</div>\n }\n\n @if (outputItems.length) {\n <h3 class=\"ngxsp-wmp-deviceGroup\">{{ outputGroupLabel }}</h3>\n @if (outputGroupHint) { <p class=\"ngxsp-wmp-deviceHint\">{{ outputGroupHint }}</p> }\n @for (output of outputItems; track output.id) {\n <button\n class=\"ngxsp-wmp-output\"\n type=\"button\"\n [class.active]=\"output.active\"\n [attr.aria-pressed]=\"!!output.active\"\n (click)=\"selectOutput.emit(output.id)\"\n >\n <span class=\"ngxsp-wmp-rowCopy\">\n <strong>{{ output.label }}</strong>\n @if (output.detail) { <small>{{ output.detail }}</small> }\n </span>\n @if (output.active) { <ngxsp-smart-icon name=\"check\" /> }\n </button>\n }\n }\n </section>\n </div>\n }\n </span>\n }\n @if (compactModes && compactMode === 'full') {\n <button class=\"ngxsp-wmp-iconButton ngxsp-wmp-windowButton\" type=\"button\" [title]=\"compactMiniLabel\" [attr.aria-label]=\"compactMiniLabel\" (click)=\"compactModeChange.emit('mini')\">\n <ngxsp-smart-icon name=\"window-mini\" />\n </button>\n }\n <ngxsp-volume-control\n class=\"ngxsp-wmp-volumeControl ngxsp-wmp-footerVolume\"\n [volume]=\"outputVolume / 100\"\n [step]=\"0.05\"\n [volumeLabel]=\"outputVolumeLabel\"\n [muteLabel]=\"outputMuteLabel\"\n [unmuteLabel]=\"outputUnmuteLabel\"\n (muteToggle)=\"outputMuteToggle.emit()\"\n (volumeChange)=\"onOutputVolumeRatioChange($event)\"\n />\n @if (compactMode !== 'full') {\n <span class=\"ngxsp-wmp-compactActions\">\n @if (hasCompactLyrics) {\n <button type=\"button\" [class.active]=\"compactLyrics\" [attr.aria-pressed]=\"compactLyrics\" [title]=\"compactLyricsLabel\" [attr.aria-label]=\"compactLyricsLabel\" (click)=\"compactLyricsToggle.emit()\"><ngxsp-smart-icon name=\"lyrics\" /></button>\n }\n @if (compactMode === 'mini') {\n <button type=\"button\" [title]=\"compactBarLabel\" [attr.aria-label]=\"compactBarLabel\" (click)=\"compactModeChange.emit('bar')\"><ngxsp-smart-icon name=\"window-bar\" /></button>\n } @else {\n <button type=\"button\" [title]=\"compactMiniLabel\" [attr.aria-label]=\"compactMiniLabel\" (click)=\"compactModeChange.emit('mini')\"><ngxsp-smart-icon name=\"window-mini\" /></button>\n }\n <button type=\"button\" [title]=\"compactRestoreLabel\" [attr.aria-label]=\"compactRestoreLabel\" (click)=\"compactModeChange.emit('full')\"><ngxsp-smart-icon name=\"window-restore\" /></button>\n </span>\n }\n </div>\n </footer>\n </section>\n`,\n styles: [`\n :host{\n display:block;\n height:100%;\n min-height:0;\n color:var(--nsp-text, #ededf0);\n font-family:var(--nsp-font, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Ubuntu, sans-serif);\n font-size:13px;\n line-height:1.4;\n }\n .ngxsp-wmp-shell{\n --wmp-bg:var(--nsp-bg, #0d0e11);\n --wmp-s0:var(--nsp-surface-0, #121317);\n --wmp-s1:var(--nsp-surface-1, #17181d);\n --wmp-s2:var(--nsp-surface-2, #1e1f25);\n --wmp-s3:var(--nsp-surface-3, #26272e);\n --wmp-line:var(--nsp-line, rgb(255 255 255 / .07));\n --wmp-line-strong:var(--nsp-line-strong, rgb(255 255 255 / .13));\n --wmp-text:var(--nsp-text, #ededf0);\n --wmp-text-2:var(--nsp-text-2, #a3a5ae);\n --wmp-text-3:var(--nsp-text-3, #80828c);\n --wmp-accent:var(--nsp-accent, #8b90ff);\n --wmp-accent-strong:var(--nsp-accent-strong, #5d63ee);\n --wmp-accent-soft:var(--nsp-accent-soft, rgb(139 144 255 / .14));\n --wmp-on-accent:var(--nsp-on-accent, #fff);\n --wmp-success:var(--nsp-success, #3ecf8e);\n --wmp-danger:var(--nsp-danger, #f25f5c);\n --wmp-danger-text:var(--nsp-danger-text, #ffb4b2);\n --wmp-r-sm:var(--nsp-radius-sm, 6px);\n --wmp-r-md:var(--nsp-radius-md, 10px);\n --wmp-ease:var(--nsp-ease, cubic-bezier(.2,0,0,1));\n --wmp-dur:var(--nsp-dur, 140ms);\n --wmp-title-h:var(--nsp-titlebar-height, 48px);\n --wmp-rail-w:232px;\n --wmp-panel-w:320px;\n --wmp-transport-h:84px;\n position:relative;\n height:100%;\n min-height:600px;\n display:grid;\n grid-template-columns:var(--wmp-rail-w) minmax(0,1fr) var(--wmp-panel-w);\n grid-template-rows:var(--wmp-title-h) minmax(0,1fr) var(--wmp-transport-h);\n grid-template-areas:\n \"title title title\"\n \"rail main panel\"\n \"transport transport transport\";\n overflow:hidden;\n background:var(--wmp-bg);\n color:var(--wmp-text);\n box-sizing:border-box;\n }\n .ngxsp-wmp-shell.ngxsp-wmp-panelHidden{\n grid-template-columns:var(--wmp-rail-w) minmax(0,1fr);\n grid-template-areas:\n \"title title\"\n \"rail main\"\n \"transport transport\";\n }\n .ngxsp-wmp-shell.ngxsp-wmp-panelHidden .ngxsp-wmp-playlist{display:none}\n .ngxsp-wmp-shell *{box-sizing:border-box;letter-spacing:0}\n .ngxsp-wmp-shell *::-webkit-scrollbar{width:10px;height:10px}\n .ngxsp-wmp-shell *::-webkit-scrollbar-track{background:transparent}\n .ngxsp-wmp-shell *::-webkit-scrollbar-thumb{background:var(--wmp-s3);border-radius:999px;border:3px solid transparent;background-clip:padding-box}\n .ngxsp-wmp-shell *::-webkit-scrollbar-thumb:hover{background-color:var(--wmp-line-strong)}\n button,input{font:inherit;color:inherit}\n button{cursor:pointer}\n img{display:block;width:100%;height:100%;object-fit:cover}\n h1,h2,h3,p{margin:0}\n ngxsp-smart-icon{width:18px;height:18px}\n .ngxsp-wmp-fileInput{display:none}\n\n .ngxsp-wmp-shell button:focus-visible,\n .ngxsp-wmp-shell input:focus-visible{\n outline:2px solid var(--wmp-accent);\n outline-offset:2px;\n }\n\n /* Hidden audio engine */\n .ngxsp-wmp-engineMount{position:absolute;width:1px;height:1px;overflow:hidden;opacity:0;pointer-events:none}\n .ngxsp-wmp-engineMount ngx-smart-player{display:block;width:1px;height:1px;min-height:0;border:0}\n\n /* Buttons */\n .ngxsp-wmp-iconButton{\n width:32px;\n height:32px;\n flex:0 0 auto;\n display:inline-grid;\n place-items:center;\n padding:0;\n border:1px solid transparent;\n border-radius:var(--wmp-r-sm);\n background:transparent;\n color:var(--wmp-text-2);\n transition:background-color var(--wmp-dur) var(--wmp-ease), color var(--wmp-dur) var(--wmp-ease), border-color var(--wmp-dur) var(--wmp-ease);\n }\n .ngxsp-wmp-iconButton:hover:not(:disabled){background:var(--wmp-s2);color:var(--wmp-text)}\n .ngxsp-wmp-iconButton.active,\n .ngxsp-wmp-iconButton.active:hover:not(:disabled){color:var(--wmp-accent)}\n .ngxsp-wmp-iconButton.outlined{width:40px;height:40px;border-color:var(--wmp-line-strong);border-radius:999px}\n .ngxsp-wmp-iconButton:disabled{opacity:.35;cursor:default}\n .ngxsp-wmp-iconButton.active ngxsp-smart-icon[name=\"heart\"] ::ng-deep path{fill:currentColor}\n .ngxsp-wmp-playButton{\n width:36px;\n height:36px;\n display:inline-grid;\n place-items:center;\n padding:0;\n border:0;\n border-radius:999px;\n background:var(--wmp-text);\n color:var(--wmp-bg);\n transition:transform var(--wmp-dur) var(--wmp-ease), background-color var(--wmp-dur) var(--wmp-ease);\n }\n .ngxsp-wmp-playButton:hover{transform:scale(1.05)}\n .ngxsp-wmp-primaryButton{\n height:40px;\n display:inline-flex;\n align-items:center;\n gap:8px;\n padding:0 20px 0 16px;\n border:0;\n border-radius:999px;\n background:var(--wmp-accent-strong);\n color:var(--wmp-on-accent);\n font-weight:600;\n transition:filter var(--wmp-dur) var(--wmp-ease), transform var(--wmp-dur) var(--wmp-ease);\n }\n .ngxsp-wmp-primaryButton:hover{filter:brightness(1.1)}\n .ngxsp-wmp-primaryButton:active{transform:scale(.98)}\n .ngxsp-wmp-smallButton{\n height:32px;\n display:inline-flex;\n align-items:center;\n justify-content:center;\n gap:6px;\n padding:0 10px;\n border:1px solid var(--wmp-line-strong);\n border-radius:var(--wmp-r-sm);\n background:transparent;\n color:var(--wmp-text);\n font-size:12px;\n font-weight:500;\n white-space:nowrap;\n }\n .ngxsp-wmp-smallButton ngxsp-smart-icon{width:14px;height:14px}\n .ngxsp-wmp-smallButton:hover:not(:disabled){background:var(--wmp-s2)}\n .ngxsp-wmp-smallButton.primary{border-color:transparent;background:var(--wmp-accent-strong);color:var(--wmp-on-accent)}\n .ngxsp-wmp-smallButton.primary:hover:not(:disabled){background:var(--wmp-accent-strong);filter:brightness(1.1)}\n .ngxsp-wmp-smallButton:disabled{opacity:.45;cursor:default}\n .ngxsp-wmp-segmented{\n display:inline-flex;\n align-items:center;\n gap:2px;\n padding:2px;\n border-radius:8px;\n background:var(--wmp-s2);\n }\n .ngxsp-wmp-segmented button{\n height:32px;\n min-width:0;\n padding:0 10px;\n border:0;\n border-radius:6px;\n background:transparent;\n color:var(--wmp-text-2);\n font-size:12px;\n font-weight:500;\n white-space:nowrap;\n overflow:hidden;\n text-overflow:ellipsis;\n }\n .ngxsp-wmp-segmented button:hover{color:var(--wmp-text)}\n .ngxsp-wmp-segmented button.active{background:var(--wmp-s3);color:var(--wmp-text);box-shadow:0 1px 2px rgb(0 0 0 / .3)}\n\n /* Title bar */\n .ngxsp-wmp-titlebar{\n grid-area:title;\n min-width:0;\n display:grid;\n grid-template-columns:calc(var(--wmp-rail-w) - 16px) minmax(0,1fr) minmax(0,max-content);\n align-items:center;\n gap:16px;\n padding:0 calc(12px + var(--nsp-titlebar-inset-end, 0px)) 0 calc(16px + var(--nsp-titlebar-inset-start, 0px));\n border-bottom:1px solid var(--wmp-line);\n background:var(--wmp-s0);\n -webkit-app-region:drag;\n user-select:none;\n }\n .ngxsp-wmp-titlebar button,\n .ngxsp-wmp-titlebar input,\n .ngxsp-wmp-titlebar label,\n .ngxsp-wmp-titlebar .ngxsp-wmp-status{-webkit-app-region:no-drag}\n .ngxsp-wmp-brand{min-width:0;display:flex;align-items:center;gap:10px}\n .ngxsp-wmp-brandIcon{\n width:26px;\n height:26px;\n flex:0 0 auto;\n display:grid;\n place-items:center;\n border-radius:7px;\n color:#fff;\n background:linear-gradient(145deg, #8b90ff 0%, #5d63ee 55%, #4146c9 100%);\n box-shadow:inset 0 1px 0 rgb(255 255 255 / .22);\n }\n .ngxsp-wmp-brandIcon ngxsp-smart-icon{width:15px;height:15px}\n .ngxsp-wmp-brandLogo{width:26px;height:26px;flex:0 0 auto;display:block}\n .ngxsp-wmp-brandName{font-size:13px;font-weight:600;white-space:nowrap}\n .ngxsp-wmp-quickViews{display:flex;align-items:center;gap:2px;min-width:0}\n .ngxsp-wmp-backButton{\n display:inline-flex;align-items:center;gap:4px;\n margin:0 0 12px;padding:6px 10px 6px 6px;\n border:0;border-radius:8px;background:transparent;color:var(--wmp-ink-2);\n font-size:13px;cursor:pointer;\n }\n .ngxsp-wmp-backButton:hover{background:var(--wmp-s2);color:var(--wmp-ink)}\n @media (hover:none){ .ngxsp-wmp-backButton:hover{background:transparent;color:var(--wmp-ink-2)} }\n .ngxsp-wmp-quickView{\n display:inline-flex;align-items:center;justify-content:center;\n width:32px;height:32px;flex:0 0 auto;\n border:0;border-radius:8px;background:transparent;color:var(--wmp-ink-2);cursor:pointer;\n }\n .ngxsp-wmp-quickView:hover{background:var(--wmp-s2);color:var(--wmp-ink)}\n .ngxsp-wmp-quickView.active{background:var(--wmp-s2);color:var(--wmp-accent)}\n /* A shortcut is not a target one aims at twice: on a touch screen hover never lifts, and the\n button would stay lit after the view it opened had been left. */\n @media (hover:none){\n .ngxsp-wmp-quickView:hover{background:transparent;color:var(--wmp-ink-2)}\n .ngxsp-wmp-quickView.active{background:var(--wmp-s2);color:var(--wmp-accent)}\n }\n .ngxsp-wmp-search{\n position:relative;\n justify-self:center;\n width:100%;\n max-width:440px;\n height:34px;\n display:block;\n color:var(--wmp-text-3);\n }\n .ngxsp-wmp-search ngxsp-smart-icon{position:absolute;left:11px;top:50%;width:16px;height:16px;transform:translateY(-50%);pointer-events:none}\n .ngxsp-wmp-search input{\n width:100%;\n height:100%;\n padding:0 10px 0 35px;\n border:1px solid transparent;\n border-radius:8px;\n outline:0;\n background:var(--wmp-s2);\n color:var(--wmp-text);\n font-size:13px;\n transition:border-color var(--wmp-dur) var(--wmp-ease), background-color var(--wmp-dur) var(--wmp-ease), box-shadow var(--wmp-dur) var(--wmp-ease);\n }\n .ngxsp-wmp-search input:hover{border-color:var(--wmp-line-strong)}\n .ngxsp-wmp-shell .ngxsp-wmp-search input:focus,\n .ngxsp-wmp-shell .ngxsp-wmp-search input:focus-visible{outline:0;border-color:var(--wmp-accent);background:var(--wmp-s1);box-shadow:0 0 0 3px var(--wmp-accent-soft)}\n .ngxsp-wmp-search input::placeholder{color:var(--wmp-text-3)}\n .ngxsp-wmp-titleActions{min-width:0;display:flex;align-items:center;justify-content:flex-end;gap:8px}\n .ngxsp-wmp-status{\n min-width:0;\n max-width:300px;\n height:26px;\n display:inline-flex;\n align-items:center;\n gap:7px;\n padding:0 10px;\n border-radius:999px;\n background:var(--wmp-s2);\n color:var(--wmp-text-2);\n font-size:12px;\n white-space:nowrap;\n overflow:hidden;\n text-overflow:ellipsis;\n }\n .ngxsp-wmp-status::before{content:'';width:6px;height:6px;flex:0 0 auto;border-radius:50%;background:var(--wmp-accent)}\n .ngxsp-wmp-status.success::before{background:var(--wmp-success)}\n .ngxsp-wmp-status.error{color:var(--wmp-danger-text);background:rgb(242 95 92 / .16)}\n .ngxsp-wmp-status.error::before{background:var(--wmp-danger)}\n\n /* Rail */\n .ngxsp-wmp-rail{\n grid-area:rail;\n min-width:0;\n min-height:0;\n display:flex;\n flex-direction:column;\n border-right:1px solid var(--wmp-line);\n background:var(--wmp-s0);\n }\n .ngxsp-wmp-nav{flex:1;min-height:0;display:flex;flex-direction:column;gap:1px;padding:12px 8px;overflow:auto}\n .ngxsp-wmp-navItem{\n width:100%;\n height:34px;\n flex:0 0 auto;\n display:grid;\n grid-template-columns:18px minmax(0,1fr) auto;\n align-items:center;\n gap:10px;\n padding:0 10px;\n border:0;\n border-radius:var(--wmp-r-sm);\n background:transparent;\n color:var(--wmp-text-2);\n text-align:left;\n transition:background-color var(--wmp-dur) var(--wmp-ease), color var(--wmp-dur) var(--wmp-ease);\n }\n .ngxsp-wmp-navItem span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:500}\n .ngxsp-wmp-navItem small{color:var(--wmp-text-3);font-size:11px;font-variant-numeric:tabular-nums}\n .ngxsp-wmp-navItem:hover{background:var(--wmp-s2);color:var(--wmp-text)}\n .ngxsp-wmp-navItem.active{background:var(--wmp-s3);color:var(--wmp-text)}\n .ngxsp-wmp-navItem.active ngxsp-smart-icon{color:var(--wmp-accent)}\n .ngxsp-wmp-navItem.active small{color:var(--wmp-text-2)}\n /* A facet sits under its parent, without an icon: the family already carries one, and repeating\n it would say that a facet is a place of its own. Two columns instead of three, indented to\n where the parent's label starts. */\n .ngxsp-wmp-navItem .ngxsp-wmp-navChevron{width:14px;height:14px;opacity:.55}\n .ngxsp-wmp-navItem.active .ngxsp-wmp-navChevron{opacity:.8}\n .ngxsp-wmp-navChild{height:30px;grid-template-columns:minmax(0,1fr) auto;padding-left:38px}\n .ngxsp-wmp-navChild span{font-weight:400;color:var(--wmp-text-3)}\n .ngxsp-wmp-navChild:hover span{color:var(--wmp-text)}\n .ngxsp-wmp-navChild.active{background:var(--wmp-s1)}\n .ngxsp-wmp-navChild.active span{color:var(--wmp-text);font-weight:500}\n .ngxsp-wmp-navDivider{display:block;flex:0 0 auto;height:1px;margin:10px;background:var(--wmp-line)}\n ngxsp-settings{\n --ngxsp-settings-surface:var(--wmp-s1);\n --ngxsp-settings-text:var(--wmp-text);\n --ngxsp-settings-muted:var(--wmp-text-2);\n --ngxsp-settings-line:var(--wmp-line);\n --ngxsp-settings-control:var(--wmp-s3);\n --ngxsp-settings-accent:var(--wmp-accent);\n --ngxsp-settings-radius:var(--wmp-r-md, 10px);\n }\n .ngxsp-wmp-railTools{display:grid;gap:12px;padding:12px;border-top:1px solid var(--wmp-line)}\n /* Same as the video player's top-bar import action. */\n .ngxsp-wmp-sourceButton{\n flex:0 0 auto;\n height:32px;\n display:inline-flex;\n align-items:center;\n gap:7px;\n padding:0 12px 0 10px;\n border:0;\n border-radius:var(--wmp-r-sm);\n background:var(--wmp-accent-strong);\n color:var(--wmp-on-accent);\n font-size:12px;\n font-weight:600;\n white-space:nowrap;\n cursor:pointer;\n }\n .ngxsp-wmp-sourceButton ngxsp-smart-icon{width:16px;height:16px}\n .ngxsp-wmp-sourceButton:hover{filter:brightness(1.1)}\n .ngxsp-wmp-sourceButton:disabled{opacity:.7;cursor:progress}\n .ngxsp-wmp-trail{display:flex;flex-wrap:wrap;align-items:center;gap:6px;padding:0 2px 10px;font-size:12px;color:var(--wmp-text-3)}\n .ngxsp-wmp-trail b{color:var(--wmp-text);font-weight:600}\n .ngxsp-wmp-trailStep{padding:2px 6px;border:0;border-radius:6px;background:transparent;color:inherit;font:inherit;font-size:12px;cursor:pointer}\n .ngxsp-wmp-trailStep:hover,.ngxsp-wmp-trailStep:focus-visible{background:var(--wmp-surface-2,rgba(127,127,127,.12));color:var(--wmp-text)}\n .ngxsp-wmp-libraryInfo{min-width:0;display:grid;gap:2px;padding:0 4px}\n .ngxsp-wmp-libraryInfo strong,\n .ngxsp-wmp-libraryInfo small{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}\n .ngxsp-wmp-libraryInfo strong{font-size:12px;font-weight:600}\n .ngxsp-wmp-libraryInfo small{color:var(--wmp-text-3);font-size:11px}\n .ngxsp-wmp-libraryStatus{display:flex;align-items:center;gap:6px}\n .ngxsp-wmp-libraryStatus::before{content:'';width:6px;height:6px;flex:0 0 auto;border-radius:50%;background:var(--wmp-success)}\n .ngxsp-wmp-libraryStatus.busy::before{background:var(--wmp-accent);animation:ngxsp-wmp-pulse 1.2s ease-in-out infinite}\n @keyframes ngxsp-wmp-pulse{0%,100%{opacity:.35}50%{opacity:1}}\n\n /* Main */\n .ngxsp-wmp-main{\n grid-area:main;\n min-width:0;\n min-height:0;\n display:flex;\n flex-direction:column;\n overflow:auto;\n background:var(--wmp-bg);\n }\n .ngxsp-wmp-nowPanel{\n position:relative;\n flex:0 0 auto;\n display:grid;\n grid-template-columns:184px minmax(0,1fr);\n align-items:end;\n gap:28px;\n padding:32px 32px 28px;\n background:\n radial-gradient(120% 140% at 0% 0%, rgb(93 99 238 / .2) 0%, transparent 60%),\n linear-gradient(180deg, var(--wmp-s1) 0%, var(--wmp-bg) 100%);\n border-bottom:1px solid var(--wmp-line);\n }\n .ngxsp-wmp-art{\n width:184px;\n height:184px;\n display:grid;\n place-items:center;\n overflow:hidden;\n border-radius:var(--wmp-r-md);\n background:linear-gradient(145deg, var(--wmp-s3), var(--wmp-s1));\n color:var(--wmp-text-3);\n box-shadow:var(--nsp-shadow-media, 0 18px 40px rgb(0 0 0 / .45));\n }\n .ngxsp-wmp-artNote ngxsp-smart-icon{width:56px;height:56px}\n .ngxsp-wmp-playerSurface{min-width:0;min-height:160px;display:flex;flex-direction:column;justify-content:flex-end;gap:16px}\n .ngxsp-wmp-nowCopy{min-width:0;display:grid;gap:4px}\n .ngxsp-wmp-eyebrow{\n display:inline-flex;\n align-items:center;\n gap:8px;\n color:var(--wmp-text-2);\n font-size:11px;\n font-weight:600;\n }\n .ngxsp-wmp-liveDot{width:6px;height:6px;border-radius:50%;background:var(--wmp-success);box-shadow:0 0 0 3px rgb(62 207 142 / .18)}\n .ngxsp-wmp-nowCopy h1{\n min-width:0;\n overflow:hidden;\n text-overflow:ellipsis;\n white-space:nowrap;\n font-size:32px;\n line-height:1.15;\n font-weight:700;\n }\n .ngxsp-wmp-shell .ngxsp-wmp-nowCopy h1{letter-spacing:-.015em}\n .ngxsp-wmp-nowCopy p{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--wmp-text);font-size:14px;font-weight:500}\n .ngxsp-wmp-nowCopy small{color:var(--wmp-text-2);font-size:12px}\n .ngxsp-wmp-nowActions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}\n .ngxsp-wmp-nowOscillogram{min-width:0;min-height:48px;display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:40px 2px;column-gap:14px;row-gap:6px;align-items:end}\n .ngxsp-wmp-nowWaveform{grid-column:1;grid-row:1;height:40px;display:flex;align-items:flex-end;gap:3px;overflow:hidden}\n .ngxsp-wmp-nowWaveform span{\n flex:1 1 0;\n min-width:2px;\n border-radius:2px 2px 0 0;\n background:var(--wmp-line-strong);\n transform-origin:bottom;\n transition:background-color 240ms var(--wmp-ease);\n }\n .ngxsp-wmp-nowWaveform span.played{background:var(--wmp-accent)}\n .ngxsp-wmp-nowProgressLine{grid-column:1;grid-row:2;position:relative;height:2px;border-radius:999px;background:var(--wmp-line);overflow:hidden}\n .ngxsp-wmp-nowProgressLine i{position:absolute;inset:0 auto 0 0;background:var(--wmp-accent);border-radius:inherit}\n .ngxsp-wmp-nowTime{grid-column:2;grid-row:1 / span 2;align-self:end;display:flex;gap:4px;color:var(--wmp-text-2);font-size:12px;font-variant-numeric:tabular-nums}\n .ngxsp-wmp-nowTime small + small::before{content:'/ ';color:var(--wmp-text-3)}\n .ngxsp-wmp-emptyPlayer{display:grid;justify-items:start;gap:10px}\n .ngxsp-wmp-emptyPlayer h1{font-size:28px;font-weight:700}\n .ngxsp-wmp-emptyPlayer p{color:var(--wmp-text-2);max-width:52ch}\n\n /* Generated covers */\n .ngxsp-wmp-shell .ngxsp-wmp-cover:not(.has-image){\n color:rgb(255 255 255 / .6);\n background:radial-gradient(90% 70% at 20% 10%, rgb(255 255 255 / .16), transparent 60%), linear-gradient(140deg, var(--tone-a), var(--tone-b));\n }\n .ngxsp-wmp-cover[data-tone=\"0\"]{--tone-a:#4a4fc4;--tone-b:#1d1e45}\n .ngxsp-wmp-cover[data-tone=\"1\"]{--tone-a:#1f8078;--tone-b:#0e2a2c}\n .ngxsp-wmp-cover[data-tone=\"2\"]{--tone-a:#b3782a;--tone-b:#35230f}\n .ngxsp-wmp-cover[data-tone=\"3\"]{--tone-a:#a83a62;--tone-b:#2e1120}\n .ngxsp-wmp-cover[data-tone=\"4\"]{--tone-a:#2f6fa8;--tone-b:#0f2031}\n .ngxsp-wmp-cover[data-tone=\"5\"]{--tone-a:#6f7f2e;--tone-b:#1f240f}\n .ngxsp-wmp-cover[data-tone=\"6\"]{--tone-a:#7a48b8;--tone-b:#231436}\n .ngxsp-wmp-cover[data-tone=\"7\"]{--tone-a:#b0543a;--tone-b:#321710}\n\n /* Library */\n .ngxsp-wmp-librarySurface{flex:1 0 auto;min-width:0;display:flex;flex-direction:column}\n .ngxsp-wmp-sectionHeader{display:grid;gap:2px;padding:24px 32px 8px}\n /* An album, an artist or a folder named after a file - \"Mon.Titre.Sans.Espace.2026.flac\" -\n is one unbreakable word. The view's heading had nothing to break it with, so it set the\n minimum width of the whole view: measured in a 375px viewport, the page became 928px wide.\n Titles that already end in an ellipsis were never affected, which is why the cards and the\n playing track were fine. */\n .ngxsp-wmp-sectionHeader > span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--wmp-text-2);font-size:12px;font-weight:600;}\n .ngxsp-wmp-backButton{justify-self:start;display:inline-flex;align-items:center;gap:4px;max-width:100%;height:28px;margin:0 0 6px -8px;padding:0 10px 0 4px;border:0;border-radius:999px;background:transparent;color:var(--wmp-text-2);font:inherit;font-size:13px;font-weight:600;cursor:pointer}\n .ngxsp-wmp-backButton ngxsp-smart-icon{flex:none;width:18px;height:18px}\n .ngxsp-wmp-backButton span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}\n .ngxsp-wmp-backButton:hover{background:var(--wmp-s2, rgb(127 127 127 / .14));color:var(--wmp-text)}\n .ngxsp-wmp-shell .ngxsp-wmp-sectionHeader > span{}\n .ngxsp-wmp-sectionHeader h1,\n .ngxsp-wmp-sectionHeader h2{\n min-width:0;\n display:-webkit-box;\n -webkit-line-clamp:2;\n -webkit-box-orient:vertical;\n overflow:hidden;\n overflow-wrap:anywhere;\n font-size:22px;\n line-height:1.2;\n font-weight:700;\n }\n .ngxsp-wmp-sectionHeader:has(.ngxsp-wmp-viewSwitch){grid-template-columns:minmax(0,1fr) auto;align-items:center}\n .ngxsp-wmp-sectionHeader:has(.ngxsp-wmp-viewSwitch) > span,\n .ngxsp-wmp-sectionHeader:has(.ngxsp-wmp-viewSwitch) > h1,\n .ngxsp-wmp-sectionHeader:has(.ngxsp-wmp-viewSwitch) > h2{grid-column:1}\n .ngxsp-wmp-viewSwitch{grid-column:2;grid-row:1 / span 2;display:flex;gap:6px}\n .ngxsp-wmp-viewSwitch button{\n height:30px;\n padding:0 12px;\n border:1px solid var(--wmp-line);\n border-radius:15px;\n background:transparent;\n color:var(--wmp-text-3);\n font:inherit;\n font-size:12px;\n cursor:pointer;\n }\n .ngxsp-wmp-viewSwitch button:hover:not(.active){background:var(--wmp-s2);color:var(--wmp-text-2)}\n .ngxsp-wmp-viewSwitch button.active{border-color:var(--wmp-line-strong);color:var(--wmp-text)}\n .ngxsp-wmp-sectionHeader.slim{grid-template-columns:minmax(0,1fr) auto;align-items:center;column-gap:8px;padding:14px 20px 8px}\n .ngxsp-wmp-sectionHeader.slim > span{grid-column:1}\n .ngxsp-wmp-sectionHeader.slim strong{grid-column:1;font-size:13px;font-weight:600}\n .ngxsp-wmp-sectionHeader.slim .ngxsp-wmp-smallButton{grid-column:2;grid-row:1 / span 2}\n /* The head of what one has opened: the cover, the name, what it is made of, what it is for. */\n .ngxsp-wmp-detailHead{display:flex;flex-wrap:wrap;align-items:flex-start;gap:20px;padding-top:2px}\n .ngxsp-wmp-detailArt{\n flex:none;\n width:176px;\n height:176px;\n overflow:hidden;\n border:1px solid var(--wmp-line);\n border-radius:14px;\n background:linear-gradient(145deg, var(--wmp-s3), var(--wmp-s1));\n }\n .ngxsp-wmp-detailArt img{display:block;width:100%;height:100%;object-fit:cover}\n .ngxsp-wmp-detailText{flex:1 1 320px;min-width:0}\n .ngxsp-wmp-detailHead h1{font-size:24px;line-height:1.2;font-weight:700}\n .ngxsp-wmp-detailMeta{margin:6px 0 0;color:var(--wmp-text-2);font-size:13px;overflow-wrap:anywhere}\n .ngxsp-wmp-detailFormat{margin:3px 0 0;color:var(--wmp-text-3);font-size:12px;overflow-wrap:anywhere}\n .ngxsp-wmp-detailActions{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}\n .ngxsp-wmp-detailAction{\n display:inline-flex;\n align-items:center;\n gap:7px;\n height:34px;\n padding:0 16px;\n border:1px solid var(--wmp-line-strong);\n border-radius:999px;\n background:transparent;\n color:inherit;\n font:inherit;\n font-size:13px;\n font-weight:600;\n cursor:pointer;\n }\n .ngxsp-wmp-detailAction ngxsp-smart-icon{width:16px;height:16px}\n .ngxsp-wmp-detailAction:hover:not(:disabled){background:var(--wmp-s2, rgb(127 127 127 / .14))}\n .ngxsp-wmp-detailAction.primary{border-color:transparent;background:var(--wmp-accent-strong);color:var(--wmp-on-accent)}\n .ngxsp-wmp-detailAction.primary:hover:not(:disabled){filter:brightness(1.1)}\n .ngxsp-wmp-detailAction.compact{width:34px;padding:0;justify-content:center}\n .ngxsp-wmp-detailAction.active{border-color:transparent;background:var(--wmp-accent-soft);color:var(--wmp-accent)}\n .ngxsp-wmp-detailAction.accent{border-color:var(--wmp-accent);color:var(--wmp-accent)}\n .ngxsp-wmp-detailAction:disabled{opacity:.45;cursor:default}\n /* On a track's own page the copy is centred, and what one does with the track is under it. */\n .ngxsp-wmp-playerCopy .ngxsp-wmp-detailActions{justify-content:center}\n /* Where the music comes from, all of it on one page. */\n .ngxsp-wmp-sourcesPage{display:grid;gap:10px;padding-top:16px}\n .ngxsp-wmp-playlistsPage{display:grid;gap:10px;padding-top:16px}\n .ngxsp-wmp-playlistsPage h1{margin:0;font-size:19px;font-weight:600}\n .ngxsp-wmp-playlistsHead p{margin:5px 0 0;color:var(--wmp-text-3);font-size:12px}\n .ngxsp-wmp-sourcesHead{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:8px}\n .ngxsp-wmp-sourcesHead h1{margin:0;font-size:21px;font-weight:600;letter-spacing:-.2px}\n .ngxsp-wmp-sourcesHead p{margin:5px 0 0;color:var(--wmp-text-3);font-size:12px}\n .ngxsp-wmp-sourceGroupTitle{margin:0;font-size:12px;font-weight:600;color:var(--wmp-text-2)}\n .ngxsp-wmp-sourceRows{display:grid;gap:10px;margin-bottom:14px}\n .ngxsp-wmp-sourceRow{\n display:flex;\n flex-wrap:wrap;\n align-items:center;\n gap:12px;\n padding:12px 14px;\n border:1px solid var(--wmp-line);\n border-radius:12px;\n background:var(--wmp-s1);\n }\n .ngxsp-wmp-sourceRow.active{border-color:var(--wmp-accent)}\n .ngxsp-wmp-sourceRow.footer{border-style:dashed;background:transparent}\n button.ngxsp-wmp-sourceRow{width:100%;text-align:start;color:inherit;font:inherit;cursor:pointer}\n button.ngxsp-wmp-sourceRow:hover,button.ngxsp-wmp-sourceRow:focus-visible{border-color:var(--wmp-line-strong)}\n .ngxsp-wmp-sourceIcon{\n flex:none;\n display:grid;\n place-items:center;\n width:34px;\n height:34px;\n border-radius:9px;\n background:var(--wmp-s3);\n color:var(--wmp-text-2);\n }\n .ngxsp-wmp-sourceIcon.dashed{border:1px dashed var(--wmp-line-strong);background:transparent;color:var(--wmp-text-3)}\n .ngxsp-wmp-sourceRow.active .ngxsp-wmp-sourceIcon{background:var(--wmp-accent-soft);color:var(--wmp-accent)}\n .ngxsp-wmp-sourceIcon ngxsp-smart-icon{width:19px;height:19px}\n .ngxsp-wmp-sourceCopy{flex:1 1 180px;min-width:0;display:grid;gap:2px}\n .ngxsp-wmp-sourceCopy strong{font-size:13px;font-weight:600}\n .ngxsp-wmp-sourceCopy small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--wmp-text-3);font-size:11.5px}\n .ngxsp-wmp-sourceState{\n flex:none;\n padding:3px 9px;\n border-radius:11px;\n background:var(--wmp-s3);\n color:var(--wmp-text-2);\n font-size:11px;\n font-weight:600;\n }\n .ngxsp-wmp-sourceRow.active .ngxsp-wmp-sourceState{background:var(--wmp-accent-soft);color:var(--wmp-accent)}\n /* A search is a page: what was looked for, how much answered, by which kind, and what answers best. */\n .ngxsp-wmp-searchTitle{margin:0;font-size:21px;font-weight:600;letter-spacing:-.2px}\n .ngxsp-wmp-searchSummary{margin:4px 0 0;color:var(--wmp-text-3);font-size:12px}\n .ngxsp-wmp-viewIntro{margin:4px 0 0;color:var(--wmp-text-3);font-size:12px}\n .ngxsp-wmp-bellButton{position:relative}\n .ngxsp-wmp-bellWrap{position:relative;display:inline-flex}\n .ngxsp-wmp-notificationsPopover{\n position:absolute;top:calc(100% + 10px);right:0;z-index:60;\n width:392px;max-height:min(70vh, 460px);overflow:auto;\n padding:12px;border:1px solid var(--wmp-line);border-radius:14px;\n background:var(--wmp-s1);color:var(--wmp-text);\n box-shadow:0 22px 54px rgb(0 0 0 / .55);text-align:left;\n }\n .ngxsp-wmp-notificationsPopover ngxsp-notifications{gap:14px}\n .ngxsp-wmp-bellDot{\n position:absolute;\n top:5px;\n right:5px;\n width:7px;\n height:7px;\n border-radius:50%;\n background:var(--wmp-danger);\n box-shadow:0 0 0 2px var(--wmp-s0);\n }\n /* Drawn on a phone only; the rail is the way on anything wider. */\n .ngxsp-wmp-tabBar,\n .ngxsp-wmp-tabFacets{display:none}\n /* Listening, with the screen to itself. */\n .ngxsp-wmp-playerPage{\n position:relative;\n min-height:100%;\n display:flex;\n flex-direction:column;\n justify-content:center;\n padding:40px 44px;\n background:radial-gradient(110% 80% at 20% 0%, var(--wmp-s2), var(--wmp-bg));\n }\n .ngxsp-wmp-playerBack{\n position:absolute;\n left:16px;\n top:16px;\n display:inline-flex;\n align-items:center;\n gap:8px;\n height:32px;\n padding:0 13px 0 10px;\n border:0;\n border-radius:16px;\n background:var(--wmp-s1);\n color:var(--wmp-text);\n font:inherit;\n font-size:12px;\n cursor:pointer;\n }\n .ngxsp-wmp-playerBack ngxsp-smart-icon{width:15px;height:15px}\n .ngxsp-wmp-playerBack:hover{background:var(--wmp-s3)}\n /* The stage gives way: a song's words are longer than any screen, and a panel free to grow with\n them pushes the cover off the top of the page, where no scroll bar reaches it. */\n .ngxsp-wmp-playerStage{display:flex;flex-wrap:wrap;gap:32px;align-items:center;min-height:0}\n .ngxsp-wmp-playerSide{flex:none;width:268px;display:flex;flex-direction:column;align-items:center;gap:18px}\n .ngxsp-wmp-playerArt{\n display:grid;\n place-items:center;\n width:268px;\n height:268px;\n overflow:hidden;\n border:1px solid var(--wmp-line);\n border-radius:16px;\n box-shadow:0 22px 50px rgb(0 0 0 / .5);\n }\n .ngxsp-wmp-playerArt img{display:block;width:100%;height:100%;object-fit:cover}\n .ngxsp-wmp-playerArt ngxsp-smart-icon{width:64px;height:64px;opacity:.55}\n .ngxsp-wmp-playerCopy{text-align:center;max-width:268px}\n .ngxsp-wmp-playerCopy h1{margin:0;font-size:20px;font-weight:600;letter-spacing:-.2px;overflow-wrap:anywhere}\n .ngxsp-wmp-playerCopy p{margin:6px 0 0;color:var(--wmp-text-2);font-size:13px;overflow-wrap:anywhere}\n .ngxsp-wmp-playerCopy small{display:block;margin:3px 0 0;color:var(--wmp-text-3);font-size:11.5px;overflow-wrap:anywhere}\n .ngxsp-wmp-playerWave{width:100%;height:40px;display:flex;align-items:flex-end;gap:2px}\n .ngxsp-wmp-playerWave span{flex:1;border-radius:1px;background:var(--wmp-accent-soft)}\n .ngxsp-wmp-playerWave span.played{background:var(--wmp-accent);opacity:.55}\n /* Beside the cover, the window is as tall as the stage and no taller, and a ceiling is what holds\n it: stretching a flex line never shrinks it below what it holds. */\n .ngxsp-wmp-playerLyrics{flex:1 1 320px;min-width:0;min-height:0;max-height:100%;align-self:stretch;display:flex;flex-direction:column;justify-content:center;overflow:hidden}\n .ngxsp-wmp-playerLyricsHead{display:flex;align-items:center;gap:9px;margin-bottom:14px;color:var(--wmp-text-3);font-size:11.5px}\n .ngxsp-wmp-playerLyricsHead ngxsp-smart-icon{width:14px;height:14px}\n /* A window on the song: the line being sung is held in the middle of it, the lines at both ends\n fade out, and it scrolls by hand too — without a bar of its own, as the mini window has none. */\n .ngxsp-wmp-playerLyricsLines{\n display:flex;\n flex-direction:column;\n min-height:0;\n overflow-y:auto;\n scrollbar-width:none;\n mask-image:linear-gradient(transparent, #000 18%, #000 82%, transparent);\n }\n .ngxsp-wmp-playerLyricsLines::-webkit-scrollbar{display:none}\n .ngxsp-wmp-playerLyricsLines button,\n .ngxsp-wmp-playerLyricsLines p{\n margin:0;\n padding:6px 0;\n border:0;\n background:transparent;\n color:var(--wmp-text-3);\n font:inherit;\n font-size:16px;\n line-height:1.4;\n text-align:start;\n }\n .ngxsp-wmp-playerLyricsLines button{cursor:pointer}\n .ngxsp-wmp-playerLyricsLines button:hover{color:var(--wmp-text-2)}\n .ngxsp-wmp-playerLyricsLines button.active{color:var(--wmp-text);font-size:19px;font-weight:600}\n /* A phone or a tablet listening to a page is a player and nothing else, as it is on the\n other side: the rail leaves, and the page takes the screen. */\n @media (max-width: 1024px) {\n .ngxsp-wmp-shell:has(.ngxsp-wmp-playerPage) .ngxsp-wmp-rail{display:none}\n .ngxsp-wmp-playerPage{padding:24px 16px 16px}\n .ngxsp-wmp-playerStage{justify-content:center}\n /* Stacked under the cover, the window takes a share of the screen: the stage is two lines\n tall here, so its own height is no longer the measure of what one of them may take. */\n .ngxsp-wmp-playerLyrics{max-height:40vh}\n /* The way out goes back into the page. Pinned to the corner it sat on the cover, which takes\n the whole width here — and it left the screen as soon as the page was scrolled. */\n .ngxsp-wmp-playerBack{position:static;align-self:flex-start;margin-bottom:14px}\n }\n .ngxsp-wmp-searchFilters{display:flex;flex-wrap:wrap;gap:6px}\n .ngxsp-wmp-searchFilters button{\n height:30px;\n display:inline-flex;\n align-items:center;\n gap:7px;\n padding:0 13px;\n border:1px solid var(--wmp-line);\n border-radius:15px;\n background:transparent;\n color:var(--wmp-text-3);\n font:inherit;\n font-size:12px;\n cursor:pointer;\n }\n .ngxsp-wmp-searchFilters button small{opacity:.7;font-size:11px}\n .ngxsp-wmp-searchFilters button:hover:not(.active):not(:disabled){background:var(--wmp-s2);color:var(--wmp-text-2)}\n .ngxsp-wmp-searchFilters button.active{border-color:transparent;background:var(--wmp-accent);color:var(--wmp-on-accent);font-weight:600}\n .ngxsp-wmp-searchFilters button.active small{opacity:.75}\n .ngxsp-wmp-searchFilters button:disabled{opacity:.45;cursor:default}\n .ngxsp-wmp-searchBestBlock{display:grid;gap:10px}\n .ngxsp-wmp-searchBest{\n display:flex;\n flex-wrap:wrap;\n gap:16px;\n padding:14px;\n border:1px solid var(--wmp-accent);\n border-radius:12px;\n background:var(--wmp-s1);\n }\n .ngxsp-wmp-searchBestArt{\n flex:none;\n display:grid;\n place-items:center;\n width:140px;\n height:140px;\n overflow:hidden;\n padding:0;\n border:1px solid var(--wmp-line);\n border-radius:12px;\n cursor:pointer;\n }\n .ngxsp-wmp-searchBestArt img{display:block;width:100%;height:100%;object-fit:cover}\n .ngxsp-wmp-searchBestArt ngxsp-smart-icon{width:34px;height:34px;opacity:.6}\n .ngxsp-wmp-searchBestCopy{flex:1 1 260px;min-width:0}\n .ngxsp-wmp-searchBestCopy h3{margin:0;font-size:15px;font-weight:600;overflow-wrap:anywhere}\n .ngxsp-wmp-searchBestCopy p{margin:5px 0 0;color:var(--wmp-text-2);font-size:12px;overflow-wrap:anywhere}\n .ngxsp-wmp-searchBestCopy small{display:block;margin:8px 0 0;color:var(--wmp-text-3);font-size:11.5px}\n .ngxsp-wmp-searchBestCopy .ngxsp-wmp-detailActions{margin-top:14px}\n mark{background:var(--wmp-accent-soft);color:var(--wmp-text);border-radius:3px;padding:0 2px}\n .ngxsp-wmp-recentSearches{display:grid;gap:2px;padding:0 8px 8px}\n .ngxsp-wmp-recentSearches button{\n display:flex;\n align-items:center;\n gap:10px;\n height:34px;\n padding:0 10px;\n border:0;\n border-radius:9px;\n background:transparent;\n color:var(--wmp-text-2);\n font:inherit;\n font-size:12.5px;\n text-align:start;\n cursor:pointer;\n }\n .ngxsp-wmp-recentSearches button span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}\n .ngxsp-wmp-recentSearches button ngxsp-smart-icon{width:14px;height:14px;opacity:.7}\n .ngxsp-wmp-recentSearches button:hover{background:var(--wmp-s2);color:var(--wmp-text)}\n .ngxsp-wmp-recentSearches button.active{background:var(--wmp-s2);color:var(--wmp-text)}\n /* A phone gives the cover its own line rather than a third of the screen beside three words. */\n @media (max-width: 720px){\n .ngxsp-wmp-detailArt{width:112px;height:112px}\n .ngxsp-wmp-detailHead h1{font-size:20px}\n }\n /* min-width:0 because a grid item is min-width:auto: whatever this holds asks for its\n max-content width and gets it, and the page then reaches past its own column with no\n scrollbar to follow it there. The settings did exactly that at 834px. */\n .ngxsp-wmp-sectionScroll{display:grid;min-width:0;gap:28px;padding:8px 24px 32px}\n .ngxsp-wmp-section{min-width:0;display:grid;gap:10px}\n .ngxsp-wmp-section > h2,\n .ngxsp-wmp-section > h3{min-width:0;overflow-wrap:anywhere;padding:0 8px;font-size:15px;font-weight:600}\n\n /* Cards */\n .ngxsp-wmp-cardGrid{display:grid;grid-template-columns:repeat(auto-fill, minmax(168px, 1fr));gap:4px}\n .ngxsp-wmp-card{position:relative;min-width:0;container-type:inline-size;border-radius:var(--wmp-r-md);transition:background-color var(--wmp-dur) var(--wmp-ease)}\n .ngxsp-wmp-card:hover,\n .ngxsp-wmp-card:focus-within{background:var(--wmp-s1)}\n .ngxsp-wmp-cardSelect{width:100%;min-width:0;display:grid;gap:10px;padding:10px;border:0;border-radius:inherit;background:transparent;text-align:left}\n .ngxsp-wmp-thumb{\n position:relative;\n width:100%;\n aspect-ratio:1;\n display:grid;\n place-items:center;\n overflow:hidden;\n border-radius:8px;\n background:linear-gradient(145deg, var(--wmp-s3), var(--wmp-s1));\n color:var(--wmp-text-3);\n box-shadow:var(--nsp-shadow-card, 0 6px 18px rgb(0 0 0 / .3));\n }\n .ngxsp-wmp-thumb > ngxsp-smart-icon{width:36px;height:36px}\n /* Sits on the artwork's bottom-right corner: the square thumb is the card width minus its 10px padding. */\n .ngxsp-wmp-cardPlaySlot{\n position:absolute;\n top:calc(100cqw - 58px);\n right:18px;\n display:flex;\n opacity:0;\n transform:translateY(6px);\n transition:opacity var(--wmp-dur) var(--wmp-ease), transform var(--wmp-dur) var(--wmp-ease);\n }\n .ngxsp-wmp-card:hover .ngxsp-wmp-cardPlaySlot,\n .ngxsp-wmp-card:focus-within .ngxsp-wmp-cardPlaySlot,\n .ngxsp-wmp-card.active .ngxsp-wmp-cardPlaySlot{opacity:1;transform:none}\n .ngxsp-wmp-cardPlay{\n width:40px;\n height:40px;\n display:grid;\n place-items:center;\n padding:0;\n border:0;\n border-radius:999px;\n background:var(--wmp-accent-strong);\n color:#fff;\n box-shadow:0 8px 20px rgb(0 0 0 / .4);\n }\n .ngxsp-wmp-cardPlay ngxsp-smart-icon{width:18px;height:18px}\n /* iOS magnifies the page on a double tap unless an element declares that it handles taps\n itself. A card is a button: tapping it twice was meant to play it, not to zoom the shelf.\n The value here leaves pinch-to-zoom alone, which is the gesture a reader needs. */\n .ngxsp-wmp-shell,\n .ngxsp-wmp-shell button,\n .ngxsp-wmp-shell [role=\"button\"]{touch-action:manipulation}\n .ngxsp-wmp-cardCopy{min-width:0;display:grid;gap:2px}\n\n /* iOS magnifies the page when a field takes focus with a font under 16px - typing a code was\n enough to zoom the whole interface. On a touch screen the fields are 16px; a pointer keeps\n the compact size, where the zoom never happens. */\n @media (hover: none) {\n .ngxsp-wmp-search input,\n .ngxsp-wmp-inlineForm input,\n .ngxsp-wmp-stationForm input{font-size:16px}\n }\n .ngxsp-wmp-cardCopy strong,\n .ngxsp-wmp-cardCopy small,\n .ngxsp-wmp-cardCopy em{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}\n .ngxsp-wmp-cardCopy strong{font-size:13px;font-weight:600}\n .ngxsp-wmp-card.active .ngxsp-wmp-cardCopy strong{color:var(--wmp-accent)}\n .ngxsp-wmp-cardCopy small{color:var(--wmp-text-2);font-size:12px}\n .ngxsp-wmp-cardCopy em{color:var(--wmp-text-3);font-size:11px;font-style:normal}\n .ngxsp-wmp-cardActions{position:absolute;top:18px;right:18px;display:flex;gap:4px;opacity:0;transition:opacity var(--wmp-dur) var(--wmp-ease)}\n .ngxsp-wmp-card:hover .ngxsp-wmp-cardActions,\n .ngxsp-wmp-card:focus-within .ngxsp-wmp-cardActions{opacity:1}\n .ngxsp-wmp-cardAction{\n width:32px;\n height:32px;\n display:grid;\n place-items:center;\n padding:0;\n border:0;\n border-radius:999px;\n background:rgb(13 14 17 / .8);\n color:#fff;\n backdrop-filter:blur(8px);\n }\n .ngxsp-wmp-cardAction ngxsp-smart-icon{width:14px;height:14px}\n .ngxsp-wmp-cardAction:hover{background:rgb(13 14 17 / .95)}\n\n /* Track table */\n .ngxsp-wmp-table{min-width:0;display:grid}\n .ngxsp-wmp-tableHead,\n .ngxsp-wmp-trackSelect{\n display:grid;\n grid-template-columns:36px minmax(0,2.4fr) minmax(0,1.3fr) minmax(0,1.3fr) 48px;\n align-items:center;\n gap:14px;\n }\n .ngxsp-wmp-tableHead{\n position:sticky;\n top:0;\n z-index:1;\n height:34px;\n margin-bottom:4px;\n /* The actions column, then the gap before it. */\n padding:0 calc(var(--wmp-actions-w, 112px) + 8px) 0 10px;\n border-bottom:1px solid var(--wmp-line);\n background:var(--wmp-bg);\n color:var(--wmp-text-2);\n font-size:11px;\n font-weight:600;\n }\n .ngxsp-wmp-tableHead > span:first-child{text-align:center}\n .ngxsp-wmp-timeHead{display:flex;justify-content:flex-end}\n .ngxsp-wmp-timeHead ngxsp-smart-icon{width:15px;height:15px}\n .ngxsp-wmp-trackRow{\n position:relative;\n min-width:0;\n display:grid;\n /* The actions get a column of their own, as wide as the buttons the table shows, so they never cover the\n duration. */\n grid-template-columns:minmax(0,1fr) var(--wmp-actions-w, 112px);\n align-items:center;\n gap:8px;\n border-radius:var(--wmp-r-sm);\n transition:background-color var(--wmp-dur) var(--wmp-ease);\n }\n .ngxsp-wmp-trackRow:hover,\n .ngxsp-wmp-trackRow:focus-within{background:var(--wmp-s1)}\n .ngxsp-wmp-trackRow.active{background:var(--wmp-accent-soft)}\n .ngxsp-wmp-trackSelect{min-width:0;height:52px;padding:0 0 0 10px;border:0;border-radius:inherit;background:transparent;color:var(--wmp-text-2);text-align:left}\n .ngxsp-wmp-trackIndex{position:relative;display:grid;place-items:center;color:var(--wmp-text-2);font-variant-numeric:tabular-nums}\n .ngxsp-wmp-trackIndex > ngxsp-smart-icon{width:16px;height:16px}\n .ngxsp-wmp-trackRow.active .ngxsp-wmp-trackIndex{color:var(--wmp-accent)}\n .ngxsp-wmp-indexPlay{position:absolute;opacity:0;color:var(--wmp-text)}\n .ngxsp-wmp-trackRow:hover .ngxsp-wmp-indexNumber{opacity:0}\n .ngxsp-wmp-trackRow:hover .ngxsp-wmp-indexPlay{opacity:1}\n .ngxsp-wmp-trackTitle{min-width:0;display:flex;align-items:center;gap:12px}\n .ngxsp-wmp-rowIcon{\n width:36px;\n height:36px;\n flex:0 0 auto;\n display:grid;\n place-items:center;\n overflow:hidden;\n border-radius:4px;\n background:var(--wmp-s2);\n color:var(--wmp-text-3);\n }\n .ngxsp-wmp-rowIcon ngxsp-smart-icon{width:16px;height:16px}\n .ngxsp-wmp-rowCopy{min-width:0;display:grid;gap:1px}\n .ngxsp-wmp-rowCopy strong,\n .ngxsp-wmp-rowCopy small{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}\n .ngxsp-wmp-rowCopy strong{color:var(--wmp-text);font-size:13px;font-weight:500}\n .ngxsp-wmp-rowCopy small{color:var(--wmp-text-2);font-size:12px}\n .ngxsp-wmp-trackRow.active .ngxsp-wmp-rowCopy strong{color:var(--wmp-accent)}\n .ngxsp-wmp-trackCell{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}\n .ngxsp-wmp-trackTime{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:right;font-variant-numeric:tabular-nums}\n .ngxsp-wmp-rowActions{display:flex;align-items:center;justify-content:flex-end;gap:2px;padding-right:8px}\n .ngxsp-wmp-rowFavorite,\n .ngxsp-wmp-rowQueueAction{\n flex:0 0 32px;\n width:32px;\n height:32px;\n display:grid;\n place-items:center;\n padding:0;\n border:0;\n border-radius:var(--wmp-r-sm);\n background:transparent;\n color:var(--wmp-text-2);\n opacity:0;\n transition:opacity var(--wmp-dur) var(--wmp-ease), background-color var(--wmp-dur) var(--wmp-ease), color var(--wmp-dur) var(--wmp-ease);\n }\n .ngxsp-wmp-rowFavorite ngxsp-smart-icon,\n .ngxsp-wmp-rowQueueAction ngxsp-smart-icon{width:16px;height:16px}\n .ngxsp-wmp-rowFavorite:hover,\n .ngxsp-wmp-rowQueueAction:hover{background:var(--wmp-s3);color:var(--wmp-text)}\n .ngxsp-wmp-trackRow:hover .ngxsp-wmp-rowFavorite,\n .ngxsp-wmp-trackRow:hover .ngxsp-wmp-rowQueueAction,\n .ngxsp-wmp-trackRow:focus-within .ngxsp-wmp-rowFavorite,\n .ngxsp-wmp-trackRow:focus-within .ngxsp-wmp-rowQueueAction,\n .ngxsp-wmp-rowFavorite.active{opacity:1}\n .ngxsp-wmp-rowFavorite.active{color:var(--wmp-accent)}\n .ngxsp-wmp-rowFavorite.active ngxsp-smart-icon ::ng-deep path{fill:currentColor}\n /* A card says the favourite the same way the row does. */\n .ngxsp-wmp-cardFavorite.active{color:var(--wmp-accent)}\n .ngxsp-wmp-cardFavorite.active ngxsp-smart-icon ::ng-deep path{fill:currentColor}\n /* The menu a row or a card opens: glass over the window, and the box where the gesture was. */\n .ngxsp-wmp-trackMenuScrim{position:fixed;inset:0;z-index:60;padding:0;border:0;background:transparent;cursor:default}\n .ngxsp-wmp-trackMenu{\n position:fixed;\n z-index:61;\n min-width:208px;\n max-width:280px;\n display:grid;\n gap:2px;\n padding:6px;\n border:1px solid var(--wmp-line-strong);\n border-radius:var(--wmp-r-md);\n background:var(--wmp-s2);\n box-shadow:0 16px 40px rgb(0 0 0 / .48);\n }\n .ngxsp-wmp-trackMenuTitle{\n padding:6px 10px 8px;\n font-size:11px;\n font-weight:600;\n color:var(--wmp-text-3);\n overflow:hidden;\n text-overflow:ellipsis;\n white-space:nowrap;\n }\n .ngxsp-wmp-trackMenu button{\n display:flex;\n align-items:center;\n gap:10px;\n min-height:34px;\n padding:0 10px;\n border:0;\n border-radius:var(--wmp-r-sm);\n background:transparent;\n color:var(--wmp-text);\n font-size:13px;\n text-align:left;\n cursor:pointer;\n }\n .ngxsp-wmp-trackMenu button ngxsp-smart-icon{width:18px;height:18px;flex:0 0 auto}\n .ngxsp-wmp-trackMenu button:hover{background:var(--wmp-s3)}\n .ngxsp-wmp-trackMenu button.danger{color:var(--wmp-danger-text)}\n .ngxsp-wmp-trackMenu button.danger:hover{background:rgb(242 95 92 / .16)}\n .ngxsp-wmp-rowProgress{position:absolute;left:10px;right:10px;bottom:3px;height:2px;border-radius:999px;background:var(--wmp-line);overflow:hidden;pointer-events:none}\n .ngxsp-wmp-thumb .ngxsp-wmp-rowProgress{left:0;right:0;bottom:0;border-radius:0}\n .ngxsp-wmp-rowProgress i{position:absolute;inset:0 auto 0 0;background:var(--wmp-accent)}\n .ngxsp-wmp-emptyLibrary{\n display:grid;\n justify-items:center;\n gap:8px;\n padding:32px 16px;\n border:1px dashed var(--wmp-line-strong);\n border-radius:var(--wmp-r-md);\n color:var(--wmp-text-2);\n text-align:center;\n }\n .ngxsp-wmp-emptyLibrary ngxsp-smart-icon{width:28px;height:28px;color:var(--wmp-text-3)}\n /* The way to the rest of a shelf: a pill under its tracks, read as a step and not as a row. */\n .ngxsp-wmp-shelfMore{\n justify-self:start;margin-top:8px;display:inline-flex;align-items:baseline;gap:8px;\n padding:8px 14px;border:1px solid var(--wmp-line-strong);border-radius:999px;\n background:transparent;color:var(--wmp-text);font:inherit;font-size:13px;font-weight:600;cursor:pointer;\n }\n .ngxsp-wmp-shelfMore small{color:var(--wmp-text-2);font-weight:500;font-variant-numeric:tabular-nums}\n .ngxsp-wmp-shelfMore:hover:not(:disabled),.ngxsp-wmp-shelfMore:focus-visible{background:var(--wmp-s2)}\n .ngxsp-wmp-shelfMore:disabled{opacity:.6;cursor:default}\n\n /* Right panel */\n .ngxsp-wmp-playlist{\n grid-area:panel;\n min-width:0;\n min-height:0;\n display:flex;\n flex-direction:column;\n border-left:1px solid var(--wmp-line);\n background:var(--wmp-s0);\n overflow:hidden;\n }\n .ngxsp-wmp-sheetToggles{display:flex;justify-content:center;gap:4px;padding:4px 12px 0}\n\n /* The column's height is the window's, so the open panels divide it: one fills it, two take\n half each, and each scrolls inside its own share rather than pushing the others down. */\n .ngxsp-wmp-panelStack{flex:1;display:flex;flex-direction:column;gap:10px;padding:12px;overflow:hidden;min-height:0}\n .ngxsp-wmp-panelTabs{display:flex;flex-wrap:wrap;gap:6px;flex:0 0 auto}\n .ngxsp-wmp-panelPill{height:26px;padding:0 11px;border:1px solid var(--wmp-border,#d9d9d9);border-radius:999px;background:transparent;color:var(--wmp-muted,#6a6a6a);font:inherit;font-size:12px;cursor:pointer;white-space:nowrap}\n .ngxsp-wmp-panelPill.active{background:var(--wmp-accent,#2b6cb0);border-color:transparent;color:var(--wmp-accent-text,#fff);font-weight:600}\n .ngxsp-wmp-stackItem{flex:1 1 0;border:1px solid var(--wmp-border,#d9d9d9);border-radius:10px;overflow:hidden;display:flex;flex-direction:column;min-height:0}\n /* A folded panel is its header and nothing else, and leaves its share to the others. */\n .ngxsp-wmp-stackHead{display:flex;align-items:center;gap:8px;padding:7px 8px 7px 11px;background:var(--wmp-surface-2,rgba(127,127,127,.08))}\n .ngxsp-wmp-stackHead strong{font-size:12.5px;font-weight:600}\n .ngxsp-wmp-stackIcon{display:grid;place-items:center;width:24px;height:24px;padding:0;border:0;border-radius:6px;background:transparent;color:inherit;cursor:pointer;opacity:.65}\n .ngxsp-wmp-stackIcon:hover,.ngxsp-wmp-stackIcon:focus-visible{opacity:1}\n .ngxsp-wmp-stackIcon + .ngxsp-wmp-stackIcon{margin-left:-2px}\n .ngxsp-wmp-stackHead .ngxsp-wmp-stackIcon:first-of-type{margin-left:auto}\n .ngxsp-wmp-stackItem svg{width:14px;height:14px}\n /* The browser's scroll anchoring fights a windowed list: it corrects scrollTop every time\n the blank space above changes height, and the window then chases a position that keeps\n moving. Measured before switching it off: a scrollTop of 28500 landed on row 296 in one\n library and 1814 in another. */\n .ngxsp-wmp-queueList{flex:1;min-height:0;display:grid;align-content:start;gap:1px;padding:0 8px 12px;overflow:auto;overflow-anchor:none}\n .ngxsp-wmp-queueSpace{pointer-events:none;overflow-anchor:none}\n .ngxsp-wmp-queueItem{\n width:100%;\n min-width:0;\n min-height:56px;\n display:grid;\n grid-template-columns:40px minmax(0,1fr) auto;\n align-items:center;\n gap:12px;\n padding:8px;\n border:0;\n border-radius:var(--wmp-r-sm);\n background:transparent;\n text-align:left;\n transition:background-color var(--wmp-dur) var(--wmp-ease);\n }\n .ngxsp-wmp-queueItem:hover{background:var(--wmp-s2)}\n .ngxsp-wmp-queueItem.active{background:var(--wmp-accent-soft)}\n .ngxsp-wmp-queueItem.active .ngxsp-wmp-rowCopy strong{color:var(--wmp-accent)}\n /* Les gestes qui touchent à la file, posés sur la rangée plutôt qu'à côté : la colonne est\n étroite, et de la place gardée pour eux serait de la place prise au nom. Ils se montrent\n quand la souris ou le clavier arrive sur la rangée, et restent sur celle qui joue. */\n .ngxsp-wmp-queueRow{position:relative;min-width:0}\n .ngxsp-wmp-queueControls{\n position:absolute;\n top:4px;\n right:4px;\n display:grid;\n grid-template-columns:repeat(2, 28px);\n opacity:0;\n transition:opacity var(--wmp-dur) var(--wmp-ease);\n }\n .ngxsp-wmp-queueRow:hover .ngxsp-wmp-queueControls,\n .ngxsp-wmp-queueRow:focus-within .ngxsp-wmp-queueControls,\n .ngxsp-wmp-queueRow.active .ngxsp-wmp-queueControls{opacity:1}\n .ngxsp-wmp-queueControls button{\n width:28px;\n height:28px;\n display:grid;\n place-items:center;\n padding:0;\n border:0;\n border-radius:5px;\n background:transparent;\n color:var(--wmp-text-2);\n cursor:pointer;\n }\n .ngxsp-wmp-queueControls button:hover:not(:disabled){background:var(--wmp-s3);color:var(--wmp-text)}\n .ngxsp-wmp-queueControls button.active{color:var(--wmp-accent)}\n .ngxsp-wmp-queueControls button:disabled{opacity:.3;cursor:default}\n .ngxsp-wmp-queueControls ngxsp-smart-icon{width:14px;height:14px}\n /* Les quatre boutons couvrent la fin du nom et la durée : tant qu'ils sont là, la rangée\n leur laisse la place plutôt que de les poser dessus. */\n .ngxsp-wmp-queueRow:hover .ngxsp-wmp-queueItem,\n .ngxsp-wmp-queueRow:focus-within .ngxsp-wmp-queueItem,\n .ngxsp-wmp-queueRow.active .ngxsp-wmp-queueItem{padding-right:64px}\n .ngxsp-wmp-queueRow:hover .ngxsp-wmp-rowMeta,\n .ngxsp-wmp-queueRow:focus-within .ngxsp-wmp-rowMeta,\n .ngxsp-wmp-queueRow.active .ngxsp-wmp-rowMeta{visibility:hidden}\n /* Au doigt, aucun des trois ne se produit : il n'y a pas de survol, et toucher une rangée la\n joue au lieu de lui donner le focus. Les gestes restaient donc hors d'atteinte partout sauf\n sur la rangée qui joue — pour sortir un titre de la file il fallait d'abord le jouer, ce\n qu'on cherche justement à éviter. Ils sont là tout le temps, et la rangée leur garde la\n place plutôt que de la céder au passage. */\n @media (hover: none){\n .ngxsp-wmp-queueControls{opacity:1}\n .ngxsp-wmp-queueRow .ngxsp-wmp-queueItem{padding-right:64px}\n .ngxsp-wmp-queueRow .ngxsp-wmp-rowMeta{visibility:hidden}\n }\n .ngxsp-wmp-queueCover{\n position:relative;\n width:40px;\n height:40px;\n display:grid;\n place-items:center;\n overflow:hidden;\n border-radius:4px;\n background:var(--wmp-s2);\n color:var(--wmp-text-3);\n }\n .ngxsp-wmp-queueCover > ngxsp-smart-icon{width:16px;height:16px}\n .ngxsp-wmp-queueNow{position:absolute;inset:0;display:grid;place-items:center;background:rgb(13 14 17 / .6);color:#fff}\n .ngxsp-wmp-rowBadges{display:flex;flex-wrap:wrap;gap:4px;margin-top:3px}\n .ngxsp-wmp-rowBadges em{\n display:inline-flex;\n align-items:center;\n gap:3px;\n height:18px;\n padding:0 6px;\n border-radius:4px;\n background:var(--wmp-s3);\n color:var(--wmp-text-2);\n font-size:10px;\n font-style:normal;\n font-weight:500;\n }\n .ngxsp-wmp-rowBadges em ngxsp-smart-icon{width:10px;height:10px}\n .ngxsp-wmp-rowBadges em.favorite{color:var(--wmp-accent)}\n .ngxsp-wmp-rowMeta{color:var(--wmp-text-2);font-size:12px;font-variant-numeric:tabular-nums}\n .ngxsp-wmp-management,\n .ngxsp-wmp-devices{flex:1;min-height:0;display:grid;align-content:start;gap:10px;padding:10px 12px 16px;overflow:auto}\n .ngxsp-wmp-devices .ngxsp-wmp-sectionHeader.slim{padding:4px 4px 6px}\n .ngxsp-wmp-inlineForm{display:flex;gap:6px}\n .ngxsp-wmp-inlineForm input{\n flex:1;\n min-width:0;\n height:32px;\n padding:0 10px;\n border:1px solid var(--wmp-line-strong);\n border-radius:var(--wmp-r-sm);\n background:var(--wmp-s1);\n color:var(--wmp-text);\n font-size:12px;\n }\n .ngxsp-wmp-inlineForm input::placeholder{color:var(--wmp-text-3)}\n .ngxsp-wmp-shell .ngxsp-wmp-inlineForm input:focus-visible{outline:0;border-color:var(--wmp-accent);box-shadow:0 0 0 2px var(--wmp-accent-soft)}\n .ngxsp-wmp-stationForm{\n display:flex;\n flex-wrap:wrap;\n align-items:center;\n gap:8px;\n margin-bottom:14px;\n padding:10px 12px;\n border:1px solid var(--wmp-line);\n border-radius:var(--wmp-r-md);\n background:var(--wmp-s1);\n }\n .ngxsp-wmp-stationTitle{font-size:12px;font-weight:600;color:var(--wmp-text-2)}\n .ngxsp-wmp-discovered{flex:1 1 100%;display:grid;gap:4px;margin:0;padding:0;list-style:none}\n .ngxsp-wmp-discovered li{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:36px;padding:2px 0 2px 8px;border-top:1px solid var(--wmp-line)}\n .ngxsp-wmp-discovered li span{display:grid;min-width:0}\n .ngxsp-wmp-discovered strong{overflow:hidden;font-size:13px;font-weight:600;text-overflow:ellipsis;white-space:nowrap}\n .ngxsp-wmp-discovered small,.ngxsp-wmp-discovered li.empty{overflow:hidden;color:var(--wmp-text-2);font-size:12px;text-overflow:ellipsis;white-space:nowrap}\n .ngxsp-wmp-serverKind{\n height:32px;\n padding:0 8px;\n border:1px solid var(--wmp-line-strong);\n border-radius:var(--wmp-r-sm);\n background:var(--wmp-s0);\n color:var(--wmp-text);\n font-size:12px;\n }\n .ngxsp-wmp-stationForm input{\n flex:1 1 180px;\n min-width:0;\n height:32px;\n padding:0 10px;\n border:1px solid var(--wmp-line-strong);\n border-radius:var(--wmp-r-sm);\n background:var(--wmp-s0);\n color:var(--wmp-text);\n font-size:12px;\n }\n .ngxsp-wmp-stationForm input::placeholder{color:var(--wmp-text-3)}\n .ngxsp-wmp-shell .ngxsp-wmp-stationForm input:focus-visible{outline:0;border-color:var(--wmp-accent);box-shadow:0 0 0 2px var(--wmp-accent-soft)}\n .ngxsp-wmp-stationHint{flex:1 0 100%;color:var(--wmp-text-3);font-size:11px}\n .ngxsp-wmp-targetBanner{\n display:flex;\n align-items:center;\n justify-content:space-between;\n gap:8px;\n padding:8px 10px;\n border:1px solid var(--wmp-accent-soft);\n border-radius:var(--wmp-r-sm);\n background:var(--wmp-accent-soft);\n color:var(--wmp-text);\n font-size:12px;\n }\n .ngxsp-wmp-targetBanner strong{margin-left:4px}\n .ngxsp-wmp-rowQueueAction.danger:hover,\n .ngxsp-wmp-cardAction.danger:hover{color:var(--wmp-danger, #e5484d)}\n .ngxsp-wmp-rowQueueAction.active{color:var(--wmp-accent)}\n .ngxsp-wmp-targets{display:grid;gap:6px}\n .ngxsp-wmp-target,\n .ngxsp-wmp-device{display:grid;gap:8px;padding:10px;border:1px solid var(--wmp-line);border-radius:var(--wmp-r-md);background:var(--wmp-s1)}\n .ngxsp-wmp-sheetButton{display:none}\n .ngxsp-wmp-sheetHeader{display:none}\n .ngxsp-wmp-targetMain{min-width:0;display:grid;grid-template-columns:32px minmax(0,1fr) auto;align-items:center;gap:10px}\n .ngxsp-wmp-targetIcon{width:32px;height:32px;display:grid;place-items:center;border-radius:var(--wmp-r-sm);background:var(--wmp-s3);color:var(--wmp-text-2)}\n .ngxsp-wmp-targetIcon ngxsp-smart-icon{width:16px;height:16px}\n .ngxsp-wmp-targetActions{display:flex;gap:4px;padding-left:38px}\n .ngxsp-wmp-targetActions button{height:32px;padding:0 8px;border:0;border-radius:4px;background:transparent;color:var(--wmp-text-2);font-size:12px}\n .ngxsp-wmp-targetActions button:hover{background:var(--wmp-s3);color:var(--wmp-text)}\n .ngxsp-wmp-targetActions button.danger:hover{color:var(--wmp-danger-text);background:rgb(242 95 92 / .16)}\n .ngxsp-wmp-device{grid-template-columns:32px minmax(0,1fr);align-items:center;column-gap:10px}\n .ngxsp-wmp-device.active{border-color:rgb(139 144 255 / .4);background:var(--wmp-accent-soft)}\n .ngxsp-wmp-device.active .ngxsp-wmp-targetIcon{color:var(--wmp-accent)}\n .ngxsp-wmp-deviceActions{grid-column:2;display:flex;gap:6px}\n .ngxsp-wmp-keepQueue{\n flex:0 0 auto;display:flex;align-items:center;justify-content:center;gap:7px;\n margin:0 8px 10px;padding:8px 10px;\n border:1px solid var(--wmp-line);border-radius:var(--wmp-r-md);\n background:transparent;color:var(--wmp-text-2);font:inherit;font-size:12px;cursor:pointer;\n }\n .ngxsp-wmp-keepQueue:hover{background:var(--wmp-s2);color:var(--wmp-text)}\n .ngxsp-wmp-keepQueue ngxsp-smart-icon{width:14px;height:14px}\n .ngxsp-wmp-deviceGroup{margin:10px 0 2px;font-size:11px;font-weight:600;color:var(--wmp-text-2)}\n .ngxsp-wmp-deviceGroup:first-child{margin-top:0}\n .ngxsp-wmp-deviceHint{margin:0 0 7px;color:var(--wmp-text-2);font-size:11px;line-height:1.4}\n .ngxsp-wmp-output{\n display:flex;align-items:center;gap:10px;width:100%;\n padding:8px 10px;border:1px solid transparent;border-radius:var(--wmp-r-md);\n background:transparent;color:inherit;font:inherit;text-align:left;cursor:pointer;\n }\n .ngxsp-wmp-output:hover{background:var(--wmp-s2)}\n .ngxsp-wmp-output.active{border-color:rgb(139 144 255 / .4);background:var(--wmp-accent-soft)}\n .ngxsp-wmp-output .ngxsp-wmp-rowCopy{flex:1;min-width:0}\n .ngxsp-wmp-output ngxsp-smart-icon{flex:0 0 auto;width:15px;height:15px;color:var(--wmp-accent)}\n\n /* Transport */\n .ngxsp-wmp-transport{\n grid-area:transport;\n min-width:0;\n display:grid;\n /* The switches and the volume are the one column that cannot give: below its content the\n volume slider is crushed to a stub. The seek row yields instead, having room to. */\n grid-template-columns:minmax(0,1fr) minmax(320px, 620px) minmax(min-content,1fr);\n align-items:center;\n gap:24px;\n padding:0 16px;\n border-top:1px solid var(--wmp-line);\n background:var(--wmp-s0);\n }\n .ngxsp-wmp-miniNow{min-width:0;display:grid;grid-template-columns:52px minmax(0,1fr) auto;align-items:center;gap:12px}\n .ngxsp-wmp-miniArt{\n width:52px;\n height:52px;\n display:grid;\n place-items:center;\n overflow:hidden;\n border-radius:6px;\n background:var(--wmp-s2);\n color:var(--wmp-text-3);\n }\n .ngxsp-wmp-miniCopy{min-width:0;display:grid;gap:2px}\n /* It is the way into the track's own page now, so it is a button: it keeps the look it had. */\n button.ngxsp-wmp-miniCopy{padding:4px 6px;margin:-4px -6px;border:0;border-radius:var(--wmp-r-sm);background:transparent;color:inherit;font:inherit;text-align:start;cursor:pointer}\n button.ngxsp-wmp-miniCopy:hover{background:var(--wmp-s2)}\n .ngxsp-wmp-miniCopy strong,\n .ngxsp-wmp-miniCopy small{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}\n .ngxsp-wmp-miniCopy strong{font-size:13px;font-weight:600}\n .ngxsp-wmp-miniCopy small{color:var(--wmp-text-2);font-size:12px}\n .ngxsp-wmp-transportCenter{min-width:0;display:grid;justify-items:center;gap:0}\n .ngxsp-wmp-transportButtons{display:flex;align-items:center;gap:12px}\n .ngxsp-wmp-seekRow{width:100%;display:grid;grid-template-columns:44px minmax(0,1fr) 44px;align-items:center;gap:10px;color:var(--wmp-text-2);font-size:11px;font-variant-numeric:tabular-nums}\n .ngxsp-wmp-seekRow small:first-child{text-align:right}\n .ngxsp-wmp-seek{\n min-height:32px;\n --ngxsp-track-size:4px;\n --ngxsp-track-bg:var(--wmp-s3);\n --ngxsp-buffered-bg:transparent;\n --ngxsp-accent:var(--wmp-text);\n --ngxsp-thumb-size:12px;\n --ngxsp-thumb-bg:var(--wmp-text);\n --ngxsp-preview-bg:var(--wmp-s2);\n --ngxsp-preview-border:var(--wmp-line-strong);\n }\n .ngxsp-wmp-seek:hover{--ngxsp-accent:var(--wmp-accent)}\n .ngxsp-wmp-seek ::ng-deep .ngxsp-ts-thumb{opacity:0;transition:opacity var(--wmp-dur) var(--wmp-ease)}\n .ngxsp-wmp-seek:hover ::ng-deep .ngxsp-ts-thumb,\n .ngxsp-wmp-seek:focus-visible ::ng-deep .ngxsp-ts-thumb{opacity:1}\n .ngxsp-wmp-transportModes{min-width:0;display:flex;align-items:center;justify-content:flex-end;gap:6px}\n .ngxsp-wmp-switchWrap{position:relative;display:inline-flex;flex:0 0 auto}\n /* The head stays put and the body alone scrolls. Scrolling was on the box itself, so the title,\n the refresh and the close went up with the list — and a list of devices is as long as the\n network is. The three panels of the video player's bar share this shape. */\n .ngxsp-wmp-devicesPopover{\n position:absolute;\n right:-6px;\n bottom:calc(100% + 12px);\n z-index:40;\n width:300px;\n max-height:min(60vh, 420px);\n display:flex;\n flex-direction:column;\n overflow:hidden;\n border:1px solid var(--wmp-line);\n border-radius:12px;\n background:var(--wmp-s1);\n color:var(--wmp-text);\n box-shadow:0 18px 40px rgb(0 0 0 / .45);\n text-align:left;\n }\n .ngxsp-wmp-popoverHead{flex:none;display:flex;align-items:center;gap:8px;padding:12px 12px 2px}\n .ngxsp-wmp-popoverHead strong{flex:1;font-size:12.5px}\n .ngxsp-wmp-volumeControl{\n --ngxsp-control-size:32px;\n --ngxsp-volume-range-min:72px;\n --ngxsp-volume-range-max:112px;\n --ngxsp-volume-gap:4px;\n --ngxsp-volume-button-border:1px solid transparent;\n --ngxsp-volume-button-radius:6px;\n --ngxsp-volume-accent:var(--wmp-text);\n --ngxsp-volume-track-bg:var(--wmp-s3);\n --ngxsp-volume-thumb-bg:var(--wmp-text);\n --ngxsp-volume-thumb-size:12px;\n --ngxsp-volume-thumb-shadow:none;\n --ngxsp-focus-ring:0 0 0 2px var(--wmp-accent);\n color:var(--wmp-text-2);\n }\n .ngxsp-wmp-volumeControl:hover{--ngxsp-volume-accent:var(--wmp-accent);color:var(--wmp-text)}\n\n /* Drop overlay */\n .ngxsp-wmp-dropOverlay{\n position:absolute;\n inset:12px;\n z-index:40;\n display:grid;\n place-content:center;\n justify-items:center;\n gap:10px;\n border:2px dashed var(--wmp-accent);\n border-radius:14px;\n background:var(--nsp-scrim, rgb(13 14 17 / .88));\n backdrop-filter:blur(6px);\n color:var(--wmp-text);\n text-align:center;\n pointer-events:none;\n }\n .ngxsp-wmp-dropIcon{width:56px;height:56px;display:grid;place-items:center;border-radius:14px;background:var(--wmp-accent-soft);color:var(--wmp-accent)}\n .ngxsp-wmp-dropIcon ngxsp-smart-icon{width:28px;height:28px}\n .ngxsp-wmp-dropOverlay strong{font-size:16px;font-weight:600}\n .ngxsp-wmp-dropOverlay span:last-child{color:var(--wmp-text-2)}\n\n @media (hover:none), (pointer:coarse){\n .ngxsp-wmp-rowFavorite,\n .ngxsp-wmp-rowQueueAction,\n .ngxsp-wmp-cardActions{opacity:1}\n .ngxsp-wmp-cardPlaySlot{opacity:1;transform:none}\n }\n\n /* Compact desktop */\n @media (max-width:1180px){\n .ngxsp-wmp-shell{--wmp-rail-w:208px;--wmp-panel-w:284px}\n .ngxsp-wmp-sourceButton span{display:none}\n .ngxsp-wmp-sourceButton{width:32px;padding:0;justify-content:center}\n .ngxsp-wmp-tableHead,\n .ngxsp-wmp-trackSelect{grid-template-columns:32px minmax(0,2fr) minmax(0,1fr) 48px}\n .ngxsp-wmp-tableHead > span:nth-child(4),\n .ngxsp-wmp-albumCell{display:none}\n .ngxsp-wmp-nowPanel{grid-template-columns:148px minmax(0,1fr);gap:22px;padding:24px}\n .ngxsp-wmp-art{width:148px;height:148px}\n .ngxsp-wmp-nowCopy h1{font-size:26px}\n .ngxsp-wmp-transport{grid-template-columns:minmax(0,1fr) minmax(240px, 1.4fr) minmax(min-content,1fr);gap:16px}\n .ngxsp-wmp-miniNow{grid-template-columns:44px minmax(0,1fr) auto}\n .ngxsp-wmp-miniArt{width:44px;height:44px}\n .ngxsp-wmp-volumeControl{--ngxsp-volume-range-min:56px;--ngxsp-volume-range-max:84px}\n }\n\n /* A tablet, and a phone held sideways: room for the rail, none for a third column.\n The queue stayed docked here and took 260px of the 834 an iPad gives upright, leaving the\n page 386px — narrower than a phone — for a panel that is usually empty. That is what App\n Review called a crowded interface on 02/11/2026, and it is the whole of this block: the\n panel does here what it already does on a phone, it opens over the page from the mini\n player and gives the width back. */\n @media (max-width:1023px) and (min-width:721px){\n .ngxsp-wmp-shell{--wmp-rail-w:188px;--wmp-panel-w:260px}\n /* Two columns whatever the queue switch says, since the third one is the sheet now. */\n .ngxsp-wmp-shell,\n .ngxsp-wmp-shell.ngxsp-wmp-panelHidden{\n grid-template-columns:var(--wmp-rail-w) minmax(0,1fr);\n grid-template-areas:\n \"title title\"\n \"rail main\"\n \"transport transport\";\n }\n .ngxsp-wmp-playlist,\n .ngxsp-wmp-shell.ngxsp-wmp-panelHidden .ngxsp-wmp-playlist{display:none}\n .ngxsp-wmp-playlist.sheet,\n .ngxsp-wmp-shell.ngxsp-wmp-panelHidden .ngxsp-wmp-playlist.sheet{\n display:flex;\n position:fixed;\n left:0;\n right:0;\n top:0;\n /* Stops above the transport, which keeps a row of the grid at this width instead of\n floating over the page: play, pause and skip stay reachable with the queue open. */\n bottom:calc(var(--wmp-transport-h) + env(safe-area-inset-bottom, 0px));\n z-index:40;\n border:0;\n border-bottom:1px solid var(--wmp-line);\n overflow-y:auto;\n background:var(--wmp-s0);\n padding-top:env(safe-area-inset-top, 0px);\n }\n .ngxsp-wmp-sheetHeader{\n display:flex;\n align-items:center;\n justify-content:space-between;\n gap:12px;\n padding:12px 16px;\n border-bottom:1px solid var(--wmp-line);\n }\n .ngxsp-wmp-sheetHeader strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:15px}\n /* Narrow but not a phone: the strip still has no room in the bar, and the same silence\n followed. It floats over the transport, which is the only edge there is here. */\n .ngxsp-wmp-titleActions .ngxsp-wmp-status{\n position:fixed;\n right:16px;\n bottom:calc(var(--wmp-transport-h) + 12px);\n z-index:40;\n max-width:min(420px, calc(100vw - 32px));\n white-space:normal;\n height:auto;\n min-height:30px;\n padding:6px 12px;\n background:var(--wmp-s3);\n box-shadow:0 10px 30px rgb(0 0 0 / .45);\n }\n /* The docked panel's switch would toggle a column that is not drawn here, so the sheet's\n button takes its place — the same swap the phone makes, and in the same order it makes\n it: this button carries ngxsp-wmp-iconButton as well, so the rule that hides them all\n matches it too, and at equal weight the last one written is the one that counts. */\n .ngxsp-wmp-miniNow > .ngxsp-wmp-iconButton{display:none}\n .ngxsp-wmp-miniNow > .ngxsp-wmp-sheetButton{display:grid}\n }\n\n @media (max-height:760px) and (min-width:721px){\n .ngxsp-wmp-nowPanel{padding-top:20px;padding-bottom:20px}\n }\n\n /* Mobile */\n @media (max-width:720px){\n .ngxsp-wmp-shell,\n .ngxsp-wmp-shell.ngxsp-wmp-panelHidden{\n height:auto;\n min-height:100%;\n grid-template-columns:minmax(0,1fr);\n grid-template-rows:auto auto auto auto;\n grid-template-areas:\n \"title\"\n \"rail\"\n \"main\"\n \"panel\";\n --wmp-transport-h:100px;\n /* The bar of families sits under the mini player, and everything fixed above stacks on it. */\n --wmp-tabbar-h:66px;\n padding-bottom:calc(var(--wmp-transport-h) + var(--wmp-tabbar-h) + env(safe-area-inset-bottom, 0px));\n overflow:visible;\n }\n .ngxsp-wmp-shell.ngxsp-wmp-panelHidden .ngxsp-wmp-playlist{display:flex}\n .ngxsp-wmp-titlebar{grid-template-columns:minmax(0,1fr) auto;grid-template-rows:48px auto;row-gap:0;padding:0 12px 10px}\n .ngxsp-wmp-search{grid-column:1 / -1;grid-row:2;justify-self:stretch;width:100%}\n /* The strip has no room beside a title bar this narrow, and hiding it left the application\n speechless on the screen one listens from: a link copied, a track skipped, a search that\n did not go through — all of it was in the page and none of it on the screen. It floats\n above the bar instead, where a phone expects a word, and goes away on its own as it does\n on a wide window. */\n .ngxsp-wmp-titleActions .ngxsp-wmp-status{\n position:fixed;\n left:12px;\n right:12px;\n bottom:calc(var(--wmp-transport-h) + var(--wmp-tabbar-h) + env(safe-area-inset-bottom, 0px) + 8px);\n z-index:40;\n max-width:none;\n height:auto;\n min-height:34px;\n padding:8px 12px;\n white-space:normal;\n background:var(--wmp-s3);\n box-shadow:0 10px 30px rgb(0 0 0 / .45);\n }\n /* The page took the bar of families with it, so the word comes down to where it was. */\n .ngxsp-wmp-shell:has(.ngxsp-wmp-playerPage) .ngxsp-wmp-titleActions .ngxsp-wmp-status{\n bottom:calc(var(--wmp-transport-h) + env(safe-area-inset-bottom, 0px) + 8px);\n }\n .ngxsp-wmp-titleActions > .ngxsp-wmp-iconButton{display:none}\n /* Same as the video player: the document scrolls at this width, and the names of the\n views must not scroll away with the list they lead out of. */\n /* Stuck at 0 under viewport-fit=cover the bar slides under the clock and the battery:\n on the simulator the view names were drawn behind them. It stops below the status\n bar instead; what scrolls passes behind that strip, as it does in any iOS app. */\n /* The families leave the strip for the bottom of the screen, where the boards put them. */\n .ngxsp-wmp-rail{display:none}\n .ngxsp-wmp-tabBar{\n position:fixed;\n left:0;\n right:0;\n bottom:0;\n z-index:31;\n height:calc(var(--wmp-tabbar-h) + env(safe-area-inset-bottom, 0px));\n display:flex;\n align-items:stretch;\n gap:2px;\n padding:8px 6px calc(8px + env(safe-area-inset-bottom, 0px));\n border-top:1px solid var(--wmp-line);\n background:var(--wmp-s0);\n }\n .ngxsp-wmp-tab{\n flex:1;\n min-width:0;\n min-height:48px;\n display:flex;\n flex-direction:column;\n align-items:center;\n justify-content:center;\n gap:4px;\n padding:0 4px;\n border:0;\n border-radius:10px;\n background:transparent;\n color:var(--wmp-text-3);\n font:inherit;\n font-size:10px;\n cursor:pointer;\n }\n .ngxsp-wmp-tab span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}\n .ngxsp-wmp-tab ngxsp-smart-icon{width:20px;height:20px}\n .ngxsp-wmp-tab.active{background:var(--wmp-accent-soft);color:var(--wmp-accent);font-weight:600}\n .ngxsp-wmp-tabFacets{\n display:flex;\n gap:7px;\n padding:10px 12px 0;\n overflow-x:auto;\n }\n .ngxsp-wmp-tabFacets button{\n flex:0 0 auto;\n display:inline-flex;\n align-items:center;\n gap:6px;\n height:32px;\n padding:0 14px;\n border:0;\n border-radius:16px;\n background:var(--wmp-s2);\n color:var(--wmp-text-2);\n font:inherit;\n font-size:12.5px;\n cursor:pointer;\n }\n .ngxsp-wmp-tabFacets button small{opacity:.7;font-size:11px}\n .ngxsp-wmp-tabFacets button.active{background:var(--wmp-accent);color:var(--wmp-on-accent);font-weight:600}\n /* A phone listening to a page is a player and nothing else: the bar of families goes with\n the rail, and the mini player takes the bottom edge it was leaving to it. */\n .ngxsp-wmp-shell:has(.ngxsp-wmp-playerPage){--wmp-transport-h:116px;padding-bottom:calc(var(--wmp-transport-h) + env(safe-area-inset-bottom, 0px))}\n .ngxsp-wmp-shell:has(.ngxsp-wmp-playerPage) .ngxsp-wmp-tabBar{display:none}\n .ngxsp-wmp-shell:has(.ngxsp-wmp-playerPage) .ngxsp-wmp-transport{bottom:0;height:calc(var(--wmp-transport-h) + env(safe-area-inset-bottom, 0px));padding-bottom:calc(6px + env(safe-area-inset-bottom, 0px))}\n /* Compact-Lecteur-Audio.dc.html draws the page as the whole screen: no title bar, no\n search, nothing of the library behind it — the track down the middle, and the controls\n under it. The page was a page inside the usual chrome, which is what made it the screen\n furthest from its board of the thirty compared. */\n .ngxsp-wmp-shell:has(.ngxsp-wmp-playerPage) .ngxsp-wmp-titlebar{display:none}\n /* The screen minus the bar, which the shell already keeps room for: asking for the whole\n of it on top of that room is what made the page a hundred pixels too long, on every\n phone and by exactly the height of the bar. */\n .ngxsp-wmp-shell:has(.ngxsp-wmp-playerPage) .ngxsp-wmp-playerPage{min-height:calc(100vh - var(--wmp-transport-h) - env(safe-area-inset-bottom, 0px));justify-content:center;padding:12px 20px 20px}\n /* The side column is not a column here: its three pieces take their own place in the stack,\n and the words come between the cover and the name, where the board puts them. */\n .ngxsp-wmp-playerPage .ngxsp-wmp-playerSide{display:contents}\n .ngxsp-wmp-playerPage .ngxsp-wmp-playerStage{flex-direction:column;align-items:center;gap:16px}\n .ngxsp-wmp-playerPage .ngxsp-wmp-playerArt{order:2;width:150px;height:150px;border-radius:16px}\n .ngxsp-wmp-playerPage .ngxsp-wmp-playerLyrics{order:3;flex:none;width:100%;max-width:320px;max-height:24vh}\n .ngxsp-wmp-playerPage .ngxsp-wmp-playerLyricsHead{justify-content:center;margin-bottom:6px}\n .ngxsp-wmp-playerPage .ngxsp-wmp-playerLyricsLines{align-items:center}\n .ngxsp-wmp-playerPage .ngxsp-wmp-playerLyricsLines button,\n .ngxsp-wmp-playerPage .ngxsp-wmp-playerLyricsLines p{padding:7px 0;font-size:14px;text-align:center}\n .ngxsp-wmp-playerPage .ngxsp-wmp-playerLyricsLines button.active{font-size:17px}\n .ngxsp-wmp-playerPage .ngxsp-wmp-playerCopy{order:4;max-width:none}\n /* What it is made of is said at the top of the board's page, not under the name — and what\n one does with the track is not on it at all here: the screen is for the track and its\n controls, and a phone that wants to share one goes through the row it came from. */\n .ngxsp-wmp-playerPage .ngxsp-wmp-playerCopy small,\n .ngxsp-wmp-playerPage .ngxsp-wmp-playerCopy .ngxsp-wmp-detailActions{display:none}\n .ngxsp-wmp-playerPage .ngxsp-wmp-playerWave{order:5;max-width:320px;height:34px}\n .ngxsp-wmp-playerBack{order:-1}\n /* The bar under it is the board's row: what is playing is on the screen already, so its\n name leaves the bar, and the two modes it had no room for come back. */\n .ngxsp-wmp-shell:has(.ngxsp-wmp-playerPage) .ngxsp-wmp-transport{background:transparent;box-shadow:none;border-top:0}\n .ngxsp-wmp-shell:has(.ngxsp-wmp-playerPage) .ngxsp-wmp-miniNow > .ngxsp-wmp-iconButton{display:grid}\n .ngxsp-wmp-shell:has(.ngxsp-wmp-playerPage) .ngxsp-wmp-miniArt,\n .ngxsp-wmp-shell:has(.ngxsp-wmp-playerPage) .ngxsp-wmp-miniCopy{display:none}\n .ngxsp-wmp-shell:has(.ngxsp-wmp-playerPage) .ngxsp-wmp-miniNow{grid-column:1 / -1;grid-row:2;display:flex;justify-content:center;gap:10px}\n .ngxsp-wmp-shell:has(.ngxsp-wmp-playerPage) .ngxsp-wmp-transportButtons{grid-column:1 / -1;grid-row:1;justify-content:center;gap:18px}\n .ngxsp-wmp-shell:has(.ngxsp-wmp-playerPage) .ngxsp-wmp-transportButtons > .ngxsp-wmp-iconButton:first-child,\n .ngxsp-wmp-shell:has(.ngxsp-wmp-playerPage) .ngxsp-wmp-transportButtons > .ngxsp-wmp-iconButton:last-child{display:grid}\n .ngxsp-wmp-shell:has(.ngxsp-wmp-playerPage) .ngxsp-wmp-playButton{width:56px;height:56px}\n /* The bar is the only place one can drag to a second of the track, so it stays — with the\n two times the board writes under its waveform. */\n .ngxsp-wmp-shell:has(.ngxsp-wmp-playerPage) .ngxsp-wmp-seekRow{display:none}\n .ngxsp-wmp-shell:has(.ngxsp-wmp-playerPage) .ngxsp-wmp-transportModes{grid-column:1 / -1;grid-row:2;justify-content:center}\n .ngxsp-wmp-shell:has(.ngxsp-wmp-playerPage) .ngxsp-wmp-footerVolume{display:none}\n .ngxsp-wmp-nav{flex-direction:row;gap:4px;padding:8px 12px;overflow-x:auto}\n /* A view with a shortcut in the title bar leaves the strip: listing it twice is what made\n the strip long enough to need scrolling in the first place. The wide layout keeps it,\n where the rail is a column and has the room. */\n .ngxsp-wmp-navItem[data-quick]{display:none}\n .ngxsp-wmp-navDivider{display:none}\n .ngxsp-wmp-navItem{width:auto;flex:0 0 auto;grid-template-columns:16px auto auto;height:32px;gap:6px}\n /* A row has no room for indentation: the open tree flattens into it, parents then the facets\n of the open one, and the row scrolls to them. The chevron goes — what it would point at\n already follows. */\n .ngxsp-wmp-navChevron{display:none}\n .ngxsp-wmp-navChild{grid-template-columns:auto auto;padding:0 12px;background:var(--wmp-s1)}\n .ngxsp-wmp-navDivider{width:1px;height:20px;margin:6px 4px}\n /* The library summary is a desktop sidebar thing; the import action is in the top bar. */\n .ngxsp-wmp-railTools{display:none}\n .ngxsp-wmp-main{overflow:visible}\n .ngxsp-wmp-nowPanel{grid-template-columns:96px minmax(0,1fr);align-items:center;gap:16px;padding:16px}\n .ngxsp-wmp-art{width:96px;height:96px;align-self:start}\n .ngxsp-wmp-playerSurface{min-height:120px;gap:10px}\n .ngxsp-wmp-nowCopy h1{font-size:20px}\n .ngxsp-wmp-nowOscillogram{grid-template-columns:minmax(0,1fr)}\n .ngxsp-wmp-nowTime{display:none}\n .ngxsp-wmp-nowActions{gap:8px}\n .ngxsp-wmp-nowActions .ngxsp-wmp-iconButton.outlined{width:36px;height:36px}\n .ngxsp-wmp-primaryButton{height:36px}\n .ngxsp-wmp-sectionHeader{padding:16px 16px 4px}\n .ngxsp-wmp-sectionScroll{padding:4px 8px 16px;gap:18px}\n .ngxsp-wmp-shell:not(.ngxsp-wmp-browseMode) .ngxsp-wmp-cardGrid{grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:minmax(132px, 42%);overflow-x:auto;scroll-snap-type:x mandatory;padding-bottom:4px}\n .ngxsp-wmp-card{scroll-snap-align:start}\n .ngxsp-wmp-shell:not(.ngxsp-wmp-browseMode) .ngxsp-wmp-cardGrid .ngxsp-wmp-card:nth-child(n+5){display:none}\n .ngxsp-wmp-browseMode .ngxsp-wmp-cardGrid{grid-template-columns:repeat(auto-fill, minmax(140px, 1fr));gap:8px}\n .ngxsp-wmp-shell:not(.ngxsp-wmp-browseMode) .ngxsp-wmp-sectionScroll > .ngxsp-wmp-section:nth-child(n+2){display:none}\n .ngxsp-wmp-cardActions{top:14px;right:14px}\n .ngxsp-wmp-shell:not(.ngxsp-wmp-browseMode) .ngxsp-wmp-table .ngxsp-wmp-trackRow:nth-of-type(n+6){display:none}\n .ngxsp-wmp-tableHead{display:none}\n .ngxsp-wmp-trackRow{grid-template-columns:minmax(0,1fr) auto}\n .ngxsp-wmp-trackSelect{grid-template-columns:28px minmax(0,1fr) 44px;gap:10px}\n .ngxsp-wmp-trackSelect > .ngxsp-wmp-trackCell{display:none}\n .ngxsp-wmp-rowQueueAction{display:none}\n .ngxsp-wmp-rowActions{padding-right:4px}\n /* The panel no longer sits under the page: it opens over it, from the mini player. */\n .ngxsp-wmp-playlist,\n .ngxsp-wmp-shell.ngxsp-wmp-panelHidden .ngxsp-wmp-playlist{display:none}\n .ngxsp-wmp-playlist.sheet,\n .ngxsp-wmp-shell.ngxsp-wmp-panelHidden .ngxsp-wmp-playlist.sheet{\n display:flex;\n position:fixed;\n left:0;\n right:0;\n top:0;\n /* Stops above the mini player: the listener keeps play, pause and skip while browsing. */\n bottom:calc(var(--wmp-transport-h) + var(--wmp-tabbar-h) + env(safe-area-inset-bottom, 0px));\n z-index:40;\n border:0;\n border-bottom:1px solid var(--wmp-line);\n overflow-y:auto;\n background:var(--wmp-s0);\n padding-top:env(safe-area-inset-top, 0px);\n }\n /* The page truncates its queue for room; the sheet has none of that problem. */\n .ngxsp-wmp-playlist.sheet .ngxsp-wmp-queueList .ngxsp-wmp-queueItem:nth-of-type(n+5){display:grid}\n .ngxsp-wmp-sheetHeader{\n display:flex;\n align-items:center;\n justify-content:space-between;\n gap:12px;\n padding:12px 16px;\n border-bottom:1px solid var(--wmp-line);\n }\n .ngxsp-wmp-sheetHeader strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:15px}\n .ngxsp-wmp-queueList{overflow:visible}\n .ngxsp-wmp-queueList .ngxsp-wmp-queueItem:nth-of-type(n+5){display:none}\n .ngxsp-wmp-transport{\n position:fixed;\n left:0;\n right:0;\n bottom:calc(var(--wmp-tabbar-h) + env(safe-area-inset-bottom, 0px));\n z-index:30;\n height:var(--wmp-transport-h);\n grid-template-columns:minmax(0,1fr) auto;\n grid-template-rows:minmax(0,1fr) auto;\n gap:0 8px;\n padding:10px 12px 6px;\n box-shadow:0 -12px 32px rgb(0 0 0 / .35);\n }\n .ngxsp-wmp-miniNow{grid-template-columns:44px minmax(0,1fr) auto}\n .ngxsp-wmp-miniNow > .ngxsp-wmp-iconButton{display:none}\n /* The sheet is the only way to the queue and the lyrics here, so its button stays. */\n .ngxsp-wmp-miniNow > .ngxsp-wmp-sheetButton{display:grid}\n .ngxsp-wmp-miniArt{width:44px;height:44px}\n .ngxsp-wmp-transportCenter{display:contents}\n .ngxsp-wmp-transportButtons{grid-column:2;grid-row:1;gap:4px}\n .ngxsp-wmp-transportButtons > .ngxsp-wmp-iconButton:first-child,\n .ngxsp-wmp-transportButtons > .ngxsp-wmp-iconButton:last-child{display:none}\n .ngxsp-wmp-seekRow{grid-column:1;grid-row:2;grid-template-columns:minmax(0,1fr)}\n .ngxsp-wmp-seekRow small{display:none}\n /* The seek row gives way before the switches do: a narrower window is a shorter bar to\n drag, which is a smaller loss than a button one can no longer reach. */\n .ngxsp-wmp-transportModes{grid-column:2;grid-row:2;gap:0}\n .ngxsp-wmp-volumeControl{--ngxsp-volume-range-min:56px;--ngxsp-volume-range-max:72px}\n }\n\n /* Narrower than this the seek row has nothing left to give — under 120px it is a stub, not a\n bar — so the switches step aside. The sheet holds all four, which is where they were going\n anyway; what has no other door stays: the speakers, and the mini window. */\n @media (max-width:480px){\n .ngxsp-wmp-transportModes > .ngxsp-wmp-iconButton,\n .ngxsp-wmp-transportModes > .ngxsp-wmp-switchWrap{display:none}\n .ngxsp-wmp-transportModes > .ngxsp-wmp-switchWrap:has(> .ngxsp-wmp-devicesButton){display:inline-flex}\n .ngxsp-wmp-transportModes > .ngxsp-wmp-windowButton{display:grid}\n }\n\n /* Compact windows (desktop): only the player bar stays, fills the window and moves it. The mini window is narrow\n enough to take the phone layout of the bar (two rows); the bottom strip keeps the desktop one. The window is the\n player: its height is the viewport's, whatever the host page does with its own. Outside macOS the window\n controls stay in an overlay along the top: that strip is left to them. */\n .ngxsp-wmp-shell.ngxsp-wmp-compact{height:100vh;min-height:0;display:grid;grid-template:minmax(0,1fr) / minmax(0,1fr);padding:env(titlebar-area-height, 0px) 0 0}\n .ngxsp-wmp-shell.ngxsp-wmp-compact > :not(.ngxsp-wmp-transport){display:none!important}\n .ngxsp-wmp-shell.ngxsp-wmp-compact .ngxsp-wmp-transport{\n grid-area:1 / 1;\n position:static;\n height:auto;\n min-height:0;\n border-top:0;\n box-shadow:none;\n user-select:none;\n -webkit-app-region:drag;\n }\n .ngxsp-wmp-compact .ngxsp-wmp-transport :is(button, ngxsp-time-slider, ngxsp-volume-control){-webkit-app-region:no-drag}\n .ngxsp-wmp-compact .ngxsp-wmp-sheetButton,\n .ngxsp-wmp-compact .ngxsp-wmp-transportModes > .ngxsp-wmp-iconButton,\n .ngxsp-wmp-compact .ngxsp-wmp-transportModes > .ngxsp-wmp-switchWrap{display:none}\n /* The window buttons are in the compact actions beside the volume, but nothing else in a mini\n window reaches a speaker: that one stays, and the seek row is what gives way for it. */\n .ngxsp-wmp-compact .ngxsp-wmp-transportModes > .ngxsp-wmp-switchWrap:has(> .ngxsp-wmp-devicesButton){display:inline-flex}\n .ngxsp-wmp-compactMini .ngxsp-wmp-transport{align-content:center;padding:10px 12px 8px}\n /* Mini window with lyrics: the pane on top (the window grows for it), the player's two rows under it. */\n .ngxsp-wmp-compactMiniLyrics .ngxsp-wmp-transport{grid-template-rows:minmax(0,1fr) auto auto;align-content:stretch;row-gap:4px}\n .ngxsp-wmp-compactMiniLyrics .ngxsp-wmp-compactLyrics{grid-column:1 / -1;grid-row:1;align-self:stretch}\n .ngxsp-wmp-compactMiniLyrics .ngxsp-wmp-miniNow,\n .ngxsp-wmp-compactMiniLyrics .ngxsp-wmp-transportButtons{grid-row:2}\n .ngxsp-wmp-compactMiniLyrics .ngxsp-wmp-seekRow,\n .ngxsp-wmp-compactMiniLyrics .ngxsp-wmp-transportModes{grid-row:3}\n .ngxsp-wmp-compactLyrics{\n position:relative;\n min-height:0;\n display:grid;\n align-content:start;\n gap:2px;\n overflow-y:auto;\n padding:6px 4px 10px;\n border-bottom:1px solid var(--wmp-line);\n -webkit-app-region:no-drag;\n mask-image:linear-gradient(transparent, #000 18%, #000 82%, transparent);\n }\n .ngxsp-wmp-compactLyrics::-webkit-scrollbar{display:none}\n .ngxsp-wmp-compactLyricsLine{\n margin:0;\n padding:3px 6px;\n border:0;\n border-radius:var(--wmp-r-sm);\n background:none;\n color:var(--wmp-text-3);\n font:inherit;\n font-size:13px;\n line-height:1.35;\n text-align:left;\n cursor:pointer;\n transition:color var(--wmp-dur) var(--wmp-ease), font-size var(--wmp-dur) var(--wmp-ease);\n }\n .ngxsp-wmp-compactLyricsLine.plain{cursor:default;color:var(--wmp-text-2)}\n .ngxsp-wmp-compactLyricsLine.active{color:var(--wmp-text);font-size:15px;font-weight:650}\n .ngxsp-wmp-compactLyricsLine:not(.plain):hover{color:var(--wmp-text-2)}\n /* Bottom strip with lyrics: the line being sung and the next one, between the track and the controls. */\n .ngxsp-wmp-shell.ngxsp-wmp-compactBarLyrics .ngxsp-wmp-transport{grid-template-columns:minmax(0,1fr) minmax(0,1.2fr) minmax(280px,560px) minmax(0,1fr)}\n .ngxsp-wmp-barLyrics{min-width:0;display:grid;gap:2px;text-align:center}\n .ngxsp-wmp-barLyrics strong,.ngxsp-wmp-barLyrics span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}\n .ngxsp-wmp-barLyrics strong{color:var(--wmp-text);font-size:15px;font-weight:650}\n .ngxsp-wmp-barLyrics span{color:var(--wmp-text-3);font-size:12px}\n .ngxsp-wmp-compactActions{display:inline-flex;align-items:center;gap:2px}\n .ngxsp-wmp-compactActions button{width:28px;height:28px;display:grid;place-items:center;padding:0;border:0;border-radius:var(--wmp-r-sm);background:transparent;color:var(--wmp-text-2);cursor:pointer}\n .ngxsp-wmp-compactActions button:hover{background:var(--wmp-s2);color:var(--wmp-text)}\n .ngxsp-wmp-compactActions button:focus-visible{outline:2px solid var(--wmp-accent);outline-offset:1px}\n .ngxsp-wmp-compactActions ngxsp-smart-icon{width:16px;height:16px}\n\n @media (prefers-reduced-motion:reduce){\n .ngxsp-wmp-shell *,\n .ngxsp-wmp-shell *::before,\n .ngxsp-wmp-shell *::after{animation:none!important;transition:none!important}\n }\n`],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class NgxSmartPlayerAudioUiComponent implements AfterViewChecked {\n readonly visualizerBars = WAVEFORM_BARS;\n private readonly cdr = inject(ChangeDetectorRef);\n private readonly host = inject<ElementRef<HTMLElement>>(ElementRef);\n private readonly failedArtworkUrls = new Set<string>();\n\n @Input() config: PlayerConfig | null = null;\n @Input() plugins: PlayerPlugin[] = [];\n @Input() ports?: Partial<PlayerPorts>;\n @Input() engines?: EngineFactory[];\n @Input() debug = false;\n /** The host is answering the failure that just happened — a peer is converting this track — so the card that announces one stays away. */\n @Input() handlingFailure = false;\n @Input() startTimeSec: number | null = null;\n /** A music library opens silently; playback starts when the listener picks something. */\n @Input() autoplayOnInit = false;\n /** Incremented by the host when the listener picks something to play. */\n @Input() playRequest = 0;\n @Input() canPrev = false;\n @Input() canNext = false;\n @Input() shuffleActive = false;\n @Input() shuffleLabel = 'Shuffle: off';\n @Input() repeatMode: 'off' | 'one' | 'all' = 'off';\n @Input() repeatLabel = 'Repeat: off';\n @Input() hasPlaylistControls = false;\n @Input() castEnabled = false;\n /** What the cast chip says, state by state; the player's own words stand for the ones left out. */\n @Input() castLabels: Partial<CastLabels> = {};\n @Input() libraryViewsLabel = 'Audio library views';\n @Input() transportLabel = 'Audio transport';\n @Input() seekLabel = 'Playback position';\n /** Where one is, from the family down to what is open. Shown from two steps on. */\n /**\n * What the page one has opened is: shown in place of the plain heading a list has, which says\n * the name and nothing more.\n */\n @Input() detailHead: AudioUiDetailHead | null = null;\n /** Where the music comes from, as its own page; nothing drawn when there is none. */\n @Input() sourcesPage: AudioUiSourcesPage | null = null;\n /** The track as a page of its own; nothing drawn when there is none. */\n @Input() playerPage: AudioUiPlayerPage | null = null;\n /** What the application did without being asked; nothing drawn when there is none. */\n @Input() notificationsPage: SmartNotificationsPage | null = null;\n @Input() emptyPage: SmartEmptyPage | null = null;\n /** The first opening, when nothing has been loaded; nothing drawn when there is something. */\n\n @Input() notificationsLabel = 'Notifications';\n /** How many went unseen, which puts a dot on the bell. */\n @Input() notificationsUnread = 0;\n @Input() playerOpenLabel = 'Open the player';\n /** What the page is for, said once under its name. */\n @Input() viewIntro = '';\n /** The facets of the page, as chips under its name; nothing drawn when there are none. */\n @Input() viewFacets: readonly AudioUiViewFacet[] = [];\n @Input() viewFacetLabel = 'What this page shows';\n /** What was looked for, as the page's own title. */\n @Input() searchResultsTitle = '';\n /** How many answered, and from where. */\n @Input() searchResultsSummary = '';\n /** The kinds of result, as chips that narrow what is shown. */\n @Input() searchFilters: readonly AudioUiSearchFilter[] = [];\n @Input() searchFilterLabel = 'Narrow the results';\n /** The result that answers best, drawn apart; nothing drawn when there is none. */\n @Input() searchBest: AudioUiSearchBest | null = null;\n @Input() searchBestTitle = 'Closest match';\n /** What was looked for before, most recent first, beside the results as the board puts them. */\n @Input() recentSearches: readonly string[] = [];\n @Input() recentSearchesTitle = 'Recent searches';\n /** The shape the view is read in, and the two words that pick it. Both empty: no switch. */\n @Input() viewMode: AudioUiViewMode = 'list';\n @Input() gridLabel = '';\n @Input() tableLabel = '';\n @Input() viewSwitchLabel = 'How the library is shown';\n @Input() trail: readonly AudioUiTrailStep[] = [];\n @Input() trailLabel = 'Where you are';\n /** A step of the trail that is not the last: going back up to it. */\n @Output() trailStep = new EventEmitter<string>();\n /** The shape the listener asked the view to be read in. */\n @Output() viewModeChange = new EventEmitter<AudioUiViewMode>();\n /** An action of the head of what is open, by its id. */\n @Output() detailHeadAction = new EventEmitter<string>();\n /** What was asked of a source, or of the page itself ('add', 'add-server'). */\n @Output() sourceAction = new EventEmitter<{ sourceId: string; actionId: string }>();\n\n /** A shelf asks for the rest of itself, by its own id. */\n @Output() sectionMore = new EventEmitter<string>();\n /** The facet of the page the chips narrowed to. */\n @Output() viewFacetChange = new EventEmitter<string>();\n /** The bottom bar was pressed to open the track's own page. */\n @Output() playerOpen = new EventEmitter<void>();\n /** One of the first opening's ways in was pressed. */\n @Output() emptyPageAction = new EventEmitter<string>();\n /** The one thing to do about a notification was pressed. */\n @Output() notificationAction = new EventEmitter<{ id: string; actionId: string }>();\n\n /** The bell was pressed. */\n @Output() notificationsOpen = new EventEmitter<void>();\n @Output() notificationsRead = new EventEmitter<void>();\n /** The way out of that page, back to the view one came from. */\n @Output() playerBack = new EventEmitter<void>();\n /** The kind of result the chips narrowed to. */\n @Output() searchFilterChange = new EventEmitter<string>();\n /** An action of the best result, by its id; 'open' when the cover itself was pressed. */\n @Output() searchBestAction = new EventEmitter<string>();\n /** A term one looked for before and asks for again. */\n @Output() searchAgain = new EventEmitter<string>();\n @Input() libraryTitle = 'Local library';\n @Input() libraryContentTitle = '';\n /** \"Back to Albums\": shown above the title while something is open; null at the start of a view. */\n @Input() backLabel: string | null = null;\n @Input() libraryMeta = '';\n @Input() libraryEyebrow = 'Music library';\n @Input() searchPlaceholder = 'Search';\n @Input() searchLabel = 'Search audio library';\n @Input() searchTerm = '';\n @Input() libraryViews: AudioUiBrowseChip[] = [];\n /**\n * True puts the player above the library, as the home view did; false gives the whole area to\n * what is being browsed and leaves the transport to say what plays. Defaults to the old shape so\n * an application that says nothing keeps what it had.\n */\n @Input() playerPanel = true;\n /**\n * The few views that also get a shortcut in the title bar, named by their own ids. Empty by\n * default: a player embedding this component decides what is worth a shortcut, and an id it\n * does not list in `libraryViews` is simply ignored rather than drawn as a dead button.\n */\n @Input() quickViewIds: string[] = [];\n /**\n * The views the title bar carries, given outright. `quickViewIds` looks them up among the rail's\n * entries, which stops working for a view that has left the rail — Activity's two halves are\n * counters on their page now, and the shortcut to them is wanted all the same.\n */\n @Input() quickViewItems: readonly AudioUiBrowseChip[] = [];\n @Input() quickViewsLabel = 'Quick access';\n @Input() activeLibraryView = 'tracks';\n @Input() librarySections: AudioUiBrowseSection[] = [];\n @Input() queueTitle = 'Up next';\n @Input() queueEyebrow = 'Playlist';\n @Input() tracksLabel = 'Tracks';\n @Input() titleColumnLabel = 'Title';\n @Input() artistColumnLabel = 'Artist';\n @Input() albumColumnLabel = 'Album';\n @Input() timeColumnLabel = 'Time';\n @Input() nowPlayingLabel = 'Now playing';\n @Input() nowListeningLabel = 'Now listening';\n @Input() noTrackTitle = 'No track selected';\n @Input() miniPlayerLabel = 'Audio mini-player';\n @Input() readyLabel = 'Ready for local playback';\n @Input() selectTrackTitle = 'Select a track';\n @Input() selectTrackBody = 'Open local files or choose a queue item.';\n @Input() emptyLibraryLabel = 'No tracks indexed yet.';\n @Input() playlistsLabel = 'Playlists';\n @Input() hidePlaylistsLabel = 'Hide playlists';\n @Input() devicesLabel = 'Devices';\n /** The window's size (desktop): the whole app, a floating mini player or a bottom strip. */\n @Input() compactMode: SmartCompactMode = 'full';\n /** True where the host can resize its window: shows the buttons that switch between the three. */\n @Input() compactModes = false;\n @Input() compactMiniLabel = 'Mini player';\n @Input() compactBarLabel = 'Bottom bar';\n @Input() compactRestoreLabel = 'Full window';\n @Output() compactModeChange = new EventEmitter<SmartCompactMode>();\n /** Lyrics in the compact windows: a pane above the mini player, the line being sung in the bottom strip. */\n @Input() compactLyrics = false;\n @Input() compactLyricsLabel = 'Lyrics';\n @Output() compactLyricsToggle = new EventEmitter<void>();\n /** The host app's logo in the title bar (an image URL); without it, a generic music tile. */\n @Input() brandLogoSrc = '';\n @Input() hideDevicesLabel = 'Hide devices';\n @Input() previousLabel = 'Previous';\n @Input() nextLabel = 'Next';\n @Input() playLabel = 'Play';\n @Input() pauseLabel = 'Pause';\n @Input() stopLabel = 'Stop';\n @Input() addLabel = 'Add';\n @Input() queueNextLabel = 'Play next';\n @Input() queueAddLabel = 'Add to queue';\n @Input() createLabel = 'Create';\n @Input() renameLabel = 'Rename';\n @Input() deleteLabel = 'Delete';\n @Input() saveLabel = 'Save';\n @Input() cancelLabel = 'Cancel';\n @Input() refreshLabel = 'Refresh';\n /** How much the queue holds, in the host's own words: a count and the word that agrees with it. */\n @Input() queueCountLabel = '';\n @Input() newPlaylistPlaceholder = 'New playlist name';\n @Input() renamePlaylistPlaceholder = 'Rename playlist';\n @Input() remotePlaybackLabel = 'Remote playback';\n @Input() emptyQueueLabel = 'Queue is empty.';\n @Input() emptyPlaylistTargetsLabel = 'Create a playlist to save the current track.';\n @Input() selectTrackForPlaylistLabel = 'Select a track to add it to a playlist.';\n @Input() addToPlaylistLabel = 'Add to a list';\n @Input() playlistTargetLabel = 'Add to a list: ';\n @Input() removeItemLabel = 'Remove';\n @Input() emptyDevicesLabel = 'No playback device available.';\n @Input() currentDuration = '';\n @Input() currentTrackId = '';\n @Input() currentTitle = '';\n @Input() currentSubtitle = '';\n @Input() currentMeta = '';\n @Input() currentArtworkUrl = '';\n @Input() favoriteActive = false;\n @Input() favoriteLabel = 'Add to favorites';\n /** Whether a piece of a track can be made into a ringtone here. */\n @Input() ringtoneAvailable = false;\n @Input() ringtoneLabel = 'Make a ringtone';\n /** What the button at the end of a track's row is called, and the menu it opens. */\n @Input() trackActionsLabel = 'More actions';\n @Input() favoriteActiveLabel = 'Remove from favorites';\n @Input() favoritesLabel = 'Favorites';\n @Input() queueItems: AudioUiListItem[] = [];\n /** Whether the queue is the viewer's to trim and reorder; a radio's is not. */\n @Input() queueEditable = false;\n @Input() queueMoveUpLabel = '';\n @Input() queueMoveDownLabel = '';\n @Input() queueRemoveLabel = '';\n @Input() currentTrackAvailable = false;\n @Input() playlistOptions: AudioUiPlaylistOption[] = [];\n /** Whether the lists are the page being shown; the host opens them, as it does Sources. */\n @Input() playlistsPageOpen = false;\n /** Ce que la page des listes est, en une ligne sous son titre. */\n @Input() playlistsSummary = '';\n /** Names the view the page goes back to, as the settings' own does. */\n /** The page is asked for: from the title bar's shortcut, or from a row filing a track. */\n @Output() playlistsOpen = new EventEmitter<void>();\n /** Track waiting to be filed, chosen from a library row; without it the playing track is the target. */\n @Input() set playlistTargetTrack(track: { id: string; title: string } | null) {\n this.playlistTarget = track;\n // A track waiting for a list is a reason to show them, and they are a page now.\n if (track) this.playlistsOpen.emit();\n }\n\n get playlistTargetTrack(): { id: string; title: string } | null {\n return this.playlistTarget;\n }\n\n private playlistTarget: { id: string; title: string } | null = null;\n /** Items the listener may remove where they are shown: an own station, a track inside an open playlist. */\n @Input() removableItemIds: readonly string[] = [];\n /** Shown above the library sections, to add a station by its address. */\n @Input() stationForm: AudioUiStationForm | null = null;\n /** The Settings view's sections, shown in place of the library while the host passes them. */\n @Input() settingsSections: SmartSettingsSection[] = [];\n /** The way out of the settings page, naming the view it returns to. */\n @Input() settingsBackLabel: string | null = null;\n @Output() settingsBack = new EventEmitter<void>();\n /** Shown above the library sections, to connect a media server. */\n @Input() serverForm: AudioUiServerForm | null = null;\n @Input() devicesOpen = false;\n /** Lyrics of the playing track; the panel tab only appears when the host provides them. */\n @Input() lyricsPanel: AudioUiLyricsPanel | null = null;\n @Input() showDeviceButton = true;\n @Input() deviceItems: AudioUiDeviceItem[] = [];\n /** The machine's own sound outputs; empty where the browser will not let a page choose. */\n @Input() outputItems: ReadonlyArray<AudioUiOutputItem> = [];\n /**\n * Where the sound comes out, by the id the system gave that output. Empty is the system's own\n * choice, which is where it comes out until one is picked.\n *\n * Asking is not getting: a browser that refuses — no permission, an output since unplugged —\n * leaves the sound where it was, and `audioOutputApplied` says which of the two happened.\n */\n @Input()\n set audioOutputId(value: string) {\n this.wantedAudioOutput = value ?? '';\n void this.applyAudioOutput();\n }\n get audioOutputId(): string {\n return this.wantedAudioOutput;\n }\n private wantedAudioOutput = '';\n private appliedAudioOutput: string | null = null;\n @Input() castGroupLabel = 'Play on';\n /** One line saying what choosing in this group does, since the next group looks the same. */\n @Input() castGroupHint = '';\n @Input() outputGroupLabel = 'Audio output';\n @Input() outputGroupHint = '';\n @Input() searchDevicesLabel = 'Search for devices';\n /** What the button under the queue says; empty leaves the column without one. */\n @Input() keepQueueLabel = '';\n /**\n * The word on every close button. Two of them are on screen at once — the queue sheet's and the devices\n * dialog's — so each composes its accessible name from what it closes, as the row actions do with the track\n * they act on. The visible word stays the short one.\n */\n @Input() closeLabel = 'Close';\n @Input() sourceChangeLabel = 'Open file';\n @Input() sourceChangeTitle = '';\n @Input() sourceDropTitle = '';\n @Input() sourceDropHint = '';\n @Input() sourceChangeAccept = 'audio/*';\n /** When set (desktop shell), the rail offers folder import and keeps single-file import as a secondary action. */\n /**\n * Whether the top bar carries a way to load something at all.\n *\n * A host whose Sources page owns the folders turns this off: one place for one thing beats two\n * that can give different answers. A host without such a page keeps it, which is the default.\n */\n @Input() showSourceButton = true;\n @Input() folderImportLabel = '';\n @Input() libraryStatus = '';\n @Input() libraryBusy = false;\n @Input() languageLabel = 'Language';\n @Input() activeLanguage = '';\n @Input() languageOptions: AudioUiLanguageOption[] = [];\n @Input() statusMessage = '';\n @Input() statusKind: AudioUiStatusKind = 'info';\n @Input() showResumeProgress = false;\n @Input() outputVolume = 100;\n @Input() outputVolumeLabel = 'Output volume';\n @Input() outputMuteLabel = 'Mute output';\n @Input() outputUnmuteLabel = 'Restore sound';\n\n // Public media output aliases intentionally mirror native media event names.\n // eslint-disable-next-line @angular-eslint/no-output-native\n @Output() ended = new EventEmitter<void>();\n @Output() videoSize = new EventEmitter<{ width: number; height: number }>();\n // eslint-disable-next-line @angular-eslint/no-output-native\n @Output() progress = new EventEmitter<SmartPlayerProgress>();\n @Output() prev = new EventEmitter<void>();\n @Output() next = new EventEmitter<void>();\n @Output() toggleShuffle = new EventEmitter<void>();\n @Output() cycleRepeat = new EventEmitter<void>();\n @Output() cast = new EventEmitter<void>();\n @Output() subtitles = new EventEmitter<void>();\n @Output() selectLibraryView = new EventEmitter<string>();\n /** Back to the screen the open album, artist, genre or list came from (see `backLabel`). */\n @Output() back = new EventEmitter<void>();\n @Output() settingChange = new EventEmitter<SmartSettingChange>();\n @Output() settingAction = new EventEmitter<SmartSettingAction>();\n @Output() selectLibraryItem = new EventEmitter<string>();\n /** Plays a whole card (album, artist, playlist). Falls back to `selectLibraryItem` when nobody listens. */\n @Output() playLibraryItem = new EventEmitter<string>();\n @Output() addLibraryItemNext = new EventEmitter<string>();\n @Output() addLibraryItemToQueue = new EventEmitter<string>();\n @Output() selectQueueItem = new EventEmitter<string>();\n /** One track of the queue, a step earlier or a step later in it. */\n @Output() queueMoveUp = new EventEmitter<string>();\n @Output() queueMoveDown = new EventEmitter<string>();\n /** One track out of the queue, which stays where it is in the library. */\n @Output() queueRemove = new EventEmitter<string>();\n @Output() createPlaylist = new EventEmitter<string>();\n /** An action of the playing track's own page, by its id. */\n @Output() playerPageAction = new EventEmitter<string>();\n @Output() addCurrentToPlaylist = new EventEmitter<string>();\n @Output() addTrackToPlaylist = new EventEmitter<{ trackId: string; playlistId: string }>();\n /** A library row asks to be filed: the host answers by setting `playlistTargetTrack`. */\n @Output() requestPlaylistTarget = new EventEmitter<string>();\n @Output() cancelPlaylistTarget = new EventEmitter<void>();\n @Output() removeLibraryItem = new EventEmitter<string>();\n @Output() addStation = new EventEmitter<{ name: string; url: string }>();\n @Output() connectServer = new EventEmitter<{ kind?: string; address: string; username: string; password: string }>();\n /** Looks for servers of this kind on the local network. */\n @Output() discoverServers = new EventEmitter<string>();\n @Output() connectDiscoveredServer = new EventEmitter<string>();\n @Output() renamePlaylist = new EventEmitter<{ id: string; name: string }>();\n @Output() deletePlaylist = new EventEmitter<string>();\n @Output() toggleDevices = new EventEmitter<void>();\n @Output() refreshDevices = new EventEmitter<void>();\n /** A sound output the listener picked, by its id. */\n @Output() selectOutput = new EventEmitter<string>();\n /** The queue, asked to become a list of its own. */\n @Output() keepQueueAsPlaylist = new EventEmitter<void>();\n /** The output now in use, after the element either took the choice or refused it ('' = system). */\n @Output() audioOutputApplied = new EventEmitter<string>();\n /** Looks for the lyrics of the playing track again. */\n @Output() refreshLyrics = new EventEmitter<void>();\n /** Plays from the start of a lyrics line. */\n @Output() seekLyrics = new EventEmitter<number>();\n @Output() playOnDevice = new EventEmitter<string>();\n @Output() stopOnDevice = new EventEmitter<string>();\n @Output() primaryPlay = new EventEmitter<void>();\n @Output() primaryPlaybackToggle = new EventEmitter<AudioUiPlaybackIntent>();\n @Output() playerStateChange = new EventEmitter<PlayerState>();\n @Output() toggleFavorite = new EventEmitter<string>();\n @Output() makeRingtone = new EventEmitter<string>();\n /** \"Show in Finder\" for the track playing, where the host can show its file (desktop); empty hides the button. */\n @Input() revealFileLabel = '';\n @Output() revealFile = new EventEmitter<string>();\n @Output() sourceFileChange = new EventEmitter<File>();\n @Output() addFolder = new EventEmitter<void>();\n @Output() languageChange = new EventEmitter<string>();\n @Output() searchTermChange = new EventEmitter<string>();\n @Output() outputVolumeChange = new EventEmitter<number>();\n @Output() outputMuteToggle = new EventEmitter<void>();\n\n @ViewChild(SmartPlayerComponent) private smartPlayer?: SmartPlayerComponent;\n @ViewChild('audioFileInput') private audioFileInput?: ElementRef<HTMLInputElement>;\n private readonly document = inject(DOCUMENT);\n\n constructor() {\n // Caught as it goes down rather than as it comes up: a handler that stops the event on its\n // way to the document would otherwise keep a dialog open over a click meant to close it.\n const dismiss = (event: Event): void => this.closeDialogsOnPointerOutside(event);\n this.document.addEventListener('pointerdown', dismiss, true);\n inject(DestroyRef).onDestroy(() => this.document.removeEventListener('pointerdown', dismiss, true));\n }\n @ViewChild('libraryScroll') private libraryScroll?: ElementRef<HTMLElement>;\n @ViewChild('queueList') private queueListEl?: ElementRef<HTMLElement>;\n @ViewChild('playerLyricsLines') private playerLyricsEl?: ElementRef<HTMLElement>;\n @ViewChild('compactLyricsLines') private compactLyricsEl?: ElementRef<HTMLElement>;\n private playerLyricsFollowed = '';\n private compactLyricsFollowed = '';\n @ViewChild('panel') private panelEl?: ElementRef<HTMLElement>;\n @ViewChild('sheetButton') private sheetButtonEl?: ElementRef<HTMLElement>;\n private queueFollowed = '';\n\n /**\n * The queue holds the whole library, and every row of it used to be built: four thousand\n * tracks measured at four thousand rows and thirty-seven thousand nodes, rebuilt from scratch\n * each time the lock hid or showed one — which is the refresh that looked like a freeze on a\n * phone. Only what the list can show is built now. Two blank elements hold the space above and\n * below, so the scrollbar still tells the truth about how long the queue is.\n *\n * A row is 56px tall with a 1px gap. A list shorter than one window is left whole, because the\n * window costs more than it saves there.\n */\n private static readonly QUEUE_ROW = 57;\n private static readonly QUEUE_WINDOW_MIN = 60;\n private static readonly QUEUE_OVERSCAN = 6;\n private queueFrom = 0;\n private queueTo = NgxSmartPlayerAudioUiComponent.QUEUE_WINDOW_MIN;\n\n private get queueWindowed(): boolean {\n return this.queueItems.length > NgxSmartPlayerAudioUiComponent.QUEUE_WINDOW_MIN;\n }\n\n protected get windowedQueue(): AudioUiListItem[] {\n if (!this.queueWindowed) return this.queueItems;\n const from = Math.min(this.queueFrom, Math.max(0, this.queueItems.length - 1));\n const to = Math.min(this.queueTo, this.queueItems.length);\n return this.queueItems.slice(from, to);\n }\n\n protected get queueSpaceBefore(): number {\n if (!this.queueWindowed) return 0;\n return Math.min(this.queueFrom, this.queueItems.length) * NgxSmartPlayerAudioUiComponent.QUEUE_ROW;\n }\n\n protected get queueSpaceAfter(): number {\n if (!this.queueWindowed) return 0;\n const left = this.queueItems.length - Math.min(this.queueTo, this.queueItems.length);\n return Math.max(0, left) * NgxSmartPlayerAudioUiComponent.QUEUE_ROW;\n }\n\n /** Follows the scroll: the rows under the eye, and a few on either side so none flashes in. */\n protected onQueueScroll(): void {\n if (!this.queueWindowed) return;\n const list = this.queueListEl?.nativeElement;\n if (!list) return;\n const row = NgxSmartPlayerAudioUiComponent.QUEUE_ROW;\n const overscan = NgxSmartPlayerAudioUiComponent.QUEUE_OVERSCAN;\n const visible = Math.max(1, Math.ceil(list.clientHeight / row));\n const from = Math.max(0, Math.floor(list.scrollTop / row) - overscan);\n const to = Math.min(this.queueItems.length, from + visible + overscan * 2);\n if (from === this.queueFrom && to === this.queueTo) return;\n this.queueFrom = from;\n this.queueTo = to;\n this.cdr.markForCheck();\n }\n\n /** Brings a row into the window, so that what is playing can be scrolled to even far down. */\n private holdQueueRow(index: number): boolean {\n if (!this.queueWindowed || (index >= this.queueFrom && index < this.queueTo)) return false;\n const overscan = NgxSmartPlayerAudioUiComponent.QUEUE_OVERSCAN;\n const span = Math.max(NgxSmartPlayerAudioUiComponent.QUEUE_WINDOW_MIN, this.queueTo - this.queueFrom);\n this.queueFrom = Math.max(0, index - overscan);\n this.queueTo = Math.min(this.queueItems.length, this.queueFrom + span);\n this.cdr.markForCheck();\n return true;\n }\n\n\n fileDragActive = false;\n /** Phones only: the queue, lists, devices and lyrics live in a sheet the listener opens. */\n panelSheetOpen = false;\n queuePanelOpen = true;\n /**\n * The stack's order, fixed rather than the order they were opened in: a panel always in the\n * same place is found by eye instead of by memory. The queue is not in it: it is the column\n * itself, always below the pills, and `queuePanelOpen` is what puts it away.\n */\n private readonly panelOrder: AudioUiPanelTab[] = [];\n playlistDraftName = '';\n stationNameDraft = '';\n stationUrlDraft = '';\n serverKindDraft = '';\n serverAddressDraft = '';\n serverUsernameDraft = '';\n serverPasswordDraft = '';\n editingPlaylistId: string | null = null;\n renameDraftName = '';\n playerState: PlayerState | null = null;\n progressPercent = 0;\n currentTimeSec = 0;\n /** The shape of the bars under the cover: a drawing, not a reading of the file. */\n readonly waveformBars = [34, 58, 88, 47, 72, 95, 40, 66, 52, 80, 36, 68, 44, 90, 56, 38, 74, 50];\n\n /** How many of them the track has gone past. */\n get playedBars(): number {\n if (this.durationSec <= 0) return 0;\n const ratio = Math.min(1, Math.max(0, this.currentTimeSec / this.durationSec));\n return Math.round(ratio * this.waveformBars.length);\n }\n durationSec = 0;\n elapsedLabel = '0:00';\n detectedDurationLabel = '';\n private fileDragDepth = 0;\n\n get isPlaying(): boolean {\n return this.playerState?.kind === 'playing';\n }\n\n /**\n * Whether the player holds the top of the area, with the library reading underneath it.\n *\n * This used to be `activeLibraryView === 'home'`: the library decided a layout from a view\n * identifier the application owns, so an application that renamed or dropped that view lost the\n * player panel without being told. The application says which of the two it wants now.\n */\n get isHomeView(): boolean {\n return this.playerPanel;\n }\n\n get primaryViews(): AudioUiBrowseChip[] {\n return this.libraryViews.filter((view) => !COLLECTION_VIEW_IDS.includes(view.id) && !APP_VIEW_IDS.includes(view.id));\n }\n\n /** The facets of the family one is in, which a phone draws as chips rather than as rail entries. */\n get openViewChildren(): readonly AudioUiBrowseChip[] {\n return this.primaryViews.find((view) => view.active)?.children ?? [];\n }\n\n /** Whether this view already has a shortcut, which is what lets the strip drop it. */\n hasQuickView(id: string): boolean {\n return this.quickViewIds.includes(id);\n }\n\n /** Every rail entry, families and the facets they hold, so a shortcut can point at either. */\n private get railEntries(): AudioUiBrowseChip[] {\n return this.libraryViews.flatMap((view) => [view, ...(view.children ?? [])]);\n }\n\n /** The shortcuts, in the order they were asked for rather than the order the rail lists them. */\n get quickViews(): AudioUiBrowseChip[] {\n const entries = this.quickViewItems.length ? this.quickViewItems : this.railEntries;\n return this.quickViewIds\n .map((id) => entries.find((view) => view.id === id))\n .filter((view): view is AudioUiBrowseChip => !!view);\n }\n\n get appViews(): AudioUiBrowseChip[] {\n return this.libraryViews.filter((view) => APP_VIEW_IDS.includes(view.id));\n }\n\n get collectionViews(): AudioUiBrowseChip[] {\n return this.libraryViews.filter((view) => COLLECTION_VIEW_IDS.includes(view.id));\n }\n\n /** The first open panel, for the few places that still speak of one at a time. */\n get panelTab(): AudioUiPanelTab {\n return this.panelOrder.find((panel) => this.isPanelOpen(panel)) ?? 'queue';\n }\n\n isPanelOpen(panel: AudioUiPanelTab): boolean {\n // The queue is the column's own content: showing the column shows it.\n if (panel === 'queue') return this.queuePanelOpen;\n // Devices is the host's to own: it holds the connection, so the switch lives up there.\n return this.devicesOpen;\n }\n\n /** Opens or closes one panel and leaves the others where they are. */\n togglePanel(panel: AudioUiPanelTab): void {\n const wasOpen = this.isPanelOpen(panel);\n if (!wasOpen) this.revealPanel();\n if (panel === 'devices') {\n this.toggleDevices.emit();\n return;\n }\n // 'queue' lands here: it is shown or put away with the column.\n this.queuePanelOpen = !wasOpen;\n }\n\n get displayDurationLabel(): string {\n return this.detectedDurationLabel || this.currentDuration || this.durationFromMeta() || '0:00';\n }\n\n viewIcon(id: string): SmartPlayerIconName {\n return VIEW_ICONS[id] ?? 'layers';\n }\n\n playItem(id: string): void {\n if (this.playLibraryItem.observed) {\n this.playLibraryItem.emit(id);\n } else {\n this.selectLibraryItem.emit(id);\n }\n }\n\n /** Artwork that failed to load (dead favicon, removed cover) falls back to the placeholder icon. */\n artworkSrc(url: string | undefined): string {\n return url && !this.failedArtworkUrls.has(url) ? url : '';\n }\n\n markArtworkFailed(url: string): void {\n if (this.failedArtworkUrls.has(url)) return;\n this.failedArtworkUrls.add(url);\n this.cdr.markForCheck();\n }\n\n artTone(seed: string): number {\n let hash = 0;\n for (let i = 0; i < seed.length; i += 1) hash = (hash * 31 + seed.charCodeAt(i)) >>> 0;\n return hash % 8;\n }\n\n isBarPlayed(index: number): boolean {\n return ((index + 0.5) / this.visualizerBars.length) * 100 <= this.progressPercent;\n }\n\n artistOf(item: AudioUiListItem): string {\n return item.artist || this.splitSubtitle(item.subtitle)[0] || '-';\n }\n\n albumOf(item: AudioUiListItem): string {\n return item.album || this.splitSubtitle(item.subtitle)[1] || item.meta || '-';\n }\n\n /**\n * The time column. A track carries its own; anything else — an album, an artist, a list read as\n * a table — carries a `meta` that is not one, and that column is 48px wide: it used to take it\n * all the same and wrap over the row below.\n */\n durationOf(item: AudioUiListItem): string {\n return item.duration || (TIME_LIKE.test(item.meta ?? '') ? item.meta as string : '');\n }\n\n togglePrimaryPlayback(): void {\n if (this.config && this.smartPlayer) {\n const intent: AudioUiPlaybackIntent = this.isPlaying ? 'pause' : 'play';\n this.smartPlayer.togglePlay();\n this.primaryPlaybackToggle.emit(intent);\n return;\n }\n this.primaryPlay.emit();\n }\n\n openSourcePicker(): void {\n this.audioFileInput?.nativeElement.click();\n }\n\n seekTo(timeSec: number): void {\n this.smartPlayer?.seekTo(timeSec);\n }\n\n /** Moves inside the track by so many seconds, back when negative. */\n seekBy(deltaSec: number): void {\n if (Number.isFinite(deltaSec) && deltaSec !== 0) this.smartPlayer?.seekRel(deltaSec);\n }\n\n /** Whether this browser lets a page choose an output at all; Chromium does, and the shell is one. */\n get audioOutputSelectable(): boolean {\n return this.smartPlayer?.audioOutputSelectable ?? false;\n }\n\n /**\n * Hands the wanted output to the player, and says whether it took. Called again when the player\n * reports playing, since the element only exists from the first thing played onwards.\n */\n private async applyAudioOutput(): Promise<void> {\n if (!this.smartPlayer || this.appliedAudioOutput === this.wantedAudioOutput) return;\n const taken = await this.smartPlayer.setAudioOutput(this.wantedAudioOutput);\n this.appliedAudioOutput = taken ? this.wantedAudioOutput : null;\n this.audioOutputApplied.emit(taken ? this.wantedAudioOutput : '');\n this.cdr.markForCheck();\n }\n\n /**\n * How far the library is scrolled. A host that moves between screens reads it before leaving one, so coming\n * back can put the listener where they were rather than at the top of a list they had already walked down.\n * On a narrow layout the page scrolls instead of the panel, so whichever one moved is the one reported.\n */\n contentScrollTop(): number {\n const panel = this.libraryScroll?.nativeElement;\n if (panel && panel.scrollTop > 0) return panel.scrollTop;\n return this.document.defaultView?.scrollY ?? 0;\n }\n\n /** Puts the library back where it was, or at the top with 0 on entering a screen for the first time. */\n setContentScrollTop(value: number): void {\n const top = Number.isFinite(value) && value > 0 ? value : 0;\n const panel = this.libraryScroll?.nativeElement;\n // After the new screen's rows exist, otherwise there is nothing tall enough to scroll through yet.\n requestAnimationFrame(() => {\n if (panel) panel.scrollTop = top;\n this.document.defaultView?.scrollTo({ top, behavior: 'auto' });\n });\n }\n\n setOutputVolumePercent(value: number): void {\n this.smartPlayer?.onVolume(this.normalizeOutputVolume(value) / 100);\n }\n\n onOutputVolumeRatioChange(value: number): void {\n const nextVolume = this.normalizeOutputVolume(value * 100);\n this.setOutputVolumePercent(nextVolume);\n this.outputVolumeChange.emit(nextVolume);\n }\n\n onSourceFileInput(event: Event): void {\n const input = event.target as HTMLInputElement | null;\n const file = input?.files?.[0];\n if (file) this.sourceFileChange.emit(file);\n if (input) {\n input.value = '';\n input.blur();\n }\n }\n\n onSearchInput(event: Event): void {\n this.searchTermChange.emit((event.target as HTMLInputElement | null)?.value ?? '');\n }\n\n /** Whether a search is what the view is showing. */\n get hasSearchQuery(): boolean {\n return !!this.searchTerm.trim();\n }\n\n /** What the best result is made of, said once under its name. */\n searchBestMeta(best: AudioUiSearchBest): string {\n return [best.item.subtitle, best.item.meta].filter((part) => !!part).join(' \\u00b7 ');\n }\n\n /**\n * A title cut around what was looked for, so the match is visible rather than left for the\n * reader to find. Nothing is cut when there is no search: one part, unmarked.\n */\n searchParts(text: string): { text: string; hit: boolean }[] {\n const term = this.searchTerm.trim();\n if (!term) return [{ text, hit: false }];\n const haystack = text.toLocaleLowerCase();\n const needle = term.toLocaleLowerCase();\n const parts: { text: string; hit: boolean }[] = [];\n let from = 0;\n for (let at = haystack.indexOf(needle, from); at !== -1; at = haystack.indexOf(needle, from)) {\n if (at > from) parts.push({ text: text.slice(from, at), hit: false });\n parts.push({ text: text.slice(at, at + needle.length), hit: true });\n from = at + needle.length;\n }\n if (from < text.length) parts.push({ text: text.slice(from), hit: false });\n return parts;\n }\n\n selectViewFacet(facet: AudioUiViewFacet): void {\n if (facet.disabled || facet.active) return;\n this.viewFacetChange.emit(facet.id);\n }\n\n selectSearchFilter(filter: AudioUiSearchFilter): void {\n if (filter.disabled || filter.active) return;\n this.searchFilterChange.emit(filter.id);\n }\n\n onFileDragEnter(event: DragEvent): void {\n if (!this.dragHasFiles(event)) return;\n event.preventDefault();\n this.fileDragDepth += 1;\n this.fileDragActive = true;\n this.cdr.markForCheck();\n }\n\n onFileDragOver(event: DragEvent): void {\n if (!this.dragHasFiles(event)) return;\n event.preventDefault();\n if (event.dataTransfer) event.dataTransfer.dropEffect = 'copy';\n }\n\n onFileDragLeave(event: DragEvent): void {\n if (!this.dragHasFiles(event)) return;\n event.preventDefault();\n this.fileDragDepth = Math.max(0, this.fileDragDepth - 1);\n if (this.fileDragDepth === 0) this.fileDragActive = false;\n this.cdr.markForCheck();\n }\n\n onFileDrop(event: DragEvent): void {\n if (!this.dragHasFiles(event)) return;\n event.preventDefault();\n this.fileDragDepth = 0;\n this.fileDragActive = false;\n const file = event.dataTransfer?.files?.[0];\n if (file) this.sourceFileChange.emit(file);\n this.cdr.markForCheck();\n }\n\n onPlayerStateChange(state: PlayerState): void {\n this.playerState = state;\n // The element exists from here on, so an output asked for before it did can be handed over.\n if (state.kind === 'playing') void this.applyAudioOutput();\n this.playerStateChange.emit(state);\n this.cdr.markForCheck();\n }\n\n onPlayerProgress(event: SmartPlayerProgress): void {\n this.progress.emit(event);\n const duration = Number.isFinite(event.duration) ? event.duration : 0;\n this.currentTimeSec = Number.isFinite(event.currentTime) ? Math.max(0, event.currentTime) : 0;\n this.durationSec = Math.max(0, duration);\n this.progressPercent = duration > 0 ? Math.max(0, Math.min(100, (event.currentTime / duration) * 100)) : 0;\n this.elapsedLabel = this.formatTime(event.currentTime);\n this.detectedDurationLabel = duration > 0 ? this.formatTime(duration) : '';\n this.cdr.markForCheck();\n }\n\n toggleQueuePanel(): void {\n if (this.isSheetLayout()) {\n if (this.panelSheetOpen) this.closePanelSheet();\n else this.openPanelSheet();\n return;\n }\n this.queuePanelOpen = !this.queuePanelOpen;\n }\n\n /**\n * A click beside a dialog puts it away — and goes on to whatever it was aimed at. A sheet of\n * glass over the window would have swallowed it, and one clicks the rail while the bell is\n * open meaning to reach the rail.\n */\n /**\n * What Escape does, in order: the innermost dialog of the bar first. Written on each of them\n * instead, a handler answers every press while the focus rests on the button that opened one.\n */\n @HostListener('document:keydown.escape')\n protected onEscape(): void {\n if (this.trackMenu) { this.dismissTrackMenu(); return; }\n if (this.notificationsPage) { this.dismissNotifications(); return; }\n if (this.devicesOpen) { this.dismissDevices(); return; }\n }\n\n private closeDialogsOnPointerOutside(event: Event): void {\n const target = event.target instanceof Element ? event.target : null;\n if (this.notificationsPage && !target?.closest('.ngxsp-wmp-bellWrap')) this.closeNotifications();\n if (this.devicesOpen && !target?.closest('.ngxsp-wmp-switchWrap')) this.closeDevices();\n }\n\n /** The two dialogs of the bar are the host's: Escape asks for them to be put away. */\n closeNotifications(): void {\n if (this.notificationsPage) this.notificationsOpen.emit();\n }\n\n closeDevices(): void {\n if (this.devicesOpen) this.toggleDevices.emit();\n }\n\n /**\n * The two ways out a keyboard has — Escape, and the dialog's own close button — hand the focus\n * back to the button that opened the dialog. Without it the dialog is taken away with the\n * focused element inside it and the keyboard lands at the top of the document: from there the\n * devices button is forty-three stops away, counted in the demo.\n *\n * Not on the way out by a click beside the dialog, which is the third one: that click is aimed\n * at something, and pulling the focus back to the bar would take it from where the hand just\n * put it. That is why these two sit beside `closeDevices` instead of inside it.\n */\n private dismissNotifications(): void {\n this.closeNotifications();\n this.restoreFocusTo('.ngxsp-wmp-bellButton');\n }\n\n protected dismissDevices(): void {\n this.closeDevices();\n this.restoreFocusTo('.ngxsp-wmp-devicesButton');\n }\n\n /**\n * Asked for once the dialog has gone — the host owns its state, so it goes on the round after\n * the emit — and only of a button the window is showing: the switches of the bar are dropped\n * one by one as it narrows, and `focus()` on a hidden button puts the keyboard nowhere.\n */\n private restoreFocusTo(selector: string): void {\n setTimeout(() => {\n const buttons = Array.from(this.host.nativeElement.querySelectorAll<HTMLElement>(selector));\n buttons.find((button) => button.offsetParent !== null)?.focus();\n });\n }\n\n /** The panels as their switches show them — order, icon and name, named once for both places. */\n get panelSwitches(): Array<{ id: AudioUiPanelTab; icon: SmartPlayerIconName; label: string }> {\n const switches: Array<{ id: AudioUiPanelTab; icon: SmartPlayerIconName; label: string }> = [];\n if (this.showDeviceButton) {\n switches.push({\n id: 'devices',\n icon: this.devicesOpen ? 'devices-active' : 'devices',\n label: this.devicesOpen ? this.hideDevicesLabel : this.devicesLabel,\n });\n }\n return switches;\n }\n\n /** The switches for what the column itself can show: the devices hang off the bar instead. */\n get columnSwitches(): Array<{ id: AudioUiPanelTab; icon: SmartPlayerIconName; label: string }> {\n return this.panelSwitches.filter((panel) => panel.id !== 'devices');\n }\n\n /** Whether a panel is on screen: open, and in a column that is not itself put away. */\n isPanelShowing(panel: AudioUiPanelTab): boolean {\n // The devices hang off their own button in the bar, so a column put away says nothing of them.\n if (panel === 'devices') return this.devicesOpen;\n return this.queuePanelOpen && this.isPanelOpen(panel);\n }\n\n /**\n * The transport bar's switch for one panel. Turning one on opens the column, or the sheet on a\n * phone; turning the last one off puts the column away rather than leaving it empty.\n */\n togglePanelFromBar(panel: AudioUiPanelTab): void {\n // Opening or closing the devices neither opens nor puts away the column: they are not in it.\n if (panel === 'devices') {\n this.toggleDevices.emit();\n return;\n }\n if (!this.isPanelShowing(panel)) {\n this.selectPanelTab(panel);\n return;\n }\n // Devices belongs to the host, so its input only turns over on the next round: what decides\n // is whether anything other than the panel just closed is still open.\n const othersOpen = this.panelOrder.some((one) => one !== panel && this.isPanelOpen(one));\n this.togglePanel(panel);\n if (othersOpen) return;\n if (this.isSheetLayout()) this.closePanelSheet();\n else this.queuePanelOpen = false;\n }\n\n /** Makes sure a panel is showing, without closing the ones already there. */\n selectPanelTab(tab: AudioUiPanelTab): void {\n if (!this.isPanelOpen(tab)) this.togglePanel(tab);\n else this.revealPanel();\n }\n\n /** The viewport the sheet styles use: below it the panel only exists as a sheet. */\n private isSheetLayout(): boolean {\n return typeof matchMedia === 'function' && matchMedia('(max-width: 720px)').matches;\n }\n\n /** Shows the panel, which on a phone means opening the sheet it lives in. */\n private revealPanel(): void {\n this.queuePanelOpen = true;\n // Already open: tapping a tab inside the sheet must not take focus back to its header.\n if (this.isSheetLayout() && !this.panelSheetOpen) this.openPanelSheet();\n }\n\n /** Opens the sheet that holds the queue, the lists, the devices and the lyrics on a phone. */\n openPanelSheet(): void {\n this.panelSheetOpen = true;\n this.queuePanelOpen = true;\n // The close button is the first thing a screen reader should land on.\n setTimeout(() => this.panelEl?.nativeElement.querySelector<HTMLElement>('.ngxsp-wmp-sheetHeader button')?.focus());\n }\n\n closePanelSheet(): void {\n if (!this.panelSheetOpen) return;\n this.panelSheetOpen = false;\n setTimeout(() => this.sheetButtonEl?.nativeElement.focus());\n }\n\n /**\n * The sheet covers the page and says so with `aria-modal`, so the tabulation stays inside it.\n * It took the focus on opening and then let it go: one Shift+Tab from its own close button —\n * the first thing inside it — landed on a row action of the library behind, which a reader had\n * just been told was not there. Measured in the application, both ways out.\n */\n protected onSheetKeys(event: KeyboardEvent): void {\n if (!this.panelSheetOpen) return;\n if (event.currentTarget instanceof HTMLElement) keepTabInside(event, event.currentTarget);\n }\n\n /** The track playing has lyrics a compact window can show. */\n get hasCompactLyrics(): boolean {\n return (this.lyricsPanel?.lines.length ?? 0) > 0;\n }\n\n get showCompactLyrics(): boolean {\n return this.compactLyrics && this.hasCompactLyrics;\n }\n\n /** The line being sung, from the position the player reports; -1 before the first one or without timed lines. */\n get activeLyricsIndex(): number {\n const lines = this.lyricsPanel?.lines ?? [];\n let found = -1;\n for (let index = 0; index < lines.length; index++) {\n const time = lines[index].timeSec;\n if (time === undefined || time > this.currentTimeSec + 0.001) break;\n found = index;\n }\n return found;\n }\n\n /**\n * The whole of a row, for a row that shows only as much as its column is wide.\n *\n * A screen reader already reads all of it — the text is in the page, only the sight of it is\n * cut — so this is for the eye and the mouse, which had nothing.\n */\n /** Whether a track has anywhere to go: the first does not climb, the last does not fall. */\n canMoveQueueItem(id: string, direction: 'up' | 'down'): boolean {\n const index = this.queueItems.findIndex((item) => item.id === id);\n if (index < 0) return false;\n return direction === 'up' ? index > 0 : index < this.queueItems.length - 1;\n }\n\n rowTooltip(item: AudioUiListItem): string {\n return [item.title, item.subtitle].filter(Boolean).join(' - ');\n }\n\n /**\n * Plays from the start of a line, and tells the host so it can record the move.\n *\n * It only moved the position before: a line clicked while the track was stopped left the room\n * silent, under a control named \"Play from here\".\n */\n playFromLyrics(timeSec: number): void {\n this.smartPlayer?.seekTo(timeSec);\n if (!this.isPlaying) this.togglePrimaryPlayback();\n this.seekLyrics.emit(timeSec);\n }\n\n /**\n * Keeps what is playing in sight: the track in the queue, and the line being sung in the\n * lyrics panel and in the mini window. Each only scrolls when what it follows changes, and\n * each scrolls inside its own list rather than moving the page under everything else.\n */\n ngAfterViewChecked(): void {\n const reduced = typeof matchMedia === 'function' && matchMedia('(prefers-reduced-motion: reduce)').matches;\n // A queue one has scrolled away from is a queue that has lost the track it is about, and\n // the next track arrives on its own: nobody is there to scroll back to it.\n const queue = this.queueListEl?.nativeElement;\n // Followed by its rank rather than by its element: windowed, the row is only in the page\n // when the window holds it, and the rank is what says whether the track has changed at all.\n const activeIndex = this.queueItems.findIndex((item) => item.active);\n const queueKey = queue && activeIndex >= 0 ? `${activeIndex}:${queue.clientHeight}` : '';\n // A track that has not changed is not followed: the viewer may have scrolled away on\n // purpose, and dragging the window back to the playing row would undo that at every pass.\n if (queue && activeIndex >= 0 && queueKey !== this.queueFollowed && this.holdQueueRow(activeIndex)) return;\n const playing = queue?.querySelector<HTMLElement>('.ngxsp-wmp-queueItem.active');\n if (queue && playing && queueKey !== this.queueFollowed) {\n this.queueFollowed = queueKey;\n // Measured against the list itself: offsetTop answers for whichever ancestor happens to be\n // positioned, which is not this one, and the answer is then a scroll to nowhere.\n const box = queue.getBoundingClientRect();\n const row = playing.getBoundingClientRect();\n queue.scrollTo({\n top: queue.scrollTop + (row.top - box.top) - (box.height - row.height) / 2,\n behavior: reduced ? 'auto' : 'smooth',\n });\n }\n // Both lyrics windows — the one on the page and the mini window's — follow the song the same way.\n this.playerLyricsFollowed = this.centreSungLine(this.playerLyricsEl?.nativeElement, 'button.active', this.playerLyricsFollowed, reduced);\n this.compactLyricsFollowed = this.centreSungLine(this.compactLyricsEl?.nativeElement, '.ngxsp-wmp-compactLyricsLine.active', this.compactLyricsFollowed, reduced);\n }\n\n /**\n * Holds the line being sung in the middle of a lyrics window, and answers what it is now following.\n *\n * The window only moves when the line changes: between two lines the listener can scroll where they\n * like, and nothing drags the window back under them. Scrolled within the window itself, so neither\n * the page nor the mini window moves with it.\n */\n private centreSungLine(container: HTMLElement | undefined, selector: string, followed: string, reduced: boolean): string {\n const sung = container?.querySelector<HTMLElement>(selector);\n // The window's height is in the key: it is given its room after it first shows, and the line is centred again then.\n const key = container && sung ? `${this.currentTrackId}:${this.activeLyricsIndex}:${container.clientHeight}` : '';\n if (!container || !sung || key === followed) return followed;\n // Measured against the window itself: offsetTop answers for whichever ancestor happens to be\n // positioned, which is not always this one, and the answer is then a scroll to nowhere.\n const box = container.getBoundingClientRect();\n const line = sung.getBoundingClientRect();\n container.scrollTo({\n top: container.scrollTop + (line.top - box.top) - (box.height - line.height) / 2,\n behavior: reduced ? 'auto' : 'smooth',\n });\n return key;\n }\n\n get hasPlaylists(): boolean {\n return this.playlistOptions.length > 0;\n }\n\n isRemovable(itemId: string): boolean {\n return this.removableItemIds.includes(itemId);\n }\n\n /** Files the chosen track, or the playing one when the listener did not pick a row. */\n /**\n * Width of the row actions column: what a track offers — favourite, a list, a ringtone — and\n * the menu that holds the rest.\n *\n * The count was wrong, and the screen showed it: it read three plus a list plus a remove\n * button, and never counted the ringtone, so five buttons were given the room of four and the\n * heart was drawn over the track's duration.\n *\n * The bell is counted the way the remove button is — on whether any item in this section has\n * one — because a shelf of live streams does not, and the room it was given stayed empty.\n */\n rowActionsWidth(section: AudioUiBrowseSection): string {\n const buttons = section.kind === 'groups'\n ? 2 + (section.items.some((item) => this.isRemovable(item.id)) ? 1 : 0)\n : 2 + (this.hasPlaylists ? 1 : 0)\n + (this.ringtoneAvailable && section.items.some((item) => !item.live) ? 1 : 0);\n return `${buttons * 32 + (buttons - 1) * 2 + 8}px`;\n }\n\n /** The track a menu is open on, and where on the screen it was asked for. */\n protected trackMenu: { id: string; title: string; x: number; y: number } | null = null;\n\n /**\n * What asked for the menu. Kept rather than looked up afterwards: a row and a card carry the\n * same button, and nothing in the markup names them apart.\n */\n private trackMenuOpener: HTMLElement | null = null;\n\n @ViewChild('trackMenuBox') private trackMenuBox?: ElementRef<HTMLElement>;\n\n /**\n * Opens a track's own menu where the gesture happened — the button at the end of the row, or a\n * right click anywhere on it — and keeps it inside the window rather than off its edge.\n *\n * A row offered six buttons at once and now offers three: what it holds are the ones a listener\n * reaches for, and this holds the rest. The video player has had the same menu on its cards.\n */\n protected openTrackMenu(event: MouseEvent, item: { id: string; title: string }): void {\n event.preventDefault();\n event.stopPropagation();\n // Read while the event is being dispatched: `currentTarget` is null by the time any wait ends.\n const asked = event.currentTarget instanceof HTMLElement ? event.currentTarget : null;\n // What took the gesture is not always what can hold the keyboard. A right click lands on the\n // row or the card, which are boxes, and `focus()` on a box does nothing: every way out of the\n // menu then left the keyboard on the body of the document — the very loss this menu was\n // written to avoid, kept on the one way in that does not go through a button. So the box\n // hands over what it carries, which is the button one presses to open it.\n this.trackMenuOpener = asked && !asked.matches('button') ? asked.querySelector<HTMLElement>('button') : asked;\n const width = 240;\n const height = 48 + (this.isRemovable(item.id) ? 3 : 2) * 36;\n const view = this.document.defaultView;\n const maxX = (view?.innerWidth ?? width) - width - 8;\n const maxY = (view?.innerHeight ?? height) - height - 8;\n this.trackMenu = {\n id: item.id,\n title: item.title,\n x: Math.max(8, Math.min(event.clientX, Math.max(8, maxX))),\n y: Math.max(8, Math.min(event.clientY, Math.max(8, maxY))),\n };\n // The menu takes the focus, or Escape never reaches it after a right click and there is no\n // way out of it from the keyboard. A microtask runs before the menu is rendered, so the box\n // was not there yet to be focused: the wait has to outlast the render.\n setTimeout(() => this.trackMenuBox?.nativeElement.focus());\n }\n\n private closeTrackMenu(): void {\n this.trackMenu = null;\n this.trackMenuOpener = null;\n }\n\n /**\n * The menu takes the focus when it opens, so it is taken away with the focused element inside\n * it. Its glass swallows the click that closes it, so that click reaches nothing and there is\n * nowhere else for the focus to go: it comes back to whatever asked for the menu.\n */\n protected dismissTrackMenu(): void {\n const opener = this.trackMenuOpener;\n this.closeTrackMenu();\n setTimeout(() => opener?.focus());\n }\n\n /**\n * An action chosen in the menu. The row it was asked from stays where it is — except when the\n * track is removed, and then the button is gone with it — so the focus goes back there rather\n * than to the top of the document.\n */\n protected runTrackAction(action: 'next' | 'queue' | 'remove'): void {\n const id = this.trackMenu?.id;\n const opener = this.trackMenuOpener;\n this.closeTrackMenu();\n if (!id) return;\n if (action === 'next') this.addLibraryItemNext.emit(id);\n else if (action === 'queue') this.addLibraryItemToQueue.emit(id);\n else this.removeLibraryItem.emit(id);\n setTimeout(() => { if (opener && isShown(opener)) opener.focus(); });\n }\n\n /**\n * Up and down walk the menu, which is what `role=\"menu\"` promises a reader's software. Tab puts\n * it away rather than walking out of it: glass covers the window while it is open, so a focus\n * that left would land on buttons no hand could reach.\n */\n protected onMenuKeys(event: KeyboardEvent): void {\n if (event.key === 'Tab') {\n event.preventDefault();\n this.dismissTrackMenu();\n return;\n }\n walkWithArrows(event, MENU_WALK);\n }\n\n addToPlaylist(playlistId: string): void {\n const target = this.playlistTargetTrack;\n if (target) this.addTrackToPlaylist.emit({ trackId: target.id, playlistId });\n else this.addCurrentToPlaylist.emit(playlistId);\n }\n\n onServerKindChange(event: Event): void {\n this.serverKindDraft = (event.target as HTMLSelectElement | null)?.value ?? '';\n }\n\n onServerAddressInput(event: Event): void {\n this.serverAddressDraft = (event.target as HTMLInputElement | null)?.value ?? '';\n }\n\n onServerUsernameInput(event: Event): void {\n this.serverUsernameDraft = (event.target as HTMLInputElement | null)?.value ?? '';\n }\n\n onServerPasswordInput(event: Event): void {\n this.serverPasswordDraft = (event.target as HTMLInputElement | null)?.value ?? '';\n }\n\n selectedServerKind(form: AudioUiServerForm): AudioUiServerKind | undefined {\n const id = this.serverKindDraft || form.kinds?.[0]?.id;\n return form.kinds?.find((kind) => kind.id === id);\n }\n\n submitServer(event: Event): void {\n event.preventDefault();\n const address = this.serverAddressDraft.trim();\n if (!address) return;\n const kind = this.serverForm ? this.selectedServerKind(this.serverForm) : undefined;\n const credentials = kind?.credentials !== false;\n this.connectServer.emit({\n ...(kind ? { kind: kind.id } : {}),\n address,\n username: credentials ? this.serverUsernameDraft.trim() : '',\n password: credentials ? this.serverPasswordDraft : '',\n });\n // The password is handed over once and never kept in the form.\n this.serverPasswordDraft = '';\n }\n\n onStationNameInput(event: Event): void {\n this.stationNameDraft = (event.target as HTMLInputElement | null)?.value ?? '';\n }\n\n onStationUrlInput(event: Event): void {\n this.stationUrlDraft = (event.target as HTMLInputElement | null)?.value ?? '';\n }\n\n submitStation(event: Event): void {\n event.preventDefault();\n const url = this.stationUrlDraft.trim();\n if (!url) return;\n this.addStation.emit({ name: this.stationNameDraft.trim(), url });\n this.stationNameDraft = '';\n this.stationUrlDraft = '';\n }\n\n onPlaylistDraftInput(event: Event): void {\n this.playlistDraftName = (event.target as HTMLInputElement | null)?.value ?? '';\n }\n\n submitCreatePlaylist(): void {\n const name = this.playlistDraftName.trim();\n if (!name) return;\n this.createPlaylist.emit(name);\n this.playlistDraftName = '';\n }\n\n startRenamePlaylist(id: string, name: string): void {\n this.editingPlaylistId = id;\n this.renameDraftName = name;\n }\n\n onRenameDraftInput(event: Event): void {\n this.renameDraftName = (event.target as HTMLInputElement | null)?.value ?? '';\n }\n\n cancelRenamePlaylist(): void {\n this.editingPlaylistId = null;\n this.renameDraftName = '';\n }\n\n submitRenamePlaylist(): void {\n if (!this.editingPlaylistId || !this.renameDraftName.trim()) return;\n this.renamePlaylist.emit({ id: this.editingPlaylistId, name: this.renameDraftName.trim() });\n this.cancelRenamePlaylist();\n }\n\n private splitSubtitle(subtitle: string | undefined): [string, string] {\n const [artist = '', ...albumParts] = (subtitle ?? '').split(' - ');\n return [artist.trim(), albumParts.join(' - ').trim()];\n }\n\n private durationFromMeta(): string {\n const match = this.currentMeta.match(/(?:^|[-\\s])(\\d{1,2}:\\d{2})(?:\\s|$)/);\n return match?.[1] ?? '';\n }\n\n private formatTime(value: number): string {\n if (!Number.isFinite(value) || value < 0) return '0:00';\n const totalSeconds = Math.floor(value);\n const minutes = Math.floor(totalSeconds / 60);\n const seconds = totalSeconds % 60;\n return `${minutes}:${seconds.toString().padStart(2, '0')}`;\n }\n\n private normalizeOutputVolume(value: number): number {\n return Math.max(0, Math.min(100, Math.round(Number.isFinite(value) ? value : this.outputVolume)));\n }\n\n private dragHasFiles(event: DragEvent): boolean {\n return Array.from(event.dataTransfer?.types ?? []).includes('Files');\n }\n}\n","import { NgModule } from '@angular/core';\nimport { NgxSmartPlayerAudioUiComponent } from './audio-player-ui.component';\n\n@NgModule({\n imports: [NgxSmartPlayerAudioUiComponent],\n exports: [NgxSmartPlayerAudioUiComponent],\n})\nexport class NgxSmartPlayerAudioUiModule {}\n"],"mappings":";;;;;AA0TA,MAAM,sBAAsB,CAAC,aAAa,SAAS;AAEnD,MAAM,eAAe,CAAC,UAAU;AAEhC,MAAM,aAAkD;CACtD,MAAM;CAGN,SAAS;CACT,UAAU;CACV,SAAS;CACT,QAAQ;CACR,QAAQ;CACR,SAAS;CACT,QAAQ;CACR,WAAW;CACX,SAAS;CACT,WAAW;CACX,SA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