/* POLISH-1: final visual pass. Rules stay screen-scoped so the invitation flow
   and listening permissions remain untouched. */
:root { --polish-secondary:rgb(255 255 255 / 72%); }

/* Shared hierarchy and persistent-player clearance. */
#main { padding-bottom:calc(var(--player) + 16px); }
.workspace { padding-bottom:calc(var(--player) + 16px); }
.muted,.bodyCopy,.rowText small,.rowMeta,.release small,.settingsRow small,.catalogSampleHelp { color:var(--polish-secondary); }
[data-act="save"] .ico,[data-act="save-release"] .ico,.npSave .ico { color:#fff; fill:none; }
[data-act="save"][aria-pressed="true"] .ico,[data-act="save-release"][aria-pressed="true"] .ico,.npSave[aria-pressed="true"] .ico { color:var(--magenta); fill:currentColor; stroke:currentColor; }
#transport .mainPlay { width:40px; height:40px; border:1.5px solid currentColor; }

/* Home: retain the photo-led morning stage and improve its in-image controls. */
#dailyWelcome.dailyWelcome[data-period=morning] .dailyWelcomeCopy::before {
  background:linear-gradient(0deg,color-mix(in srgb, rgb(8 8 27 / 0.969), rgb(var(--t-surf) / 0.969) var(--t-mix)) 0%,color-mix(in srgb, rgb(8 8 27 / 0.808), rgb(var(--t-surf) / 0.808) var(--t-mix)) 45%,transparent 78%),linear-gradient(var(--greeting-flow,90deg),color-mix(in srgb, rgb(8 8 27 / 0.722), rgb(var(--t-surf) / 0.722) var(--t-mix)) 0%,color-mix(in srgb, rgb(8 8 27 / 0.133), rgb(var(--t-surf) / 0.133) var(--t-mix)) 55%,transparent 82%);
}
#dailyWelcome.dailyWelcome[data-period=morning] { --daily-accent:#d6d0ff; --daily-glow:rgb(109 92 210 / 25%); }
#dailyWelcome .greetingPassStub { inset:16px 16px auto auto; }
#dailyWelcome[data-greeting-copy=right] .greetingPassStub { inset-inline-start:16px; inset-inline-end:auto; }
#dailyWelcome .greetingAction {
  min-height:40px; padding:0 .8rem !important; border:1px solid rgb(255 255 255 / 32%) !important;
  border-radius:999px !important; background:color-mix(in srgb, rgb(9 8 25 / 58%), rgb(var(--t-surf) / 58%) var(--t-mix)) !important; text-decoration:none !important;
  backdrop-filter:blur(10px);
}
#dailyWelcome .greetingAction:hover { background:rgb(255 255 255 / 16%) !important; }
.homeNewsShelf { display:flex; overflow-x:auto; gap:14px; padding-bottom:3px; scroll-snap-type:x proximity; }
.homeNewsShelf .release { flex:0 0 min(42vw,190px); scroll-snap-align:start; }
.homeNewsShelf .release:nth-child(n+2) { display:block; }
.homeNewsShelf .release strong { display:-webkit-box; min-height:2.7em; overflow:hidden; white-space:normal; -webkit-box-orient:vertical; -webkit-line-clamp:2; }
.homeNewsTag { display:inline-flex; width:max-content; margin-top:8px; padding:3px 7px; border-radius:999px; background:rgb(255 255 255 / 18%); color:#fff !important; font-size:12px !important; font-weight:600; line-height:1.2; }
.gospelHome { padding:20px; border-inline-start:0; border-color:var(--line); }
.gospelHome a { border:0; padding:.25rem 0; color:var(--cyan); text-decoration:none; }
.homeRecentShelf .num,.homeRecentShelf .rowMeta { display:none; }
.homeRecentShelf .trackRow { gap:8px; }
.homeFeaturedHero { display:flex !important; flex-direction:column; min-height:0 !important; background:transparent !important; }
.homeFeaturedHero>.homeFeaturedArt { position:relative !important; inset:auto !important; aspect-ratio:1; }
.homeFeaturedHero>.homeFeaturedArt::after { display:none; }
.homeFeaturedHero>.homeFeaturedArt img { object-fit:contain !important; }
.homeFeaturedHero>.homeFeaturedCopy { display:block; padding:.65rem 0 0 !important; color:var(--ink); }
#homeCatalog .homeFeaturedCopy strong { color:var(--ink); font-size:1rem; }
#homeCatalog .homeFeaturedCopy small { color:var(--polish-secondary); }

/* Catalog. */
#main[data-screen="catalog"] .pageIntro { margin-bottom:14px; }
#main[data-screen="catalog"] .pageIntro h1 { margin:.18rem 0; font-size:clamp(2.2rem,5vw,4rem); }
#main[data-screen="catalog"] .pageIntro p { margin:0; }
.releaseControls .releaseDesktopFilter { display:none; }
.releaseControls { grid-template-columns:minmax(0,1fr) auto !important; }
.releaseControls label:first-child { min-width:0; }
.releaseTypes .chip { min-height:32px; padding-inline:13px; }
.releaseTypes .chip.on { border-color:rgb(var(--t-glow2) / 42%); background:rgb(var(--t-glow2) / 16%); color:var(--cyan); }

/* Album. */
.albumHero { align-items:center; justify-content:center; padding:clamp(22px,4vw,42px); background:transparent; border:0; }
.albumHero>.releaseCover { flex:none; width:min(68vw,260px); }
.albumHero>.releaseCover .albumCover { display:block; width:100%; aspect-ratio:1; object-fit:cover; border-radius:14px; box-shadow:0 22px 45px rgb(0 0 0 / 45%); }
.albumHero>div:last-child { min-width:0; }
.albumHero h1 { font-size:clamp(2.3rem,5.5vw,4.7rem); text-transform:none; }
.albumHero>div:last-child>p { margin:.4rem 0 0; color:var(--polish-secondary); }
.albumActions { align-items:center; gap:8px; }
.albumActions .albumPlay { min-height:44px; padding-inline:18px; background:var(--cyan); color:rgb(var(--t-navy2)); border-color:var(--cyan); }
.albumActionIcon { display:grid; place-items:center; width:44px; height:44px; padding:0; border:1px solid var(--line); border-radius:50%; color:var(--ink); background:rgb(255 255 255 / 7%); }
.albumActionIcon .ico { width:19px; height:19px; }
.albumPreview { min-height:44px; }
.linerNotesText { margin-top:8px; padding:0; color:var(--polish-secondary); }
.albumTrack { min-height:56px; }
.albumTrack .trackMain { min-height:44px; }
.albumTrack .num { align-self:center; }

/* Radio and Backstage. */
.stationCatalogShelf { display:flex; gap:12px; overflow-x:auto; padding-bottom:3px; }
.stationCatalogShelf .release { flex:0 0 132px; }
.stationCatalogShelf .release strong { white-space:normal; }
.hero #stationAction { background:var(--cyan); border-color:var(--cyan); color:rgb(var(--t-navy2)); }
.plusCardIcon,.plusLaunchIcon { color:var(--cyan); background:rgb(var(--t-glow2) / 12%); }
.plusCard { align-items:start; }
.plusCard small { display:-webkit-box; overflow:hidden; -webkit-box-orient:vertical; -webkit-line-clamp:2; min-height:2.5em; }

/* Library and Settings. */
.librarySuggestion { display:flex; align-items:center; justify-content:space-between; width:100%; min-height:52px; margin-top:8px; padding:0 4px; color:var(--polish-secondary); border-top:1px solid var(--line); text-align:left; }
.librarySuggestion .ico { color:var(--cyan); }
.settingsRow { justify-content:space-between; }
.settingsRow > :last-child { margin-left:auto; flex:none; }
.settingsRow small { max-width:54ch; font-size:13px; color:var(--polish-secondary); display:-webkit-box; overflow:hidden; -webkit-box-orient:vertical; -webkit-line-clamp:2; }

/* Now Playing: keep metadata singular, lyrics readable, and ambient art dark. */
#panel[data-layout="full-player"] .fullPlayer::before { filter:blur(64px) saturate(1.2) brightness(.38) hue-rotate(12deg); opacity:.82; }
#panel[data-layout="full-player"] .fullPlayer::after { background:linear-gradient(180deg,rgb(var(--t-navy4) / 75%),rgb(var(--t-navy4) / 86%) 46%,rgb(var(--t-navy4)) 100%); }
.npTimeline { grid-template-columns:minmax(0,1fr) auto !important; }
.npTimeline .waveTimeline { grid-column:1/-1; }
.npLoopUnderScrubber { display:flex; justify-content:flex-end; margin-top:-9px; }
.npLoopToggle { min-height:36px; padding:0 .35rem; font-size:.75rem; }
#npLyricReader .npLyricLines { padding-bottom:clamp(48px,12vh,96px); -webkit-mask-image:linear-gradient(to bottom,#000 0 72%,transparent 100%); mask-image:linear-gradient(to bottom,#000 0 72%,transparent 100%); }
#npLyricReader .npLyricLines p { text-wrap:balance; hyphens:none; }
#npLyricReader .npLyricActions button { width:36px; min-width:36px; min-height:36px; height:36px; padding:0; border-radius:50%; }
#npLyricReader .npLyricActions button span { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }

@media (max-width:650px) {
  #dailyWelcome.dailyWelcome[data-period=morning] .greetingPassStub { inset:16px 16px auto auto; }
  #dailyWelcome.dailyWelcome[data-period=morning][data-greeting-copy=right] .greetingPassStub { inset-inline-start:auto; inset-inline-end:16px; }
  .homeNewsShelf .release { flex-basis:calc(100% - 40px); }
  .albumHero { display:grid; grid-template-columns:1fr; justify-items:center; text-align:center; }
  .albumHero>.releaseCover { width:min(68vw,260px); }
  .albumActions { justify-content:center; }
  .linerNotesText { margin-inline:auto; }
  .albumTrack .num { width:18px; }
}

@media (forced-colors:active) {
  .greetingAction,.albumActionIcon { border:1px solid ButtonText !important; background:ButtonFace !important; color:ButtonText !important; }
}

/* POLISH-2: phone-first finishing pass. Persistent chrome is measured in app.js,
   so every screen clears the actual player and navigation heights. */
:root { --transport-height:66px; --mobile-nav-height:58px; --scroll-clearance:calc(var(--transport-height) + var(--mobile-nav-height) + env(safe-area-inset-bottom,0px) + 24px); }
#main,.workspace { padding-bottom:var(--scroll-clearance) !important; }
.screenFoot,.listenerHome > :last-child,.settingsPage,.plusDirectory,.plusDetail { padding-bottom:max(24px,var(--scroll-clearance)); }

/* Header material lets the content travel beneath it without a hard edge. */
.topbar { position:sticky; top:0; z-index:7; padding-inline:var(--pad); margin-inline:calc(-1 * var(--pad)); transition:background .2s ease,border-color .2s ease; }
.topbar.isScrolled { background:rgb(var(--t-base) / 72%); border-bottom:1px solid rgb(255 255 255 / 12%); backdrop-filter:blur(20px) saturate(1.4); -webkit-backdrop-filter:blur(20px) saturate(1.4); }

/* The mini player's top edge is the one quiet current-position indicator. */
#transport .mainPlay { width:44px; height:44px; min-width:44px; min-height:44px; border:0; color:#fff; background:transparent; box-shadow:none; }
#transport .mainPlay .ico { width:20px; height:20px; }
#transport::before { background:var(--cyan) 0 / var(--mini-progress,0%) 100% no-repeat !important; height:2px !important; }

/* Home remains a full photo stage and uses the open edge for readable controls. */
#dailyWelcome.dailyWelcome { min-height:calc(100dvh - var(--scroll-clearance) - 64px); margin-inline:calc(-1 * var(--pad)); border-radius:0; }
#dailyWelcome .dailyWelcomeCopy { min-height:inherit; }
#dailyWelcome.dailyWelcome[data-period=morning] .dailyWelcomeCopy::before { background:linear-gradient(0deg,rgb(var(--t-base) / 96%) 0%,rgb(var(--t-base) / 78%) 44%,transparent 76%),linear-gradient(90deg,rgb(var(--t-base) / 76%),rgb(var(--t-base) / 20%) 65%,transparent); }
#dailyWelcome .greetingPassStub { display:inline-flex; align-items:center; justify-content:center; gap:6px; min-width:0; min-height:36px; padding:0 10px; border:1px solid rgb(255 255 255 / 20%); border-radius:999px; color:#fff; background:rgb(var(--t-base) / 55%); backdrop-filter:blur(12px); box-shadow:none; }
#dailyWelcome .greetingPassStub::before,#dailyWelcome .greetingPassStub::after { display:none; }
.greetingPassImprint { color:var(--cyan); font-size:15px; line-height:1; text-shadow:none; }
.greetingPassTitle { color:#fff; font:600 13px/1 "HVR Tight",system-ui,sans-serif; letter-spacing:0; text-shadow:none; }
#dailyWelcome .greetingActions { flex-wrap:nowrap; gap:8px; width:min(100%,30rem); }
#dailyWelcome .greetingActions > div { flex:1 1 0; overflow:hidden; }
#dailyWelcome .greetingAction { justify-content:center; width:100%; min-height:44px; padding:0 14px !important; border-radius:999px !important; white-space:nowrap; overflow:hidden; text-shadow:none; }
#dailyWelcome #dailySongAction .greetingAction { border-color:var(--cyan) !important; background:var(--cyan) !important; color:color-mix(in srgb, rgb(6 19 26 / 1), rgb(var(--t-surf) / 1) var(--t-mix)) !important; }
#dailyWelcome #dailyAction .greetingAction { background:rgb(var(--t-base) / 55%) !important; }
#dailyWelcome .greetingAction span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
#dailyWelcome .greetingPosition { display:none; }
.homeNewsShelf { gap:12px; }
.homeNewsShelf .release { flex:0 0 calc(80vw - 16px); }
.homeNewsShelf .release small:last-child { border:0; }
.homeNewsShelf .release::after { display:none; }
.homeNewsShelf .release strong { min-height:0; }
.homeWorshipActions { display:flex; gap:8px; overflow-x:auto; margin-top:12px; }
.homeWorshipActions .btn { flex:0 0 auto; min-height:36px; padding-inline:11px; border-color:rgb(255 255 255 / 18%); background:rgb(255 255 255 / 8%); font-size:.78rem; }
.homeWorshipActions .ico { width:15px; height:15px; color:var(--cyan); }
.playlistMosaic { display:grid !important; grid-template-columns:repeat(2,1fr); gap:1px; overflow:hidden; background:#111; }
.playlistMosaic img { width:100%; height:100%; min-width:0; object-fit:cover; }
.libraryTile .libraryTileText strong,.libraryTile .libraryTileText small { display:block; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.playlistDirectory .rowText strong,.playlistDirectory .rowText small { display:block; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

/* Catalog earns its vertical space back from redundant labels and chrome. */
#main[data-screen="catalog"] .pageIntro { margin-top:0; margin-bottom:8px; }
#main[data-screen="catalog"] .catalogTools { margin-bottom:12px; }
#main[data-screen="catalog"] .catalogTools label > span:not(.sr) { display:none; }
#main[data-screen="catalog"] .catalogControls { padding:10px; }

/* Detail navigation belongs in the top header row. */
.detailHeader { display:flex; align-items:center; min-height:44px; margin:0 0 6px; }
.detailBack { display:inline-flex; align-items:center; gap:3px; min-width:44px; min-height:44px; padding:0 8px 0 2px; color:var(--ink); font-weight:650; }
.detailBack .ico { width:20px; height:20px; }
.backLink { display:none !important; }
.albumHero h1 { font-size:26px; font-weight:700; line-height:1.15; }
.albumArtist { margin:.4rem 0 0 !important; color:var(--cyan) !important; font-size:15px !important; font-weight:600; }
.albumActions { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr) 44px 44px; width:100%; }
.albumActions .albumPlay,.albumActions .albumShuffle { width:100%; min-width:0; padding-inline:10px; }
.albumActions .albumPlay { background:var(--cyan); color:rgb(var(--t-navy2)); }
.albumActions .albumShuffle { border-color:rgb(255 255 255 / 36%); background:transparent; }
.albumActions .albumPreview,.albumActions .btn:not(.albumPlay):not(.albumShuffle),.albumActions .btn.ghost:nth-last-child(n+5) { display:none; }
.albumNotes { margin-top:12px; color:var(--polish-secondary); }
.albumDesc { display:-webkit-box; margin:0; overflow:hidden; -webkit-box-orient:vertical; -webkit-line-clamp:3; line-height:1.45; }
.linerNotesText { min-height:32px; margin-top:4px; color:var(--cyan); }
.albumTrack .albumDuration { display:block; min-width:38px; text-align:right; font-size:13px; color:var(--polish-secondary); }
.albumTrack .rowText strong { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.albumTrack .num { color:var(--polish-secondary); }
.albumTrack.isPlaying .rowText strong { color:var(--cyan); }

/* Radio should always have a useful live readout rather than an empty lower half. */
.stationNow { display:flex; align-items:center; gap:12px; margin-top:14px; padding:14px; border:1px solid var(--line); border-radius:14px; background:rgb(255 255 255 / 6%); }
.stationNow div { display:grid; gap:3px; min-width:0; }
.stationNow span:not(.stationLivePill) { color:var(--polish-secondary); font-size:12px; }
.stationNow strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.stationLivePill { display:inline-flex; align-items:center; gap:5px; padding:5px 8px; border-radius:999px; color:#fff; background:rgb(var(--t-pink) / 16%); font-size:11px; font-weight:700; letter-spacing:.08em; }
.stationLivePill i { width:7px; height:7px; border-radius:50%; background:var(--magenta); animation:polish-live-pulse 1.6s ease-in-out infinite; }
.stationSchedule { margin-top:18px; }
.stationScheduleRow { display:flex; justify-content:space-between; gap:12px; padding:12px 0; border-block:1px solid var(--line); }
.stationScheduleRow small { color:var(--polish-secondary); }
@keyframes polish-live-pulse { 50% { opacity:.42; transform:scale(.72); } }

/* Backstage cards use a measured, consistent list treatment. */
.plusCard { min-height:96px; align-items:center !important; }
.plusCardIcon { width:40px !important; height:40px !important; min-width:40px; border-radius:12px !important; color:var(--cyan) !important; background:rgb(var(--t-glow2) / 14%) !important; }
.plusCard > span:nth-child(2) { min-width:0; }
.plusCard strong { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; text-transform:none; }
.plusCard small { display:-webkit-box; overflow:hidden; -webkit-box-orient:vertical; -webkit-line-clamp:2; min-height:2.5em; }
.plusCard > .ico { align-self:center; }

/* Library is a saved-song view: no duplicate affordances, generous title width. */
.libraryJournal { display:grid; grid-template-columns:40px minmax(0,1fr) 24px; align-items:center; gap:12px; width:100%; min-height:68px; margin:0 0 16px; padding:10px 0; text-align:left; border-bottom:1px solid var(--line); }
.libraryJournal > span:first-child { display:grid; place-items:center; width:40px; height:40px; border-radius:12px; background:rgb(var(--t-glow2) / 14%); color:var(--cyan); }
.libraryJournal strong,.libraryJournal small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.libraryJournal small { margin-top:3px; color:var(--polish-secondary); font-size:13px; }
.libraryPlayActions { display:grid; grid-template-columns:1fr 1fr; gap:8px; margin:16px 0 4px; }
.libraryPlayActions .btn { width:100%; }
.savedTrack .num,.savedTrack .rowMeta,.savedTrack [data-act="save"] { display:none; }
.savedTrack { grid-template-columns:minmax(0,1fr) 44px; }
.savedTrack .trackMain { grid-column:1; }
.savedTrack > .icon:last-child { grid-column:2; }

/* Settings keep the native select functional while presenting a calm iOS-style row. */
.settingsSleepRow { position:relative; cursor:pointer; }
.settingsSleepRow .settingsSelect { min-width:122px; min-height:44px; justify-content:flex-end; }
.settingsSleepRow select { position:absolute; inset:0; z-index:2; width:100%; opacity:0; cursor:pointer; }
.settingsSleepRow .settingsSelectValue { padding-right:19px; color:var(--polish-secondary); font-size:14px; white-space:nowrap; }
.settingsSleepRow .ico { position:absolute; right:0; }
.settingsRow small { -webkit-line-clamp:1; }

/* Now Playing brings the title-aligned quality marker and full-size transport. */
#panel[data-layout="full-player"] .fullPlayer .npMode:not(:empty) { position:static; display:block; margin:0 0 5px; padding:0; transform:none; border:0; border-radius:0; color:rgb(255 255 255 / 72%); font-size:11px; font-weight:600; letter-spacing:.06em; text-align:left; }
#panel[data-layout="full-player"] .fullPlayer .npTransport { display:grid; grid-template-columns:56px 44px 72px 44px 56px; align-items:center; justify-content:center; gap:4px; }
#panel[data-layout="full-player"] .fullPlayer .npTransport .npSkip { width:56px; min-width:56px; height:56px; min-height:56px; }
#panel[data-layout="full-player"] .fullPlayer .npSkip .ico { width:34px; height:34px; }
#panel[data-layout="full-player"] .fullPlayer .npTransport .npPlay { width:72px; height:72px; min-width:72px; min-height:72px; border-radius:50%; background:#fff; color:rgb(var(--t-navy2)); }
#panel[data-layout="full-player"] .fullPlayer .npPlay .ico { width:30px; height:30px; }
#panel[data-layout="full-player"] .fullPlayer .npModeToggle { width:44px; min-width:44px; height:44px; min-height:44px; }

@media (max-width:650px) {
  #dailyWelcome.dailyWelcome { min-height:calc(100dvh - var(--scroll-clearance) - 64px); }
  .homeNewsShelf .release { flex-basis:calc(80vw - 8px); }
  .albumHero { text-align:left; justify-items:stretch; padding:18px 0; }
  .albumHero > .releaseCover { justify-self:center; }
  .albumActions { grid-template-columns:minmax(0,1fr) minmax(0,1fr) 44px 44px; }
  #panel[data-layout="full-player"] .fullPlayer .npTransport { grid-template-columns:56px 36px 72px 36px 56px; gap:0; }
  #panel[data-layout="full-player"] .fullPlayer .npModeToggle { width:36px; min-width:36px; }
}

@media (prefers-reduced-motion:reduce) { .stationLivePill i { animation:none; } }

/* POLISH-3: compact, phone-safe finishing pass. */
/* Home */
#dailyWelcome .greetingPhoto { -webkit-mask-image:linear-gradient(to bottom,#000 0 78%,transparent 100%); mask-image:linear-gradient(to bottom,#000 0 78%,transparent 100%); }
#dailyWelcome .greetingPassImprint { display:grid; place-items:center; color:var(--cyan); }
#dailyWelcome .greetingPassImprint .ico { width:17px; height:17px; }
#dailyWelcome .greetingActions { align-items:stretch; }
#dailyWelcome .greetingActions > div { flex:0 1 auto; }
#dailyWelcome #dailySongAction { flex:1 1 10rem; }
#dailyWelcome #dailySongAction .greetingAction { align-items:center; min-width:10rem; white-space:normal; }
#dailyWelcome #dailySongAction .greetingAction span { display:grid; gap:1px; overflow:visible; white-space:normal; line-height:1.05; }
#dailyWelcome #dailySongAction .greetingAction b { font-size:.83rem; }
#dailyWelcome #dailySongAction .greetingSongName { display:block; max-width:18ch; overflow:hidden; color:currentColor; font-size:.7rem; font-weight:600; text-overflow:ellipsis; white-space:nowrap; }
#dailyWelcome #dailyAction .greetingAction,#dailyWelcome #dailyLiveAction .greetingAction { min-width:44px; padding-inline:12px !important; }
#dailyWelcome #dailyLiveAction .greetingAction { color:var(--cyan); }
.homeNewsShelf .release { flex:0 0 calc(78% - 8px); text-decoration:none; }
.homeNewsShelf .release small:last-child { text-decoration:none; }
.libraryTile .ico { width:14px; height:14px; margin-right:4px; color:var(--cyan); vertical-align:-2px; }
.gospelHome { padding:20px; }
.homeEndRow { display:grid !important; grid-template-columns:44px minmax(0,1fr) 24px; align-items:center; gap:12px; min-height:64px; margin:0; padding:10px 0; border:0; border-bottom:1px solid var(--line); border-radius:0 !important; background:transparent !important; color:var(--ink); text-align:left; }
.homeEndRow + .homeEndRow { margin-top:0; }
.homeEndRow > img,.homeEndRow .homeEndIcon { width:44px; height:44px; border-radius:12px; object-fit:cover; }
.homeEndRow .homeEndIcon { display:grid; place-items:center; color:var(--cyan); background:rgb(var(--t-glow2) / 16%); }
.homeEndRow > span:nth-child(2) { min-width:0; }
.homeEndRow strong,.homeEndRow small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.homeEndRow small { margin-top:3px; color:var(--polish-secondary); font-size:13px; }
.homeEndRow > .ico { justify-self:end; width:18px; height:18px; color:var(--polish-secondary); }
.studioHomeBand { display:block; margin:0 0 24px; }

/* Catalog */
.catalogSearchField { position:relative; display:flex !important; align-items:center; }
.catalogSearchField > .ico { position:absolute; left:12px; width:18px; height:18px; color:var(--polish-secondary); pointer-events:none; }
.catalogSearchField input { padding-left:40px !important; }
.releaseFilterOpen { width:44px; min-width:44px; padding:0 !important; }
.catalogTools .catalogRefine { margin-inline:0; }

/* Album */
.albumHero { position:relative; isolation:isolate; overflow:hidden; }
.albumHero::before { content:""; position:absolute; z-index:-2; inset:-25%; background:var(--album-ambient) center/cover; filter:blur(42px) saturate(1.15) brightness(.42); opacity:.6; transform:scale(1.08); }
.albumHero::after { content:""; position:absolute; z-index:-1; inset:0; background:linear-gradient(180deg,rgb(var(--t-navy4) / 22%),var(--bg) 100%); pointer-events:none; }
.albumHero > * { position:relative; z-index:1; }
.albumActions { grid-template-columns:minmax(0,1fr) minmax(0,1fr) 48px 48px; }
.albumActions .albumPlay,.albumActions .albumShuffle,.albumActionIcon { min-height:48px; height:48px; }
.albumActions .albumPlay,.albumActions .albumShuffle { margin:0; white-space:nowrap; }
.albumActionIcon { width:48px; min-width:48px; }
.albumHeartSlot { display:grid; place-items:center; flex:0 0 28px; width:28px; min-width:28px; height:48px; }
.albumHeartSlot .icon { width:28px; min-width:28px; min-height:44px; }
.albumHeartSlot .ico { width:18px; height:18px; }
.albumFooter { margin:26px 0 0; padding:20px 0; border-top:1px solid var(--line); border-bottom:1px solid var(--line); color:var(--polish-secondary); font-size:13px; line-height:1.6; }
.albumFooter p { margin:0; }
.albumMoreShelf { display:flex; gap:10px; overflow-x:auto; padding-bottom:4px; }
.albumMoreCover { flex:0 0 72px; width:72px; padding:0; border-radius:9px; overflow:hidden; }
.albumMoreCover .albumCover { display:block; width:72px; height:72px; object-fit:cover; }

/* Live, Backstage, Library, Settings */
.stationNow { margin-top:18px; }
.stationNow strong,.stationNow span:not(.stationLivePill) { overflow:visible; text-overflow:clip; white-space:normal; }
.stationNow div { min-width:0; }
.stationCatalog { margin-top:18px; }
.plusCard { padding:14px !important; }
.plusCardIcon { background:rgb(var(--t-glow2) / 16%) !important; opacity:1 !important; }
.plusCardIcon .ico { color:var(--cyan) !important; opacity:1 !important; }
.libraryPlayActions { grid-template-columns:auto 1fr 1fr; align-items:center; }
.librarySongCount { color:var(--polish-secondary); font-size:13px; white-space:nowrap; }
.libraryPlayActions .btn { min-height:44px; }
.libraryPlayActions .btn.primary { background:var(--cyan); border-color:var(--cyan); color:rgb(var(--t-navy2)); }
.libraryPlayActions .btn.ghost { border-color:rgb(var(--t-glow2) / 55%); }
.settingsExtra .catalogSampleSwitch { display:flex; flex-direction:row-reverse; justify-content:space-between; width:100%; }
.settingsExtra .catalogSampleSwitch > span { flex:1; }
.settingsExtra .catalogSampleHelp { display:-webkit-box; overflow:hidden; -webkit-box-orient:vertical; -webkit-line-clamp:2; font-size:13px; }
.settingsRow small { display:block; overflow:visible; -webkit-line-clamp:unset; text-overflow:clip; white-space:normal; }
.settingsRow:has([data-nav="plus/offline"]) small { max-width:52ch; }
.printedStub strong { display:inline-flex; width:max-content; padding:3px 7px; border-radius:999px; color:var(--cyan); background:rgb(var(--t-glow2) / 16%); font-size:13px; font-weight:600; }

/* Full player */
#panel[data-layout="full-player"] .fullPlayer .npMode:not(:empty) { display:inline-flex; align-items:center; width:max-content; padding:3px 7px; border:1px solid rgb(255 255 255 / 36%); border-radius:999px; font-size:10px; line-height:1.2; }
#panel[data-layout="full-player"] .fullPlayer .npTitleRow { align-items:center; }
#panel[data-layout="full-player"] .fullPlayer .npSave { align-self:center; }
#panel[data-layout="full-player"] .fullPlayer .npTransport { grid-template-columns:44px 56px 72px 56px 44px; justify-content:center; gap:clamp(8px,3vw,12px); }
#panel[data-layout="full-player"] .fullPlayer .npTransport .npModeToggle { width:44px; min-width:44px; height:44px; min-height:44px; }
#panel[data-layout="full-player"] .fullPlayer .npTransport .npSkip { width:56px; min-width:56px; height:56px; min-height:56px; }

@media (max-width:650px) {
  #dailyWelcome .greetingActions { flex-wrap:wrap; }
  #dailyWelcome #dailySongAction { flex-basis:100%; }
  .homeNewsShelf .release { flex-basis:calc(78% - 8px); }
  .albumActions { grid-template-columns:minmax(0,1fr) minmax(0,1fr) 48px 48px; }
  #panel[data-layout="full-player"] .fullPlayer .npTransport { grid-template-columns:44px 56px 72px 56px 44px; gap:clamp(6px,2.2vw,8px); }
}

@media (max-width:360px) {
  #panel[data-layout="full-player"] .fullPlayer .npTransport { grid-template-columns:40px 52px 68px 52px 40px; gap:5px; }
  #panel[data-layout="full-player"] .fullPlayer .npTransport .npModeToggle { width:40px; min-width:40px; }
  #panel[data-layout="full-player"] .fullPlayer .npTransport .npSkip { width:52px; min-width:52px; }
  #panel[data-layout="full-player"] .fullPlayer .npTransport .npPlay { width:68px; min-width:68px; height:68px; min-height:68px; }
}

/* POLISH-4: measured 390px corrections.  These come last so the previous
   visual experiments cannot reintroduce their old geometry. */
:root { --home-end-clearance:24px; }

/* The workspace already reserves persistent chrome; a second player-sized
   inset on main was leaving an empty page-end well. */
.workspace { padding-bottom:var(--player) !important; }
#main { padding-bottom:var(--home-end-clearance) !important; }
#main > :last-child { margin-bottom:0; }
.screenFoot,.listenerHome > :last-child,.settingsPage,.plusDirectory,.plusDetail { padding-bottom:0 !important; }

/* Home stage: photograph from the header edge to the player, with controls on
   the readable side and room for enlarged text. */
#main:has(#dailyWelcome[data-period=morning]) { padding-bottom:0 !important; }
#dailyWelcome.dailyWelcome[data-period=morning],
#dailyWelcome.dailyWelcome[data-period=morning] .dailyWelcomeCopy { min-height:100%; }
#dailyWelcome.dailyWelcome[data-period=morning] .greetingWords { min-width:0; }
#dailyWelcome .greetingActions { display:flex; flex-wrap:nowrap !important; gap:8px; width:min(100%,31rem); }
#dailyWelcome .greetingActions > div { flex:1 1 0; min-width:0; overflow:visible; }
#dailyWelcome #dailySongAction { flex:1.45 1 0; }
#dailyWelcome .greetingAction { min-height:44px; padding-inline:12px !important; }
#dailyWelcome #dailySongAction .greetingAction { display:grid; grid-template-columns:auto minmax(0,1fr); column-gap:6px; text-align:left; }
#dailyWelcome #dailySongAction .greetingAction span { display:grid; min-width:0; gap:2px; }
#dailyWelcome #dailySongAction .greetingSongName { display:block; max-width:100%; overflow:hidden; color:currentColor; font-size:.7rem; text-overflow:ellipsis; white-space:nowrap; }
#dailyWelcome #dailyAction .greetingAction,#dailyWelcome #dailyLiveAction .greetingAction { justify-content:center; }
#dailyWelcome + .homeNews { margin-top:24px; }
.homeNewsShelf .release:first-child::after,
.homeNewsShelf .release:first-child small:last-child { border:0 !important; box-shadow:none !important; }
.homeEndRow > img { flex:0 0 44px; width:44px !important; height:44px !important; min-width:44px; min-height:44px; object-fit:cover; border-radius:10px; }
.homeEndRow small { white-space:normal; overflow:visible; text-overflow:clip; display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; line-height:1.3; }
.playlistPinnedArt { position:relative; display:grid; flex:none; width:54px; height:54px; }
.playlistPinnedArt :is(.libraryCover,.libraryIcon,.playlistMosaic) { width:100%; height:100%; }
.playlistPin { position:absolute; top:-4px; right:-4px; display:grid; place-items:center; width:20px; height:20px; border:1px solid var(--bg); border-radius:50%; color:rgb(var(--t-navy2)); background:var(--cyan); }
.playlistPin .ico { width:12px; height:12px; margin:0; color:currentColor; }

/* Album: retain the art atmosphere without a panel edge, then keep the first
   tracks in reach. */
.albumHero { background:transparent !important; border:0 !important; border-radius:0 !important; }
.albumHero::after { background:linear-gradient(180deg,rgb(var(--t-navy4) / 8%),transparent 100%) !important; }
.albumActions .albumPlay { background:var(--cyan) !important; border-color:var(--cyan) !important; color:rgb(var(--t-navy2)) !important; }
.albumActions .albumShuffle { background:transparent !important; border-color:rgb(255 255 255 / 62%) !important; color:#fff !important; }
.albumActionIcon { color:#fff !important; }
.albumActionIcon[aria-pressed="true"] { color:var(--magenta) !important; }
.albumDesc { -webkit-line-clamp:2 !important; }
.albumMoreShelf { gap:12px; overflow-x:auto; overscroll-behavior-x:contain; padding:0 0 4px; scrollbar-width:none; }
.albumMoreShelf::-webkit-scrollbar,.stationCatalogShelf::-webkit-scrollbar { display:none; }
.albumMoreCover { display:grid; grid-template-rows:140px auto auto; gap:5px; flex:0 0 140px; width:140px; overflow:visible; border-radius:0; text-align:left; }
.albumMoreCover .albumCover { width:140px; height:140px; border-radius:10px; object-fit:cover; }
.albumMoreCover strong { overflow:hidden; color:var(--ink); font-size:.875rem; line-height:1.25; text-overflow:ellipsis; white-space:nowrap; }
.albumMoreCover small { color:var(--polish-secondary); font-size:.75rem; }

/* Live radio has catalog content only after catalog data is ready. */
.stationCatalogShelf { gap:12px; overflow-x:auto; overscroll-behavior-x:contain; padding:0 0 4px; scrollbar-width:none; }
.stationCatalogRelease { display:grid; grid-template-rows:120px auto auto; gap:5px; flex:0 0 120px; width:120px; min-width:120px; text-align:left; }
.stationCatalogRelease .albumCover { width:120px; height:120px; border-radius:10px; object-fit:cover; }
.stationCatalogRelease strong { overflow:hidden; font-size:.875rem; line-height:1.25; text-overflow:ellipsis; white-space:nowrap; }
.stationCatalogRelease small { color:var(--polish-secondary); font-size:.75rem; }
#stationAction { display:inline-flex; align-items:center; }
.stationPlayingBars { display:inline-grid; grid-template-columns:repeat(3,2px); align-items:end; gap:2px; width:10px; height:14px; margin-left:2px; }
.stationPlayingBars i { display:block; height:60%; border-radius:2px; background:currentColor; animation:station-bars .65s ease-in-out infinite alternate; }
.stationPlayingBars i:nth-child(2) { height:100%; animation-delay:-.2s; }.stationPlayingBars i:nth-child(3) { height:42%; animation-delay:-.4s; }
@keyframes station-bars { to { transform:scaleY(.38); } }

/* Backstage and Library share the bright, high-contrast tile system. */
.plusCardIcon { display:grid !important; place-items:center; width:44px !important; height:44px !important; min-width:44px !important; min-height:44px !important; color:rgb(var(--t-glow2)) !important; background:rgb(var(--t-glow2) / 16%) !important; }
.plusCardIcon .ico { width:22px !important; height:22px !important; color:currentColor !important; opacity:1 !important; }
.libraryJournal { margin-bottom:0; }
.libraryPlayActions { display:grid; grid-template-columns:1fr; gap:7px; margin:16px 0 4px; }
.librarySongCount { color:var(--polish-secondary); font-size:13px; }
.libraryActionButtons { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
.libraryActionButtons .btn { width:100%; min-height:44px; }

/* iOS-style setting labels sit above, rather than inside, their cards. */
.settingsSection { margin:0 0 1rem; }
.settingsSection > h2 { margin:0 0 6px; padding:0 4px; color:var(--polish-secondary); font-size:.72rem; font-weight:700; letter-spacing:.11em; text-transform:uppercase; }
.settingsSection .settingsGroup { margin:0; }
.settingsGroup h2 { display:none; }

/* A real element, not a decorative border, carries mini-player progress. */
#transport::before { content:none !important; display:none !important; }
#transport .miniProgress { position:absolute; z-index:2; inset:0 0 auto; height:2px; overflow:hidden; pointer-events:none; }
#transport .miniProgress[hidden] { display:none; }
#transport .miniProgress i { display:block; width:100%; height:100%; transform:scaleX(0); transform-origin:left center; background:var(--cyan); transition:transform 150ms linear; }

/* Five equal cells prevent transport controls from colliding at 375px. */
#panel[data-layout="full-player"] .fullPlayer .npTransport { display:grid !important; grid-template-columns:repeat(5,minmax(0,1fr)) !important; justify-items:center; align-items:center; gap:0 !important; width:100%; }
#panel[data-layout="full-player"] .fullPlayer .npTransport > :is(.icon,.npPlay) { grid-column:auto; align-self:center; justify-self:center; width:44px !important; min-width:44px !important; height:44px !important; min-height:44px !important; }
#panel[data-layout="full-player"] .fullPlayer .npTransport > .npSkip { width:52px !important; min-width:44px !important; height:52px !important; min-height:44px !important; }
#panel[data-layout="full-player"] .fullPlayer .npTransport > .npPlay { width:68px !important; min-width:68px !important; height:68px !important; min-height:68px !important; }
.fullPlayer .npModeToggle.on { color:var(--cyan) !important; }
.fullPlayer .npModeToggle.on::before { background:var(--cyan) !important; }
.npTitleActions { display:flex; align-items:center; gap:2px; flex:none; }
#panel[data-layout="full-player"] .fullPlayer .npMore { display:grid; place-items:center; width:44px; min-width:44px; height:44px; min-height:44px; color:#fff; }

/* Scrolled material must remain opaque enough to keep the final row readable. */
.topbar.isScrolled { background:rgb(var(--t-base) / 85%) !important; }
@media (max-width:650px) {
  #dailyWelcome .greetingActions { width:100%; }
  #dailyWelcome #dailySongAction { flex:1.35 1 0; }
  .playlistPinnedArt { width:38px; height:38px; }
  .albumMoreCover { grid-template-rows:140px auto auto; }
}
@media (prefers-reduced-motion:reduce) { .stationPlayingBars i { animation:none; } }

/* POLISH-5: final phone measurements and detail-screen alignment. */
/* Keep the morning artwork as the complete Home stage, but anchor its copy at
   the photo edge so the following shelf begins directly after the controls. */
#dailyWelcome.dailyWelcome[data-period=morning],
#dailyWelcome.dailyWelcome[data-period=morning] .dailyWelcomeCopy {
  min-height:calc(100dvh - var(--scroll-clearance) - 64px);
}
#dailyWelcome .greetingActions {
  display:flex;
  flex-wrap:nowrap !important;
  gap:10px;
  width:100%;
}
#dailyWelcome .greetingActions > div { min-width:0; overflow:hidden; }
#dailyWelcome #dailySongAction { flex:1 1 auto; min-width:0; }
#dailyWelcome #dailyAction,#dailyWelcome #dailyLiveAction { flex:0 0 auto; }
#dailyWelcome #dailyAction .greetingAction,#dailyWelcome #dailyLiveAction .greetingAction { width:auto; }
#dailyWelcome + .homeNews { margin-top:24px; }
.homeNewsShelf .release::after,.homeNewsShelf .release small:last-child { border:0 !important; box-shadow:none !important; background:transparent !important; }
.gospelHome + .section { margin-top:min(24px,2rem); }
.homeAlbumShelf .releaseArt,.homeFeaturedShelf .releaseArt { aspect-ratio:1 / 1; }

/* Details use one compact navigation surface instead of a second back row. */
.detailTopbar { display:grid; grid-template-columns:44px minmax(0,1fr) 44px; align-items:center; width:100%; min-height:52px; }
.detailTopbar > strong { overflow:hidden; padding-inline:8px; color:var(--ink); font-size:1rem; line-height:1.2; text-align:center; text-overflow:ellipsis; white-space:nowrap; }
.detailTopbar .compactBack { display:grid; place-items:center; width:44px; min-width:44px; height:44px; min-height:44px; padding:0; color:var(--ink); }
.detailTopbar .topActions { justify-self:end; }
.detailTopbar .searchPill { width:44px; min-width:44px; }
.detailHeader { display:none !important; }
.albumHero { margin-inline:calc(-1 * var(--pad)); padding-inline:var(--pad); }
.albumHero::before { opacity:.25; filter:blur(48px) saturate(1.08) brightness(.65); }
.albumHero::after { background:linear-gradient(180deg,rgb(var(--t-navy4) / 4%),var(--bg) 96%) !important; }
.albumActions { grid-template-columns:minmax(0,1fr) minmax(0,1fr) 48px 48px !important; }
.albumActions .albumPlay,.albumActions .albumShuffle { min-height:48px; }
.albumActionIcon { width:48px; min-width:48px; height:48px; min-height:48px; border-color:rgb(255 255 255 / 62%) !important; background:transparent !important; color:#fff !important; }
.albumActionIcon[aria-pressed="true"] { color:var(--magenta) !important; background:var(--magenta) !important; border-color:var(--magenta) !important; }
.albumActionIcon[aria-pressed="true"] .ico { color:#fff; fill:currentColor; }
.albumTrack .rowText strong { display:-webkit-box; overflow:hidden; white-space:normal; -webkit-box-orient:vertical; -webkit-line-clamp:2; }

/* The live indicator belongs to the hero that owns its listening action. */
.stationHeroStatus { display:flex; align-items:center; gap:9px; margin-top:12px; }
.stationHeroStatus > span:last-child { display:grid; min-width:0; gap:1px; }
.stationHeroStatus strong,.stationHeroStatus small { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.stationHeroStatus small { color:rgb(255 255 255 / 72%); font-size:.75rem; }
.stationHeroStatus + .heroActions { margin-top:12px; }
.stationCatalogRelease { grid-template-rows:120px minmax(0,2.5em) auto; }
.stationCatalogRelease strong { white-space:normal; }

/* Backstage and Library are compact list surfaces on a phone. */
.plusCard small { -webkit-line-clamp:1; min-height:1.25em; }
.savedTrack .rowText small { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.savedTrack.active .trackPosition { display:none; }
.savedTrack.active .num .ico { display:block; width:18px; height:18px; color:var(--cyan); }

/* Account sync keeps the real checkbox control, styled as an iOS switch. */
.syncChoice { display:flex; flex-direction:row-reverse; justify-content:space-between; gap:12px; }
.syncChoice input[role="switch"] { order:-1; flex:none; width:51px; height:31px; margin:0; appearance:none; -webkit-appearance:none; border:0; border-radius:999px; background:#59616a; box-shadow:inset 0 0 0 1px rgb(255 255 255 / 15%); cursor:pointer; transition:background .16s ease; }
.syncChoice input[role="switch"]::before { content:""; display:block; width:27px; height:27px; margin:2px; border-radius:50%; background:#fff; box-shadow:0 1px 3px rgb(0 0 0 / 30%); transition:transform .16s ease; }
.syncChoice input[role="switch"]:checked { background:var(--cyan); }
.syncChoice input[role="switch"]:checked::before { transform:translateX(20px); }
.syncChoice input[role="switch"]:disabled { opacity:.45; cursor:not-allowed; }
.syncSettings .bodyCopy { display:-webkit-box; overflow:hidden; -webkit-box-orient:vertical; -webkit-line-clamp:2; font-size:13px; line-height:1.4; }
.settingsRow:has([data-nav="plus/offline"]) small { display:block; overflow:visible; white-space:normal; -webkit-line-clamp:unset; text-overflow:clip; }
.appVersion { margin:14px 4px 0; color:var(--polish-secondary); font-size:12px; text-align:center; }

/* The player menu owns section looping; the transport exposes only playback. */
#panel[data-layout="full-player"] .npLoopUnderScrubber,#panel[data-layout="full-player"] #npLoopEditor { display:none !important; }
.fullPlayer .npModeToggle:not(.on) { opacity:.55; }
.fullPlayer .npModeToggle.on { color:var(--cyan) !important; opacity:1; }
#panel[data-layout="full-player"] .fullPlayer::before { filter:blur(68px) saturate(1.35) brightness(.48) hue-rotate(14deg); opacity:.92; }
#panel[data-layout="full-player"] .fullPlayer::after { background:linear-gradient(180deg,color-mix(in srgb, rgb(15 8 30 / 76%), rgb(var(--t-surf) / 76%) var(--t-mix)),color-mix(in srgb, rgb(8 7 22 / 84%), rgb(var(--t-surf) / 84%) var(--t-mix)) 48%,rgb(var(--t-base) / 94%)); }

@media (max-width:650px) {
  #dailyWelcome #dailySongAction .greetingAction { min-width:0; }
  .albumHero { margin-inline:calc(-1 * var(--pad)); }
}

/* POLISH-6: final hierarchy and readability pass. */
/* The only right-side header affordance is search; it always reaches the page edge. */
.topbar > .topActions { margin-left:auto; }

/* Detail titles remain quiet until their large counterpart has passed the bar. */
.detailTopbar > strong { opacity:0; transition:opacity 180ms ease; }
.detailTopbar > strong.is-visible { opacity:1; }
@media (prefers-reduced-motion:reduce) { .detailTopbar > strong { transition:none; } }

/* Home keeps its action short and gives the daily song a proper single-line caption. */
#dailyWelcome .greetingSongCaption { min-height:1.25em; margin:.6rem 0 .18rem; overflow:hidden; color:#f3efff; font-size:.78rem; font-weight:650; line-height:1.25; text-overflow:ellipsis; text-shadow:0 2px 12px rgb(var(--t-base)); white-space:nowrap; }
#dailyWelcome #dailySongAction .greetingAction { grid-template-columns:auto auto; justify-content:center; }
#dailyWelcome #dailySongAction .greetingAction span { display:block; }
#dailyWelcome #dailySongAction .greetingAction b { display:block; }
#dailyWelcome #dailySongAction .greetingSongName { display:none; }
#dailyWelcome.dailyWelcome[data-period=morning] .dailyWelcomeCopy::before { background:linear-gradient(0deg,rgb(var(--t-base) / 98%) 0%,rgb(var(--t-base) / 88%) 42%,rgb(var(--t-base) / 28%) 74%,transparent 100%),linear-gradient(var(--greeting-flow,90deg),rgb(var(--t-base) / 72%),transparent 66%); }
.homeNews .sectionHead { position:sticky; top:80px; z-index:1; margin-inline:calc(-1 * var(--pad)); padding:0 var(--pad) 10px; background:linear-gradient(var(--bg) 72%,transparent); }

/* Place the pin in the cover rather than over the collage, and keep all end links icon-led. */
.playlistPin { top:auto; right:-4px; bottom:-4px; width:16px; height:16px; border:2px solid rgb(var(--t-navy2)); }
.playlistPin .ico { width:9px; height:9px; }
.homeMoreForYou .studioHomeBand { margin-bottom:0; }

/* At an odd count, the final release owns the complete remaining grid row. */
@media (min-width:0) {
  #homeCatalog .homeFeaturedShelf > .release.homeFeaturedWide { grid-column:1 / -1; display:grid; grid-template-columns:88px minmax(0,1fr); align-items:center; gap:12px; text-align:left; }
  #homeCatalog .homeFeaturedShelf > .release.homeFeaturedWide .releaseArt { grid-row:1 / span 2; width:88px; height:88px; }
  #homeCatalog .homeFeaturedShelf > .release.homeFeaturedWide strong { margin:0; }
}

/* Catalog controls share a measured 44px rhythm from the content margin. */
#main[data-screen="catalog"] .catalogControls.releaseControls { display:grid; grid-template-columns:minmax(0,1fr) 44px; gap:8px; padding:0; background:none; border:0; }
#main[data-screen="catalog"] .catalogSearchField,#main[data-screen="catalog"] .releaseFilterOpen { min-height:44px; height:44px; }
#main[data-screen="catalog"] .releaseFilterOpen { display:inline-flex; align-items:center; justify-content:center; width:44px; min-width:44px; border-radius:12px; }
#main[data-screen="catalog"] .releaseDesktopFilter { display:none !important; }
#main[data-screen="catalog"] .releaseTypes { display:flex; flex-wrap:wrap; gap:8px; }
#main[data-screen="catalog"] .releaseTypes .chip { min-height:32px; padding:0 12px; }

/* Album controls retain every action while keeping Play and Shuffle equal. */
.albumActions { grid-template-columns:minmax(0,1fr) minmax(0,1fr) repeat(2,48px) !important; }
.albumActionIcon[aria-pressed="true"] { background:transparent !important; border-color:rgb(255 255 255 / 62%) !important; color:var(--magenta) !important; }
.albumActionIcon[aria-pressed="true"] .ico { fill:currentColor; color:currentColor; }
.albumDesc { display:block !important; position:relative; max-width:62ch; padding-right:3.75rem; line-height:1.45; }
.albumDescText { display:-webkit-box; overflow:hidden; -webkit-box-orient:vertical; -webkit-line-clamp:2; }
.albumDesc .linerNotesText { position:absolute; right:0; bottom:0; margin:0; padding-left:.35rem; color:var(--cyan); background:linear-gradient(90deg,transparent,var(--bg) .5rem); }
.albumTrack .rowText strong { display:block; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.albumTrack .num { opacity:.55; align-self:center; }
.albumMoreShelf { padding-right:var(--pad); }

/* Station identity and its newest singles stay readable without a dead gap. */
.stationHeroStatus strong,.stationHeroStatus small { overflow:visible; text-overflow:clip; white-space:normal; }
.stationSingles { margin-top:18px; }

/* Backstage cards use the full brand range and keep their subtitles useful. */
.plusCard small { display:-webkit-box; overflow:hidden; min-height:0; -webkit-box-orient:vertical; -webkit-line-clamp:2; }
.plusCard:nth-child(4n+1) .plusCardIcon { color:var(--cyan) !important; background:rgb(var(--t-glow2) / 16%) !important; }
.plusCard:nth-child(4n+2) .plusCardIcon { color:rgb(var(--t-violet3)) !important; background:rgb(var(--t-violet3) / 16%) !important; }
.plusCard:nth-child(4n+3) .plusCardIcon { color:var(--magenta) !important; background:rgb(232 77 177 / 16%) !important; }
.plusCard:nth-child(4n+4) .plusCardIcon { color:#78baff !important; background:rgb(120 186 255 / 16%) !important; }

/* Library metadata is album-only, and these three long subtitles can breathe. */
.savedTrack .rowText small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.libraryJournal:has([data-nav="plus/offline"]) small,.stationHeroStatus small { display:-webkit-box; overflow:hidden; -webkit-box-orient:vertical; -webkit-line-clamp:2; }

/* Setting rows centre their values and keep account management in the same row system. */
.settingsRow { align-items:center; }
#settingsAccount > h2 { display:none; }
#settingsAccount > .settingsRow { display:flex; width:100%; min-height:52px; padding:.7rem .85rem; border:1px solid var(--line); border-radius:.7rem; text-align:left; }
#settingsAccount > .settingsRow > .ico { margin-left:auto; }

/* Art drives the player background, but a dark violet veil protects text contrast. */
#panel[data-layout="full-player"] .fullPlayer::before { opacity:.55; filter:blur(68px) saturate(1.25) brightness(.52) hue-rotate(22deg); }
#panel[data-layout="full-player"] .fullPlayer::after { background:linear-gradient(180deg,color-mix(in srgb, rgb(11 8 31 / 84%), rgb(var(--t-surf) / 84%) var(--t-mix)),color-mix(in srgb, rgb(7 8 28 / 88%), rgb(var(--t-surf) / 88%) var(--t-mix)) 48%,rgb(var(--t-base) / 96%)); }
.fullPlayer .npModeToggle:not(.on) { color:rgb(255 255 255 / 50%); opacity:1; }
.fullPlayer .npModeToggle.on { color:var(--cyan) !important; }
.fullPlayer .npModeToggle.on::before { bottom:1px; width:4px; height:4px; background:var(--cyan) !important; }

@media (max-width:650px) {
  .homeNews .sectionHead { top:64px; }
  #homeCatalog .homeFeaturedShelf > .release.homeFeaturedWide { grid-template-columns:76px minmax(0,1fr); }
  #homeCatalog .homeFeaturedShelf > .release.homeFeaturedWide .releaseArt { width:76px; height:76px; }
}

/* Ivy: section headings never float over content; carousels hide their scrollbar */
.homeNews .sectionHead { position:static !important; top:auto !important; background:none !important; margin-inline:0 !important; padding:0 0 10px !important; }
.homeAlbumShelf, .homeNewsShelf, .stationCatalogShelf, [class*=Shelf] { scrollbar-width:none; }
.homeAlbumShelf::-webkit-scrollbar, .homeNewsShelf::-webkit-scrollbar, .stationCatalogShelf::-webkit-scrollbar, [class*=Shelf]::-webkit-scrollbar { display:none; }

/* POLISH-7: measured final corrections. */
/* Home keeps the three primary actions together on the readable side of the photo. */
#dailyWelcome .greetingActions { justify-content:flex-start; gap:10px; }
#dailyWelcome .greetingActions > div,
#dailyWelcome #dailySongAction { flex:0 0 auto; }
#dailyWelcome #dailySongAction .greetingAction { min-width:96px; }
#dailyWelcome .greetingActions .greetingAction { width:auto; }
#dailyWelcome .greetingSongCaption { color:rgb(255 255 255 / 70%); font-size:13px; font-weight:600; }
#dailyWelcome.dailyWelcome[data-period=morning] .dailyWelcomeCopy::before {
  background:linear-gradient(0deg,rgb(var(--t-base) / .94) 0%,rgb(var(--t-base) / .94) 45%,transparent 78%),linear-gradient(var(--greeting-flow,90deg),rgb(var(--t-base) / 72%),transparent 66%);
}
.homeNewsShelf .release { flex:0 0 calc(62% - 8px); }
.homeNewsShelf .releaseArt { position:relative; overflow:hidden; }
.homeNewsShelf .homeNewsTag { position:absolute; top:8px; left:8px; z-index:1; display:inline-flex; margin:0; padding:3px 7px; border-radius:999px; background:rgb(var(--t-base) / 76%); color:#fff !important; font-size:11px !important; font-weight:700; letter-spacing:.04em; line-height:1.2; text-transform:uppercase; }
.gospelHome blockquote p { line-height:1.45; }
.gospelHome a { gap:6px; }
.gospelHome a .ico { width:16px; height:16px; }
#homeCatalog .homeFeaturedShelf > .release.homeFeaturedWide { grid-template-columns:96px minmax(0,1fr); }
#homeCatalog .homeFeaturedShelf > .release.homeFeaturedWide .releaseArt { width:96px; height:96px; }
.homeMoreForYou { padding-bottom:calc(var(--player) + 24px); }

/* Catalog search and filters share one measured control row. */
#main[data-screen="catalog"] .catalogControls.releaseControls { gap:8px; margin-right:16px; }
#main[data-screen="catalog"] .catalogSearchField { align-items:center; }
#main[data-screen="catalog"] .catalogSearchField > .ico { width:18px; height:18px; }
#main[data-screen="catalog"] .releaseFilterOpen { flex:0 0 44px; width:44px; height:44px; min-height:44px; padding:0; }

/* Album detail stays centred and lets the tracks start immediately after the notes. */
.albumHero { flex-direction:column; justify-content:center; text-align:center; }
.albumHero > div:last-child { width:min(100%,62ch); }
.albumHero .albumActions { justify-content:center; }
.albumHero .albumNotes { text-align:left; }
.albumDesc { display:-webkit-box !important; max-width:62ch; padding-right:0; overflow:hidden; -webkit-box-orient:vertical; -webkit-line-clamp:2; line-height:1.45; }
.albumDescText { display:inline !important; }
.albumDesc .linerNotesText { position:static; display:inline; min-height:0; margin:0; padding:0; background:none; vertical-align:baseline; }
.albumTracks { margin-top:12px; }
.albumTracks .trackList { border-top:0; }
.albumActionIcon[aria-pressed="true"] { background:transparent !important; border-color:rgb(255 255 255 / 62%) !important; color:var(--magenta) !important; }
.albumActionIcon[aria-pressed="true"] .ico { color:currentColor; fill:currentColor; }
.albumTrack { display:grid; grid-template-columns:24px minmax(0,1fr) 40px 36px; gap:8px; }
.albumTrack .trackMain { min-width:0; }
.albumTrack .albumDuration { min-width:40px; width:40px; }
.albumTrack .albumHeartSlot { width:36px; min-width:36px; }
.albumTrack .rowText strong { display:block; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.albumMore .sectionHead { flex-wrap:nowrap; }
.albumMore .sectionHead h2 { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.albumMore .sectionHead .textBtn { flex:0 0 auto; white-space:nowrap; }

/* The art remains visible behind the now-playing copy without reducing contrast. */
#panel[data-layout="full-player"] .fullPlayer::before { opacity:.8; }
#panel[data-layout="full-player"] .fullPlayer::after { background:linear-gradient(180deg,color-mix(in srgb, rgb(8 8 24 / .45), rgb(var(--t-surf) / .45) var(--t-mix)) 0%,color-mix(in srgb, rgb(6 7 18 / .72), rgb(var(--t-surf) / .72) var(--t-mix)) 55%,rgb(var(--t-base) / .9) 100%); }
.fullPlayer .npModeToggle[aria-pressed="false"] { opacity:.5; }
.fullPlayer .npModeToggle[aria-pressed="true"] { color:var(--cyan) !important; opacity:1; }
.fullPlayer .npModeToggle[aria-pressed="true"]::before { content:""; position:absolute; left:50%; bottom:1px; width:4px; height:4px; border-radius:50%; background:var(--cyan); box-shadow:none; transform:translateX(-50%); }

/* Live radio has a compact station identity and complete release captions. */
.stationHero .heroCover { top:24px; right:24px; bottom:auto; width:72px; height:72px; }
.stationHero .heroCover .albumCover { width:72px; height:72px; border-radius:12px; object-fit:cover; }
.stationHeroStatus { align-items:flex-start; }
.stationHeroStatus > span:last-child { display:grid; gap:2px; }
.stationHeroStatus strong { white-space:nowrap; }
.stationHeroStatus small { -webkit-line-clamp:1; }
.stationCatalogRelease strong { display:-webkit-box; min-height:2.5em; overflow:hidden; -webkit-box-orient:vertical; -webkit-line-clamp:2; white-space:normal; }

/* Backstage has a legible title treatment and compact tool cards. */
.plusHero::after { background:linear-gradient(0deg,rgb(var(--t-base) / .88),rgb(var(--t-base) / .28) 58%,transparent),linear-gradient(45deg,rgb(var(--t-base) / .68),transparent 78%); }
.plusHero > div { position:relative; z-index:1; }
.plusHero p { margin:.45rem 0 0; color:rgb(255 255 255 / 82%); font-size:.95rem; line-height:1.35; }
.plusCard { padding:12px !important; }
.plusCard small { -webkit-line-clamp:2; }

/* Library and Settings retain their existing rows while removing extra framing. */
.libraryPlayActions { display:flex; align-items:center; gap:10px; }
.librarySongCount { flex:0 0 auto; color:var(--polish-secondary); font-size:13px; }
.libraryActionButtons { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); flex:1; gap:8px; }
#settingsAccount { margin:0 0 1rem; padding:.25rem clamp(1rem,3vw,1.5rem) .5rem; border:1px solid color-mix(in srgb, rgb(48 53 61 / 1), rgb(var(--t-surf) / 1) var(--t-mix)); border-radius:.9rem; background:color-mix(in srgb, rgb(17 21 25 / 1), rgb(var(--t-surf) / 1) var(--t-mix)); }
#settingsAccount > h2 { display:none; }
#settingsAccount > .settingsRow { min-height:3.25rem; padding:.65rem 0; border:0; border-radius:0; background:transparent; }
.printedStub strong { color:var(--cyan); font-size:15px; font-weight:700; }

@media (max-width:650px) {
  #dailyWelcome .greetingActions { flex-wrap:wrap !important; }
  .homeNewsShelf .release { flex-basis:calc(62% - 8px); }
  .stationHero .heroCover { top:18px; right:18px; }
  .albumTrack { grid-template-columns:20px minmax(0,1fr) 40px 36px; gap:4px; }
  .homeMoreForYou { padding-bottom:calc(var(--player) + 24px); }
}

/* Ivy: album track rows have 5 parts (number, title, duration, heart slot, overflow); keep them on one line */
.trackRow.albumTrack { grid-template-columns: 22px minmax(0,1fr) 40px 32px 36px !important; align-items:center; }
.trackRow.albumTrack > * { grid-row:1 !important; }

/* POLISH-8: measured release, catalog, detail, radio, library, and player refinements. */
/* Keep the Latest tag out of the artwork; it is release metadata, not cover art. */
.homeNewsShelf .homeNewsMeta { display:flex; align-items:center; flex-wrap:wrap; gap:5px; margin-top:3px; white-space:normal; }
.homeNewsShelf .homeNewsTag { position:static; display:inline-flex; align-items:center; margin:0; padding:2px 6px; border:0; border-radius:999px; background:rgb(var(--t-glow2) / 18%); color:var(--cyan) !important; font-size:11px !important; font-weight:750; letter-spacing:.04em; line-height:1.2; text-transform:uppercase; }

/* Pinned playlists keep the mosaic clear; the pin follows the title instead. */
.libraryTile .playlistPin { position:static; display:inline-grid; place-items:center; width:auto; height:auto; margin-left:5px; border:0; border-radius:0; background:transparent; color:var(--cyan); vertical-align:-2px; }
.libraryTile .playlistPin .ico { width:13px; height:13px; margin:0; color:currentColor; }

/* The render code marks the odd card explicitly, so this never depends on DOM order. */
#homeCatalog .homeFeaturedShelf > .release.homeFeaturedWide { grid-column:1 / -1; grid-template-columns:96px minmax(0,1fr); gap:12px; }
#homeCatalog .homeFeaturedShelf > .release.homeFeaturedWide .releaseArt { width:96px; height:96px; }
#homeCatalog .homeFeaturedShelf > .release.homeFeaturedWide strong { align-self:end; margin:0; }
#homeCatalog .homeFeaturedShelf > .release.homeFeaturedWide small { align-self:start; }
.homeMoreForYou { padding-bottom:24px; }

/* Search and filter form one 44px row aligned to the content inset. */
#main[data-screen="catalog"] .catalogControls.releaseControls { gap:8px; margin-right:0; }
#main[data-screen="catalog"] .catalogSearchField > .ico { top:50%; transform:translateY(-50%); }
#main[data-screen="catalog"] .releaseFilterOpen { width:44px; min-width:44px; height:44px; min-height:44px; }

/* Reserve room for an inline More link when album copy is clamped to two lines. */
.albumDesc { display:block !important; position:relative; max-height:2.9em; padding-right:3.6rem; overflow:hidden; }
.albumDescText { display:-webkit-box !important; overflow:hidden; -webkit-box-orient:vertical; -webkit-line-clamp:2; }
.albumDescMore { position:absolute; right:0; bottom:0; min-height:0; margin:0; padding-left:.4rem; color:var(--cyan); background:linear-gradient(90deg,transparent,var(--bg) .55rem); }
.albumDesc.is-expanded { max-height:none; padding-right:0; }
.albumDesc.is-expanded .albumDescText { display:block !important; overflow:visible; }
.albumNotes > .linerNotesText { min-height:36px; margin-top:4px; color:var(--cyan); }
.albumMore .sectionHead h2 { overflow:visible; font-size:18px; text-overflow:clip; }
.albumMoreCover { flex:0 0 calc((100% - 24px) / 2.3); width:calc((100% - 24px) / 2.3); grid-template-rows:auto auto auto; }
.albumMoreCover .albumCover { width:100%; height:auto; aspect-ratio:1; }

/* Catalog captions can use their second line, without inserting fake punctuation. */
.stationCatalogRelease strong { display:-webkit-box; overflow:hidden; -webkit-box-orient:vertical; -webkit-line-clamp:2; text-overflow:clip; white-space:normal; }

/* The station hero is content-sized: station details on the left and the 64px mark on the right. */
.stationHero { display:grid; grid-template-columns:minmax(0,1fr) 64px; align-items:center; min-height:0; height:auto; padding:18px; }
.stationHero .heroCopy { width:auto; padding:0; }
.stationHero .heroCover { position:static; width:64px; height:64px; filter:none; opacity:1; }
.stationHero .heroCover .albumCover { width:64px; height:64px; border-radius:12px; }
.stationHeroStatus { display:grid; gap:5px; margin:0; }
.stationHeroStatus > span:last-child { gap:2px; }
.stationHeroStatus + .heroActions { margin-top:12px; }

/* Library controls form one compact row beneath the chips. */
.libraryPlayActions { margin:10px 0 4px; }
.libraryActionButtons .btn { min-height:40px; height:40px; padding-inline:12px; }

/* POLISH-12: final interaction and information-density refinements. */
/* Home playlist titles stay on one scannable line; status belongs with the count. */
#homeLibrary .libraryTiles .libraryTile .libraryTileText strong { display:block !important; overflow:hidden !important; -webkit-box-orient:initial !important; -webkit-line-clamp:1 !important; line-height:1.2; text-overflow:ellipsis !important; white-space:nowrap !important; }
#homeLibrary .libraryTiles .libraryTile .libraryTileText small { display:flex; align-items:center; gap:4px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.playlistMetaIcon { display:inline-grid; flex:none; place-items:center; color:var(--cyan); }
.playlistMetaIcon .ico { width:13px; height:13px; }

/* Album description actions form a stable row when More is available. */
.albumNotes { position:relative; padding-bottom:34px; }
.albumNotes .albumDesc .albumDescMore { display:block !important; min-height:30px; margin:2px 0 0 !important; padding:4px 0 !important; }
.albumNotes .linerNotesText { position:absolute; right:0; bottom:0; display:inline-flex; align-items:center; gap:2px; min-height:30px; margin:0; }
.albumNotes .linerNotesText .ico { width:14px; height:14px; }

/* The release finder reserves a 16px trailing inset for its 44px filter affordance. */
#main[data-screen="catalog"] .catalogControls.releaseControls { gap:8px; margin-right:16px; }
#main[data-screen="catalog"] .releaseFilterOpen { width:44px; min-width:44px; height:44px; min-height:44px; padding:0; }

/* Live status breathes softly while its compact hero sizes only to its content. */
.stationLivePill i { animation:polish-live-pulse 2s ease-in-out infinite; }
@keyframes polish-live-pulse { 0%,100% { opacity:1; } 50% { opacity:.45; } }
.stationHero { min-height:0; height:auto; }
@media (prefers-reduced-motion:reduce) { .stationLivePill i { animation:none; } }

/* Journal and downloads are compact, parallel library destinations. */
.libraryShortcuts { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; margin:0 0 14px; }
.libraryShortcuts .libraryJournal { display:grid; grid-template-columns:28px minmax(0,1fr); align-items:center; gap:8px; min-height:72px; height:72px; padding:10px; }
.libraryShortcuts .libraryJournal > :first-child { display:grid; place-items:center; width:28px; height:28px; color:var(--cyan); }
.libraryShortcuts .libraryJournal > :first-child .ico { width:18px; height:18px; }
.libraryShortcuts .libraryJournal > :last-child.ico { display:none; }
.libraryShortcuts .libraryJournal strong,.libraryShortcuts .libraryJournal small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.libraryShortcuts .libraryJournal small { margin-top:3px; color:var(--polish-secondary); }

/* Details is a pure disclosure control; hidden help stays out of the visual flow. */
.syncDetailsCopy[hidden] { display:none !important; }
.syncDetails { display:inline !important; min-height:0; margin-left:4px; padding:0; color:var(--cyan); font:inherit; font-weight:650; }

/* Keep the save control centred against the full title-and-artist block. */
#panel[data-layout="full-player"] .fullPlayer .npTitleActions { align-self:center; }

/* Account management is another More row, not an isolated card. */
#settingsAccount { margin:0; padding:0; border:0; border-radius:0; background:transparent; }
#settingsAccount > .settingsRow { min-height:52px; padding:.7rem .85rem; border:0; border-radius:0; background:transparent; }

/* Saturated ambient art plus a dark vertical veil preserves 4.5:1 title contrast. */
#panel[data-layout="full-player"] .fullPlayer::before { filter:blur(68px) saturate(1.6) brightness(.75); }
#panel[data-layout="full-player"] .fullPlayer::after { background:linear-gradient(180deg,color-mix(in srgb, rgb(8 8 24 / .35), rgb(var(--t-surf) / .35) var(--t-mix)),rgb(var(--t-base) / .85)); }
.fullPlayer :is(.npTitle,.npArtist) { text-shadow:0 1px 12px rgba(0,0,0,.45); }

@media (max-width:650px) {
  #homeCatalog .homeFeaturedShelf > .release.homeFeaturedWide { grid-template-columns:96px minmax(0,1fr); }
  #homeCatalog .homeFeaturedShelf > .release.homeFeaturedWide .releaseArt { width:96px; height:96px; }
}

/* Ivy: phone header spans the full width so search sits at the right margin */
@media (max-width:650px) {
  #topbar { width:auto !important; margin-inline:0 !important; padding-inline:16px !important; }
}

/* Ivy: Now Playing glow leans violet, never toward orange (red + positive hue-rotate = orange) */
.fullPlayer::before { filter: blur(68px) saturate(1.5) brightness(.72) hue-rotate(-62deg) !important; }

/* POLISH-9: compact, touch-safe final pass. */
/* Radio */
.stationLivePill { display:inline-flex; width:max-content; align-self:flex-start; padding:4px 10px; }

/* Album */
.albumDesc { position:relative; max-height:none; padding-right:0; overflow:visible; }
.albumDescText { display:-webkit-box; padding-right:4.5rem; overflow:hidden; -webkit-box-orient:vertical; -webkit-line-clamp:2; line-height:1.45; -webkit-mask-image:linear-gradient(to right,#000 0 70%,transparent 100%); mask-image:linear-gradient(to right,#000 0 70%,transparent 100%); }
.albumDescMore { position:absolute; right:0; bottom:0; display:inline; min-height:0; margin:0; padding:0; color:var(--cyan); background:linear-gradient(90deg,transparent,var(--bg) .55rem); font-weight:600; line-height:1.45; }
.albumDescMore::before { content:"…\00a0"; color:var(--polish-secondary); font-weight:400; }
.albumDesc.is-expanded .albumDescText { display:block; padding-right:0; -webkit-mask-image:none; mask-image:none; }
.albumHero .albumActions { margin-top:8px; }
.albumTracks { margin-top:4px; }

/* Home */
.libraryTile .libraryTileText strong { display:-webkit-box; overflow:hidden; white-space:normal; -webkit-box-orient:vertical; -webkit-line-clamp:2; line-height:1.2; }
.libraryTile .libraryCover { align-self:stretch; width:auto; height:auto; aspect-ratio:1; }
.libraryTile .playlistMosaic img { width:100%; height:100%; }
.homeMoreForYou .homeEndRow:nth-child(3n+1) .homeEndIcon { color:var(--cyan); background:rgb(var(--t-glow2) / 16%); }
.homeMoreForYou .homeEndRow:nth-child(3n+2) .homeEndIcon { color:rgb(var(--t-violet3)); background:rgb(var(--t-violet3) / 16%); }
.homeMoreForYou .homeEndRow:nth-child(3n) .homeEndIcon { color:var(--magenta); background:rgb(232 77 177 / 16%); }
#homeCatalog .homeFeaturedShelf > .release.homeFeaturedWide { display:grid; grid-template-columns:96px minmax(0,1fr); align-items:center; gap:12px; padding:0; border:1px solid var(--line); border-radius:12px; background:var(--surface); overflow:hidden; }
#homeCatalog .homeFeaturedShelf > .release.homeFeaturedWide .releaseArt { width:96px; height:96px; border-radius:0; }
#homeCatalog .homeFeaturedShelf > .release.homeFeaturedWide strong { align-self:end; margin:0; }
#homeCatalog .homeFeaturedShelf > .release.homeFeaturedWide small { align-self:start; }

/* Current-track state uses animated cyan bars across album and playlist lists. */
.trackRow .trackPlayingBars { display:none; grid-template-columns:repeat(3,2px); align-items:end; justify-content:center; gap:2px; width:18px; height:18px; color:var(--cyan); }
.trackRow .trackPlayingBars i { display:block; width:2px; height:8px; border-radius:2px; background:currentColor; animation:polish-track-bars .65s ease-in-out infinite alternate; }
.trackRow .trackPlayingBars i:nth-child(2) { height:16px; animation-delay:-.22s; }
.trackRow .trackPlayingBars i:nth-child(3) { height:11px; animation-delay:-.44s; }
.trackRow.isPlaying .trackPosition { display:none; }
.trackRow.isPlaying .trackPlayingBars { display:inline-grid; }
.trackRow.isPlaying .rowText strong { color:var(--cyan) !important; }
@keyframes polish-track-bars { to { transform:scaleY(.35); opacity:.58; } }

/* Backstage */
.plusHero::after { background:linear-gradient(0deg,rgb(var(--t-base) / .9),rgb(var(--t-base) / .38) 58%,transparent),linear-gradient(45deg,rgb(var(--t-base) / .68),transparent 78%); }
.plusGrid { gap:12px; }
.plusCard { min-height:0; padding:12px 14px !important; gap:12px; }

/* Library */
.libraryPlayActions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
.librarySongCount { grid-column:1 / -1; }
.libraryActionButtons { display:contents; }
.libraryActionButtons .btn { width:100%; flex:1 1 0; }

/* Settings */
.syncSettings { display:block; margin:0 0 1rem; padding:0; border:0; }
.syncSettings > h2 { margin:0 0 6px; padding:0 4px; color:var(--polish-secondary); font-size:.72rem; font-weight:700; letter-spacing:.11em; text-transform:uppercase; }
.syncSettings .settingsGroup { margin:0; }
.syncSettings .bodyCopy { margin:0 0 10px; }
.syncSettings [role=status] { display:block; margin-top:10px; color:var(--polish-secondary); font-size:13px; }
#settingsAccount { margin:0; padding:.25rem clamp(1rem,3vw,1.5rem) .5rem; border:1px solid color-mix(in srgb, rgb(48 53 61 / 1), rgb(var(--t-surf) / 1) var(--t-mix)); border-radius:.9rem; background:color-mix(in srgb, rgb(17 21 25 / 1), rgb(var(--t-surf) / 1) var(--t-mix)); }
.passStatus { display:inline-flex; width:max-content; padding:3px 7px; border-radius:999px; color:var(--cyan); background:rgb(var(--t-glow2) / 16%); font-size:13px; font-weight:700; }

/* Now Playing */
#panel[data-layout="full-player"] .fullPlayer .npMode { grid-column:3; justify-self:end; align-self:center; display:inline-flex; width:max-content; min-height:0; margin:0; padding:0; border:0; border-radius:0; color:rgb(255 255 255 / 72%); background:none; font-size:11px; font-weight:600; letter-spacing:.06em; line-height:1.2; text-align:right; text-transform:uppercase; }
#panel[data-layout="full-player"] .fullPlayer .npMode:empty { display:none; }
#panel[data-layout="full-player"] .fullPlayer .npTimeline { grid-template-columns:minmax(0,1fr) auto minmax(0,1fr) !important; margin:0; }
#panel[data-layout="full-player"] .fullPlayer .npTimeline .waveTimeline { grid-column:1 / -1; }
#panel[data-layout="full-player"] .fullPlayer .npTimeline [data-length] { justify-self:center; }
#panel[data-layout="full-player"] .fullPlayer .npControls { display:grid; gap:12px; }
#panel[data-layout="full-player"] .fullPlayer .npTransport,#panel[data-layout="full-player"] .fullPlayer .npVolume,#panel[data-layout="full-player"] .fullPlayer .npTools { margin:0; }

@media (max-width:650px) {
  #dailyWelcome.dailyWelcome[data-period=morning],
  #dailyWelcome.dailyWelcome[data-period=morning] .dailyWelcomeCopy { min-height:calc(85dvh - var(--scroll-clearance) - 26px); }
}

@media (prefers-reduced-motion:reduce) {
  .trackRow .trackPlayingBars i { animation:none; }
}

/* POLISH-10: finishing pass. These rules intentionally precede the protected Ivy blocks. */
/* The mini player carries a quiet, full-width current-position line on every loaded track. */
#transport .miniProgress { display:block; background:rgb(255 255 255 / 12%); }
#transport .miniProgress[hidden] { display:none; }
#transport .miniProgress i { background:var(--cyan); }
#transport::after { content:""; position:absolute; z-index:1; right:0; bottom:100%; left:0; height:28px; pointer-events:none; background:linear-gradient(to top, var(--bg), transparent); }

/* Shared shelf links retain the same readable rhythm and icon size. */
.sectionHead .textBtn,.homeNews .textBtn { color:var(--cyan); font-size:15px; font-weight:600; }
.sectionHead .textBtn .ico,.homeNews .textBtn .ico { width:14px; height:14px; }

/* Home */
.gospelHome h2 { margin:0 0 15px; color:var(--ink); font-size:clamp(1.4rem,2vw,2.15rem); font-weight:800; letter-spacing:-.048em; }
#main .homeMoreForYou .homeEndRow small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

/* Catalog */
#main[data-screen="catalog"] .releaseTypes .chip { min-height:32px; height:32px; }
#main[data-screen="catalog"] .releaseTypes .chip.on { border-color:var(--cyan); background:var(--cyan); color:color-mix(in srgb, rgb(7 19 42 / 1), rgb(var(--t-surf) / 1) var(--t-mix)); }
#main[data-screen="catalog"] .releaseTypes .chip:not(.on) { background:transparent; color:var(--ink); }

/* Album */
.albumHero::after { background:linear-gradient(180deg,rgb(var(--t-navy4) / 8%),var(--bg) 100%) !important; }
.albumTracks { background:var(--bg); }
#main .albumTrack .albumHeartSlot:empty { display:none; }
#main .trackRow.albumTrack:not(:has(.albumHeartSlot > *)) { grid-template-columns:22px minmax(0,1fr) 40px 36px !important; }
#main .albumTrack .rowText strong { display:-webkit-box; overflow:hidden; white-space:normal; -webkit-box-orient:vertical; -webkit-line-clamp:2; text-overflow:clip; }
#main .albumTrack .num,.albumFooter { color:rgb(255 255 255 / 60%); opacity:1; }

/* Live radio */
.stationNowPlaying { display:flex; align-items:center; gap:10px; min-width:0; margin-top:12px; color:rgb(255 255 255 / 82%); font-size:.875rem; line-height:1.3; }
.stationNowPlayingArt { flex:none; width:40px; height:40px; border-radius:8px; object-fit:cover; }
.stationNowPlaying span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.stationCatalog:not(:has(+ .stationSingles)),.stationSingles { margin-bottom:16px; }

/* Backstage, Library, and Settings */
.plusCard { min-height:96px; }
.plusCard small { -webkit-line-clamp:2; min-height:2.5em; }
.librarySongCount { color:rgb(255 255 255 / 70%); font-size:14px; }
.passStatus { align-self:center; padding:4px 10px; color:var(--cyan); background:rgb(var(--t-glow2) / 14%); font-size:12px; font-weight:700; }

/* Now Playing uses the requested art-to-controls rhythm. */
#panel[data-layout="full-player"] .fullPlayer .npGrid { row-gap:16px; }
#panel[data-layout="full-player"] .fullPlayer .npArt { margin-bottom:4px; }
#panel[data-layout="full-player"] .fullPlayer .npDetails { margin:0; }
#panel[data-layout="full-player"] .fullPlayer .npTimeline { grid-template-columns:minmax(0,1fr) minmax(0,1fr) !important; }
#panel[data-layout="full-player"] .fullPlayer .npTimeline [data-time] { justify-self:start; }
#panel[data-layout="full-player"] .fullPlayer .npTimeline [data-length] { justify-self:end; }
#panel[data-layout="full-player"] .fullPlayer .npArtist .npMode:not(:empty) { display:inline-flex; align-items:center; min-height:0; margin-left:7px; padding:2px 6px; border:1px solid rgb(255 255 255 / 36%); border-radius:999px; color:rgb(255 255 255 / 82%); background:transparent; font-size:10px; font-weight:600; letter-spacing:.06em; line-height:1.2; vertical-align:middle; text-transform:uppercase; }
#panel[data-layout="full-player"] .fullPlayer .npControls { gap:20px; }
#panel[data-layout="full-player"] .fullPlayer .npTools { margin-top:-4px; }

/* POLISH-11: final material, metadata, and playback refinements. */
/* The single sticky header owns both detail navigation and tab branding. */
#topbar.isScrolled { background:rgb(var(--t-base) / 72%); border-bottom:.5px solid rgb(255 255 255 / 18%); backdrop-filter:blur(20px) saturate(1.4); -webkit-backdrop-filter:blur(20px) saturate(1.4); }

/* Home */
#dailyWelcome .greetingSongCaption { display:inline-flex; align-items:center; gap:6px; width:max-content; max-width:100%; min-height:0; margin:.6rem 0 .18rem; padding:6px 9px; overflow:hidden; border:0; border-radius:999px; background:rgb(var(--t-base) / 72%); color:rgb(255 255 255 / 80%); font-size:13px; font-weight:600; line-height:1.2; text-overflow:ellipsis; text-shadow:none; white-space:nowrap; }
#dailyWelcome .greetingSongCaption .ico { flex:none; width:14px; height:14px; }
#dailyWelcome .greetingSongCaption span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
#dailyWelcome .greetingPassStub { background:rgb(var(--t-base) / 72%); backdrop-filter:blur(12px); -webkit-backdrop-filter:blur(12px); white-space:nowrap; }

/* Album */
.albumMore .sectionHead { gap:8px; }
.albumMore .sectionHead h2 { overflow:visible; font-size:18px; text-overflow:clip; white-space:nowrap; }
.albumMoreShelf { scroll-snap-type:x mandatory; scroll-padding-inline:16px; }
.albumMoreCover { scroll-snap-align:start; scroll-snap-stop:always; }
@media (max-width:350px) { .albumMore .sectionHead h2 { font-size:17px; } }

/* Backstage and Library */
.plusCardIcon { width:44px !important; height:44px !important; min-width:44px !important; min-height:44px !important; }
.plusCardIcon .ico { width:22px !important; height:22px !important; }
.plusCard:nth-child(4n+1) .plusCardIcon { background:rgb(var(--t-glow2) / 22%) !important; }
.plusCard:nth-child(4n+2) .plusCardIcon { background:rgb(var(--t-violet3) / 22%) !important; }
.plusCard:nth-child(4n+3) .plusCardIcon { background:rgb(232 77 177 / 22%) !important; }
.plusCard:nth-child(4n+4) .plusCardIcon { background:rgb(120 186 255 / 22%) !important; }
.savedTrack .coverTiny { width:48px; height:48px; }
.savedTrack .rowText small { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

/* Now Playing */
#panel[data-layout="full-player"] .fullPlayer .npTimeline .range:not(.volume)::-webkit-slider-thumb { width:12px; height:12px; margin-top:-3.5px; }
#panel[data-layout="full-player"] .fullPlayer .npTimeline .range:not(.volume):active::-webkit-slider-thumb { transform:scale(1.333333); }
#panel[data-layout="full-player"] .fullPlayer .npTimeline .range:not(.volume)::-moz-range-thumb { width:12px; height:12px; }
#panel[data-layout="full-player"] .fullPlayer .npTimeline .range:not(.volume):active::-moz-range-thumb { width:16px; height:16px; }
#panel[data-layout="full-player"] .fullPlayer .npArtist .npMode:not(:empty) { border-color:rgb(255 255 255 / 40%); color:rgb(255 255 255 / 80%); }

/* Ivy: Home playlist tiles = Spotify-style shortcut rows (square cover tied to tile height, never width-driven) */
.libraryTiles .libraryTile { display:grid !important; grid-template-columns:56px minmax(0,1fr) !important; align-items:center; gap:10px; height:auto !important; min-height:56px; padding:0 10px 0 0 !important; overflow:hidden; }
.libraryTiles .libraryTile .libraryCover { width:56px !important; height:56px !important; min-height:0 !important; aspect-ratio:1/1; flex:none !important; }
.libraryTiles .libraryTile .libraryTileText { height:auto !important; min-width:0; }
.libraryTiles .libraryTile .libraryTileText strong { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; white-space:normal; line-height:1.2; }

/* Ivy: settings help text is never cut off */
.syncSettings p, .syncSettings small, .syncSettings span { -webkit-line-clamp:unset !important; display:block; overflow:visible !important; text-overflow:clip !important; white-space:normal !important; }

/* Ivy: album "More" stays inline at the end of the blurb */
.albumDesc { position:relative; }
.albumDesc .albumDescMore { display:inline !important; margin-left:4px; float:none !important; }

/* Ivy: one ellipsis only; "More" sits directly under the clamped blurb */
.albumDesc .albumDescMore { position:static !important; display:inline-block !important; margin:2px 0 0 !important; padding:4px 0 !important; text-align:left !important; width:auto !important; background:none !important; }
.albumDesc .albumDescMore::before { content:none !important; }
.albumDesc { -webkit-line-clamp:unset !important; display:block !important; overflow:visible !important; }

/* Ivy: expanded album blurb shows in full */
.albumDesc.is-expanded .albumDescText { -webkit-line-clamp:unset !important; display:block !important; overflow:visible !important; max-height:none !important; }
.albumDescText:focus { outline:none; }
.albumDesc .albumDescMore[hidden] { display:none !important; }

/* Ivy: mini-player progress readable at a glance */
#transport .miniProgress { height:3px !important; background:rgb(255 255 255 / 18%) !important; border-radius:2px; }
#transport .miniProgress i { border-radius:2px; box-shadow:0 0 6px rgb(0 229 255 / 55%); }

/* Ivy: sync help paragraphs are plain blocks; revealed details flow inline after the summary */
.syncSettings p.bodyCopy { display:block !important; -webkit-line-clamp:unset !important; }
.syncSettings .syncDetailsCopy:not([hidden]) { display:inline !important; }

/* Ivy: every album row keeps the same 5 columns so durations line up (heart slot reserved even when empty) */
.trackRow.albumTrack, .trackRow.albumTrack:not(:has(.albumHeartSlot > *)) { grid-template-columns: 22px minmax(0,1fr) 40px 32px 36px !important; }
.trackRow.albumTrack .albumHeartSlot { display:block !important; grid-column:4 !important; width:32px; min-width:32px; }
.trackRow.albumTrack .albumDuration { grid-column:3 !important; text-align:right; }
.trackRow.albumTrack > :last-child { grid-column:5 !important; }

/* Ivy: Library shortcuts read in full (stacked rows on phones) */
@media (max-width:650px){
  .libraryShortcuts { grid-template-columns:1fr !important; gap:8px !important; }
  .libraryShortcuts > * { min-height:56px !important; }
  .libraryShortcuts strong, .libraryShortcuts span, .libraryShortcuts small { white-space:normal !important; overflow:visible !important; text-overflow:clip !important; }
}
/* Ivy: beat the #main empty-heart collapse so every row keeps 5 aligned columns */
#main .trackRow.albumTrack, #main .trackRow.albumTrack:not(:has(.albumHeartSlot > *)) { grid-template-columns:22px minmax(0,1fr) 40px 32px 36px !important; gap:4px !important; }
#main .albumTrack .albumHeartSlot, #main .albumTrack .albumHeartSlot:empty { display:block !important; grid-column:4 !important; width:32px !important; min-width:32px !important; }

/* Ivy: 8px between My Pass and search in the header */
#topbar .topActions { gap:8px !important; }

/* Ivy: Settings value column aligned (value + chevron share one right edge) */
#main .settingsGroup .settingsValue, #main .settingsRow .value, #main .settingsRow small:last-of-type { min-width:56px; text-align:right; }
