.menu-list {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(0px, 0px);
    gap: 0px;
    min-width: 250px;
    height: fit-content;
    border-radius: 30px;
    padding: 8px;
    overflow: hidden;
}

.menu-track {
    position: relative;
    overflow: hidden;
}

.menu-panel {
    position: relative;
    z-index: 0;
}

.menu-panel.is-current {
    z-index: 2;
}

.menu-panel.is-leaving {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1;
    pointer-events: none;
}

.menu-item {
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 999px;
    cursor: pointer;
    transition: background var(--motion-fast) var(--ease-standard);
}

.menu-item:hover {
    background-color: rgba(255, 255, 255, 0.075);
}

.item-head {
    gap: 8px;
    color: var(--text-primary);
}

.menu-list .primary-btn {
    width: 100%;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.05);
    box-shadow: none;
    gap: 8px;
    margin: 8px 0;
    border-radius: 999px;
}

.menu-list .menu-item:has(.primary-btn) {
    padding: 0px;
}

.menu-list .menu-item:has(.primary-btn):hover {
    background-color: transparent;
}

.menu-list .menu-item .primary-btn:hover {
    background-color: rgba(255, 255, 255, 0.075);
}

.menu-list .primary-btn svg {
    width: 16px;
    height: 16px;
}

.menu-list .icon-btn {
    background: transparent;
    color: var(--text-primary);
    border: 0px;
}

.menu-list .icon-btn svg {
    width: 16px;
    height: 16px;
}

.menu-item .item-head svg {
    width: 20px;
    height: 20px;
}

.menu-label {
    color: var(--text-primary);
    font-size: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 6px;
    margin-bottom: 8px;
    padding-left: 10px;
}

.menu-label:not(:first-child) {
    margin-top: 12px;
}

.menu-label:first-child {
    margin-top: 4px;
}

/* --- Nested menu back header: a menu-label that also acts as the back
       button (chevron-left returns to the parent list). The label class
       supplies the type, rule and spacing; this only adds the row layout,
       the icon gap and the hover affordance. --- */
.menu-head {
    gap: 6px;
    cursor: pointer;
    user-select: none;
    transition: background var(--motion-fast) var(--ease-standard);
}

.menu-head:hover {
    background: rgba(255, 255, 255, 0.075);
}

.menu-head svg {
    width: 12px;
    height: 12px;
}

/* --- Small right-aligned readout inside a menu row --- */
.value-tag {
    color: var(--text-secondary);
    font-size: 12px;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

/* --- Full-width menu sliders (inherit the global range styling) --- */
input.menu-slider {
    display: block;
    width: calc(100% - 24px);
    margin: 2px 12px 14px;
}

/* --- Segmented option group (skip length, aspect ratio, ...) --- */
.segmented {
    display: flex;
    gap: 4px;
    padding: 3px;
    margin: 0 12px 14px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 999px;
}

.segment {
    flex: 1;
    border: 0;
    background: transparent;
    color: var(--text-secondary);
    font-size: 12px;
    font-family: inherit;
    padding: 5px 4px;
    border-radius: 999px;
    cursor: pointer;
    transition:
        background var(--motion-fast) var(--ease-standard),
        color var(--motion-fast) var(--ease-standard);
}

.segment:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.06);
}

.segment.active {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.16);
}

/* --- Custom dropdown (EQ presets, fit/fill, ...) --- */
.dropdown {
    position: relative;
    margin: 0 12px 14px;
}

.dropdown-trigger {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
    padding: 9px 14px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    font-size: 13px;
    font-family: inherit;
    cursor: pointer;
    transition: background var(--motion-fast) var(--ease-standard);
}

.dropdown-trigger:hover {
    background: rgba(255, 255, 255, 0.1);
}

.dropdown-trigger svg {
    width: 14px;
    height: 14px;
    color: var(--text-secondary);
    transition: transform var(--motion-fast) var(--ease-standard);
}

.dropdown.open .dropdown-trigger svg {
    transform: rotate(180deg);
}

.dropdown-value {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dropdown-list {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 10;
    padding: 4px;
    background: #1e1e1e;
    border-radius: 16px;
    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.5),
        0 0 0 0.5px rgba(255, 255, 255, 0.1);
    max-height: 200px;
    overflow-y: auto;
    scrollbar-width: none;
}

.dropdown-list::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.dropdown.up .dropdown-list {
    top: auto;
    bottom: calc(100% + 6px);
}

.dropdown-item {
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition:
        background var(--motion-fast) var(--ease-standard),
        color var(--motion-fast) var(--ease-standard);
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

.dropdown-item.active {
    background: rgba(255, 255, 255, 0.14);
    color: var(--text-primary);
}

/* --- Equalizer bands (vertical sliders) --- */
.eq-row {
    display: flex;
    justify-content: space-between;
    gap: 4px;
    margin: 4px 16px 8px;
}

.eq-band {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

input.eq-slider {
    writing-mode: vertical-lr;
    width: 14px;
    height: 78px;
    cursor: pointer;
}

input.eq-slider::-webkit-slider-runnable-track {
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to top,
        var(--progress) 0%,
        var(--progress) var(--value, 50%),
        var(--base) var(--value, 50%),
        var(--base) 100%
    );
    border-radius: 4px;
}

input.eq-slider::-webkit-slider-thumb {
    height: 8px;
    width: 8px;
    margin-top: 0;
    margin-left: 3px;
}

.eq-freq {
    font-size: 10px;
    color: var(--text-secondary);
}