# Apple Music Web DESIGN.md

> Public preview. The complete DESIGN.md source (all 125 design tokens, spacing, components and frontmatter) requires DesignMD Pro: https://www.designmdpro.app/pricing

The Apple Music web player as served to the Chinese storefront — a Svelte single-page app whose whole design system is Apple's system colour and type token layer, plus one radical idea: every album, playlist and artist ships a dominant artwork colour (Apple's own bgColor plus four matching textColor values), and that colour is injected as --joe-color to repaint the sidebar, the content ground, the footer and the detail-header backdrop, while a has-theme-override class flips every system* ink token to its onDark variant when the artwork is dark. One system font stack (SF Pro via -apple-system) across a 13 size steps with five weight and three line-height variants each; 7px artwork radii, 10px card radii, 1000px pills; Apple's five-layer near-invisible shadow; and exactly one transition — opacity .1s ease-in — repeated 184 times.

- Website: https://music.apple.com
- Primary color: Blue `#007AFF`
- Fonts: -apple-system
- Version: 1.0.0
- Details: https://www.designmdpro.app/websites/apple-music-web

## Palette preview

- `error`: `#ff3b30`
- `glass`: `#f5f5f7`
- `shelf`: `#f2f2f2`
- `artwork`: `#c8bda9`
- `outline`: `#000000`
- `primary`: `#007aff`
- `sidebar`: `#fafafb`
- `surface`: `#ffffff`

## Typography preview

- `body`: -apple-system, "system-ui", "SF Pro", "Helvetica Neue", Helvetica, Arial, sans-serif
- `callout`: -apple-system, "system-ui", "SF Pro", "Helvetica Neue", Helvetica, Arial, sans-serif

---

## Overview

This is the Apple Music web player — not the marketing site, but the application itself, served to the Simplified Chinese storefront. It is a Svelte single-page app: a 260px glass sidebar on the left (搜索 / 主页 / 新发现 / 广播), a scrolling content column of editorial shelves, a 56px glass transport bar pinned near the bottom, and a dark upsell band across the full width. An anonymous visit lands straight on the Browse grid — the apex and `/cn/new` serve byte-identical pages, and it is the 新发现 grid with its two 540px hero posters that the captures show.

The single most important thing about it is that the chrome is deliberately almost nothing. There is one font, one ground colour, three ink alphas, two radii families and exactly one transition. Everything that makes a page feel like *Apple Music* rather than *a website* is content-driven: the album cover. Apple's catalogue API returns, for every piece of artwork, a `bgColor` plus four `textColor1..4` values extracted from that cover. The player reads them and repaints itself.

Three mechanisms do the work, and all three are visible in the captures:

- `--joe-color` is the artwork's dominant colour, injected per page. `.app-container.has-theme-override .scrollable-page { background: var(--joe-color) }` paints the content column with it, `.app-container.has-theme-override .footer-wrapper { --footerBg: var(--joe-color) }` paints the footer with it, and `.container-detail-header-wrapper:after { background-color: var(--joe-color) }` lays it behind the whole detail header. On `/cn/album/no-one-is-coming/6833386177` it is `#c8bda9` — a warm tan that turns the entire page, sidebar included, the colour of the record sleeve.
- `.app-container.has-theme-override` swaps the whole ink ramp. Where the base rule reads `--systemPrimary: #000000d9`, the override rule reads `--systemPrimary: var(--systemPrimary-onDark)`, which is `#ffffffd9`. Secondary goes `#00000080` → `#ffffff8c`, tertiary `#00000040` → `#ffffff40`, quaternary `#0000001a` → `#ffffff1a`, quinary `#0000000d` → `#ffffff0d`. One class, five tokens, a complete inversion.
- `.app-container.is-light-theme` / `.app-container.is-dark-theme` pick the material pair: `--glassMaterialBackground` flips between `#f5f5f78c` and `#26262899`, and `--navSidebarSelectedState` between `#1f1f1f12` and `#ffffff14`.

The threshold is the artwork's own luminance. The Browse grid (the anonymous landing page) and Search have no hero artwork, so they stay neutral: `#fafafb` sidebar, white content. The *No One Is Coming* album has a pale cover, so it gets the light treatment tinted tan. The artist page for 希林娜依·高 has a dark cover, so the whole app goes dark — `#1d1d1d` sidebar, `#403b36` content — and the ink becomes white. Same code, three appearances, zero theme switcher.

## Colors

The palette is Apple's system colour set, declared once in `:root` as 1462 custom properties and never overridden except by the appearance flip. Nothing on this site invents a colour.

| Role | Token | Value | Notes |
| --- | --- | --- | --- |
| Interactive | `primary` | `#007aff` | `--systemBlue`. Every link, the trial CTA, the search field's focus ring. |
| Interactive pressed | `primary-variant` | `#005ed0` | `--systemLink-vibrant` / `--systemBlue-rollover`. |
| Key fill | `secondary` | `#000000` | `--keyColorBG`. The sign-in pill, the promo band (`#000000f2` at 95%). |
| Loud content | `tertiary` | `#f75c89` | The category-tile pink — the most saturated hue the content layer uses. |
| Danger | `error` | `#ff3b30` | `--systemRed`. Destructive rows, the ❌ marks. |
| Ground | `surface` | `#ffffff` | `--pageBG`. The content column on neutral pages. |
| Primary ink | `on-surface` | `#000000d9` | `--systemPrimary`. 88% black; composites to 16.48:1 on white. |
| Secondary ink | `on-surface-variant` | `#00000080` | `--systemSecondary`. 50% black; 4.95:1 on white. |
| Tertiary ink | `on-surface-dim` | `#00000040` | `--systemTertiary`. 25% black; **2.85:1 on white — fails AA**, and it is used for disabled and placeholder text. |
| Dark ground | `inverse-surface` | `#1c1c1e` | `--systemGray6-onDark`. The dark appearance's page ground. |
| Dark ink | `on-inverse-surface` | `#ffffffd9` | `--systemPrimary-onDark`. 16.35:1 on `#0e0e0d`. |
| Dark secondary | `on-inverse-surface-variant` | `#afafb3` | Measured on the artist page; 8.83:1. |
| Hairline | `outline` | `#00000026` | `--labelDivider`. `--keyline-border-style: .5px solid var(--labelDivider)`. |
| Fill (weakest) | `outline-variant` | `#0000000d` | `--systemQuinary`. Row striping and hover washes. |
| Shelf | `shelf` | `#f2f2f2` | `--opaqueShelfBG` / `--systemGray6`. Zebra rows, well backgrounds. |
| Sidebar ground | `sidebar` | `#fafafb` | The measured neutral sidebar colour; `--navSidebarBG` is `#3c3c4308` over it. |
| Glass | `glass` | `#f5f5f78c` | `--glassMaterialBackground`, light. Sidebar, chrome player, side panels. |
| Glass (dark) | `glass-dark` | `#26262899` | `--glassMaterialBackground-onDark`. |
| Artwork tint | `artwork` | `#c8bda9` | `--joe-color` on the *No One Is Coming* album page. |
| Artwork tint (dark) | `artwork-dark` | `#403b36` | `--joe-color` on the 希林娜依·高 artist page. |

Beyond these, `:root` carries the complete Apple system ramp, used by content rather than chrome: `--systemRed #ff3b30`, `--systemOrange #ff9500`, `--systemYellow #fc0`, `--systemGreen #28cd41`, `--systemMint #00c7be`, `--systemTeal #59adc4`, `--systemCyan #55bef0`, `--systemBlue #007aff`, `--systemIndigo #5856d6`, `--systemPurple #af52de`, `--systemPink #ff2d55`, `--systemBrown #a2845e`, and the greys `--systemGray #8e8e93` through `--systemGray6 #f2f2f7`. Each also has a `-vibrant` and a `-default_IC` (increased-contrast) variant. The material stack runs ultrathin → ultrathick (`#f6f6f65c`, `#f6f6f67a`, `#f6f6f699`, `#f6f6f6b8`, `#f6f6f6d6`), all of them the same near-white at rising opacity.

The most interesting colour decisions are the ones Apple does not make. Every artwork supplies its own palette and the app obeys: `#236a84` with `textColor1 #ffffff`, `#1e829f` with `#030201`, `#734429` with `#ecdeba`, `#87b7be` with `#060e18`, `#ab2024` with `#fdb596`, `#5c5c5d` with `#fecec9`, `#0a0a08` with `#eeeae6`, `#000626` with `#dbb6ff`, `#13b3fd` with `#000d23`, `#f4f5ff` with `#38271f`, `#d75579` with `#ffffff`. Checked against their own grounds these are unusually disciplined — 8.81:1, 6.08:1, 4.69:1, 11.52:1, 8.22:1, 13.09:1, 16.56:1. Two of the twelve sampled pairs fall short: `#fdb596` on `#ab2024` at 4.13:1 and `#ffffff` on `#d75579` at 3.84:1.

The category tiles on `/cn/search` are the one place the app picks its own saturated hues, and they are picked badly for contrast. Measured from the rendered grid: pink `#f75c89` and `#f44d81`, blue `#628df1`, purple `#9374de`, violet `#b663d8`, deep purple `#602680`, red `#ff0140`, teal `#1a8465` and `#23787e`, yellow `#e5b500`, near-black `#1f1c1f`. White 22px/700 titles sit on all of them. Only three clear AA — `#602680` at 10.07:1, `#23787e` at 5.17:1, `#1a8465` at 4.63:1 and `#1f1c1f` at 16.88:1. Pink fails at 3.07:1, blue at 3.18:1, violet at 3.64:1, red at 3.94:1, and yellow collapses to 1.92:1.

## Typography

One family, no webfonts at all: `-apple-system, "system-ui", "Apple Color Emoji", "SF Pro", "SF Pro Icons", "Helvetica Neue", Helvetica, Arial, sans-serif`. It resolves to SF Pro on Apple platforms and to the system UI font everywhere else. There is not a single `@font-face` in the capture — the identity is the platform's own type.

The scale is a named ladder rather than a size ramp, and each rung carries a weight axis and a line-height axis. `--title-1` is `400 22px/1.1818`, and from it the stylesheet derives `--title-1-medium` (500), `--title-1-semibold` (600), `--title-1-bold` (700), `--title-1-heavy` (800), plus `--title-1-tall` (line-height 1.2727) and `--title-1-short` (1.0909). The same nine-way split exists at every rung, which is why the sheet can express "17px semibold, tight leading" as one token instead of three declarations.

The rungs, largest first: `--headline-standalone` 600 at 96/80/48px, `--headline-super` 600 at 80/64/48px, `--headline-elevated` 600 at 64/48/40px, `--headline-reduced` 600 at 40/32/28px, `--large-title` 400 at 26px, `--title-1` 400 at 22px, `--title-2` 400 at 17px, `--title-3` 400 at 15px, `--headline` 700 at 13px, `--body` 400 at 13px, `--body-reduced` 400 at 14px, `--caption` 400 at 12px, `--callout` 400 at 12px, `--footnote` 400 at 10px.

What actually renders, per page:

- **page-title** — 34px / 40px / 700. The single `h1` on Browse ("新发现").
- **artist-title** — 42px / 50px / 600. The artist page's `h1`, set in `--large-title-semibold` at a size the layout overrides up. Note the weight: 600, not the 700 used everywhere else, because it is the largest type on the site and 700 at 42px reads heavy.
- **album-title** — 26px / 30px / 700. The album page's `h1`, `--large-title-emphasized`.
- **section-title** — 22px / 26px / 700. `--title-1-emphasized`. The category-brick titles, and the "试听" pill's label is 18px/22px/600 (`--title-2-emphasized`).
- **shelf-title** — 17px / 22px / 700. `--title-2-emphasized`. Every shelf heading and every album/playlist title in a shelf.
- **panel-title** — 15px / 20px / 600. `--title-3-emphasized`.
- **body** — 13px / 16px / 400. The workhorse: 73 nodes on the homepage alone.
- **body-large** — 14px / 20px / 400. `--body-reduced`. Nav items, list rows, the sign-in button.
- **metadata** — 12px / 15px / 400. `--caption`. Shelf subtitles ("Apple Music 国语流行"), durations, footnotes.
- **callout** — 12px / 15px / 600. `--callout-emphasized`. Eyebrows and the small caps above hero cards.
- **footnote** — 10px / 13px / 400. The smallest rung, used for legal and build metadata.
- **button-label** — 14px / 20px / 400. The sign-in pill's `font: var(--body)` at `font-size: 14px`.
- **nav-link** — 14px / 20px / 400. Sidebar items, `#000000 @0.88`.
- **player-label** — 18px / 22px / 600. The now-playing title in the chrome player.

There is no letter-spacing anywhere — every `letterSpacing` in the capture reads `normal`, and every `textTransform` reads `none`. CJK is set at the same sizes as Latin; the line-height unitless ratios (1.2307, 1.2941, 1.3333) come from the Latin metrics and are slightly tight for Han glyphs, which is why Chinese titles wrap earlier than their English equivalents at the same width.

## Layout

The app shell is a CSS grid. `--z-web-chrome: 9901` puts the chrome above everything; `--z-modal: 10001`, `--z-contextual-menus: 9951` and `--z-gpu: 1001` sit above that for layers that escape the shell.

The sidebar is a fixed 260px column (`@media (min-width:767.32px){.header{width:260px}}`), full height, `gap: 0`, `z-index: var(--z-web-chrome)`. It is not a solid panel: `background: var(--glassMaterialBackground)` with `backdrop-filter: saturate(220%) blur(16px)` and `box-shadow: 0 10px 40px var(--glassMaterialShadowColor)`, so content scrolling underneath it is blurred and desaturated rather than hidden. On neutral pages its measured ground is `#fafafb`; on tinted and dark pages it takes the `--joe-color` or the dark material. Inside it, items are 14px/20px `#000000 @0.88` with a selected state of `--navSidebarSelectedState` (`#1f1f1f12` light, `#ffffff14` dark) and the icon recoloured to `--keyAccentColor`.

The content column is a flex column, `overflow-x: hidden`, `transition: margin .1s linear, width .1s linear` — it reflows when the sidebar collapses. Its horizontal padding is `--bodyGutter: 25px`, but the measured first card edge sits 40px inside the 260px sidebar, so the effective column gutter on desktop is 40px.

Shelves are the organising unit. A poster row is a horizontally scrolling shelf of 540×309 cards with a 20px gap (measured: card 1 at x 300–839, card 2 at x 860–1399, a third already peeking in at the right edge), each 309px tall with a 10px radius. A square-album shelf is four 210px cards with a 15px gap (x 297–506, 521–730, 745–954, 969–1178), artwork 210×210 at 7px radius with the title and subtitle stacked beneath in 17px/700 and 12px/400. The category grid on Search is four 260px bricks with a 20px gap.

The album page is a two-column header: a 289px square artwork on the left (measured x 291–579, y 41–330), and on the right the 26px/700 title, the artist, a `15px/20px` genre line, an editorial note in quotation marks, and a black 1000px-radius "试听" pill. Below it, a tracklist: a bullet, a number, the title in 13px/16px, a duration right-aligned in 12px/15px, and a "…" menu.

The artist page is a centred header: a 190px circular portrait, the 42px/600 name, and a row of three circular controls beneath it — a hairline info circle, a large solid-white play circle, and a hairline favourite circle. Then two side-by-side shelves — 最新发行 with a large album card plus a date and track count, and 歌曲排行 with five rows of 40px thumbnails — and 专辑 below.

The chrome player is `border-radius: 1000px; height: 56px; max-width: 668px; padding: 0 16px; display: grid; grid-template-columns: auto 1fr auto`, centred, sitting above the upsell band. It carries the transport controls on the left, the Apple logo dead centre, and the queue and volume icons on the right.

The upsell band is a full-width 71px strip at the very bottom (`--musicBrandBG: var(--keyColorBG)` = `#000000f2`), holding an "在“音乐”中打开" link with an external-arrow glyph, a black 1000px-radius 36px sign-in pill in the sidebar above it, and on the right a `#007aff` 3px-radius 28px "立即试用" button. Its copy is the site's only hard sell.

## Elevation & Depth

Apple's shadow is a five-layer stack rather than a single blur, and the same exact values appear 65 times on the homepage and 19 on the artist page:

```
box-shadow: 0 1px 1px #00000003,
            0 2px 2px #00000003,
            0 4px 4px #00000005,
            0 8px 8px #00000008,
            0 14px 14px #00000008;
```

Read the alphas: 1%, 1%, 2%, 3%, 3%. The offsets grow 1→2→4→8→14 while the blur stays equal to the offset, so the shadow widens faster than it darkens. The result is a card that reads as lifted without ever looking drop-shadowed — at 3% peak opacity on a white ground the whole stack is nearly invisible, and it is doing structural work (separating artwork from the `--joe-color` ground) rather than decorative work. `.category-brick` uses this exact stack; so does every shelf lockup.

The chrome uses a different, larger shadow: `box-shadow: 0 10px 40px var(--glassMaterialShadowColor)` where `--glassMaterialShadowColor` is `#0000001a` (10%) in light and `#0003` (19%) in dark. That is the sidebar and the chrome player.

Artwork gets its own treatment: `--artwork-box-shadow: 0 3px 5px -4px #0000004d` — a 30% black shadow pulled *inward* by a negative spread, so it hugs the cover instead of blooming under it. Some artwork also carries `--artworkShadowInset: inset 0 0 0 1px #0000001a` or `...1px #fff3`, a 1px inner stroke that gives the cover an edge against any ground.

Depth is otherwise expressed with translucent fills rather than shadow: `--tracklistAltRowColor #0000000d`, `--tracklistHoverColor #0000001a`, `--tracklistWorksTrackHoverColor #0000002e`, `--cardHoverColor #78788040`, `--lockupHoverBGColor #3333334d`, `--modalScrimColor #00000073`, `--radiosityShadowColor #0000001a`. The category brick's hover state is a `#3333334d` scrim at `opacity: 0 → 1` laid over the whole tile with `border-radius: inherit`.

One genuine depth effect is the artist page's "radiosity": a large soft glow behind the circular portrait, drawn from the artwork colour with `--radiosityShadowColor` and a `feGaussianBlur`-style falloff. It is the only place the app lets a colour bleed.

## Shapes

Three radius tokens cover the entire app, plus one pill:

- `--global-border-radius-medium: 7px` — artwork. Album covers, playlist covers, the 40px track thumbnails. This is the most-repeated shape on the site: 130 instances on the homepage alone, 40 on the artist page.
- `--global-border-radius-large: 10px` — cards. `.category-brick` is the canonical user, and the poster/shelf lockups inherit it.
- `--global-border-radius-xlarge: 14px` — the largest container radius, used by the poster headers (`var(--global-border-radius-xlarge,14px) var(--global-border-radius-xlarge,14px) 0 0` — rounded only at the top, where the card meets the page edge) and the side panel. One scoped component re-tunes it: `.powerswoosh--chinless { --global-border-radius-xlarge: 10px }`, which is how a single artwork hero opts out of the global value without a second token.
- `1000px` — every pill. The sign-in button, the "试听" CTA, the chrome player, the share and more buttons. 1000px rather than 9999px is Apple's convention: it is unreachable at any real height, so it always renders as a stadium.
- `50%` — circles. 360 instances on the homepage: play platters, the artist portrait, the transport buttons, avatars.
- `3px` — the upsell CTA and a handful of small controls.
- `8px` — the search field.
- `4px` / `5px` — rare, on a few inline controls.

Nothing is square and nothing is fully sharp. The only `border-radius: 0` in the shell is on elements that opt out of a parent's radius. Corners are always soft, always small, and always the same three values.

## Motion & Micro-interaction

There is essentially one animation on this site, and it is declared once as a token:

```css
--global-transition-property: opacity;
--global-transition-duration: .1s;
--global-transition-timing-function: ease-in;
--global-transition: var(--global-transition-property,opacity)
                    var(--global-transition-duration,.1s)
                    var(--global-transition-timing-function,ease-in);
```

184 elements on the homepage use it verbatim. Opacity, 100ms, ease-in. That is the entire hover vocabulary: nothing moves, nothing scales, nothing slides — a control simply fades in or out. It is the most restrained motion system in this whole capture set.

Four other transitions exist, each with a specific job:

- `padding-inline-end .3s cubic-bezier(0.215, 0.61, 0.355, 1)` — 14 elements. The sidebar's labels collapse as the column narrows; the easing is a decelerating curve (fast start, long settle) that suits a width change.
- `transform .2s ease-out` — the mobile upsell banner, which slides away as the page scrolls (`.upsell-banner { transition: transform .4s cubic-bezier(.4,0,.2,1) }` on mobile, `.transition: none` when motion is reduced).
- `margin .1s linear, width .1s linear` on `.scrollable-page` — the content column reflowing against the sidebar.
- `opacity .1s ease-in` on `.category-brick:after` — the hover scrim, which is the same global transition applied to a pseudo-element.

There is no scroll-triggered reveal, no parallax, no page transition, no shared-element animation, and no keyframe animation anywhere in the capture. Artwork loads lazily (`loading="lazy"`, a 1×1 GIF placeholder, `--placeholder-bg-color` set to the artwork's own `bgColor`), so the perceived motion is covers fading up out of a block of their own dominant colour — which is a neat trick, because the placeholder and the final image agree.

The only `prefers-reduced-motion` handling in the shell is `.upsell-banner { transition: none }` and `.chrome-player:before { backdrop-filter: none }` under `prefers-contrast: more`.

## Voice & Content Strategy

The copy is editorial, not marketing. It is written in the register of a magazine that happens to sell music: short, concrete, and almost always about a specific person or record rather than about Apple Music.

The homepage hero is a single sentence that names the artist, the record and the claim: "瞩目之星希林娜依・高，携《No One Is Coming》开启向内生长的新章". The three sibling cards each carry a one-line editorial standfirst above a bold title — "《太阳之子》驱散阴霾、《嘉年华 II》世巡传递感动，2026 周杰伦王者归来。", "防弹少年团领航 2026 年 K-Pop，新生与中坚团体齐齐掌舵。", "蔡健雅助阵那英巡演，双人澎湃和声诠释《Letting Go (Live)》中放手的勇气。" Each is 12px/600 in the eyebrow slot and 17px/700 in the title slot, and each names artists, albums and tours rather than describing a feature.

Shelf headings are pure labels with no verb: 瞩目之星, 新歌精选, 本周新发行, 新近发布. Subtitles are metadata, not adjectives: "Apple Music 国语流行", "Apple Music K-Pop", "希林娜依·高", "No One Is Coming · 2026年". Durations are `3:08`, `3:45`, `4:11`. Track numbers are bare integers. Nothing is capitalised for emphasis because there is no uppercase transform to capitalise with.

The album page carries the longest piece of writing on the site, and it is the artist's own:

> "《I'll Look At You》（透过墨镜直视太阳）是向内探索，是身处过程当中的状态，所以会有些疑问和不确定性，像一个问号。这张专辑则像一个坦然的逗号或者句号，慢慢梳理思绪，从自己的角度跟世界对话，是一张叙述更多"

It is set at 15px/20px in the standard ink, in a column beside the cover, with a bolded "更多" at the end — the only bold run in the block, marking the truncation point rather than emphasising a word.

The upsell band is the one place the voice changes, and it changes completely: "探索数千万首歌曲，全无广告" followed by "更可在所有设备上畅享你的整个音乐资料库。方案将以 ¥12.00/月的价格自动续期。" A headline claim, then a plain statement of the recurring price with the exact amount and the word 自动续期 spelled out. It is the most commercially direct copy on the site and it is still shorter than the hero standfirst.

## Components

**search-field** — `max-width: 330px` on the compact variant, full-width on the search landing page; measured 506×44 with an 8px radius and a 4px `#007aff` ring. White fill, a 16×16 magnifier at `inset-inline-start: 10px` filled with `--searchBoxIconFill: #000000a6`, and placeholder text at `--systemSecondary`. The wrapper is `min-height: 54px`.

**signin-pill** — `border-radius: 1000px; height: 36px; padding-inline: 16px; font: var(--body); font-size: 14px`, `background-color: var(--keyColorBG)` (`#000000d9`) with white type. White on `#0d0d0d` composited is 19.44:1. Sits at the bottom of the sidebar with a person glyph.

**trial-cta** — `#007aff` fill, white type at 92%, `border-radius: 3px`, `height: 28px`. 4.02:1 — a genuine AA failure on the site's only paid-conversion button, and the same blue is used for every link on white at the same 4.02:1.

**sidebar-nav** — the glass column. `background: var(--glassMaterialBackground)` (`#f5f5f78c` light, `#26262899` dark), `backdrop-filter: saturate(220%) blur(16px)`, `box-shadow: 0 10px 40px`, `width: 260px`, `height: 100%`, `gap: 0`, `z-index: var(--z-web-chrome)`.

**nav-item-selected** — `background: var(--navSidebarSelectedState)`, `border-radius: 8px`, icon and label both recoloured to `--systemPrimary` (light) or `--keyAccentColor` (base). On the homepage 新发现 is the selected item.

**poster-card** — the 540×309 editorial card. `border-radius: 10px`, `overflow: hidden`, the Apple five-layer shadow, and the artwork filling it edge to edge via `--artwork-override-width/height`. A 12px/600 eyebrow sits above the row, and each poster carries its own `bgColor` so the card's placeholder matches its cover.

**album-artwork** — `--artworkRadius: 7px`, `--artwork-box-shadow: 0 3px 5px -4px #0000004d`, an optional 1px `--artworkShadowInset`, and `--artwork-bg-color` set per item from Apple's API. The 40px track thumbnails use the same component at `--songsListArtworkHeight: 40px` with `--trackLockupArtworkOverlay: #3333334d` on hover.

**category-brick** — 260×111, `border-radius: var(--global-border-radius-large, 10px)`, the five-layer shadow, `overflow: hidden`. The artwork is absolutely centred and over-scaled with the classic `bottom:-9999px; left:-9999px; margin:auto; right:-9999px; top:-9999px` trick so any aspect ratio fills the fixed height. `.category-brick__title` is `position: absolute; bottom: 9px; padding-inline: 12px; color: #fff; font: var(--title-1-emphasized)` (700 22px), `-webkit-line-clamp: 2`. The hover state is a `#3333334d` scrim at `opacity: 0 → 1`, `transition: opacity .1s ease-in`, `border-radius: inherit`.

**chrome-player** — `border-radius: 1000px; height: 56px; max-width: 668px; padding: 0 16px; display: grid; grid-template-columns: auto 1fr auto; place-items: center`. Its `:before` pseudo-element carries the glass material and shadow so the content inside never inherits the blur. The Apple logo is centred in the middle column; transport on the left; queue and volume on the right.

**player-bar-dark** — the same component with `--glassMaterialBackground: var(--glassMaterialBackground-onDark)` (`#26262899`) and `--glassMaterialShadowColor-onDark`. This is what the player becomes on the artist page.

**play-platter** — a 50%-radius circle. 60px on the artist page (white fill, dark glyph), 48px in the chrome player, 30–40px on shelf hover. `--shelfLockupPlayHover: #69696e` is the shelf variant's hover fill.

**track-row** — 13px/16px title, 12px/15px duration right-aligned, a bullet and a track number on the left, a "…" menu on the right. Zebra striping from `--tracklistAltRowColor: #0000000d`, hover to `--tracklistHoverColor: #0000001a`, and `--tracklistWorksTrackHoverColor: #0000002e` for the deepest state. Separated by `--keyline-border-style: .5px solid var(--labelDivider)`.

**dark-shelf / dark-nav-item** — the dark-appearance counterparts: `#1c1c1e` rows with `#ffffffd9` type, `#afafb3` selected fills, `#ffffff0d` hover washes.

**artist-hero** — the centred header with the circular portrait and the radiosity glow behind it. Padding 40px, `--backdrop-color: var(--joeColor, var(--pageBG-dark))`, `--backdrop-scrim: rgba(0,0,0,var(--detail-background-scrim,0))`.

**scrim** — `--modalScrimColor: #00000073` behind dialogs, `--trackLockupArtworkOverlay: #3333334d` over hovered artwork, `#3333334d` over hovered category bricks. All three are the same 30% black at different opacities for different depths.

**divider-hairline** — `--keyline-border-style: .5px solid var(--labelDivider)`, `--labelDivider: #00000026` light and `#ffffff1a` dark. A half-pixel line at 15% black is the site's only border.

**danger-icon** — `--systemRed` as a circular icon badge: `.action-button--declined` is a 28px circle, `.city-picker__item-icon` a 32px circle, both `background: var(--systemRed)` with a white glyph (`fill: #fff`, 13px and 18px respectively). White on `#ff3b30` is 3.55:1 — a real AA failure, and the same red is also used as *text* (`.side-panel-controls__clear`, `.clear-recently-searched-button`, `.dropdown__error`), which is the correct use.

**secondary-copy / muted-caption / link** — the three ink-only roles: `#00000080` at 13px/16px for subtitles, `#00000040` at 10px/13px for the smallest metadata (2.85:1 on white — the worst ratio in the light theme), and `#005ed0` at 13px/16px for inline links.

**Not observed:** no modal, drawer or dropdown beyond the protocols-style contextual menu; no toast or inline form validation (there are no forms on the captured pages beyond the search field); no skeleton or loading state beyond the artwork placeholder; no pagination or infinite-scroll sentinel in the captured viewport; no theme switcher, since appearance is derived from artwork; no light/dark media-query response (`prefers-color-scheme: dark` is declared in the sheet but the OS reports light, and the appearance class is set by script); no `prefers-reduced-motion` beyond the upsell banner's `transition: none`; and no empty or error state, because the storefront always has content.

## Do's and Don'ts

**Do** let the content supply the palette. Shipping `bgColor` plus four `textColor` values with every artwork, then injecting the dominant one as `--joe-color`, means a pale cover and a black cover produce two coherent apps from one stylesheet. The album page's `#c8bda9` ground and the artist page's `#403b36` ground are both *derived*, not designed — and both look deliberate.

**Do** express an appearance flip as a token swap, not a second theme. `.app-container.has-theme-override { --systemPrimary: var(--systemPrimary-onDark) }` inverts five inks with one rule. Every component downstream keeps using `var(--systemPrimary)` and never learns which appearance it is in.

**Do** keep the ink ramp as alphas of one colour. `#000000d9`, `#00000080`, `#00000040`, `#0000001a`, `#0000000d` is a five-step hierarchy from a single hue, which is why 88% and 50% black sit together without ever looking like two different greys.

**Do** build shadow as a stack of tiny layers. `0 1px 1px #00000003, 0 2px 2px #00000003, 0 4px 4px #00000005, 0 8px 8px #00000008, 0 14px 14px #00000008` separates a cover from a tinted ground far more convincingly than one 16px blur at 10%, and it never reads as a drop shadow.

**Do** give artwork a radius token and use it everywhere. `--artworkRadius: 7px` on covers, thumbnails, poster fills and category bricks is the single most repeated decision on the site, and it is what makes 360 circles and 130 rounded rectangles feel like one system.

**Do** state the price in the CTA. "方案将以 ¥12.00/月的价格自动续期。" names the amount, the period and the word 自动续期 in one sentence, directly under the headline claim.

**Don't** put white 22px/700 type on a category tile. Pink `#f75c89` gives 3.07:1, blue `#628df1` 3.18:1, violet `#b663d8` 3.64:1, red `#ff0140` 3.94:1, and yellow `#e5b500` collapses to 1.92:1. Only the deep purple, the two teals and the near-black clear AA. Either darken the tile hue until white passes, or drop the title onto a scrim.

**Don't** use `#00000040` for text. At 2.85:1 on white it is the weakest ink in the light theme, and it is what placeholder and disabled copy resolves to. Move disabled text to `#00000080` (4.95:1) and reserve 25% for fills.

**Don't** ship `#007aff` links and buttons on white. 4.02:1 misses AA by half a point, and it is the site's only interactive colour — every link, the focus ring and the trial CTA all use it. `--systemBlue-default_IC: #0040dd` is already in the token set and clears comfortably. The same mistake appears in the destructive controls: white glyphs on a `#ff3b30` circle measure 3.55:1, while the red *text* uses (`.side-panel-controls__clear`, `.clear-recently-searched-button`) are fine — fill with red, don't put white on it.

**Don't** animate with `all`. The site avoids this entirely — its one transition is `opacity .1s ease-in` — and the one place a width does change (`padding-inline-end .3s cubic-bezier(0.215, 0.61, 0.355, 1)`) names the property and uses a decelerating curve. Follow that: name the property, pick the curve from the direction of travel.

**Don't** forget the CJK metrics. The unitless line-heights (1.2307 at 13px, 1.2941 at 17px) come from Latin and leave Han titles wrapping earlier than their English equivalents at the same width. Give CJK shelves a slightly wider measure or a slightly taller line-height rather than shrinking the type.
