

.mp-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.mp { --part: var(--other); position: relative; width: 100%; max-width: 440px; padding: 14px 16px 16px; border-radius: 34px; background: var(--bg); border: 1px solid var(--w10); overflow: hidden;
  box-shadow: 0 40px 90px -40px rgba(148,102,255,.45), 0 0 0 8px rgba(255,255,255,.025); isolation: isolate; color: var(--text); font-family: var(--font-text); }
.mp::before { content: ""; position: absolute; z-index: -1; left: 50%; top: -120px; width: 520px; height: 360px; transform: translateX(-50%); pointer-events: none;
  background: radial-gradient(50% 50% at 50% 50%, rgba(148,102,255,.14), rgba(148,102,255,0) 70%); }
@media (min-width: 641px) and (max-width: 1023px) { .mp { max-width: 480px; } }
@media (max-width: 640px) { .mp { max-width: none; } }

@media (max-width: 480px) {
  .mp { width: auto; margin: 0 -16px; padding: 12px 16px 16px; border-radius: 0; border-left: 0; border-right: 0; box-shadow: none; }
}
.mp button { -webkit-tap-highlight-color: transparent; }
.mp svg { flex: none; display: block; }

.mp-song { display: flex; align-items: center; gap: 12px; min-height: 48px; }
.mp-song__art { width: 48px; height: 48px; flex: none; border-radius: 10.5px; }
.mp-song__text { min-width: 0; }
.mp-song__title { margin: 0; font: 700 24px/28px var(--font-title); letter-spacing: -.025em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp-song__artist { margin: 0; color: var(--text2); font: 400 13px/18px var(--font-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.mp-song__load { color: var(--accent); font-weight: 600; font-variant-numeric: tabular-nums; }
.mp-song__load::before { content: "·"; margin: 0 6px; color: var(--text3); font-weight: 400; }

.mp-chips { position: relative; margin: 8px -16px 0; }
.mp-chips__row { display: flex; gap: 8px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; padding: 0 16px; scroll-padding: 0 16px; }
.mp-chips__row::-webkit-scrollbar { display: none; }
.mp-chips.is-more-end .mp-chips__row { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 44px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 44px), transparent); }
.mp-chips.is-more-start .mp-chips__row { -webkit-mask-image: linear-gradient(90deg, transparent, #000 44px); mask-image: linear-gradient(90deg, transparent, #000 44px); }
.mp-chips.is-more-start.is-more-end .mp-chips__row { -webkit-mask-image: linear-gradient(90deg, transparent, #000 44px, #000 calc(100% - 44px), transparent); mask-image: linear-gradient(90deg, transparent, #000 44px, #000 calc(100% - 44px), transparent); }
.mp-chip { position: relative; flex: none; display: inline-flex; align-items: center; gap: 6px; height: 48px; min-width: 48px; padding: 0 14px; border: 0; background: none; cursor: pointer;
  color: var(--text); font: 600 14px/20px var(--font-text); white-space: nowrap; border-radius: 22px; }
.mp-chip::before { content: ""; position: absolute; z-index: -1; inset: 4px 0; border-radius: 20px; background: var(--surface); border: 1px solid var(--w12); transition: background-color .15s, border-color .15s; }
.mp-chip svg { width: 15px; height: 15px; color: var(--accent); }
.mp-chip[aria-pressed="true"] { padding-left: 11px; font-weight: 700; }
.mp-chip[aria-pressed="true"]::before { background: var(--accent-22); border: 1.5px solid var(--accent); }
.mp-chip.is-edited::before { border: 1.5px solid var(--accent); }
.mp-chips__row { position: relative; z-index: 0; -webkit-user-select: none; user-select: none; }

.mp-chips.is-dragging .mp-chips__row { cursor: grabbing; }
.mp-chips.is-dragging .mp-chip { pointer-events: none; }

.mp-chips__arrow { position: absolute; z-index: 2; top: 50%; width: 48px; height: 48px; margin-top: -24px; display: inline-flex; align-items: center; justify-content: center; padding: 0; cursor: pointer;
  border: 0; border-radius: 50%; background: none; color: var(--text); }
.mp-chips__arrow::before { content: ""; position: absolute; z-index: -1; inset: 6px; border-radius: 50%; background: var(--raised); border: 1px solid var(--w14); box-shadow: 0 6px 16px -6px rgba(0,0,0,.7); transition: background-color .15s, border-color .15s; }
.mp-chips__arrow svg { width: 18px; height: 18px; }
.mp-chips__arrow--back { left: 0; }
.mp-chips__arrow--back svg { transform: scaleX(-1); }
.mp-chips__arrow--more { right: 0; }

@media (hover: none), (pointer: coarse) { .mp-chips__arrow { display: none; } }

@media (hover: hover) and (pointer: fine) {
  .mp-chips.is-more-end .mp-chips__row { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 88px), transparent calc(100% - 48px)); mask-image: linear-gradient(90deg, #000 calc(100% - 88px), transparent calc(100% - 48px)); }
  .mp-chips.is-more-start .mp-chips__row { -webkit-mask-image: linear-gradient(90deg, transparent 48px, #000 88px); mask-image: linear-gradient(90deg, transparent 48px, #000 88px); }
  .mp-chips.is-more-start.is-more-end .mp-chips__row { -webkit-mask-image: linear-gradient(90deg, transparent 48px, #000 88px, #000 calc(100% - 88px), transparent calc(100% - 48px)); mask-image: linear-gradient(90deg, transparent 48px, #000 88px, #000 calc(100% - 88px), transparent calc(100% - 48px)); }
}
.mp [hidden] { display: none !important; }

.mp-lanes { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.mp-lane { --part: var(--other); display: flex; flex-direction: column; padding: 6px 6px 9px 12px; border-radius: var(--r-lane); background: var(--surface); border: 1px solid var(--w8);
  transition: background-color .15s, border-color .15s; }
.mp-lane--vocals { --part: var(--vocals); }
.mp-lane--drums  { --part: var(--drums); }
.mp-lane--bass   { --part: var(--bass); }
.mp-lane--other  { --part: var(--other); }
.mp-lane__head { display: flex; align-items: center; gap: 6px; min-height: 48px; }
.mp-lane__name { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 8px; overflow: hidden; }
.mp-lane__dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--part); }
.mp-lane__label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 700 18px/24px var(--font-title); }
.mp-tag { flex: none; display: inline-flex; align-items: center; height: 18px; padding: 0 8px; border-radius: 999px; background: var(--text-tag); color: var(--on-accent); font: 700 12px/16px var(--font-text); white-space: nowrap; }
.mp-tag[hidden] { display: none; }
.mp-tag--silent { background: var(--tag); color: var(--text-tag); font-weight: 600; }

.mp-lane.is-muted { background: var(--low); border: 1.5px dashed var(--w24); padding: 5.5px 5.5px 8.5px 11.5px; }
.mp-lane.is-silent { background: var(--low); }
.mp-lane.is-solo { border: 1.5px solid var(--part); padding: 5.5px 5.5px 8.5px 11.5px; }
.mp-lane.is-muted .mp-lane__dot, .mp-lane.is-silent .mp-lane__dot { background: transparent; border: 2px solid var(--text-off); }
.mp-lane.is-muted .mp-lane__label, .mp-lane.is-silent .mp-lane__label { color: var(--text3); }

.mp-vol { flex: none; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 64px; height: 48px; padding: 0 6px; cursor: pointer;
  border-radius: 14px; border: 1px solid transparent; background: transparent; color: var(--text); font-variant-numeric: tabular-nums; transition: background-color .15s, border-color .15s; }
.mp-vol__value { font: 700 16px/18px var(--font-title); }
.mp-vol__bar { position: relative; width: 40px; height: 10px; }
.mp-vol__bar::before { content: ""; position: absolute; left: 0; right: 0; top: 3px; height: 4px; border-radius: 2px; background: var(--w12); }
.mp-vol__bar::after { content: ""; position: absolute; left: 19px; top: 0; width: 2px; height: 10px; border-radius: 1px; background: rgba(255,255,255,.45); }
.mp-vol__fill { position: absolute; left: 0; top: 3px; height: 4px; width: 20px; border-radius: 2px; background: var(--part); }
.mp-vol.is-changed { background: color-mix(in srgb, var(--part) 16%, transparent); border-color: color-mix(in srgb, var(--part) 55%, transparent); }
.mp-lane.is-muted .mp-vol, .mp-lane.is-silent .mp-vol { color: var(--text3); }
.mp-lane.is-muted .mp-vol__fill, .mp-lane.is-silent .mp-vol__fill { background: #4a4655; }

.mp-state { flex: none; width: 48px; height: 48px; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; padding: 0; cursor: pointer;
  border-radius: 14px; background: var(--state-off); border: 1px solid var(--w10); color: var(--text-tag); font: 600 13px/16px var(--font-text);
  transition: background-color .15s, border-color .15s, color .15s; }
.mp-state svg { width: 18px; height: 18px; }
.mp-state[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: var(--on-accent); font-weight: 700; }

.mp-wave { display: block; width: calc(100% - 6px); height: 36px; margin-top: 4px; cursor: pointer; touch-action: pan-y; }

.mp:not(.is-live) .mp-wave { cursor: default; background: repeating-linear-gradient(90deg, color-mix(in srgb, var(--part) 38%, transparent) 0 2.4px, transparent 2.4px 5px) center / 100% 40% no-repeat; }

.mp-fine { display: flex; align-items: center; width: 100%; min-height: 48px; margin-top: 10px; padding: 4px 14px; cursor: pointer; text-align: left;
  border-radius: 16px; background: var(--surface); border: 1px solid var(--w8); color: var(--text); transition: background-color .15s, border-color .15s; }
.mp-fine svg { width: 20px; height: 20px; }
.mp-fine__title { margin-left: 10px; font: 700 15px/20px var(--font-text); }
.mp-fine__sum { flex: 1; min-width: 0; margin-left: 10px; text-align: right; color: var(--text2); font: 400 13px/18px var(--font-text); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp-fine .mp-fine__chev { width: 18px; height: 18px; margin-left: 10px; color: var(--text2); }

.mp-range { --p: 0%; --fill: var(--accent); display: block; width: 100%; height: 48px; margin: 0; padding: 0; background: transparent; cursor: pointer; -webkit-appearance: none; appearance: none; touch-action: pan-y; border-radius: 10px; }
.mp-range::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--fill) var(--p), var(--w14) var(--p)); }
.mp-range::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; margin-top: -6px; border-radius: 50%; border: 0; background: var(--text); box-shadow: 0 1px 4px rgba(0,0,0,.4); transition: transform .12s; }
.mp-range::-moz-range-track { height: 4px; border-radius: 2px; background: var(--w14); }
.mp-range::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--fill); }
.mp-range::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; border: 0; background: var(--text); box-shadow: 0 1px 4px rgba(0,0,0,.4); }
.mp-range:disabled { cursor: default; opacity: .4; }

.mp-pos { display: flex; align-items: center; gap: 8px; margin-top: 8px; padding: 0 2px; direction: ltr; font: 600 13px/18px var(--font-text); font-variant-numeric: tabular-nums; }
.mp-pos__time { min-width: 32px; color: var(--text); }
.mp-pos__len { min-width: 32px; text-align: right; color: var(--text2); }
.mp-pos__track { position: relative; flex: 1; min-width: 0; }
.mp-pos__bar { position: relative; z-index: 1; }

.mp-pos__clip { position: absolute; z-index: 0; top: 50%; height: 18px; margin-top: -9px; border-radius: 9px; background: var(--accent-22); border: 1.5px solid var(--accent); box-sizing: border-box; pointer-events: none; }

.mp-pos__handle { position: absolute; z-index: 2; top: 0; width: 28px; height: 48px; margin-left: -14px; cursor: ew-resize; touch-action: none; border-radius: 10px; }
.mp-pos__handle::before { content: ""; position: absolute; left: 12px; top: 10px; width: 4px; height: 28px; border-radius: 2px; background: var(--accent); box-shadow: 0 0 0 1.5px var(--bg); transition: transform .12s; }
.mp-pos__handle.is-active::before { transform: scaleY(1.15); background: #d0b3ff; }
.mp .mp-pos__handle:focus-visible { outline: 0; }
.mp .mp-pos__handle:focus-visible::before { box-shadow: 0 0 0 1.5px var(--bg), 0 0 0 4.5px var(--text); }

.mp-clip { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 10px; }
.mp-clip__pill { display: flex; align-items: center; gap: 8px; max-width: 100%; min-height: 40px; padding: 0 4px 0 12px;
  border-radius: 20px; background: var(--accent-22); border: 1.5px solid var(--accent); color: var(--text); font: 700 14px/20px var(--font-text); }
.mp-clip__pill > svg { width: 18px; height: 18px; color: var(--accent); }
.mp-clip__times { color: var(--text-tag); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mp-clip__len { color: var(--text2); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mp-clip__opts { display: flex; flex-wrap: wrap; gap: 0 8px; }
.mp-clip__opts .mp-chip { padding: 0 12px; font-size: 13px; }
.mp-clip__opts .mp-chip[aria-pressed="true"] { padding-left: 9px; }
.mp-clip__close { flex: none; width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; margin-left: 2px; padding: 0; cursor: pointer;
  border-radius: 50%; background: transparent; border: 0; color: var(--text); }
.mp-clip__close svg { width: 16px; height: 16px; }
.mp-clip__close { position: relative; }
.mp-clip__close::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; }

.mp-transport { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 4px; direction: ltr; }
.mp-tool, .mp-transport__end { flex: 1 1 0; min-width: 0; max-width: 88px; }
.mp-tool { min-width: 44px; }
@media (max-width: 350px) { .mp-transport { gap: 6px; } }
.mp-tool { height: 60px; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 0 4px; cursor: pointer;
  border-radius: 18px; background: var(--surface); border: 1px solid var(--w10); color: var(--text); font: 700 13px/16px var(--font-text);
  transition: background-color .15s, border-color .15s, color .15s; }
.mp-tool svg { width: 20px; height: 20px; }
.mp-tool span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mp-tool[aria-pressed="true"] { background: color-mix(in srgb, var(--accent) 18%, var(--surface)); border: 1.5px solid var(--accent); color: var(--accent); }
.mp-round { position: relative; flex: none; width: 52px; height: 52px; display: inline-flex; align-items: center; justify-content: center; padding: 0; cursor: pointer;
  border-radius: 50%; background: var(--surface); border: 1px solid var(--w10); color: var(--text); transition: background-color .15s, border-color .15s, color .15s; }
.mp-round svg { width: 20px; height: 20px; }
.mp-repeat[aria-pressed="true"] { background: #302741; border: 1.5px solid var(--accent); color: var(--accent); }
.mp-repeat__dot { position: absolute; left: 50%; bottom: 5px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--accent); opacity: 0; }
.mp-repeat[aria-pressed="true"] .mp-repeat__dot { opacity: 1; }
.mp-play { position: relative; flex: none; width: 76px; height: 76px; display: inline-flex; align-items: center; justify-content: center; padding: 0; cursor: pointer; border: 0; border-radius: 50%;
  color: var(--on-accent); background-color: var(--grad-start);
  background-image: radial-gradient(120% 120% at 20% 10%, rgba(255,255,255,.28), rgba(255,255,255,0) 45%), var(--grad);
  box-shadow: var(--glow-play), var(--inner-top-button); }
.mp-play svg { width: 28px; height: 28px; }
.mp-play.is-loading::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 3px solid var(--w12); border-top-color: var(--accent); animation: mp-spin .8s linear infinite; }
@keyframes mp-spin { to { transform: rotate(360deg); } }

.mp-status { margin: 10px 0 0; min-height: 0; color: var(--text2); font: 600 14px/20px var(--font-text); text-align: center; }
.mp-status:empty { display: none; }

.mp.is-unsupported :is(.mp-chips, .mp-lanes, .mp-fine, .mp-clip, .mp-pos, .mp-transport) { opacity: .45; pointer-events: none; }
.mp.is-unsupported button:disabled, .mp.is-unsupported input:disabled { cursor: default; }

@media (hover: hover) {
  .mp-chip:hover::before { border-color: var(--w36); }
  .mp-chip[aria-pressed="true"]:hover::before, .mp-chip.is-edited:hover::before { border-color: #d0b3ff; }
  .mp-vol:hover { border-color: var(--w24); }
  .mp-vol.is-changed:hover { border-color: var(--part); }
  .mp-state:hover { border-color: var(--w36); color: var(--text); }
  .mp-state[aria-pressed="true"]:hover { border-color: var(--text); color: var(--on-accent); background: #fff; }
  .mp-fine:hover { background: var(--raised); border-color: var(--w14); }
  .mp-round:hover { background: var(--raised); border-color: var(--w24); }
  .mp-tool:hover { background: var(--raised); border-color: var(--w24); }
  .mp-tool[aria-pressed="true"]:hover { border-color: #d0b3ff; }
  .mp-chips__arrow:hover::before { background: #2c2a36; border-color: var(--w36); }
  .mp-repeat[aria-pressed="true"]:hover { background: #3a2f50; border-color: #d0b3ff; }
  .mp-play:hover { filter: brightness(1.08); }
  .mp-range:hover::-webkit-slider-thumb { transform: scale(1.15); }
  .mp-second:hover { background: var(--state-off); border-color: var(--w24); }
  .mp-sheet__close:hover { border-color: var(--w24); }
}
.mp-state:active, .mp-round:active, .mp-tool:active, .mp-vol:active, .mp-fine:active, .mp-second:active { background-color: #24232c; }
.mp-state[aria-pressed="true"]:active { background-color: #dcd8e6; }
.mp-play:active { filter: brightness(.95); }
.mp :focus-visible { outline: 3px solid var(--text); outline-offset: 2px; }
.mp .mp-chip:focus-visible { outline: 0; }
.mp .mp-chip:focus-visible::before { outline: 3px solid var(--text); outline-offset: 0; }
.mp-sheet[data-part="vocals"] { --part: var(--vocals); }
.mp-sheet[data-part="drums"] { --part: var(--drums); }
.mp-sheet[data-part="bass"] { --part: var(--bass); }
.mp-sheet[data-part="other"] { --part: var(--other); }

.mp-scrim { position: absolute; inset: 0; z-index: 4; background: rgba(0,0,0,.68); animation: mp-fade .2s ease-out; }
.mp-scrim[hidden], .mp-sheet[hidden] { display: none; }
.mp-sheet { position: absolute; z-index: 5; left: 0; right: 0; bottom: 0; max-height: calc(100% - 40px); display: flex; flex-direction: column; padding: 8px 16px 16px;
  border-radius: 28px 28px 0 0; background: #131218; border: 1px solid var(--w10); border-bottom: 0; animation: mp-up .22s cubic-bezier(.2,.8,.2,1); }
@media (min-width: 481px) { .mp-sheet { border-radius: 28px 28px 33px 33px; border-bottom: 1px solid var(--w10); } }
.mp-sheet__handle { align-self: center; width: 36px; height: 4px; border-radius: 2px; background: var(--w24); }
.mp-sheet__head { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.mp-sheet__title { flex: 1; min-width: 0; margin: 0; font: 700 20px/26px var(--font-title); }
.mp-sheet__close { flex: none; width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center; padding: 0; cursor: pointer;
  border-radius: 14px; background: var(--raised); border: 1px solid var(--w10); color: var(--text); }
.mp-sheet__close svg { width: 20px; height: 20px; }
.mp-sheet__body { margin-top: 8px; overflow-y: auto; overscroll-behavior: contain; }
.mp-sheet__body > .mp-slider:last-child .mp-range { margin-bottom: 0; }

html.mp-lock, html.mp-lock body { overflow: hidden; }
.mp-layer { color: var(--text); font-family: var(--font-text); }
.mp-layer button { -webkit-tap-highlight-color: transparent; }
.mp-layer svg { flex: none; display: block; }
.mp-layer [hidden] { display: none !important; }
.mp-layer :focus-visible { outline: 3px solid var(--text); outline-offset: 2px; }
.mp-layer .mp-scrim { position: fixed; z-index: 90; inset: 0; background: rgba(0,0,0,.6); }
.mp-layer .mp-sheet { position: fixed; z-index: 91; left: 0; right: 0; bottom: 0; max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px - env(safe-area-inset-top, 0px));
  padding: 8px max(16px, env(safe-area-inset-right, 0px)) calc(16px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  border-radius: 28px 28px 0 0; border-bottom: 0; box-shadow: 0 -20px 60px rgba(0,0,0,.5); }
@keyframes mp-up { from { transform: translateY(100%); } }
@keyframes mp-fade { from { opacity: 0; } }

.mp-second { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 16px; cursor: pointer;
  border-radius: 14px; background: var(--raised); border: 1px solid var(--w10); color: var(--text); font: 700 14px/20px var(--font-text); white-space: nowrap; }
.mp-second svg { width: 20px; height: 20px; }
.mp-custom { margin: 8px 0 0; color: var(--text2); font: 700 13px/18px var(--font-text); }
.mp-custom[hidden] { display: none; }

.mp-slider { margin-top: 8px; }
.mp-slider__top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.mp-slider__top label { font: 700 15px/20px var(--font-text); }
.mp-slider__top output { color: var(--text2); font: 400 13px/18px var(--font-text); font-variant-numeric: tabular-nums; }
.mp-slider .mp-range { margin-top: -10px; margin-bottom: -6px; }
.mp-slider.is-off .mp-slider__top { opacity: .4; }

.mp-switch { display: flex; align-items: center; gap: 12px; min-height: 48px; margin-top: 4px; cursor: pointer; font: 400 14px/20px var(--font-text); }
.mp-switch > span:first-child { flex: 1; }
.mp-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.mp-switch__track { position: relative; flex: none; width: 50px; height: 30px; border-radius: 15px; background: #2a2833; border: 1.5px solid rgba(255,255,255,.30); transition: background-color .15s, border-color .15s; }
.mp-switch__track::after { content: ""; position: absolute; top: 3.5px; left: 3.5px; width: 20px; height: 20px; border-radius: 50%; background: var(--text2); transition: transform .15s, background-color .15s; }
.mp-switch input:checked + .mp-switch__track { background: var(--accent); border-color: var(--accent); }
.mp-switch input:checked + .mp-switch__track::after { transform: translateX(20px); background: var(--on-accent); }
.mp-switch input:focus-visible + .mp-switch__track { outline: 3px solid var(--text); outline-offset: 2px; }

.mp-volsheet__value { margin: 4px 0 0; font: 700 28px/32px var(--font-title); font-variant-numeric: tabular-nums; }
.mp-volsheet__bar { --fill: var(--part); margin-top: 4px; }
.mp-note { margin: 2px 0 0; color: var(--text2); font: 400 13px/18px var(--font-text); }
.mp-volsheet__row { display: flex; gap: 8px; margin-top: 12px; }
.mp-volsheet__row .mp-second { flex: 1; padding: 0 10px; }
.mp-volsheet__row .mp-volsheet__reset { flex: 1.6; }

@media (max-width: 380px) {
  .mp-lane__head { gap: 4px; }
  .mp-vol { min-width: 56px; padding: 0 4px; }
  .mp-lane__name { gap: 6px; }
}

@media (max-width: 350px) {
  .mp-lane__head { gap: 2px; }
  .mp-lane__name { gap: 4px; }
  .mp-lane__label { font-size: 17px; }
  .mp-vol { min-width: 48px; padding: 0 2px; }
  .mp-state { width: 46px; }
  .mp-tag { padding: 0 6px; font-size: 11px; }
}

@media (max-width: 380px) {
  .mp:lang(hr) .mp-tag { padding: 0 6px; }
}
@media (max-width: 350px) {
  .mp:lang(hr) .mp-lane__name { gap: 3px; }
  .mp:lang(hr) .mp-lane__label { font-size: 16px; }
  .mp:lang(hr) .mp-tag { padding: 0 4px; }
  .mp:lang(hr) .mp-tool { padding: 0 1px; font-size: 11.5px; }
}

.mp-mini { position: fixed; z-index: 80; left: max(8px, env(safe-area-inset-left, 0px)); right: max(8px, env(safe-area-inset-right, 0px)); bottom: calc(8px + env(safe-area-inset-bottom, 0px));
  display: flex; align-items: center; gap: 4px; max-width: 440px; margin: 0 auto; padding: 6px 8px 6px 6px; overflow: hidden;
  border-radius: 20px; background: rgba(22,20,29,.86); border: 1px solid var(--w12); color: var(--text); font-family: var(--font-text);
  -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 18px 40px -12px rgba(0,0,0,.7), 0 0 0 1px rgba(0,0,0,.25), inset 0 1px 0 var(--w8);
  visibility: hidden; transform: translateY(calc(100% + 24px)); transition: transform .28s cubic-bezier(.2,.8,.2,1), visibility 0s linear .28s; }
.mp-mini.is-on { visibility: visible; transform: none; transition: transform .28s cubic-bezier(.2,.8,.2,1), visibility 0s; }
@media (min-width: 600px) { .mp-mini { bottom: calc(16px + env(safe-area-inset-bottom, 0px)); } }

html.mp-has-mini { scroll-padding-bottom: calc(92px + env(safe-area-inset-bottom, 0px)); }
.mp-mini button { -webkit-tap-highlight-color: transparent; }
.mp-mini svg { flex: none; display: block; }
.mp-mini__open { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 6px 0 0; cursor: pointer; text-align: left;
  border: 0; border-radius: 14px; background: none; color: inherit; font: inherit; }
.mp-mini__art { flex: none; width: 40px; height: 40px; border-radius: 9px; }
.mp-mini__text { min-width: 0; display: flex; flex-direction: column; }
.mp-mini__title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 700 15px/20px var(--font-title); letter-spacing: -.01em; }
.mp-mini__sub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text2); font: 400 13px/18px var(--font-text); font-variant-numeric: tabular-nums; }
.mp-mini__sub.is-loading { color: var(--accent); font-weight: 600; }
.mp-mini__play { position: relative; flex: none; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0; cursor: pointer;
  border: 0; border-radius: 50%; color: var(--on-accent); background-color: var(--grad-start); background-image: var(--grad); box-shadow: var(--glow-play), var(--inner-top-button); }
.mp-mini__play svg { width: 20px; height: 20px; }
.mp-mini__play.is-loading::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2.5px solid var(--w12); border-top-color: var(--accent); animation: mp-spin .8s linear infinite; }
.mp-mini__line { position: absolute; left: 14px; right: 14px; bottom: 0; height: 2px; border-radius: 1px; background: var(--w10); }
.mp-mini__fill { position: absolute; inset: 0; border-radius: 1px; background: var(--grad-h); transform: scaleX(0); transform-origin: left center; }
.mp-mini :focus-visible { outline: 3px solid var(--text); outline-offset: 2px; }
@media (hover: hover) { .mp-mini__open:hover .mp-mini__title { text-decoration: underline; text-decoration-color: var(--w36); text-decoration-thickness: 2px; } .mp-mini__play:hover { filter: brightness(1.08); } }

@media (prefers-reduced-motion: reduce) {
  .mp *, .mp *::before, .mp *::after, .mp-layer *, .mp-layer *::before, .mp-layer *::after, .mp-mini, .mp-mini *, .mp-mini *::after { transition: none !important; animation: none !important; }
  .mp-mini { transform: none; }
  .mp-mini__play.is-loading::after { border-top-color: var(--accent); }
  .mp-play.is-loading::after { animation: none; border-top-color: var(--accent); }
}
