/* round thirteen: the opened album (albums3d.js). The album turns front-on at the left; its information reads on the right.
   On a phone the album sits at the top and the information is a sheet below it. */
.music .mu-cap, .music .mu-index, .music .mu-steps, .music .mu-next { transition: opacity .25s cubic-bezier(.23, 1, .32, 1); }
.music.mu-open .mu-cap, .music.mu-open .mu-index, .music.mu-open .mu-steps, .music.mu-open .mu-next { opacity: 0; pointer-events: none; }
.mu-detail { position: absolute; z-index: 4; top: 76px; bottom: 28px; right: var(--pad); width: min(420px, 36vw); overflow-y: auto; overscroll-behavior: contain;
  display: grid; align-content: start; gap: 10px; padding-right: 4px;
  opacity: 0; transform: translateY(12px); transition: opacity .3s cubic-bezier(.23, 1, .32, 1), transform .3s cubic-bezier(.23, 1, .32, 1); }
.mu-detail.on { opacity: 1; transform: none; }
.mu-detail[hidden] { display: none; }
.mu-detail .mu-x { justify-self: end; min-height: 44px; box-sizing: border-box; padding: 12px 18px; margin-bottom: 14px; }
.mu-d-artist { margin: 0; color: var(--mute); }
.mu-detail h3 { margin: 0; font-size: clamp(30px, 3.2vw, 48px); font-weight: 700; letter-spacing: -.02em; line-height: 1.02; text-wrap: balance; }
.mu-d-meta { margin: 2px 0 6px; color: var(--mute); font-size: 14px; }
.mu-d-about { margin: 6px 0 0; font-size: 17px; line-height: 1.5; max-width: 52ch; white-space: pre-line; }
.mu-d-credits { margin: 0; color: var(--mute); font-size: 14px; line-height: 1.5; white-space: pre-line; }
.mu-d-act, .mu-d-links { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0 4px; }
.mu-d-act .pill, .mu-d-links .pill { min-height: 44px; box-sizing: border-box; padding: 12px 18px; border: 1px solid var(--ink); background: transparent; }
.mu-d-act .pill:hover, .mu-d-links .pill:hover { background: rgba(255, 255, 255, .6); }
/* platform logos as the links: the logo at its true shape, a 48 px target, a quiet lift on hover */
.mu-d-links { align-items: center; margin-inline-start: -7px; gap: 4px; }
.mu-logo { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; transition: transform .16s cubic-bezier(.23, 1, .32, 1); }
.mu-logo img { width: 34px; height: 34px; object-fit: contain; display: block; }
.mu-logo:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .mu-logo:hover { transform: translateY(-2px); } }
@media (prefers-reduced-motion: reduce) { .mu-logo { transition: none; } }
.mu-d-k { margin: 18px 0 2px; color: var(--mute); font-size: 14px; }
.mu-wip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mu-wip button { all: unset; cursor: zoom-in; aspect-ratio: 1; border-radius: 4px; overflow: hidden; background: rgba(0, 0, 0, .05); }
.mu-wip button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.mu-wip img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .2s cubic-bezier(.23, 1, .32, 1); }
@media (hover: hover) and (pointer: fine) { .mu-wip button:hover img { transform: scale(1.04); } }
.mu-lightbox { position: absolute; inset: 0; z-index: 6; display: grid; place-items: center; padding: 72px var(--pad) 40px; background: rgba(230, 228, 222, .94); cursor: zoom-out; }
.mu-lightbox[hidden] { display: none; }
.mu-lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; box-shadow: 0 20px 60px rgba(0, 0, 0, .18); }
.mu-lightbox .pill { position: absolute; top: 20px; right: var(--pad); min-height: 44px; box-sizing: border-box; padding: 12px 18px; }
@media (max-width: 760px) {
  .mu-detail { top: auto; bottom: 0; left: 0; right: 0; width: auto; max-height: 52svh; padding: 18px var(--pad) max(20px, env(safe-area-inset-bottom));
    background: rgba(236, 234, 229, .96); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-radius: 18px 18px 0 0; box-shadow: 0 -10px 40px rgba(0, 0, 0, .08); }
  .mu-detail .mu-x { position: sticky; top: 0; margin-bottom: 0; }
  .mu-detail h3 { font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) { .mu-detail { transform: none; transition: opacity .2s ease; } .mu-wip img { transition: none; } }

/* desktop (2026-11-13): Music no longer holds the page's scroll. The track is browsed sideways: a trackpad swipe, a drag,
   the arrows or the keyboard; a long rail and one line say so. Square, like the rest of the interface. */
.music .mu-how { display: none; }
@media (min-width: 760px) {
  .music .mu-how { display: block; font-style: normal; font-size: 15px; color: #000; margin-right: 16px; white-space: nowrap; }
  .music .mu-rail { display: block; position: relative; width: clamp(140px, 16vw, 260px); height: 3px; margin: 0 16px 0 0; background: rgba(0, 0, 0, .2); border-radius: 0; }
  .music .mu-rail b { position: absolute; top: -3px; left: 0; height: 9px; width: 18%; border-radius: 0; background: #000; transform: translateX(calc(var(--p, 0) * 455%)); transition: transform .45s cubic-bezier(.23, 1, .32, 1); }
  .music .mu-steps .pill#muPrev, .music .mu-steps .pill#muNext { width: 56px; height: 48px; font-size: 20px; padding: 0; border-radius: 0; display: inline-flex; align-items: center; justify-content: center; }
}

/* the covers stand flat on the paper while the 3D track loads (albums3d.js, #muLoad): the front one large, the next ones
   smaller to its right, the way the track will open, so there is never a bare pink screen */
.mu-load { display: grid !important; place-items: center; align-content: center; gap: 18px; }
.mu-load.gone { opacity: 0; }
.mu-ph { position: relative; width: min(46vw, 62vh); aspect-ratio: 1; }
.mu-ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; box-shadow: 0 2px 2px rgba(0,0,0,.12), 0 22px 40px -18px rgba(0,0,0,.45);
  transform: translateX(calc(var(--i) * 34%)) scale(calc(1 - var(--i) * .16)); transform-origin: 0 50%; z-index: calc(10 - var(--i)); filter: brightness(calc(1 - var(--i) * .06)); }
.mu-ph img:first-child { transform: none; }
.mu-load span { font-size: 14px; opacity: .7; }
/* a phone: the front cover stands exactly where the 3D front album will, so loading and loaded look the same (Omer, 2026-11-15) */
@media (max-width: 759px) { .mu-load { place-items: start; align-content: start; justify-content: start; } .mu-ph { width: 85vw; margin: calc(37svh - 42.5vw) 0 0 2vw; } .mu-load span { display: none; } }
