/* Quasar Music — player bar, sliders, queue drawer, Now Playing, small screens. */

/* ---- the bar (replaces the old floating island) ---- */
.music-player-bar.mu-bar { display: grid !important; grid-template-columns: minmax(160px, 1fr) minmax(260px, 600px) minmax(max-content, 1fr); gap: 18px; align-items: center;
    position: fixed; left: 12px; right: 12px; bottom: 12px; width: auto; max-width: none; height: 84px; padding: 0 18px; transform: translateY(140%);
    border-radius: calc(18px * var(--round, 1)); z-index: 1000; transition: transform 0.45s var(--ease), opacity 0.3s; background: color-mix(in oklab, rgba(8, 10, 22, 0.97), rgba(255, 255, 255, 0.97) var(--bg-light, 0%)); opacity: 0; pointer-events: none; }
.music-player-bar.mu-bar.active { transform: none; opacity: 1; pointer-events: auto; }

/* ---- minimized: a round cover button in the bottom-right, ringed by the song's progress ---- */
.mu-bubble { position: fixed; right: 18px; bottom: 18px; width: 64px; height: 64px; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer;
    z-index: 1000; transform: scale(0.4); opacity: 0; pointer-events: none; transition: transform 0.35s var(--ease), opacity 0.25s; }
.mu-bubble.show { transform: none; opacity: 1; pointer-events: auto; }
.mu-bubble:hover { transform: scale(1.06); }
.mu-bubble svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); filter: drop-shadow(0 6px 18px rgba(0, 0, 0, calc(0.55 * var(--shadow-k, 1)))); }
.mu-bubble-bg { fill: color-mix(in oklab, rgba(8, 10, 22, 0.97), rgba(255, 255, 255, 0.97) var(--bg-light, 0%)); stroke: rgba(var(--ink-rgb),  0.12); stroke-width: 3; }
.mu-bubble-ring { fill: none; stroke: var(--accent-cyan); stroke-width: 3; stroke-linecap: round; stroke-dasharray: calc(var(--p, 0) * 1) 100; }
.mu-bubble-art { position: absolute; inset: 6px; border-radius: 50%; overflow: hidden; }
.mu-bubble-art .mu-cover.sm { width: 100%; height: 100%; border-radius: 50%; }
.mu-bubble-eq { position: absolute; right: -2px; bottom: -2px; font-size: 18px !important; width: 24px; height: 24px; line-height: 24px; border-radius: 50%;
    background: var(--accent-cyan); color: var(--on-accent); display: none; }
.mu-bubble.playing .mu-bubble-eq { display: block; }
.mu-bubble.busy .mu-bubble-art { animation: mu-bubble-pulse 1.1s ease-in-out infinite; }
@keyframes mu-bubble-pulse { 50% { opacity: 0.5; } }
.mu-bar-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.mu-bar-art { border: 0; padding: 0; background: none; cursor: pointer; border-radius: calc(6px * var(--round, 1)); }
.mu-bar-art .mu-cover.sm { width: 56px; border-radius: calc(6px * var(--round, 1)); box-shadow: 0 4px 14px rgba(0, 0, 0, calc(0.5 * var(--shadow-k, 1))); }
.mu-bar-text { min-width: 0; display: flex; flex-direction: column; }
.mu-bar-title { font-weight: 600; font-size: 0.9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mu-bar-title.err { color: color-mix(in oklab, #ff6b8a, #000 var(--tx-dark, 0%)); }
.mu-bar-artist { border: 0; background: none; padding: 0; color: var(--text-muted); font: 500 0.78rem var(--font-ui); text-align: left; cursor: pointer;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.mu-bar-artist:hover { color: var(--text-main); text-decoration: underline; }
.mu-bar-center { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; }
.mu-bar-right { display: flex; align-items: center; justify-content: flex-end; gap: 4px; }

.mu-ctrls { display: flex; align-items: center; gap: 10px; }
.mu-ctrls .mu-shuffle.on::after, .mu-ctrls .mu-repeat.on::after { content: ""; position: absolute; bottom: 2px; width: 4px; height: 4px; border-radius: 50%; background: var(--accent-cyan); }
.mu-ctrls .mu-icon-btn { position: relative; }
.mu-play { position: relative; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 0; cursor: pointer; background: var(--text-main);
    color: #05060d; transition: transform 0.12s; }
.mu-play:hover { transform: scale(1.06); }
.mu-play .material-symbols-outlined { font-size: 1.6rem; font-variation-settings: "FILL" 1; }
.mu-spin { position: absolute; inset: -4px; border-radius: 50%; border: 2px solid transparent; border-top-color: var(--accent-cyan); opacity: 0; pointer-events: none; }
.mu-play.busy .mu-spin { opacity: 1; animation: muSpin 0.8s linear infinite; }
@keyframes muSpin { to { transform: rotate(360deg); } }

/* ---- sliders (seek, volume) ---- */
.mu-time { display: flex; align-items: center; gap: 10px; width: 100%; font-size: 0.72rem; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.mu-time > span { width: 42px; flex-shrink: 0; }
.mu-t-cur { text-align: right; }
.mu-slider { --p: 0%; --b: 0%; position: relative; flex: 1; height: 16px; display: flex; align-items: center; cursor: pointer; touch-action: none; outline: none; }
.mu-sl-track { position: relative; width: 100%; height: 4px; border-radius: calc(4px * var(--round, 1)); background: rgba(var(--ink-rgb),  0.16); overflow: hidden; }
.mu-sl-buf { position: absolute; inset: 0 auto 0 0; width: var(--b); background: rgba(var(--ink-rgb),  0.18); transition: width 0.3s; }
.mu-sl-fill { position: absolute; inset: 0 auto 0 0; width: var(--p); background: var(--text-main); border-radius: calc(4px * var(--round, 1)); }
.mu-sl-thumb { position: absolute; left: var(--p); width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, calc(0.5 * var(--shadow-k, 1)));
    transform: scale(0); transition: transform 0.12s; }
.mu-slider:hover .mu-sl-fill, .mu-slider.drag .mu-sl-fill, .mu-slider:focus-visible .mu-sl-fill { background: var(--accent-cyan); }
.mu-slider:hover .mu-sl-thumb, .mu-slider.drag .mu-sl-thumb, .mu-slider:focus-visible .mu-sl-thumb { transform: scale(1); }
.mu-slider.drag .mu-sl-track, .mu-slider:hover .mu-sl-track { height: 5px; }
.mu-mini-play { display: none !important; }
.mu-mini-play .material-symbols-outlined { font-size: 2rem; font-variation-settings: "FILL" 1; color: var(--text-main); }
.mu-vol { display: flex; align-items: center; gap: 4px; width: 140px; }
.mu-vol .mu-slider { min-width: 72px; }

/* ---- queue drawer ---- */
.mu-queue { position: fixed; top: 80px; right: 12px; bottom: 108px; width: 360px; z-index: 990; display: flex; flex-direction: column; border-radius: calc(16px * var(--round, 1));
    background: color-mix(in oklab, rgba(10, 12, 26, 0.97), rgba(255, 255, 255, 0.97) var(--bg-light, 0%)); border: 1px solid var(--line-strong); box-shadow: 0 24px 60px rgba(0, 0, 0, calc(0.6 * var(--shadow-k, 1)));
    transform: translateX(calc(100% + 24px)); transition: transform 0.35s var(--ease); visibility: hidden; }
.mu-queue.open { transform: none; visibility: visible; }
body:not(.mu-has-bar) .mu-queue { bottom: 12px; }
.mu-q-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 10px 8px 14px; }
.mu-q-tabs { display: flex; gap: 6px; }
.mu-q-tabs button { padding: 8px 14px; border-radius: calc(100px * var(--round, 1)); border: 0; background: rgba(var(--ink-rgb),  0.07); color: var(--text-main); font-weight: 600; font-size: 0.82rem; cursor: pointer; }
.mu-q-tabs button.on { background: var(--text-main); color: #05060d; }
.mu-q-body { flex: 1; overflow-y: auto; padding: 4px 8px 16px; }
.mu-q-label { font-size: 0.95rem; font-weight: 700; padding: 16px 8px 8px; }
.mu-q-label-row { display: flex; align-items: center; justify-content: space-between; padding-right: 8px; }
.mu-q-row { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: calc(8px * var(--round, 1)); cursor: pointer; min-width: 0; }
.mu-q-row:hover { background: rgba(var(--ink-rgb),  0.06); }
.mu-q-row.now .mu-row-title { color: var(--accent-cyan); }
.mu-q-body { position: relative; }
.mu-q-row { transition: background 0.15s, opacity 0.16s, transform 0.16s; }
.mu-q-row.dragging { opacity: 0.25; }
.mu-q-row.leaving { opacity: 0; transform: translateX(24px); }
.mu-q-grip { display: grid; place-items: center; width: 22px; height: 36px; margin: 0 -4px 0 -4px; color: var(--text-dim); cursor: grab; touch-action: none; border-radius: calc(6px * var(--round, 1)); flex: none; }
.mu-q-grip:hover { color: var(--text-main); background: rgba(var(--ink-rgb),  0.08); }
.mu-q-grip .material-symbols-outlined { font-size: 1.2rem; }
.mu-q-remove { width: 34px; height: 34px; flex: none; margin-left: auto; color: var(--text-dim); opacity: 0.75; }
.mu-q-remove:hover { color: color-mix(in oklab, #ff6b81, #000 var(--tx-dark, 0%)); opacity: 1; background: rgba(255, 107, 129, 0.12); }
.mu-q-remove .material-symbols-outlined { font-size: 1.35rem; }
.mu-q-dropline { position: absolute; left: 10px; right: 10px; height: 3px; border-radius: calc(3px * var(--round, 1)); background: var(--accent-cyan); box-shadow: 0 0 10px var(--accent-cyan); pointer-events: none; z-index: 2; }
.mu-q-ghost { position: fixed; left: 0; top: 0; z-index: 9999; pointer-events: none; background: color-mix(in oklab, rgba(30, 34, 52, 0.96), rgba(255, 255, 255, 0.96) var(--bg-light, 0%)); box-shadow: 0 12px 32px rgba(0, 0, 0, calc(0.5 * var(--shadow-k, 1))); border-radius: calc(10px * var(--round, 1)); cursor: grabbing; }
.mu-q-ghost .mu-q-remove { display: none; }
.mu-switch { display: flex; align-items: center; gap: 12px; margin: 22px 8px 4px; padding: 14px; border-radius: calc(12px * var(--round, 1)); background: rgba(var(--ink-rgb),  0.04); cursor: pointer; }
.mu-switch input { position: absolute; opacity: 0; pointer-events: none; }
.mu-switch > span { position: relative; width: 38px; height: 22px; flex-shrink: 0; border-radius: calc(100px * var(--round, 1)); background: rgba(var(--ink-rgb),  0.2); transition: 0.2s; }
.mu-switch > span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: 0.2s; }
.mu-switch input:checked + span { background: var(--accent-cyan); }
.mu-switch input:checked + span::after { transform: translateX(16px); }
.mu-switch input:focus-visible + span { outline: 2px solid var(--accent-cyan); outline-offset: 2px; }
.mu-switch b { display: block; font-size: 0.88rem; }
.mu-switch small { color: var(--text-muted); font-size: 0.76rem; }

/* ---- Now Playing ---- */
.mu-np { position: fixed; inset: 0; z-index: 2500; display: grid; place-items: center; background: color-mix(in oklab, #05060d, var(--paper, #fff) var(--bg-light, 0%)); overflow: hidden;
    transform: translateY(100%); transition: transform 0.5s var(--ease); visibility: hidden; }
.mu-np.open { transform: none; visibility: visible; }
.mu-np-bg { position: absolute; inset: -80px; background: linear-gradient(160deg, hsl(var(--h, 200) 60% 30%), color-mix(in oklab, #05060d, var(--paper, #fff) var(--bg-light, 0%))) center / cover;
    filter: blur(70px) saturate(1.4) brightness(0.55); transform: scale(1.2); }
.mu-np-close { position: absolute; top: 18px; left: 18px; z-index: 1; width: 44px; height: 44px; }
.mu-np-close .material-symbols-outlined { font-size: 2rem; }
.mu-np-inner { position: relative; width: min(440px, calc(100vw - 48px)); display: flex; flex-direction: column; gap: 18px; }
.mu-np-art { width: min(440px, calc(100vw - 48px), 52vh); align-self: center; transition: transform 0.5s var(--ease); transform: scale(0.88); }
.mu-np.playing .mu-np-art { transform: none; }
.mu-np-art .mu-cover { box-shadow: 0 30px 80px rgba(0, 0, 0, calc(0.6 * var(--shadow-k, 1))); }
.mu-np-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; }
.mu-np-meta > div { min-width: 0; }
.mu-np-title { font: 700 1.5rem var(--font-ui); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: -0.01em; }
.mu-np-artist { color: var(--mu-fg2, color-mix(in oklab, #b4bcd8, #000 var(--tx-dark, 0%))); margin-top: 4px; }
.mu-time.np { font-size: 0.78rem; }
.mu-time.np .mu-slider { height: 20px; }
.mu-ctrls.big { justify-content: space-between; }
.mu-ctrls.big .mu-play { width: 68px; height: 68px; }
.mu-ctrls.big .mu-play .material-symbols-outlined { font-size: 2.6rem; }
.mu-ctrls.big .mu-icon-btn { width: 48px; height: 48px; }
.mu-ctrls.big .mu-icon-btn .material-symbols-outlined { font-size: 2rem; }
.mu-np .mu-vol { width: 100%; }
.mu-np-from { display: flex; flex-direction: column; gap: 4px; text-align: center; font-size: 0.8rem; color: rgba(var(--ink-rgb),  0.6); min-height: 2.4em; }
.mu-np-from span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---- smaller screens ---- */
@media (max-width: 1100px) {
    .mu-app { --mu-side: 76px; }
    .mu-side .mu-nav span:not(.material-symbols-outlined), .mu-brand span:not(.material-symbols-outlined), .mu-side-foot { display: none; }
    .mu-nav, .mu-brand { justify-content: center; padding-left: 0; padding-right: 0; }
    .mu-search-top { grid-template-columns: 1fr; }
    .mu-vol { width: 100px; }
    .mu-bar-right [title="Now Playing"] { display: none; }
}
@media (max-width: 760px) {
    #music-ui.mu-app { flex-direction: column-reverse; }
    .mu-side { width: auto; flex-direction: row; justify-content: space-around; padding: 6px 6px calc(env(safe-area-inset-bottom) + 6px); border-right: 0;
        border-top: 1px solid var(--line); gap: 0; }
    .mu-brand, .mu-side-foot { display: none; }
    .mu-nav { flex-direction: column; gap: 2px; font-size: 0.66rem; padding: 6px 8px; }
    .mu-side .mu-nav span:not(.material-symbols-outlined) { display: block; }
    .mu-top { padding: 12px 16px; gap: 8px; }
    .mu-top .btn-outline span:not(.material-symbols-outlined) { display: none; }
    .mu-top .btn-outline { padding: 9px 10px; }
    .mu-main { padding: 18px 16px 140px; }
    .mu-head { margin: -18px -16px 0; padding: 24px 16px 18px; flex-direction: column; align-items: flex-start; }
    .mu-head-art { width: 150px; }
    .mu-row-extra, .mu-row .mu-like { display: none; }
    .mu-row .mu-more { opacity: 1; }
    .mu-shelf { grid-auto-columns: 140px; gap: 10px; }
    .mu-genres { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .mu-genre { height: 86px; }
    .mu-quick-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .mu-quick { height: 52px; font-size: 0.78rem; gap: 8px; }
    .mu-quick .mu-cover.sm { width: 52px; }
    .mu-quick-play { display: none; }
    .mu-h1 { font-size: 1.5rem; }
    .mu-nav { font-size: 0.6rem; }
    .music-player-bar.mu-bar { grid-template-columns: 1fr auto; height: 64px; left: 8px; right: 8px; bottom: calc(66px + env(safe-area-inset-bottom)); padding: 0 10px; gap: 8px; }
    body:not(:has(#music-ui[style*="flex"])) .music-player-bar.mu-bar { bottom: 8px; }
    .mu-bar-art .mu-cover.sm { width: 44px; }
    .mu-bar-center { position: absolute; left: 12px; right: 12px; bottom: 2px; }
    .mu-bar-center .mu-ctrls, .mu-bar-center .mu-time > span { display: none; }
    .mu-bar-center .mu-slider { height: 6px; pointer-events: none; }
    .mu-bar-center .mu-sl-track { height: 2px !important; }
    .mu-bar-right .mu-vol, .mu-bar-right [title="Now Playing"], .mu-bar-left .mu-like { display: none; }
    .mu-bubble { right: 12px; bottom: calc(74px + env(safe-area-inset-bottom)); width: 56px; height: 56px; }
    body:not(:has(#music-ui[style*="flex"])) .mu-bubble { bottom: 12px; }
    .mu-mini-play { display: inline-flex !important; }
    .mu-bar-left { cursor: pointer; }
    .mu-queue { left: 8px; right: 8px; width: auto; top: 8px; bottom: 8px; z-index: 2600; }
    .mu-toast { bottom: 150px; }
}

/* Loading status and the "via YouTube" tag under the song title. */
.mu-status { color: var(--accent-cyan); }
.mu-status.err { color: color-mix(in oklab, #ff6b8a, #000 var(--tx-dark, 0%)); }
.mu-via { display: inline-block; margin-right: 6px; padding: 0 6px; border-radius: calc(4px * var(--round, 1)); background: rgba(255, 60, 60, 0.18); color: color-mix(in oklab, #ff9a9a, #000 var(--tx-dark, 0%));
    font-size: 0.64rem; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; vertical-align: 1px; }

/* ---- performance mode: no big blur, no looping animations (school Chromebooks) ---- */
body.mu-lite .mu-np-bg { background-image: none !important; filter: none; transform: none; background-color: hsl(var(--h, 220) 40% 12%); }
body.mu-lite .mu-eq b, body.mu-lite .mu-bubble.busy .mu-bubble-art { animation: none; height: 60%; }
body.mu-lite .mu-skel, body.mu-lite [class*="skel"] { animation: none !important; }
body.mu-lite .mu-bubble svg { filter: none; }

/* ---- Now Playing: player on the left, "About this song" on the right (stacked on small screens) ---- */
.mu-np-bg { position: fixed; }
.mu-np-close { position: fixed; }
.mu-np-layout { position: relative; display: flex; align-items: center; justify-content: center; gap: clamp(28px, 5vw, 72px); width: 100%; max-width: 1180px; height: 100%; padding: 24px 40px; box-sizing: border-box; }
.mu-np-inner { flex: 0 0 auto; }
.mu-np-info { flex: 1 1 380px; min-width: 0; max-width: 540px; max-height: calc(100vh - 80px); overflow-y: auto; padding: 22px 24px; border-radius: calc(20px * var(--round, 1));
    background: color-mix(in oklab, rgba(8, 10, 22, 0.55), rgba(255, 255, 255, 0.55) var(--bg-light, 0%)); border: 1px solid rgba(var(--ink-rgb),  0.1); scrollbar-width: thin; }
body:not(.mu-lite) .mu-np-info { backdrop-filter: blur(14px); }
.mu-np-info h3 { font: 800 1.15rem var(--font-ui); margin: 0 0 14px; letter-spacing: -0.01em; }
.mu-np-info h4 { font: 700 0.78rem var(--font-ui); letter-spacing: 0.08em; text-transform: uppercase; color: rgba(var(--ink-rgb),  0.55); margin: 22px 0 8px; }
.mu-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 16px; }
.mu-stat { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 4px; border-radius: calc(12px * var(--round, 1)); background: rgba(var(--ink-rgb),  0.06); min-width: 0; }
.mu-stat .material-symbols-outlined { font-size: 1.15rem; color: var(--accent-cyan); }
.mu-stat b { font-size: 1rem; }
.mu-stat span:last-child { font-size: 0.7rem; color: rgba(var(--ink-rgb),  0.55); }
.mu-facts { margin: 0; display: grid; gap: 0; }
.mu-facts > div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid rgba(var(--ink-rgb),  0.07); font-size: 0.86rem; }
.mu-facts dt { color: rgba(var(--ink-rgb),  0.55); }
.mu-facts dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.mu-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.mu-chip-tag { padding: 4px 11px; border-radius: calc(100px * var(--round, 1)); background: rgba(var(--ink-rgb),  0.08); font-size: 0.76rem; }
.mu-desc { font-size: 0.86rem; line-height: 1.55; color: rgba(var(--ink-rgb),  0.8); white-space: pre-wrap; overflow-wrap: anywhere; }
.mu-desc.clamp { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.mu-artist-card { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: calc(14px * var(--round, 1)); background: rgba(var(--ink-rgb),  0.06); margin-bottom: 10px; }
.mu-artist-card > div { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 0.82rem; }
.mu-artist-card > div span { color: rgba(var(--ink-rgb),  0.55); }
.mu-artist-card .mu-cover { width: 52px; }
.mu-ext { display: inline-flex; align-items: center; gap: 6px; margin-top: 20px; color: rgba(var(--ink-rgb),  0.7); font-size: 0.82rem; text-decoration: none; }
.mu-ext:hover { color: #fff; text-decoration: underline; }
.mu-info-skel { display: grid; gap: 12px; }
.mu-info-skel i { height: 18px; border-radius: calc(8px * var(--round, 1)); background: rgba(var(--ink-rgb),  0.07); }
.mu-info-skel i:nth-child(1) { height: 54px; }
.mu-info-err { color: rgba(var(--ink-rgb),  0.65); font-size: 0.86rem; }
body.mu-lite .mu-info-skel i { animation: none; }
@media (max-width: 980px) {
    .mu-np { display: block; overflow-y: auto; }
    .mu-np-layout { flex-direction: column; justify-content: flex-start; height: auto; min-height: 100%; padding: 76px 24px 48px; gap: 28px; }
    .mu-np-info { flex: none; width: min(440px, 100%); max-width: 100%; max-height: none; overflow: visible; }
}

/* ---------------------------------------------------------------- touch screens (iPad, phones; see touch.js) */
@media (hover: none) {
    /* No hovering on a touch screen, so show what hovering would. */
    .mu-row .mu-like:not(.on), .mu-row .mu-more { opacity: 0.75; }
    .mu-card-art .mu-fab, .mu-top-card .mu-fab { opacity: 1; transform: none; }
    .mu-card-art .mu-fab { width: 40px; height: 40px; }
    .mu-quick-play { opacity: 0.85; }
    /* Bigger targets for fingers: sliders get a taller grab area and a visible thumb. */
    .mu-slider { height: 30px; }
    .mu-sl-thumb { transform: scale(1); width: 14px; height: 14px; margin-left: -7px; }
    .mu-sl-track { height: 5px; }
    .mu-q-grip { width: 34px; height: 44px; }
    .mu-q-remove { width: 40px; height: 40px; opacity: 0.9; }
    .mu-row, .mu-card, .mu-quick, .mu-q-row { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
}
/* Safari on iPad / iPhone ignores page volume: use the side buttons. */
.ios .mu-vol { display: none; }
/* Keep the bar and full-screen views above Safari's toolbar (100vh there is taller than what you see). */
@supports (height: 100dvh) {
    .mu-np-info { max-height: calc(100dvh - 80px); }
    .mu-eqbox { max-height: calc(100dvh - 140px); }
}

/* ---------------------------------------------------------------- phones on their side (landscape) */
@media (max-height: 500px) and (orientation: landscape) {
    .mu-app { padding-top: 52px !important; --mu-bar: 60px; }
    .mu-side { overflow-y: auto; padding: 4px 8px 76px; gap: 0; scrollbar-width: none; }
    .mu-side::-webkit-scrollbar { display: none; }
    .mu-nav { padding: 8px 0; flex-shrink: 0; }
    .mu-top { padding: 6px 20px 8px; }
    .mu-search input { padding-top: 8px; padding-bottom: 8px; }
    .mu-main { padding-top: 14px; }
    .mu-h1 { font-size: 1.5rem; }
    .music-player-bar.mu-bar { height: 60px; bottom: 6px; left: 6px; right: 6px; }
    .mu-bar-right .mu-vol { width: 80px; }
    /* Now Playing: cover on the left, everything else on the right, instead of one tall column. */
    .mu-np-layout { flex-direction: row; align-items: flex-start; padding: 58px 20px 20px; gap: 22px; min-height: 100%; }
    .mu-np-art { width: min(42vw, calc(100dvh - 90px)); flex: none; transform: none; }
    .mu-np-info { flex: 1; min-width: 0; width: auto; }
    .mu-eqbox { max-height: calc(100dvh - 90px); bottom: 72px; }
}

/* ---------------------------------------------------------------- phones (portrait): the tab bar scrolls
   sideways when its buttons don't fit, instead of squashing "Listen together" off the edge. */
@media (max-width: 760px) {
    .mu-side { overflow-x: auto; justify-content: flex-start; scrollbar-width: none; overscroll-behavior-x: contain;
        -webkit-mask: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask: linear-gradient(90deg, #000 calc(100% - 28px), transparent); }
    .mu-side.at-end { -webkit-mask: none; mask: none; }
    .mu-side::-webkit-scrollbar { display: none; }
    .mu-side .mu-nav { flex: 1 0 auto; min-width: 60px; }
    .mu-side .mu-nav span:not(.material-symbols-outlined) { white-space: nowrap; }
}

/* A game or movie open while music plays: leave room for the player bar instead of covering the game's
   bottom buttons (minimize the bar to the round button for the full screen). Not in fullscreen, where
   the bar isn't shown. */
body.mu-has-bar #player-frame-container { box-sizing: border-box; padding-bottom: 108px; }
@media (max-width: 760px) { body.mu-has-bar #player-frame-container { padding-bottom: calc(80px + env(safe-area-inset-bottom)); } }
#player-ui:fullscreen #player-frame-container, #player-ui:-webkit-full-screen #player-frame-container { padding-bottom: 0; }
