@ngxsplayer/ngx-smart-player-ui-audio 0.1.0 → 0.2.0

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","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","../../../projects/ngx-smart-player-ui-audio/src/ngxsplayer-ngx-smart-player-ui-audio.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","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;AAiIA,MAAM,mBAAmB,GAAG,CAAC,WAAW,EAAE,SAAS,EAAE,WAAW,CAAC;AACjE;AACA,MAAM,YAAY,GAAG,CAAC,UAAU,CAAC;AAEjC,MAAM,UAAU,GAAwC;AACtD,IAAA,IAAI,EAAE,MAAM;AACZ,IAAA,MAAM,EAAE,OAAO;AACf,IAAA,MAAM,EAAE,MAAM;AACd,IAAA,OAAO,EAAE,MAAM;AACf,IAAA,MAAM,EAAE,KAAK;AACb,IAAA,SAAS,EAAE,OAAO;AAClB,IAAA,OAAO,EAAE,OAAO;AAChB,IAAA,SAAS,EAAE,MAAM;AACjB,IAAA,OAAO,EAAE,QAAQ;AACjB,IAAA,SAAS,EAAE,OAAO;AAClB,IAAA,QAAQ,EAAE,UAAU;CACrB;AAED,MAAM,aAAa,GAAG;IACpB,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,E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;;sBACA;;sBACA;;sBACA;;sBACA;;sBACA;;sBACA;;sBACA;;sBACA;;sBACA;;sBACA;;sBACA;;sBACA;;sBACA;;sBACA;;sBACA;;sBACA;;sBACA;;sBACA;;sBACA;;sBACA;;sBACA;;sBACA;;sBACA;;sBACA;;sBAEA;;sBAEA;;sBACA;;sBACA;;sBACA;;sBACA;;sBAEA;;sBACA;;sBACA;;sBAEA;;sBACA;;sBACA;;sBACA;;sBACA;;sBACA;;sBACA;;sBACA;;sBACA;;sBACA;;sBACA;;sBACA;;sBACA;;sBACA;;sBACA;;sBACA;;sBACA;;sBACA;;sBACA;;sBACA;;sBACA;;sBACA;;sBACA;;sBACA;;sBACA;;sBACA;;sBACA;;sBACA;;sBACA;;sBACA;;sBACA;;sBACA;;sBACA;;sBACA;;sBACA;;sBAEA;;sBAEA;;sBACA;;sBACA;;sBACA;;sBACA;;sBACA;;sBACA;;sBACA;;sBACA;;sBAEA;;sBAeA;;sBAEA;;sBAEA;;sBAEA;;sBACA;;sBAEA;;sBACA;;sBACA;;sBACA;;sBACA;;sBACA;;sBACA;;sBACA;;sBACA;;sBAEA;;sBACA;;sBACA;;sBACA;;sBACA;;sBACA;;sBACA;;sBACA;;sBACA;;sBACA;;sBACA;;sBACA;;sBACA;;sBAIA;;sBACA;;sBAEA;;sBACA;;sBACA;;sBACA;;sBACA;;sBACA;;sBACA;;sBACA;;sBAEA;;sBACA;;sBACA;;sBACA;;sBAEA;;sBACA;;sBACA;;sBACA;;sBACA;;sBACA;;sBACA;;sBAEA;;sBACA;;sBACA;;sBACA;;sBACA;;sBAEA;;sBACA;;sBACA;;sBACA;;sBACA;;sBACA;;sBAEA;;sBAEA;;sBAEA;;sBACA;;sBACA;;sBACA;;sBACA;;sBACA;;sBACA;;sBACA;;sBACA;;sBAEA;;sBACA;;sBACA;;sBACA;;sBACA;;sBACA;;sBACA;;sBACA;;sBAEA,SAAS;uBAAC,oBAAoB;;sBAC9B,SAAS;uBAAC,gBAAgB;;sBAE1B,SAAS;uBAAC,eAAe;;sBACzB,SAAS;uBAAC,aAAa;;sBACvB,SAAS;uBAAC,WAAW;;sBACrB,SAAS;uBAAC,oBAAoB;;sBAE9B,SAAS;uBAAC,OAAO;;sBACjB,SAAS;uBAAC,aAAa;;;MClvEb,2BAA2B,CAAA;wGAA3B,2BAA2B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA;yGAA3B,2BAA2B,EAAA,OAAA,EAAA,CAH5B,8BAA8B,CAAA,EAAA,OAAA,EAAA,CAC9B,8BAA8B,CAAA,EAAA,CAAA;AAE7B,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,2BAA2B,YAH5B,8BAA8B,CAAA,EAAA,CAAA;;4FAG7B,2BAA2B,EAAA,UAAA,EAAA,CAAA;kBAJvC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,OAAO,EAAE,CAAC,8BAA8B,CAAC;oBACzC,OAAO,EAAE,CAAC,8BAA8B,CAAC;AAC1C,iBAAA;;;ACND;;AAEG;;"}
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,UA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