# athulmb/spotify architecture

> Architecture diagram of the GitHub repository athulmb/spotify, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-03-30). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/athulmb/spotify
- Repository: https://github.com/athulmb/spotify

## Overview

This repository is a single-page music streaming UI built with React 18 and Vite, styled with Tailwind CSS, and using Redux Toolkit to manage shared playback state and API access.

#### High-level architecture

The app is organized around three main layers:

1. **App shell and routing**
   - `src/index.jsx` boots the React app.
   - `src/App.jsx` acts as the top-level composition point and likely wires the main layout and page navigation.
   - `src/pages/*` contains route-level screens such as Discover, Search, Song Details, Artist Details, Top Charts, Top Artists, and Around You.

2. **Shared UI/component layer**
   - `src/components/*` contains reusable presentation components used across pages.
   - This includes layout elements like `Sidebar`, search and discovery UI like `Searchbar`, list/card components like `SongCard`, `ArtistCard`, `SongBar`, and playback UI like the `MusicPlayer` subdirectory.

3. **State and data layer**
   - `src/redux/store.js` configures the Redux store.
   - `src/redux/features/playerSlice.js` holds global playback state.
   - `src/redux/services/shazamCore.js` is the API layer for fetching music data from Shazam-related endpoints, likely via Redux Toolkit Query.

#### Main subsystems

##### 1. Application shell
The UI is structured like a music app with a persistent shell rather than isolated pages.

Key pieces:
- `Sidebar` for navigation between discovery and ranking pages
- `TopPlay` for context-aware charts/top songs content
- `MusicPlayer` as a persistent bottom or global playback area
- `Loader` and `Error` as shared async-state feedback components

This shell surrounds route-specific page content so the player and navigation stay available while users move through the app.

##### 2. Page-level screens
The `pages` directory defines the main user journeys:

- **Discover**: default browsing entry point
- **Search**: search results and search-driven discovery
- **SongDetails**: track-level detail view, typically with related songs
- **ArtistDetails**: artist-level detail view
- **TopCharts**: ranked songs view
- **TopArtists**: ranked artist view
- **AroundYou**: location-aware or context-aware music discovery

These pages likely compose shared components rather than duplicating UI logic, which keeps the architecture modular.

##### 3. Reusable presentational components
The shared component library is a major architectural boundary. It centralizes UI building blocks so pages remain thin.

Notable component groups:

- **Discovery/search**
  - `Searchbar`
  - `SongCard`
  - `SongBar`
  - `TopPlay`

- **Artist/song detail**
  - `ArtistCard`
  - `DetailsHeader`
  - `RelatedSongs`

- **Playback**
  - `MusicPlayer/Player`
  - `MusicPlayer/Controls`
  - `MusicPlayer/Seekbar`
  - `MusicPlayer/Track`
  - `MusicPlayer/VolumeBar`
  - `PlayPause`

This suggests the app treats playback as a first-class global feature, with the player split into small control-focused subcomponents.

##### 4. Global player state
`src/redux/features/playerSlice.js` is the central state boundary for playback.

This slice likely manages:
- the active/current song
- playlist or track queue
- play/pause status
- current index within a list
- possibly volume and seek-related state

That state is shared between:
- list components like `SongCard`, `SongBar`, and `RelatedSongs`
- the persistent `MusicPlayer`
- detail pages where song selection happens

The important architectural point is that playback is not local to a page; it is global application state.

##### 5. Remote music data access
`src/redux/services/shazamCore.js` is the data access layer for external music metadata.

This service is likely responsible for fetching:
- top charts
- related songs
- artist details
- song details
- search results
- possibly geolocation-based results for “Around You”

Using a dedicated Redux service layer separates network concerns from UI components and pages. That gives the app a clean flow:

external API → Redux service → page/component consumption → playback interaction

##### 6. Assets and constants
`src/assets/constants.js` and `src/assets/index.js` provide shared static values and assets.

These are probably used for:
- navigation labels
- genre lists or categories
- icons/images
- default artwork or UI constants

This helps keep reusable configuration out of component logic.

#### Data flow

The main runtime flow of the app is:

1. **App starts**
   - `index.jsx` mounts the React application.
   - Redux store is provided globally.

2. **Page loads**
   - A route-level page requests music data through the Shazam service layer.
   - UI shows `Loader` while waiting and `Error` on failure.

3. **Data is rendered**
   - Fetched tracks/artists are passed into cards, bars, related lists, or detail headers.
   - Shared components keep all list/detail rendering consistent.

4. **User selects a track**
   - Clicking a song or related item dispatches player actions.
   - The global player slice updates active track and playback state.

5. **Music player remains available**
   - The persistent `MusicPlayer` reads from the shared Redux state.
   - `Controls`, `Seekbar`, `Track`, and `VolumeBar` reflect and mutate playback state.

This is the key architectural pattern: content pages are ephemeral, but playback state and player UI are global.

#### Important boundaries

##### Presentation vs state
Most components are presentational and receive data via props, while Redux owns shared state and API access.

##### Page vs reusable UI
Pages assemble workflows; components implement the actual UI pieces. This separation makes the project easy to diagram as:
- route screens on one side
- reusable widgets on the other

##### Remote data vs playback state
Music metadata comes from the API service, but the selected/current playing song lives in the player slice. That split is important because one is external data and the other is interactive app state.

#### Technology choices that matter architecturally

- **React 18**: component-based SPA structure
- **Vite**: fast client-side bundling and dev server
- **Redux Toolkit**: global state management
- **RTK Query-style service layer**: API integration for Shazam data
- **Tailwind CSS**: utility-first styling across pages and shared components

#### What an architecture diagram should show

A clear diagram for this repo would include:

- the React app entry point
- the routed page layer
- the shared component library
- the Redux store in the center
- a separate API/service boundary to Shazam
- a global music player connected to the player slice
- cross-cutting loading/error states

In short, this is a client-side music discovery app with a global playback subsystem and a centralized API/state layer, wrapped by a reusable shell of navigation and player UI.

Main entry points: [`src/App.jsx`](https://github.com/athulmb/spotify/blob/main/src/App.jsx) (App), [`src/redux/features/playerSlice.js`](https://github.com/athulmb/spotify/blob/main/src/redux/features/playerSlice.js) (Player Slice), [`src/redux/services/shazamCore.js`](https://github.com/athulmb/spotify/blob/main/src/redux/services/shazamCore.js) (Shazam Core), [`src/pages/Discover.jsx`](https://github.com/athulmb/spotify/blob/main/src/pages/Discover.jsx) (Discover)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_group_shell["App shell"]
  node_src_index(("index<br/>entry<br/>[index.jsx]"))
  node_src_app["App<br/>composition<br/>[App.jsx]"]
end

subgraph group_group_pages["Pages"]
  node_page_discover["Discover<br/>page<br/>[Discover.jsx]"]
  node_page_search["Search<br/>page<br/>[Search.jsx]"]
  node_page_song_details["Song Details<br/>page<br/>[SongDetails.jsx]"]
  node_page_artist_details["Artist Details<br/>page<br/>[ArtistDetails.jsx]"]
  node_page_top_charts["Top Charts<br/>page<br/>[TopCharts.jsx]"]
  node_page_top_artists["Top Artists<br/>page<br/>[TopArtists.jsx]"]
  node_page_around_you["Around You<br/>page<br/>[AroundYou.jsx]"]
end

subgraph group_group_ui["Shared UI"]
  node_comp_sidebar["Sidebar<br/>nav component<br/>[Sidebar.jsx]"]
  node_comp_searchbar["Searchbar<br/>search component<br/>[Searchbar.jsx]"]
  node_comp_song_card["Song Card<br/>track card<br/>[SongCard.jsx]"]
  node_comp_song_bar["Song Bar<br/>track row<br/>[SongBar.jsx]"]
  node_comp_artist_card["Artist Card<br/>[ArtistCard.jsx]"]
  node_comp_details_header["Details Header<br/>detail header<br/>[DetailsHeader.jsx]"]
  node_comp_related_songs["Related Songs<br/>related list<br/>[RelatedSongs.jsx]"]
  node_comp_top_play["Top Play<br/>context widget<br/>[TopPlay.jsx]"]
  node_comp_loader(("Loader<br/>status ui<br/>[Loader.jsx]"))
  node_comp_error(("Error<br/>status ui<br/>[Error.jsx]"))
end

subgraph group_group_player["Player UI"]
  node_player_root["Music Player<br/>player shell<br/>[index.jsx]"]
  node_player_controls["Controls<br/>player control<br/>[Controls.jsx]"]
  node_player_seekbar["Seekbar<br/>player control<br/>[Seekbar.jsx]"]
  node_player_track["Track<br/>player view<br/>[Track.jsx]"]
  node_player_volume["Volume Bar<br/>player control<br/>[VolumeBar.jsx]"]
  node_player_playpause["Play/Pause<br/>action control<br/>[PlayPause.jsx]"]
end

subgraph group_group_state["Redux"]
  node_redux_store[("Store<br/>[store.js]")]
  node_redux_player_slice{{"Player Slice<br/>state slice<br/>[playerSlice.js]"}}
  node_redux_shazam_core{{"Shazam Core<br/>api service<br/>[shazamCore.js]"}}
end

subgraph group_group_assets["Assets"]
  node_assets_constants["Constants<br/>static config<br/>[constants.js]"]
  node_assets_index["Assets<br/>asset index<br/>[index.js]"]
end

node_src_index -->|"mounts"| node_src_app
node_src_app -->|"routes"| node_page_discover
node_src_app -->|"routes"| node_page_search
node_src_app -->|"routes"| node_page_song_details
node_src_app -->|"routes"| node_page_artist_details
node_src_app -->|"routes"| node_page_top_charts
node_src_app -->|"routes"| node_page_top_artists
node_src_app -->|"routes"| node_page_around_you
node_src_app -->|"shell"| node_comp_sidebar
node_src_app -->|"shell"| node_player_root
node_src_app -->|"provides state"| node_redux_store
node_redux_store -->|"includes"| node_redux_player_slice
node_redux_store -->|"includes"| node_redux_shazam_core
node_page_discover -->|"fetches"| node_redux_shazam_core
node_page_search -->|"fetches"| node_redux_shazam_core
node_page_song_details -->|"fetches"| node_redux_shazam_core
node_page_artist_details -->|"fetches"| node_redux_shazam_core
node_page_top_charts -->|"fetches"| node_redux_shazam_core
node_page_top_artists -->|"fetches"| node_redux_shazam_core
node_page_around_you -->|"fetches"| node_redux_shazam_core
node_page_search -->|"uses"| node_comp_searchbar
node_page_discover -->|"uses"| node_comp_top_play
node_page_song_details -->|"uses"| node_comp_details_header
node_page_artist_details -->|"uses"| node_comp_details_header
node_page_song_details -->|"uses"| node_comp_related_songs
node_page_artist_details -->|"uses"| node_comp_artist_card
node_page_discover -->|"uses"| node_comp_song_card
node_page_top_charts -->|"uses"| node_comp_song_bar
node_page_top_artists -->|"uses"| node_comp_artist_card
node_page_discover -->|"feedback"| node_comp_loader
node_page_discover -->|"feedback"| node_comp_error
node_player_root -->|"contains"| node_player_controls
node_player_root -->|"contains"| node_player_seekbar
node_player_root -->|"contains"| node_player_track
node_player_root -->|"contains"| node_player_volume
node_player_root -->|"uses"| node_player_playpause
node_player_controls -->|"reads/writes"| node_redux_player_slice
node_player_seekbar -->|"reads/writes"| node_redux_player_slice
node_player_track -->|"reads"| node_redux_player_slice
node_player_volume -->|"reads/writes"| node_redux_player_slice
node_player_playpause -->|"reads/writes"| node_redux_player_slice
node_comp_song_card -->|"dispatches"| node_redux_player_slice
node_comp_song_bar -->|"dispatches"| node_redux_player_slice
node_comp_related_songs -->|"dispatches"| node_redux_player_slice
node_comp_sidebar -->|"uses"| node_assets_constants
node_comp_searchbar -->|"uses"| node_assets_index
node_comp_top_play -->|"uses"| node_assets_constants

click node_src_index "https://github.com/athulmb/spotify/blob/main/src/index.jsx"
click node_src_app "https://github.com/athulmb/spotify/blob/main/src/App.jsx"
click node_page_discover "https://github.com/athulmb/spotify/blob/main/src/pages/Discover.jsx"
click node_page_search "https://github.com/athulmb/spotify/blob/main/src/pages/Search.jsx"
click node_page_song_details "https://github.com/athulmb/spotify/blob/main/src/pages/SongDetails.jsx"
click node_page_artist_details "https://github.com/athulmb/spotify/blob/main/src/pages/ArtistDetails.jsx"
click node_page_top_charts "https://github.com/athulmb/spotify/blob/main/src/pages/TopCharts.jsx"
click node_page_top_artists "https://github.com/athulmb/spotify/blob/main/src/pages/TopArtists.jsx"
click node_page_around_you "https://github.com/athulmb/spotify/blob/main/src/pages/AroundYou.jsx"
click node_comp_sidebar "https://github.com/athulmb/spotify/blob/main/src/components/Sidebar.jsx"
click node_comp_searchbar "https://github.com/athulmb/spotify/blob/main/src/components/Searchbar.jsx"
click node_comp_song_card "https://github.com/athulmb/spotify/blob/main/src/components/SongCard.jsx"
click node_comp_song_bar "https://github.com/athulmb/spotify/blob/main/src/components/SongBar.jsx"
click node_comp_artist_card "https://github.com/athulmb/spotify/blob/main/src/components/ArtistCard.jsx"
click node_comp_details_header "https://github.com/athulmb/spotify/blob/main/src/components/DetailsHeader.jsx"
click node_comp_related_songs "https://github.com/athulmb/spotify/blob/main/src/components/RelatedSongs.jsx"
click node_comp_top_play "https://github.com/athulmb/spotify/blob/main/src/components/TopPlay.jsx"
click node_comp_loader "https://github.com/athulmb/spotify/blob/main/src/components/Loader.jsx"
click node_comp_error "https://github.com/athulmb/spotify/blob/main/src/components/Error.jsx"
click node_player_root "https://github.com/athulmb/spotify/blob/main/src/components/MusicPlayer/index.jsx"
click node_player_controls "https://github.com/athulmb/spotify/blob/main/src/components/MusicPlayer/Controls.jsx"
click node_player_seekbar "https://github.com/athulmb/spotify/blob/main/src/components/MusicPlayer/Seekbar.jsx"
click node_player_track "https://github.com/athulmb/spotify/blob/main/src/components/MusicPlayer/Track.jsx"
click node_player_volume "https://github.com/athulmb/spotify/blob/main/src/components/MusicPlayer/VolumeBar.jsx"
click node_player_playpause "https://github.com/athulmb/spotify/blob/main/src/components/PlayPause.jsx"
click node_redux_store "https://github.com/athulmb/spotify/blob/main/src/redux/store.js"
click node_redux_player_slice "https://github.com/athulmb/spotify/blob/main/src/redux/features/playerSlice.js"
click node_redux_shazam_core "https://github.com/athulmb/spotify/blob/main/src/redux/services/shazamCore.js"
click node_assets_constants "https://github.com/athulmb/spotify/blob/main/src/assets/constants.js"
click node_assets_index "https://github.com/athulmb/spotify/blob/main/src/assets/index.js"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_src_index,node_src_app toneBlue
class node_page_discover,node_page_search,node_page_song_details,node_page_artist_details,node_page_top_charts,node_page_top_artists,node_page_around_you toneAmber
class node_comp_sidebar,node_comp_searchbar,node_comp_song_card,node_comp_song_bar,node_comp_artist_card,node_comp_details_header,node_comp_related_songs,node_comp_top_play,node_comp_loader,node_comp_error toneMint
class node_player_root,node_player_controls,node_player_seekbar,node_player_track,node_player_volume,node_player_playpause toneRose
class node_redux_store,node_redux_player_slice,node_redux_shazam_core toneIndigo
class node_assets_constants,node_assets_index toneTeal
```

## Components

### App shell

Entry, layout, and route composition

- [index](https://github.com/athulmb/spotify/blob/main/src/index.jsx): entry · Bootstraps the React app and mounts the root UI · `src/index.jsx`
- [App](https://github.com/athulmb/spotify/blob/main/src/App.jsx): composition · Top-level shell and route composition · `src/App.jsx`

### Pages

Route-level screens

- [Discover](https://github.com/athulmb/spotify/blob/main/src/pages/Discover.jsx): page · Default browsing and discovery screen · `src/pages/Discover.jsx`
- [Search](https://github.com/athulmb/spotify/blob/main/src/pages/Search.jsx): page · Search results and query-driven discovery · `src/pages/Search.jsx`
- [Song Details](https://github.com/athulmb/spotify/blob/main/src/pages/SongDetails.jsx): page · Track detail view with related content · `src/pages/SongDetails.jsx`
- [Artist Details](https://github.com/athulmb/spotify/blob/main/src/pages/ArtistDetails.jsx): page · Artist detail and catalog view · `src/pages/ArtistDetails.jsx`
- [Top Charts](https://github.com/athulmb/spotify/blob/main/src/pages/TopCharts.jsx): page · Ranked songs browsing screen · `src/pages/TopCharts.jsx`
- [Top Artists](https://github.com/athulmb/spotify/blob/main/src/pages/TopArtists.jsx): page · Ranked artists browsing screen · `src/pages/TopArtists.jsx`
- [Around You](https://github.com/athulmb/spotify/blob/main/src/pages/AroundYou.jsx): page · Context-aware discovery screen · `src/pages/AroundYou.jsx`

### Shared UI

Reusable presentation components

- [Sidebar](https://github.com/athulmb/spotify/blob/main/src/components/Sidebar.jsx): nav component · Primary navigation for discovery and charts · `src/components/Sidebar.jsx`
- [Searchbar](https://github.com/athulmb/spotify/blob/main/src/components/Searchbar.jsx): search component · Search input used across discovery flows · `src/components/Searchbar.jsx`
- [Song Card](https://github.com/athulmb/spotify/blob/main/src/components/SongCard.jsx): track card · Track tile for browsing and selection · `src/components/SongCard.jsx`
- [Song Bar](https://github.com/athulmb/spotify/blob/main/src/components/SongBar.jsx): track row · Compact track row used in lists and related songs · `src/components/SongBar.jsx`
- [Artist Card](https://github.com/athulmb/spotify/blob/main/src/components/ArtistCard.jsx): artist card · Artist tile for discovery and detail views · `src/components/ArtistCard.jsx`
- [Details Header](https://github.com/athulmb/spotify/blob/main/src/components/DetailsHeader.jsx): detail header · Header layout for song and artist detail pages · `src/components/DetailsHeader.jsx`
- [Related Songs](https://github.com/athulmb/spotify/blob/main/src/components/RelatedSongs.jsx): related list · Related track list for detail pages · `src/components/RelatedSongs.jsx`
- [Top Play](https://github.com/athulmb/spotify/blob/main/src/components/TopPlay.jsx): context widget · Context-aware top songs and charts panel · `src/components/TopPlay.jsx`
- [Loader](https://github.com/athulmb/spotify/blob/main/src/components/Loader.jsx): status ui · Loading state feedback · `src/components/Loader.jsx`
- [Error](https://github.com/athulmb/spotify/blob/main/src/components/Error.jsx): status ui · Error state feedback · `src/components/Error.jsx`

### Player UI

Global playback controls and display

- [Music Player](https://github.com/athulmb/spotify/blob/main/src/components/MusicPlayer/index.jsx): player shell · Persistent global playback interface · `src/components/MusicPlayer/index.jsx`
- [Controls](https://github.com/athulmb/spotify/blob/main/src/components/MusicPlayer/Controls.jsx): player control · Playback action controls · `src/components/MusicPlayer/Controls.jsx`
- [Seekbar](https://github.com/athulmb/spotify/blob/main/src/components/MusicPlayer/Seekbar.jsx): player control · Track position and scrubbing control · `src/components/MusicPlayer/Seekbar.jsx`
- [Track](https://github.com/athulmb/spotify/blob/main/src/components/MusicPlayer/Track.jsx): player view · Current track metadata display · `src/components/MusicPlayer/Track.jsx`
- [Volume Bar](https://github.com/athulmb/spotify/blob/main/src/components/MusicPlayer/VolumeBar.jsx): player control · Volume adjustment control · `src/components/MusicPlayer/VolumeBar.jsx`
- [Play/Pause](https://github.com/athulmb/spotify/blob/main/src/components/PlayPause.jsx): action control · Shared play state toggle · `src/components/PlayPause.jsx`

### Redux

Shared state and data access

- [Store](https://github.com/athulmb/spotify/blob/main/src/redux/store.js): redux store · Configures global Redux state · `src/redux/store.js`
- [Player Slice](https://github.com/athulmb/spotify/blob/main/src/redux/features/playerSlice.js): state slice · Global playback state and actions · `src/redux/features/playerSlice.js`
- [Shazam Core](https://github.com/athulmb/spotify/blob/main/src/redux/services/shazamCore.js): api service · Music data fetching and query layer · `src/redux/services/shazamCore.js`

### Assets

Static constants and asset exports

- [Constants](https://github.com/athulmb/spotify/blob/main/src/assets/constants.js): static config · Shared app constants and navigation data · `src/assets/constants.js`
- [Assets](https://github.com/athulmb/spotify/blob/main/src/assets/index.js): asset index · Shared asset exports · `src/assets/index.js`

## Connections

- index → App: mounts · Entry point renders the app shell
- App → Discover: routes · App composes the main discovery screen
- App → Search: routes · App composes search flow screens
- App → Song Details: routes · App composes song detail screen
- App → Artist Details: routes · App composes artist detail screen
- App → Top Charts: routes · App composes charts screen
- App → Top Artists: routes · App composes artists ranking screen
- App → Around You: routes · App composes location-aware discovery screen
- App → Sidebar: shell · Persistent navigation around routed views
- App → Music Player: shell · Persistent player around routed views
- App → Store: provides state · App is wrapped by the Redux store
- Store → Player Slice: includes · Store registers shared player state
- Store → Shazam Core: includes · Store registers the API service
- Discover → Shazam Core: fetches · Discover screen requests music data
- Search → Shazam Core: fetches · Search screen requests query results
- Song Details → Shazam Core: fetches · Song details screen loads track and related data
- Artist Details → Shazam Core: fetches · Artist details screen loads artist data
- Top Charts → Shazam Core: fetches · Charts screen loads ranked tracks
- Top Artists → Shazam Core: fetches · Top artists screen loads ranked artists
- Around You → Shazam Core: fetches · Around You screen loads context-aware results
- Search → Searchbar: uses · Search page centers on the search input
- Discover → Top Play: uses · Discover page surfaces contextual top content
- Song Details → Details Header: uses · Detail page uses the shared header layout
- Artist Details → Details Header: uses · Detail page uses the shared header layout
- Song Details → Related Songs: uses · Detail page renders related tracks
- Artist Details → Artist Card: uses · Artist page reuses artist presentation components
- Discover → Song Card: uses · Discovery lists render track cards
- Top Charts → Song Bar: uses · Charts screen renders compact track rows
- Top Artists → Artist Card: uses · Artist rankings reuse artist cards
- Discover → Loader: feedback · Loading state during data fetch
- Discover → Error: feedback · Error state during data fetch
- Music Player → Controls: contains · Player shell includes transport controls
- Music Player → Seekbar: contains · Player shell includes scrubbing control
- Music Player → Track: contains · Player shell includes current track display
- Music Player → Volume Bar: contains · Player shell includes volume control
- Music Player → Play/Pause: uses · Player shell uses shared play toggle
- Controls → Player Slice: reads/writes · Controls mutate playback state
- Seekbar → Player Slice: reads/writes · Seek interactions depend on playback state
- Track → Player Slice: reads · Track display reflects active song state
- Volume Bar → Player Slice: reads/writes · Volume control updates shared player state
- Play/Pause → Player Slice: reads/writes · Play/pause reflects and updates global playback
- Song Card → Player Slice: dispatches · Selecting a track updates the active player state
- Song Bar → Player Slice: dispatches · Selecting a row updates the active player state
- Related Songs → Player Slice: dispatches · Related songs can start playback
- Sidebar → Constants: uses · Navigation labels and categories come from constants
- Searchbar → Assets: uses · Shared UI may use exported assets and icons
- Top Play → Constants: uses · Context widget relies on shared genre/config data
