/* Player and queue: cover-led colour, quieter secondary controls, larger touch targets. */
.fullPlayer { background: color-mix(in srgb, rgb(21 24 32 / 1), rgb(var(--t-surf) / 1) var(--t-mix)); color: #fff; }
.fullPlayer::before { opacity: .24; filter: blur(58px) saturate(1.12); }
.fullPlayer .npArt { width: min(100%, 67dvh); }
.fullPlayer .fullCover { box-shadow: 0 14px 45px #0008; }
.fullPlayer .npHeader .icon,
.fullPlayer .npSave { background: transparent; border: 0; min-width: 44px; min-height: 44px; }
.fullPlayer .npSource small { font-size: .75rem; color: #dddfe6; text-transform: none; letter-spacing: 0; }
.fullPlayer .npTitle { font-size: 1.375rem; line-height: 1.18; margin: .25rem 0; }
.fullPlayer .npArtist { font-size: 1.0625rem; color: #e7e9ef; line-height: 1.3; }
.fullPlayer .npArtist span { color: inherit; }
.fullPlayer .npMode { padding: 0; min-height: 0; border: 0; background: transparent; color: #e0e2eb; font-size: .75rem; letter-spacing: 0; text-transform: none; }
.fullPlayer .npMode:empty { display: none; }
.fullPlayer .npTimeline { margin-block: 0 .2rem; }
.fullPlayer .npTimeline .range:not(.volume) { min-height: 44px; }
.fullPlayer .npTimeline .range:not(.volume)::-webkit-slider-runnable-track {
  height: 8px;
  background: linear-gradient(#f0f1f6,#f0f1f6) 0 / var(--range-progress,0%) 100% no-repeat, #515564;
}
.fullPlayer .npTimeline .range:not(.volume)::-webkit-slider-thumb { margin-top: -3px; box-shadow: none; }
.fullPlayer .npTimeline .range:not(.volume)::-moz-range-track { height: 8px; background: #515564; }
.fullPlayer .npTimeline .range:not(.volume)::-moz-range-progress { height: 8px; background: #f0f1f6; }
.fullPlayer .npTimeline .range:not(.volume)::-moz-range-thumb { box-shadow: none; }
.fullPlayer .npTimeline .waveSignal svg { stroke-width: 2; }
.fullPlayer .npTimeline .waveSignal .wavePlayed { stroke: #f0f1f6; }
.fullPlayer .npTimeline [data-time], .fullPlayer .npTimeline [data-length] { color: #e7e9ef; font-size: .8125rem !important; }
.fullPlayer .npTools { display: flex; justify-content: space-evenly; gap: 0; padding: 0; border: 0; border-radius: 0; background: none; }
.fullPlayer .npTools .npTool { display: inline-flex; flex-direction: column; gap: 3px; max-width: none; flex: 1 1 0; min-height: 44px; min-width: 44px; padding: 3px 5px; border: 0; background: transparent; color: #e7e9ef; font-size: .8125rem; }
.fullPlayer .npTool .ico { width: 20px; height: 20px; color: currentColor; }
.fullPlayer .npTools .npTool:hover, .fullPlayer .npTools .npTool[aria-expanded="true"], .fullPlayer .npTools .npTool.isConnected { color: #fff; background: #ffffff14; }
.fullPlayer .npTools .npTool[hidden], .fullPlayer .npAirPlayStatus[hidden], .fullPlayer [data-np-error][hidden] { display: none; }
.fullPlayer :is(.npAirPlayStatus,[data-np-error]) { margin: .25rem 0 0; padding: 0; border: 0; border-radius: 0; background: none; color: #f4e0bb; font-size: .8125rem; text-align: center; }
.fullPlayer .npModeToggle.on { color: #fff; background: none; box-shadow: none; animation: none; }
.fullPlayer .npModeToggle.on::before { bottom: 4px; background: currentColor; box-shadow: none; }
.fullPlayer .npModeToggle[data-repeat="one"]::after { inset: 3px 4px auto auto; width: auto; height: auto; transform: none; border: 0; background: none; color: currentColor; box-shadow: none; font-size: .75rem; }
.fullPlayer :is(.npHeader .icon,.npSave,.npTool,.npTransport .icon):focus-visible, .queueSheet button:focus-visible { outline: 2px solid #f5e9c5; outline-offset: 1px; }

@media (max-width:650px), (max-height:500px) and (orientation:landscape) {
  .fullPlayer .npArt { width: auto; }
  .fullPlayer .npArt :is(.fullCover,.npCoverReflection) { width: min(100cqw,100cqh,55dvh); height: min(100cqw,100cqh,55dvh); }
}
@media (max-height:500px) and (orientation:landscape) {
  .fullPlayer .npTools .npTool { flex-direction: row; }
}
@media(max-width:370px){
  .fullPlayer .npPlay{ width:50px; height:50px; }
  .fullPlayer .npTransport .icon{ min-width:44px; min-height:44px; }
}

#panel[data-layout="queue"] {
  position: fixed; inset: auto 0 0; width: 100%; max-width: none; box-sizing: border-box;
  max-height: min(82dvh, 45rem); margin: 0; border-radius: 20px 20px 0 0; border-bottom: 0;
  background: color-mix(in srgb, rgb(21 24 32 / 1), rgb(var(--t-surf) / 1) var(--t-mix)); color: #f7f7fa; overflow: auto; overscroll-behavior: contain;
}
#panel[data-layout="queue"][open] { animation: hvr-queue-in .2s ease-out; }
@keyframes hvr-queue-in { from { transform: translateY(100%); } }
.queueSheet { max-width: 48rem; margin-inline: auto; padding: 0 clamp(1rem,3vw,2rem) max(1.25rem,env(safe-area-inset-bottom,0px)); }
.queueSheetTop { position: sticky; top: 0; z-index: 1; min-height: 48px; margin: 0; background: color-mix(in srgb, rgb(21 24 32 / 1), rgb(var(--t-surf) / 1) var(--t-mix)); }
.queueSheetTop .icon { min-width: 44px; min-height: 44px; }
.queuePull { flex: 1; align-self: stretch; min-height:44px; display:grid; place-items:center; padding-left:44px; touch-action:none; cursor: grab; }
.queuePull span { width: 40px; height: 5px; border-radius: 5px; background: #b2b6c2; }
.queueSheet .queueHeading { min-height: 44px; }
.queueSheet .queueHeading h3 { margin: 0; }
.queueSheet .queueHeading .textBtn { min-height: 44px; }
.queueSheet .queueSummary, .queueSheet .queuePlaybackStatus { font-size: .8125rem; color: #d5d7df; }
.queuePaused { margin: .25rem 0; color: rgb(var(--t-soft)); font-size: .8125rem; }
.queueConfirm, .queueUndo { margin: .5rem 0; padding: .65rem .8rem; background: color-mix(in srgb, rgb(34 38 48 / 1), rgb(var(--t-surf) / 1) var(--t-mix)); border: 1px solid #59606e; border-radius: 9px; font-size: .875rem; }
.queueConfirm p, .queueUndoStatus { margin: 0; }
.queueConfirm > div { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: .55rem; }
.queueUndo { display: flex; gap: .65rem; align-items: center; justify-content: space-between; }
.queueConfirm button, .queueUndo button { min-height: 44px; }
.queueUndo button { flex: none; }
.queueSheet .queueList { overflow: hidden; }
.queueSheet .queueRow .rowText strong { font-size: 1rem; }
.queueSheet .queueRow .rowText small { font-size: .8125rem; color: #d5d7df; }
.queueSheet .queueRow .queueMove { font-size: .75rem; }
@media(prefers-reduced-motion:reduce){
  #panel[data-layout="queue"][open] { animation:none; }
}
