/* A native dialog sheet. All controls share the library's existing audio element. */
.player-track { cursor: pointer; }
.player-track > .player-expand {
  display: inline-flex !important;
  flex: 0 0 26px;
  width: 26px;
  height: 32px;
  margin-left: auto;
  color: var(--secondary, #86868b);
  border-radius: 8px;
}
.player-track > .player-expand svg { width: 17px; height: 17px; transform: rotate(180deg); }
.player-track > .player-expand:hover { background: var(--control, #f0f0f4); color: var(--accent, #fa2d48); }
#nowPlayingDialog {
  --np-palette: linear-gradient(150deg, #6f9e8d 0%, #275c4d 48%, #183d36 100%);
  position: fixed;
  inset: 0;
  width: 450px;
  height: 700px;
  max-width: calc(100vw - 40px);
  max-height: calc(100dvh - 40px);
  margin: auto;
  padding: 0;
  border: 1px solid #ffffff24;
  border-radius: 32px;
  overflow: hidden;
  color: #fff;
  background: #31594d;
  background-image: var(--np-palette);
  box-shadow: 0 40px 110px #10241dcc, 0 0 0 1px #ffffff09;
  isolation: isolate;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'PingFang SC', 'Helvetica Neue', sans-serif;
  text-align: left;
  overscroll-behavior: contain;
  transform-origin: center bottom;
}
#nowPlayingDialog[open] { display: block; }
#nowPlayingDialog::backdrop {
  background: #101b2a65;
  backdrop-filter: blur(12px) saturate(.7);
  -webkit-backdrop-filter: blur(12px) saturate(.7);
  animation: np-backdrop-in .3s ease both;
}
#nowPlayingDialog.np-closing::backdrop { animation: np-backdrop-out .24s ease both; }
#nowPlayingDialog *, #nowPlayingDialog *::before, #nowPlayingDialog *::after { box-sizing: border-box; }
#nowPlayingDialog button { font: inherit; border: 0; cursor: pointer; color: inherit; -webkit-tap-highlight-color: transparent; }
#nowPlayingDialog button:disabled { opacity: .28; cursor: default; }
#nowPlayingDialog button:focus-visible, #nowPlayingDialog input:focus-visible { outline: 2px solid #ffffffd9; outline-offset: 5px; }
#nowPlayingDialog svg { display: block; width: 22px; height: 22px; flex: 0 0 auto; }
#nowPlayingDialog .np-ambient {
  position: absolute;
  z-index: -2;
  inset: -16%;
  background-position: center;
  background-size: cover;
  filter: blur(48px) saturate(.85);
  transform: scale(1.08);
  opacity: .88;
}
#nowPlayingDialog .np-shade { position: absolute; z-index: -1; inset: 0; background: linear-gradient(180deg, #0d1e1820 0%, #0c161a20 38%, #111b1e9c 100%); }
#nowPlayingDialog .np-content { height: 100%; overflow-y: auto; overscroll-behavior: contain; padding: 22px 42px 24px; scrollbar-width: none; }
#nowPlayingDialog .np-content::-webkit-scrollbar { display: none; }
#nowPlayingDialog .np-header { position: relative; display: flex; align-items: center; justify-content: space-between; min-height: 42px; margin: 0 -9px 15px; }
#nowPlayingDialog .np-grabber { display: none; }
#nowPlayingDialog .np-context { display: flex; flex-direction: column; gap: 5px; text-align: center; min-width: 0; }
#nowPlayingDialog .np-context span { font-size: 9px; letter-spacing: 2.5px; font-weight: 500; opacity: .55; }
#nowPlayingDialog .np-context strong { max-width: 230px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 11px; font-weight: 500; letter-spacing: .6px; color: #ffffffce; }
#nowPlayingDialog .np-header-balance { width: 36px; height: 36px; }
#nowPlayingDialog .np-round { width: 36px; height: 36px; flex: 0 0 36px; display: inline-flex; justify-content: center; align-items: center; border-radius: 50%; background: #ffffff12; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); transition: background .2s, transform .25s cubic-bezier(.2,.8,.25,1.1); }
#nowPlayingDialog .np-round:hover { background: #ffffff25; }
#nowPlayingDialog .np-round:active { transform: scale(.9); }
#nowPlayingDialog .np-close { background: transparent; color: #ffffffc9; }
#nowPlayingDialog .np-close svg { width: 24px; height: 24px; }
#nowPlayingDialog .np-cover-stage { display: flex; justify-content: center; align-items: center; min-height: 282px; margin: 0 0 20px; }
#nowPlayingDialog .np-cover { width: 282px; aspect-ratio: 1; flex: 0 0 auto; position: relative; border-radius: 17px; overflow: hidden; background: #6b8c7d; box-shadow: 0 23px 42px #081a205c, 0 1px 1px #ffffff2b inset; transform: translateZ(0) scale(.92); transition: transform .4s cubic-bezier(.2,.88,.26,1); isolation: isolate; backface-visibility: hidden; }
#nowPlayingDialog[open] .np-cover { will-change: transform; }
#nowPlayingDialog.np-is-playing .np-cover { transform: translateZ(0) scale(1); }
#nowPlayingDialog .np-cover-image { display: block; width: 100%; height: 100%; object-fit: cover; position: relative; z-index: 1; user-select: none; -webkit-user-drag: none; }
#nowPlayingDialog .np-cover-image[hidden] { display: none; }
#nowPlayingDialog .np-cover-fallback { position: absolute; inset: 0; display: flex; justify-content: center; align-items: center; background: radial-gradient(ellipse at 30% 12%, #ffffff40, transparent 65%); }
#nowPlayingDialog .np-cover-fallback svg { width: 84px; height: 84px; color: #ffffff65; stroke-width: .8; }
#nowPlayingDialog .np-cover-label { position: absolute; z-index: 2; bottom: 18px; left: 20px; font-size: 7px; font-weight: 500; letter-spacing: 3px; color: #ffffff9c; text-shadow: 0 1px 8px #0002; }
#nowPlayingDialog .np-track-meta { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 17px; }
#nowPlayingDialog .np-track-copy { min-width: 0; }
#nowPlayingDialog #npTitle { margin: 0; color: #fff; font-size: 23px; line-height: 1.3; font-weight: 650; letter-spacing: -.6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#nowPlayingDialog #npSubtitle { margin: 6px 0 0; font-size: 12px; line-height: 1.4; font-weight: 400; color: #ffffff9c; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#nowPlayingDialog .np-favorite svg { width: 17px; height: 17px; }
#nowPlayingDialog .np-favorite.np-is-favorite { background: #ffffff30; }
#nowPlayingDialog .np-favorite.np-is-favorite svg { fill: currentColor; }
#nowPlayingDialog .np-timeline { margin: 0 0 12px; }
#nowPlayingDialog .np-range { --np-progress: 0%; width: 100%; min-width: 0; padding: 0; margin: 0; height: 21px; appearance: none; -webkit-appearance: none; background: transparent; cursor: pointer; touch-action: pan-y; border: 0; border-radius: 5px; }
#nowPlayingDialog .np-range:disabled { opacity: .45; cursor: default; }
#nowPlayingDialog .np-range::-webkit-slider-runnable-track { height: 4px; border-radius: 10px; background: linear-gradient(to right, #ffffffe6 0 var(--np-progress), #ffffff35 var(--np-progress) 100%); }
#nowPlayingDialog .np-range::-moz-range-track { height: 4px; border-radius: 10px; background: #ffffff35; }
#nowPlayingDialog .np-range::-moz-range-progress { height: 4px; background: #ffffffe6; border-radius: 10px; }
#nowPlayingDialog .np-range::-webkit-slider-thumb { width: 10px; height: 10px; margin-top: -3px; border: 0; background: #fff; box-shadow: 0 1px 5px #13202330; border-radius: 50%; appearance: none; -webkit-appearance: none; transition: transform .15s; }
#nowPlayingDialog .np-range::-moz-range-thumb { width: 10px; height: 10px; border: 0; background: #fff; box-shadow: 0 1px 5px #13202330; border-radius: 50%; }
#nowPlayingDialog .np-range:hover::-webkit-slider-thumb, #nowPlayingDialog .np-range:active::-webkit-slider-thumb { background: #fff; transform: scale(1.25); }
#nowPlayingDialog .np-times { display: flex; justify-content: space-between; font-size: 10px; line-height: 1.3; color: #ffffff75; font-variant-numeric: tabular-nums; margin-top: 0; }
#nowPlayingDialog .np-transport { position: relative; display: flex; align-items: center; justify-content: center; gap: 33px; height: 66px; margin-bottom: 16px; }
#nowPlayingDialog .np-transport-button { display: flex; align-items: center; justify-content: center; width: 38px; height: 45px; padding: 0; background: transparent; transition: transform .2s, opacity .2s; }
#nowPlayingDialog .np-transport-button svg { width: 26px; height: 26px; fill: #fff; stroke-width: 1.8; }
#nowPlayingDialog .np-transport-button:active { transform: scale(.85); }
#nowPlayingDialog .np-play { display: flex; align-items: center; justify-content: center; width: 62px; height: 62px; flex: 0 0 62px; border-radius: 50%; background: #ffffff17; box-shadow: 0 1px 0 #ffffff15 inset; backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); transition: transform .25s cubic-bezier(.2,.8,.25,1.1), background .2s; }
#nowPlayingDialog .np-play:hover { background: #ffffff25; }
#nowPlayingDialog .np-play:active { transform: scale(.9); }
#nowPlayingDialog .np-play svg { width: 32px; height: 32px; }
#nowPlayingDialog:not(.np-is-playing) .np-play svg { margin-left: 4px; }
#nowPlayingDialog .np-loop { position: absolute; right: -5px; width: 30px; height: 30px; background: transparent; color: #ffffff66; }
#nowPlayingDialog .np-loop svg { width: 17px; height: 17px; }
#nowPlayingDialog .np-loop[aria-pressed='true'] { background: #ffffff27; color: #fff; }
#nowPlayingDialog .np-volume { display: flex; align-items: center; gap: 12px; margin: 0 0 17px; }
#nowPlayingDialog .np-volume .np-range { flex: 1; }
#nowPlayingDialog .np-volume-icon { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 30px; padding: 0; color: #ffffff70; background: transparent; }
#nowPlayingDialog .np-volume-icon svg { width: 16px; height: 16px; }
#nowPlayingDialog .np-volume-high { width: 23px; display: flex; justify-content: center; color: #ffffff70; }
#nowPlayingDialog .np-volume-high svg { width: 19px; height: 19px; }
#nowPlayingDialog .np-volume .np-range::-webkit-slider-runnable-track { height: 4px; }
#nowPlayingDialog .np-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 13px; border-top: 1px solid #ffffff15; }
#nowPlayingDialog #npFileInfo { color: #ffffff66; font-size: 9px; letter-spacing: .4px; }
#nowPlayingDialog .np-download { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 31px; padding: 0 11px; border-radius: 9px; background: #ffffff10; font-size: 10px; color: #ffffffb8; transition: background .2s; }
#nowPlayingDialog .np-download:hover { background: #ffffff24; }
#nowPlayingDialog .np-download svg { width: 13px; height: 13px; }
#nowPlayingDialog .np-message { margin: 9px 0 0; min-height: 0; color: #ffffffc2; font-size: 11px; line-height: 1.5; text-align: center; }
#nowPlayingDialog .np-message:empty { display: none; }
#nowPlayingDialog.np-is-empty .np-cover { opacity: .75; }
@keyframes np-backdrop-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes np-backdrop-out { from { opacity: 1; } to { opacity: 0; } }
@media (max-width: 760px) {
  .player-track > .player-expand { flex-basis: 20px; width: 20px; margin-left: -3px; }
  .player-track > .player-expand svg { width: 14px; height: 14px; }
}
@media (max-width: 600px) {
  #nowPlayingDialog { inset: auto 0 0; width: 100%; max-width: 100%; height: min(800px, calc(100dvh - 12px)); max-height: calc(100dvh - 12px); margin: 0 auto; border-radius: 30px 30px 0 0; border-bottom: 0; }
  #nowPlayingDialog .np-content { display: flex; flex-direction: column; padding: 25px 34px max(23px, env(safe-area-inset-bottom)); }
  #nowPlayingDialog .np-header { margin-bottom: 12px; min-height: 44px; flex-shrink: 0; touch-action: none; user-select: none; }
  #nowPlayingDialog .np-grabber { display: block; position: absolute; top: -15px; left: calc(50% - 18px); width: 36px; height: 5px; background: #ffffff38; border-radius: 9px; }
  #nowPlayingDialog .np-cover-stage { min-height: 0; flex: 1 0 auto; margin-bottom: 20px; padding: 16px 0 20px; touch-action: none; user-select: none; }
  #nowPlayingDialog .np-cover { width: min(100%, 330px, calc(100dvh - 495px)); min-width: 170px; }
  #nowPlayingDialog .np-track-meta { margin-bottom: 19px; flex-shrink: 0; }
  #nowPlayingDialog #npTitle { font-size: 24px; }
  #nowPlayingDialog #npSubtitle { font-size: 13px; margin-top: 7px; }
  #nowPlayingDialog .np-timeline { margin-bottom: 17px; flex-shrink: 0; }
  #nowPlayingDialog .np-times { font-size: 11px; margin-top: 2px; }
  #nowPlayingDialog .np-transport { height: 70px; gap: 34px; margin-bottom: 22px; flex-shrink: 0; }
  #nowPlayingDialog .np-play { width: 68px; height: 68px; flex-basis: 68px; }
  #nowPlayingDialog .np-play svg { width: 35px; height: 35px; }
  #nowPlayingDialog .np-transport-button svg { width: 28px; height: 28px; }
  #nowPlayingDialog .np-loop { right: -8px; }
  #nowPlayingDialog .np-volume { margin-bottom: 20px; flex-shrink: 0; }
  #nowPlayingDialog .np-footer { padding-top: 14px; flex-shrink: 0; }
  #nowPlayingDialog .np-download { font-size: 11px; min-height: 35px; }
  #nowPlayingDialog #npFileInfo { font-size: 10px; }
}
@media (max-width: 380px), (max-height: 690px) {
  #nowPlayingDialog .np-content { padding-left: 28px; padding-right: 28px; }
  #nowPlayingDialog .np-cover-stage { min-height: 0; margin-bottom: 12px; padding-top: 8px; padding-bottom: 8px; }
  #nowPlayingDialog .np-cover { width: min(250px, calc(100dvh - 440px)); min-width: 165px; }
  #nowPlayingDialog .np-header { margin-bottom: 7px; }
  #nowPlayingDialog .np-track-meta { margin-bottom: 12px; }
  #nowPlayingDialog #npTitle { font-size: 21px; }
  #nowPlayingDialog .np-timeline { margin-bottom: 10px; }
  #nowPlayingDialog .np-transport { margin-bottom: 12px; }
  #nowPlayingDialog .np-volume { margin-bottom: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  #nowPlayingDialog *, #nowPlayingDialog::backdrop { animation: none !important; transition: none !important; }
}
