/* Featured: music. A live island that follows the songs the moment they change, and four tiles for the rest. */
#music { padding-top: 96px; }
#music .section-head h2 em { font-style: italic; }
.mx { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 22px; align-items: stretch; }

/* the stage: the top of a Mac with the open island */
.mx-stage { position: relative; min-height: 360px; border-radius: 26px; overflow: hidden; isolation: isolate;
  background: radial-gradient(120% 90% at 20% 110%, color-mix(in srgb, var(--mx-tone, #ff6685) 38%, transparent), transparent 62%),
              radial-gradient(90% 80% at 95% 0%, rgba(120, 140, 255, 0.22), transparent 60%),
              linear-gradient(180deg, #12111a, #1c1622);
  box-shadow: inset 0 0 0 1px var(--hairline); transition: --mx-tone 900ms ease; }
.mx-bar { position: absolute; inset: 0 0 auto 0; height: 30px; display: flex; align-items: center; justify-content: space-between; padding: 0 18px; font-size: 12px; color: rgba(255, 255, 255, 0.72); background: rgba(10, 10, 14, 0.45); }
.mx-bar b { color: #fff; font-weight: 600; margin-right: 14px; }
.mx-bar span { margin-right: 14px; }
.mx-bar .r span { margin: 0 0 0 14px; font-variant-numeric: tabular-nums; }
@media (max-width: 720px) { .mx-bar .l span, .mx-bar .r span:not(:last-child) { display: none; } }

.mx-island { position: absolute; left: 50%; top: 0; width: min(92%, 520px); transform: translateX(-50%); padding: 44px 22px 20px; border-radius: 0 0 30px 30px; background: #000; color: #fff; box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.8); }
.mx-notch { position: absolute; left: 50%; top: 0; width: 120px; height: 30px; transform: translateX(-50%); border-radius: 0 0 12px 12px; background: #000; box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.07); }
.mx-row { display: grid; grid-template-columns: 74px minmax(0, 1fr) auto; gap: 16px; align-items: center; }
.mx-art { position: relative; width: 74px; height: 74px; border-radius: 16px; overflow: hidden; box-shadow: 0 12px 30px -14px var(--mx-tone, #ff6685); }
.mx-art i { position: absolute; inset: 0; background: var(--g); opacity: 0; transition: opacity 520ms var(--ease-out); }
.mx-art i.on { opacity: 1; }
.mx-src { font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.42); }
.mx-words { position: relative; height: 44px; margin-top: 3px; }
.mx-words > div { position: absolute; inset: 0; transition: opacity 420ms var(--ease-out), transform 520ms var(--ease-out), filter 420ms ease; }
.mx-words > div.out { opacity: 0; transform: translateY(-6px); filter: blur(3px); }
.mx-words > div.in { opacity: 0; transform: translateY(6px); filter: blur(3px); }
.mx-words b { display: block; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mx-words span { display: block; font-size: 13.5px; color: rgba(255, 255, 255, 0.62); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mx-wave { display: flex; gap: 3px; align-items: end; height: 22px; }
.mx-wave i { width: 3px; height: 100%; border-radius: 2px; background: var(--mx-tone, #ff6685); transform-origin: 50% 100%; animation: mxwave 1s ease-in-out infinite alternate; transition: background-color 600ms ease; }
.mx-wave i:nth-child(2) { animation-duration: 0.74s; animation-delay: -0.3s; }
.mx-wave i:nth-child(3) { animation-duration: 1.18s; animation-delay: -0.55s; }
.mx-wave i:nth-child(4) { animation-duration: 0.86s; animation-delay: -0.2s; }
.mx-stage.paused .mx-wave i { animation-play-state: paused; }
@keyframes mxwave { from { transform: scaleY(0.25); } to { transform: scaleY(1); } }
.mx-time { display: grid; grid-template-columns: 38px 1fr 38px; gap: 10px; align-items: center; margin-top: 16px; font: 500 11.5px/1 var(--rounded); font-variant-numeric: tabular-nums; color: rgba(255, 255, 255, 0.5); }
.mx-time span:last-child { text-align: right; }
.mx-track { height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.14); overflow: hidden; }
.mx-fill { display: block; height: 100%; width: 0; border-radius: 2px; background: var(--mx-tone, #ff6685); transition: background-color 600ms ease; }
.mx-ctl { display: flex; justify-content: center; gap: 14px; margin-top: 14px; }
.mx-ctl button { display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, 0.09); color: #fff; cursor: pointer; transition: transform 160ms var(--ease-out), background-color 200ms ease; }
.mx-ctl button:hover { background: rgba(255, 255, 255, 0.16); }
.mx-ctl button:active { transform: scale(0.94); }
.mx-ctl button.play { width: 46px; height: 46px; background: #fff; color: #000; }
.mx-ctl svg { width: 14px; height: 14px; }
.mx-ctl .play svg { width: 18px; height: 18px; }
.mx-note { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px; max-width: calc(100% - 32px); padding: 8px 14px; border-radius: 999px; background: rgba(0, 0, 0, 0.42); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); font-size: 12.5px; color: rgba(255, 255, 255, 0.82); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 0; transition: opacity 400ms ease; }
.mx-note.on { opacity: 1; }
.mx-note i { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); }

/* the four tiles */
.mx-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.mx-tile { display: flex; flex-direction: column; gap: 8px; padding: 20px 20px 18px; border-radius: 22px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--hairline); color: var(--muted); text-decoration: none; font-size: 14.5px; line-height: 1.45; transition: transform 220ms var(--ease-out), box-shadow 220ms ease, background-color 220ms ease; }
.mx-tile:hover { transform: translateY(-2px); background: #13110f; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18); }
.mx-tile b { color: var(--ink); font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.mx-tile .ico { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; color: var(--h); background: color-mix(in srgb, var(--h) 16%, transparent); }
.mx-tile .ico svg { width: 18px; height: 18px; }
.mx-tile .go { margin-top: auto; padding-top: 4px; font-size: 13px; font-weight: 600; color: var(--h); }

@media (max-width: 960px) { .mx { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .mx-stage { min-height: 330px; }
  .mx-island { width: calc(100% - 20px); padding: 40px 16px 16px; }
  .mx-row { grid-template-columns: 58px minmax(0, 1fr) auto; gap: 12px; }
  .mx-art { width: 58px; height: 58px; border-radius: 13px; }
  .mx-tiles { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .mx-wave i { animation: none; transform: scaleY(0.7); }
  .mx-words > div, .mx-art i, .mx-tile, .mx-note { transition: none; }
}

/* the lock screen under it: the same song in the bubble above your name */
.mx-lock { position: absolute; left: 50%; bottom: 66px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 12px; width: calc(100% - 32px); }
.mx-pill { display: inline-flex; align-items: center; gap: 12px; height: 54px; max-width: 100%; padding: 8px 18px 8px 8px; border-radius: 999px; background: rgba(0, 0, 0, 0.3); backdrop-filter: blur(20px) saturate(1.4); -webkit-backdrop-filter: blur(20px) saturate(1.4); color: #fff; font-size: 14px; white-space: nowrap; }
.mx-pill-art { flex: none; width: 38px; height: 38px; border-radius: 10px; background: var(--mx-g, linear-gradient(135deg, #ff6f61, #8f5cff)); transition: background 520ms ease; }
.mx-pill-words { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.mx-pill-words b { font-weight: 600; }
.mx-pill-words span { color: rgba(255, 255, 255, 0.55); }
.mx-pill-bars { flex: none; display: flex; gap: 2px; align-items: end; height: 14px; margin-left: 2px; }
.mx-pill-bars i { width: 2.5px; height: 100%; border-radius: 2px; background: rgba(255, 255, 255, 0.88); transform-origin: 50% 100%; animation: mxwave 0.9s ease-in-out infinite alternate; }
.mx-pill-bars i:nth-child(2) { animation-duration: 0.7s; animation-delay: -0.25s; }
.mx-pill-bars i:nth-child(3) { animation-duration: 1.1s; animation-delay: -0.5s; }
.mx-pill-bars i:nth-child(4) { animation-duration: 0.8s; animation-delay: -0.15s; }
.mx-stage.paused .mx-pill-bars i { animation-play-state: paused; }
.mx-face { width: 44px; height: 44px; border-radius: 50%; background: radial-gradient(circle at 50% 38%, rgba(255, 255, 255, 0.55) 0 22%, transparent 23%), radial-gradient(ellipse 60% 42% at 50% 100%, rgba(255, 255, 255, 0.55) 0 98%, transparent 100%), rgba(255, 255, 255, 0.16); }
.mx-field { padding: 6px 16px; border-radius: 999px; background: rgba(255, 255, 255, 0.12); font-size: 12px; color: rgba(255, 255, 255, 0.55); }
@media (max-width: 560px) {
  .mx-stage { min-height: 500px; }
  .mx-lock { bottom: 60px; gap: 10px; }
  .mx-pill { height: 48px; padding: 6px 14px 6px 6px; font-size: 13px; }
  .mx-pill-art { width: 36px; height: 36px; }
}
@media (prefers-reduced-motion: reduce) { .mx-pill-bars i { animation: none; transform: scaleY(0.7); } .mx-pill-art { transition: none; } }
