/* Little Ambo: The Album — cover and full-album player */
.la-album { --ns-pink: #ff3ea5; --ns-cyan: #2ee6ff; position: relative; margin-top: var(--s-8); display: grid; gap: var(--s-8); justify-items: center; isolation: isolate; }
.la-album::before { content: ""; position: absolute; inset: 4% 0 auto; height: 70%; z-index: -1; background: radial-gradient(closest-side, color-mix(in oklab, var(--ns-pink) 30%, transparent), transparent 70%), radial-gradient(closest-side at 70% 40%, color-mix(in oklab, var(--ns-cyan) 24%, transparent), transparent 70%); filter: blur(40px); opacity: .55; pointer-events: none; }

.la-album__cover { margin: 0; width: min(100%, 560px); }
.la-album__cover img { display: block; width: 100%; height: auto; aspect-ratio: 1; border-radius: 22px; box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 30px 80px -20px rgba(0,0,0,.8), 0 0 60px -10px color-mix(in oklab, var(--ns-pink) 55%, transparent); }
.la-album__cover figcaption { margin-top: var(--s-4); text-align: center; color: var(--c1-mute); font-size: var(--text-sm); }
.la-album__cover figcaption strong { display: block; color: var(--c1-snow); font-family: var(--font-display); font-size: var(--text-lg); }

.la-player { width: min(100%, 880px); border-radius: 24px; padding: var(--s-6); background: linear-gradient(150deg, color-mix(in oklab, var(--ns-pink) 14%, transparent), transparent 45%), linear-gradient(330deg, color-mix(in oklab, var(--ns-cyan) 12%, transparent), transparent 45%), #0b0d18; border: 1px solid rgba(255,255,255,.09); box-shadow: 0 24px 70px -30px rgba(0,0,0,.9), inset 0 1px 0 rgba(255,255,255,.06); }

.la-player__head { display: grid; grid-template-columns: auto 1fr auto; gap: var(--s-4); align-items: center; }
.la-player__art { width: 88px; height: 88px; border-radius: 14px; display: block; box-shadow: 0 8px 24px -8px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.1); }
.la-player__now { min-width: 0; display: grid; gap: 4px; }
.la-player__label { font-family: var(--font-mono); font-size: var(--text-2xs); letter-spacing: .12em; text-transform: uppercase; color: var(--ns-cyan); }
.la-player__title { font-family: var(--font-display); font-size: var(--text-2xl); line-height: 1.1; color: var(--c1-snow); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.la-player__artist { display: flex; align-items: center; gap: 8px; color: var(--c1-fog); font-size: var(--text-sm); min-width: 0; }
.la-player__artist span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.la-player__logo { width: 64px; height: 64px; border-radius: 50%; display: block; box-shadow: 0 0 0 1px rgba(255,255,255,.1), 0 0 24px -4px color-mix(in oklab, var(--ns-pink) 70%, transparent); }
.la-player__brand { display: grid; justify-items: center; gap: 6px; text-decoration: none; color: var(--c1-mute); font-family: var(--font-mono); font-size: var(--text-2xs); letter-spacing: .1em; text-transform: uppercase; }
.la-player__brand:hover, .la-player__brand:focus-visible { color: var(--ns-pink); }

.la-eq { display: inline-flex; gap: 2px; align-items: flex-end; height: 12px; }
.la-eq i { width: 3px; height: 30%; background: var(--ns-pink); border-radius: 1px; }
.is-playing .la-eq i { animation: la-eq .9s ease-in-out infinite alternate; }
.la-eq i:nth-child(2) { animation-delay: -.3s !important; background: var(--ns-cyan); }
.la-eq i:nth-child(3) { animation-delay: -.6s !important; }
@keyframes la-eq { 0% { height: 25%; } 100% { height: 100%; } }

.la-player__seek { display: grid; grid-template-columns: 3.2em 1fr 3.2em; gap: var(--s-3); align-items: center; margin-top: var(--s-6); font-family: var(--font-mono); font-size: var(--text-xs); color: var(--c1-mute); font-variant-numeric: tabular-nums; }
.la-player__seek span:last-child { text-align: right; }
.la-range { -webkit-appearance: none; appearance: none; width: 100%; height: 22px; background: transparent; cursor: pointer; --p: 0%; }
.la-range::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--ns-pink), var(--ns-cyan)) 0 / var(--p) 100% no-repeat, rgba(255,255,255,.12); }
.la-range::-moz-range-track { height: 6px; border-radius: 3px; background: rgba(255,255,255,.12); }
.la-range::-moz-range-progress { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--ns-pink), var(--ns-cyan)); }
.la-range::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; margin-top: -5px; border-radius: 50%; background: #fff; box-shadow: 0 0 10px var(--ns-cyan); border: 0; }
.la-range::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 0 10px var(--ns-cyan); border: 0; }
.la-range:focus-visible { outline: 2px solid var(--ns-cyan); outline-offset: 4px; border-radius: 4px; }

.la-player__controls { display: flex; justify-content: center; align-items: center; gap: var(--s-4); margin-top: var(--s-4); }
.la-pbtn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; color: var(--c1-fog); cursor: pointer; transition: color .15s, background .15s, transform .15s; }
.la-pbtn svg { width: 22px; height: 22px; }
.la-pbtn:hover { color: #fff; background: rgba(255,255,255,.07); }
.la-pbtn:focus-visible { outline: 2px solid var(--ns-cyan); outline-offset: 2px; }
.la-pbtn[aria-pressed="true"] { color: var(--ns-cyan); }
.la-pbtn--play { width: 64px; height: 64px; color: #0b0d18; background: linear-gradient(135deg, var(--ns-pink), var(--ns-cyan)); box-shadow: 0 0 30px -6px var(--ns-pink); }
.la-pbtn--play svg { width: 28px; height: 28px; }
.la-pbtn--play:hover { color: #0b0d18; background: linear-gradient(135deg, var(--ns-pink), var(--ns-cyan)); transform: scale(1.05); }
.la-pbtn .i-pause, .is-playing .la-pbtn--play .i-play { display: none; }
.is-playing .la-pbtn--play .i-pause { display: block; }

.la-playlist { list-style: none; margin: var(--s-6) 0 0; padding: var(--s-4) 0 0; border-top: 1px solid rgba(255,255,255,.08); display: grid; grid-template-columns: 1fr; gap: 2px var(--s-5); counter-reset: none; }
@media (min-width: 720px) { .la-playlist { grid-template-columns: 1fr 1fr; grid-auto-flow: column; grid-template-rows: repeat(10, auto); } }
.la-playlist button { width: 100%; display: grid; grid-template-columns: 2em 1fr auto; gap: var(--s-3); align-items: center; padding: 9px 10px; border: 0; border-radius: 10px; background: transparent; color: var(--c1-fog); font: inherit; font-size: var(--text-sm); text-align: left; cursor: pointer; }
.la-playlist button:hover { background: rgba(255,255,255,.05); color: #fff; }
.la-playlist button:focus-visible { outline: 2px solid var(--ns-cyan); outline-offset: -2px; }
.la-playlist .n, .la-playlist .d { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--c1-mute); font-variant-numeric: tabular-nums; }
.la-playlist .t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.la-playlist [aria-current="true"] { background: linear-gradient(90deg, color-mix(in oklab, var(--ns-pink) 22%, transparent), transparent); color: #fff; }
.la-playlist [aria-current="true"] .n { color: var(--ns-pink); }
.la-playlist .la-eq { display: none; }
.la-playlist [aria-current="true"] .la-eq { display: inline-flex; }
.la-playlist [aria-current="true"] .num { display: none; }

.la-player__note { margin: var(--s-4) 0 0; color: var(--c1-mute); font-size: var(--text-xs); text-align: center; }

@media (max-width: 560px) {
  .la-player { padding: var(--s-5) var(--s-4); border-radius: 20px; }
  .la-player__head { grid-template-columns: auto 1fr; }
  .la-player__brand { display: none; }
  .la-player__art { width: 64px; height: 64px; }
  .la-player__title { font-size: var(--text-xl); }
}
@media (prefers-reduced-motion: reduce) { .is-playing .la-eq i { animation: none; height: 70%; } .la-pbtn--play:hover { transform: none; } }
.la-player__artist img { width: 20px; height: 20px; border-radius: 50%; flex: none; }
@media (max-width: 560px) { .la-player__album { display: none; } }
.is-loading .la-pbtn--play { animation: la-load 1s ease-in-out infinite alternate; }
@keyframes la-load { from { box-shadow: 0 0 12px -6px var(--ns-pink); } to { box-shadow: 0 0 34px -2px var(--ns-cyan); } }
@media (prefers-reduced-motion: reduce) { .is-loading .la-pbtn--play { animation: none; opacity: .75; } }
