/* Muno 3 — the full-screen player, the queue, and the "continue listening"
   shelf. Everything here is additive: remove this file and muno-v3.js and the
   site is exactly what it was. Colours come from the tokens in muno.css, so
   both themes are covered without a second set of rules. */

/* -- 1. Now playing ------------------------------------------------------- */
.np{position:fixed;inset:0;z-index:92;display:flex;align-items:flex-end;justify-content:center}
.np[hidden]{display:none}
.np__backdrop{position:absolute;inset:0;background:rgba(10,8,14,.6)}
.np__sheet{
  position:relative;width:100%;height:100%;min-width:0;
  display:flex;flex-direction:column;
  background:var(--ink);color:var(--text);
  padding:calc(var(--safe-t) + 6px) calc(18px + var(--safe-r)) calc(var(--safe-b) + 14px) calc(18px + var(--safe-l));
  overflow:hidden;
  animation:np-rise .32s var(--ease);
}
.np__sheet.is-dragging{transition:none}
.np__sheet.is-settling{transition:transform .2s var(--ease)}
@keyframes np-rise{from{transform:translateY(100%)}to{transform:none}}

.np__head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex:none;height:52px;touch-action:none}
.np__label{font-size:.8125rem;color:var(--muted);letter-spacing:.01em}
.np__icon{width:44px;height:44px;border-radius:50%;display:grid;place-items:center;color:var(--text);flex:none}
.np__icon svg{width:22px;height:22px;fill:currentColor}
.np__icon:hover{background:var(--ink-3)}

.np__main{
  flex:1;min-height:0;min-width:0;display:flex;flex-direction:column;align-items:center;
  justify-content:space-evenly;gap:14px;overflow-y:auto;overscroll-behavior:contain;
}
.np__main[hidden],.np__panel[hidden]{display:none}
.np__art{
  width:min(100%,46vh,420px);height:auto;aspect-ratio:1/1;object-fit:cover;flex:none;
  border-radius:var(--r-lg);background:var(--ink-3);
  box-shadow:0 24px 60px -24px rgba(0,0,0,.55);
}
.np__meta{width:100%;min-width:0;text-align:center}
.np__title{
  display:block;font-size:1.25rem;font-weight:600;color:var(--bone);line-height:1.5;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
.np__artist{display:block;margin-top:2px;font-size:.9375rem;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

.np__seek{display:flex;align-items:center;gap:10px;width:100%;direction:ltr}
.np__seek .range{flex:1;min-width:0;height:28px}
.np__seek .range::-webkit-slider-thumb{opacity:1}
.np__seek .range::-moz-range-thumb{opacity:1}

.np__controls{display:flex;align-items:center;justify-content:space-between;width:100%;max-width:380px;gap:6px}
.np__btn{width:48px;height:48px;border-radius:50%;display:grid;place-items:center;color:var(--muted);flex:none;transition:color .16s var(--ease),background .16s var(--ease),scale .16s var(--ease)}
.np__btn svg{width:20px;height:20px;fill:currentColor}
.np__btn:hover{color:var(--bone);background:var(--ink-3)}
.np__btn:active{scale:.94}
.np__btn.is-on{color:var(--amber)}
.np__btn--step{color:var(--bone)}
.np__btn--step svg{width:26px;height:26px}
.np__btn--play{width:68px;height:68px;background:var(--warm);color:var(--on-warm)}
.np__btn--play:hover{background:var(--warm);color:var(--on-warm)}
.np__btn--play svg{width:28px;height:28px}

.np__tools{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;width:100%;max-width:420px}
.np__tool{
  min-width:0;min-height:56px;padding:8px 2px;border-radius:var(--r);
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;
  color:var(--muted);font-size:.6875rem;line-height:1.3;text-align:center;
}
.np__tool svg{width:20px;height:20px;fill:currentColor;flex:none}
.np__tool span{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.np__tool:hover{background:var(--ink-3);color:var(--bone)}
.np__tool.is-on{color:var(--amber)}

/* The panel replaces the main view rather than stacking over it: one scroll
   container at a time is the only arrangement that behaves on iOS. */
.np__panel{flex:1;min-height:0;min-width:0;display:flex;flex-direction:column}
.np__panelhead{display:flex;align-items:center;justify-content:space-between;gap:12px;flex:none;padding:6px 0 12px;border-bottom:1px solid var(--line)}
.np__panelhead b{font-size:1rem;font-weight:600;color:var(--bone);min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.np__back{min-height:44px;padding:0 14px;border-radius:999px;background:var(--ink-3);color:var(--text);font-size:.8125rem;flex:none}
.np__panelbody{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding:10px 0 6px}

.np-note{padding:28px 8px;text-align:center;color:var(--muted);font-size:.875rem;line-height:1.9}
.np-note button{display:inline-block;margin-top:10px;min-height:44px;padding:0 18px;border-radius:999px;background:var(--ink-3);color:var(--text)}

.np-q{display:flex;align-items:center;gap:10px;min-height:56px;padding:4px 2px;border-radius:var(--r-sm)}
.np-q__go{display:flex;align-items:center;gap:12px;flex:1;min-width:0;min-height:48px;text-align:start}
.np-q__art{width:44px;height:44px;border-radius:var(--r-sm);object-fit:cover;background:var(--ink-3);flex:none}
.np-q__meta{min-width:0;flex:1}
.np-q__t,.np-q__s{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.np-q__t{font-size:.875rem;color:var(--bone)}
.np-q__s{font-size:.75rem;color:var(--faint)}
.np-q.np-q--now .np-q__t{color:var(--amber)}
.np-q__x{width:44px;height:44px;border-radius:50%;display:grid;place-items:center;color:var(--faint);flex:none}
.np-q__x svg{width:16px;height:16px;fill:currentColor}
.np-q__x:hover{background:var(--ink-3);color:var(--bone)}

.np-opt{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:52px;padding:0 12px;border-radius:var(--r-sm);font-size:.9375rem;color:var(--text);text-align:start}
.np-opt:hover{background:var(--ink-3)}
.np-opt.is-on{color:var(--amber)}
.np-opt.is-on::after{content:"";width:8px;height:8px;border-radius:50%;background:var(--amber);flex:none}

.np-lyrics{padding:6px 4px 20px;font-size:1.0625rem;line-height:2.3;color:var(--text);text-align:center;user-select:text;-webkit-user-select:text}
.np-lyrics p{margin:0 0 1.4em}

/* While the sheet is up nothing else may sit on the bottom edge. */
body.np-open .install{display:none}
body.np-open .toasts{inset-block-end:calc(var(--safe-b) + 24px)}

/* The phone opens the sheet from the cover and title, so say it is pressable. */
@media (pointer:coarse){
  .player__now{cursor:pointer}
}

/* A wide screen gets a card, not a wall. */
@media (min-width:900px){
  .np{align-items:center}
  .np__sheet{
    width:440px;height:min(760px,calc(100vh - 48px));border-radius:24px;
    border:1px solid var(--line);padding:10px 24px 22px;
    box-shadow:0 40px 120px -30px rgba(0,0,0,.7);
    animation:np-pop .22s var(--ease);
  }
  .np__art{width:min(100%,38vh,340px)}
}
@keyframes np-pop{from{opacity:0;transform:translateY(14px) scale(.98)}to{opacity:1;transform:none}}

/* Short phones in landscape: the cover gives way before the controls do. */
@media (max-height:560px){
  .np__art{width:min(40%,34vh)}
  .np__main{gap:8px}
}

@media (prefers-reduced-motion:reduce){
  .np__sheet{animation:none}
  .np__sheet.is-settling{transition:none}
}

/* -- 2. Continue listening ------------------------------------------------ */
.v3-recent[hidden]{display:none}
.v3-recent__clear{background:none;border:0;cursor:pointer;min-height:44px}
.v3-recent__list{
  display:grid;grid-auto-flow:column;grid-auto-columns:132px;gap:14px;
  overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x proximity;
  padding-bottom:8px;scrollbar-width:thin;-webkit-overflow-scrolling:touch;
}
.v3-recent__list > .card{scroll-snap-align:start}
.v3-recent__list .card__artist{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media (min-width:900px){
  .v3-recent__list{grid-auto-columns:160px;gap:18px}
}

/* -- 3. Where the sheet is ------------------------------------------------ */
.v3-hint{
  position:fixed;inset-inline:0;margin-inline:auto;width:max-content;max-width:90vw;
  inset-block-end:calc(var(--player-h) + var(--safe-b) + 12px);z-index:91;
  padding:10px 16px;border-radius:var(--r);
  background:var(--warm);color:var(--on-warm);
  font-size:.875rem;line-height:1.7;text-align:center;
  box-shadow:0 12px 32px -12px rgba(0,0,0,.5);
  animation:v3-hint-in .24s var(--ease);
}
@keyframes v3-hint-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.v3-hint{animation:none}}

/* Side menu on phones: the close button sits on the logo's row, below the
   status bar. muno.css makes it position:relative on touch screens (for the
   larger tap area), which dropped it onto a row of its own above the logo. */
@media (max-width:1023px){
  .rail__close{position:absolute;top:calc(22px + var(--safe-t));inset-inline-end:auto;left:16px;right:auto}
  [dir=ltr] .rail__close{left:auto;right:16px}
}

/* Installed app: a Back button in the top bar of inner pages (there is no
   browser bar there). muno-v3.js adds it only when opened from the home screen. */
.v3-back{flex:none;width:40px;height:40px;border-radius:var(--r);display:grid;place-items:center;color:var(--text)}
.v3-back[hidden]{display:none}
.v3-back:hover{background:var(--ink-3)}
.v3-back:active{scale:.96}
.v3-back svg{width:20px;height:20px;fill:currentColor}
[dir=ltr] .v3-back svg{transform:scaleX(-1)}
@media (max-width:1023px){
  .v3-has-back .topbar__logo{display:none}
}

/* The bar's play button is drawn in the text colour, so its icon takes the
   page colour: it was a dark icon on a dark button in the light theme. */
.pbtn--play{color:var(--ink)}

/* Playback controls are not mirrored in a right-to-left page: previous on the
   left, next on the right, so each arrow points away from the play button. */
.np__controls,.player__buttons{direction:ltr}

/* Search box: a hint too long for a narrow phone ends in an ellipsis, not mid-letter. */
.search__input,.search__input::placeholder{text-overflow:ellipsis}

/* Install bar on a phone: icon, text and close on one row, the action as a
   full-width button under them. Side by side, the text was squeezed into a
   narrow column five lines tall. */
@media (max-width:520px){
  .install{flex-wrap:wrap;gap:10px 12px;padding:12px 14px}
  .install__body{flex:1 1 0}
  .install__x{order:2;width:36px;height:36px;margin-inline-end:-6px}
  .install__go{order:3;flex:1 1 100%;height:44px;font-size:.875rem}
}

/* -- batch 4: page-by-page review ----------------------------------------- */

/* A later touch rule in muno.css makes the cover's play button relative so it
   can carry a larger hit area; that drops it out of its corner and under the
   cover's edge. Absolute still anchors the hit area. */
@media (pointer:coarse){
  .card__play{position:absolute}
}

/* These sit on a dark scrim over the cover in both themes. */
.card__fav,.card__plays{color:#F3EDE4}

/* A flat hero is a page heading, not a centred poster. */
@media (max-width:1023px){
  .hero--flat{justify-items:stretch;text-align:start}
}

/* A station without a cover still says what it is. */
.station__art--none{display:grid;place-items:center}
.station__art--none::before{
  content:"";width:28px;height:28px;background:var(--faint);
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 10a2 2 0 100 4 2 2 0 000-4zM7.8 7.8a6 6 0 000 8.4l1.4-1.4a4 4 0 010-5.6L7.8 7.8zm8.4 0l-1.4 1.4a4 4 0 010 5.6l1.4 1.4a6 6 0 000-8.4zM5 5a10 10 0 000 14l1.4-1.4a8 8 0 010-11.2L5 5zm14 0l-1.4 1.4a8 8 0 010 11.2L19 19a10 10 0 000-14z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 10a2 2 0 100 4 2 2 0 000-4zM7.8 7.8a6 6 0 000 8.4l1.4-1.4a4 4 0 010-5.6L7.8 7.8zm8.4 0l-1.4 1.4a4 4 0 010 5.6l1.4 1.4a6 6 0 000-8.4zM5 5a10 10 0 000 14l1.4-1.4a8 8 0 010-11.2L5 5zm14 0l-1.4 1.4a8 8 0 010 11.2L19 19a10 10 0 000-14z'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* The search hint has to fit a phone's top bar whole. */
@media (max-width:520px){
  .search__field{padding-inline:10px;gap:8px}
  .search__input::placeholder{font-size:.8125rem}
}

/* already installed: never offer install again */
.v3-app [data-install-rail],.v3-app #install{display:none!important}
@media (display-mode:standalone){
  [data-install-rail],#install{display:none!important}
}

/* -- house promo (Gisoo AI music): a richer look on the same markup, identical in both themes -- */
.promo-strip{
  margin:12px 0 0;border:0;border-radius:18px;isolation:isolate;
  background:
    radial-gradient(60% 130% at 0% 0%,rgba(255,138,31,.42),transparent 62%),
    radial-gradient(70% 140% at 100% 100%,rgba(56,189,248,.26),transparent 60%),
    linear-gradient(115deg,#BE185D 0%,#6D28D9 48%,#24124F 100%);
  box-shadow:0 14px 34px -18px rgba(109,40,217,.8),inset 0 0 0 1px rgba(255,255,255,.14);
}
.promo-strip::after{
  content:"";position:absolute;top:0;bottom:0;left:0;width:36%;z-index:-1;pointer-events:none;
  background:linear-gradient(100deg,transparent,rgba(255,255,255,.2),transparent);
  transform:translateX(-130%);animation:promo-sheen 6s ease-in-out infinite;
}
@keyframes promo-sheen{0%{transform:translateX(-130%)}45%,100%{transform:translateX(420%)}}

.promo-strip__link{
  display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;
  column-gap:14px;row-gap:0;padding:12px 16px;padding-inline-end:54px;
  color:#fff;font-size:.875rem;line-height:1.7;
}
.promo-strip__link:focus-visible{outline:2px solid #fff;outline-offset:-4px;border-radius:18px}
.promo-strip__spark{
  grid-column:1;grid-row:1 / span 2;width:44px;height:44px;border-radius:14px;font-size:0;color:transparent;
  background:
    linear-gradient(#fff,#fff) 10px 50%/4px 12px no-repeat,
    linear-gradient(#fff,#fff) 17px 50%/4px 24px no-repeat,
    linear-gradient(#fff,#fff) 24px 50%/4px 16px no-repeat,
    linear-gradient(#fff,#fff) 31px 50%/4px 9px no-repeat,
    rgba(255,255,255,.16);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.22);
  animation:promo-eq 1.4s ease-in-out infinite;
}
@keyframes promo-eq{
  0%,100%{background-size:4px 12px,4px 24px,4px 16px,4px 9px,auto}
  25%{background-size:4px 22px,4px 11px,4px 26px,4px 15px,auto}
  50%{background-size:4px 9px,4px 20px,4px 12px,4px 24px,auto}
  75%{background-size:4px 18px,4px 14px,4px 22px,4px 11px,auto}
}
.promo-strip__link strong{grid-column:2;align-self:end;color:#fff;font-size:1rem;font-weight:800;line-height:1.6}
.promo-strip__txt{grid-column:2;align-self:start;flex:none;color:rgba(255,255,255,.86);font-size:.8125rem;line-height:1.7}
.promo-strip__cta{
  grid-column:3;grid-row:1 / span 2;background:#fff;color:#2A1466;font-weight:800;font-size:.875rem;
  padding:9px 18px;border-radius:999px;box-shadow:0 8px 20px -8px rgba(0,0,0,.55);
  transition:transform .2s ease;
}
.promo-strip__link:hover .promo-strip__cta{transform:translateX(-3px)}
.promo-strip__x{width:32px;height:32px;color:rgba(255,255,255,.82)}
.promo-strip__x:hover{color:#fff;background:rgba(255,255,255,.18)}
@media (max-width:600px){
  .promo-strip__link{grid-template-columns:auto minmax(0,1fr);padding:14px;column-gap:12px}
  .promo-strip__spark{align-self:start}
  .promo-strip__link strong{padding-inline-end:30px}
  .promo-strip__txt{display:block}
  .promo-strip__cta{grid-column:2;grid-row:3;justify-self:start;margin-top:8px}
  .promo-strip__x{inset-block-start:8px;inset-inline-end:8px;transform:none}
}

.promo-card{
  color:#fff;border:0;border-radius:22px;isolation:isolate;
  background:
    radial-gradient(60% 110% at 0% 0%,rgba(255,138,31,.42),transparent 62%),
    radial-gradient(70% 120% at 100% 100%,rgba(56,189,248,.24),transparent 60%),
    linear-gradient(115deg,#BE185D 0%,#6D28D9 48%,#24124F 100%);
  box-shadow:0 22px 48px -24px rgba(109,40,217,.85),inset 0 0 0 1px rgba(255,255,255,.14);
}
.promo-card::after{
  content:"";position:absolute;bottom:0;left:28px;width:132px;height:74%;z-index:-1;pointer-events:none;
  background:
    linear-gradient(rgba(255,255,255,.2),rgba(255,255,255,.2)) 0 100%/14px 46% no-repeat,
    linear-gradient(rgba(255,255,255,.2),rgba(255,255,255,.2)) 24px 100%/14px 88% no-repeat,
    linear-gradient(rgba(255,255,255,.2),rgba(255,255,255,.2)) 48px 100%/14px 62% no-repeat,
    linear-gradient(rgba(255,255,255,.2),rgba(255,255,255,.2)) 72px 100%/14px 96% no-repeat,
    linear-gradient(rgba(255,255,255,.2),rgba(255,255,255,.2)) 96px 100%/14px 54% no-repeat,
    linear-gradient(rgba(255,255,255,.2),rgba(255,255,255,.2)) 120px 100%/12px 76% no-repeat;
  animation:promo-bars 1.8s ease-in-out infinite;
}
@keyframes promo-bars{
  0%,100%{background-size:14px 46%,14px 88%,14px 62%,14px 96%,14px 54%,12px 76%}
  33%{background-size:14px 82%,14px 50%,14px 94%,14px 58%,14px 86%,12px 44%}
  66%{background-size:14px 60%,14px 96%,14px 48%,14px 80%,14px 40%,12px 90%}
}
.promo-card:hover{border-color:transparent}
.promo-card__tag{color:rgba(255,255,255,.88);border-color:rgba(255,255,255,.36)}
.promo-card__h{color:#fff;font-weight:800}
.promo-card__p{color:rgba(255,255,255,.88)}
.promo-card__cta{background:#fff;color:#2A1466;box-shadow:0 10px 24px -10px rgba(0,0,0,.55)}
@media (max-width:600px){
  .promo-card::after{opacity:.5;left:12px;width:108px;height:46%}
}
@media (prefers-reduced-motion:reduce){
  .promo-strip::after,.promo-strip__spark,.promo-card::after{animation:none}
  .promo-strip::after{display:none}
}
