/* ── Menu View ─────────────────────────────────────────────── */

#menu-view {
    flex-grow: 1;
    overflow: hidden;
    position: relative;
}

/* ── Slide Transition ─────────────────────────────────────── */

#menu-slider {
    display: flex;
    width: 200%;
    min-width: 200%;
    flex-shrink: 0;
    height: 100%;
    transition: transform 0.3s ease-out;
    transform: translateX(0);
    will-change: transform;
    backface-visibility: hidden;
}

.menu-pane {
    flex: 0 0 50%;
    width: 50%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    overflow: hidden;
    background: linear-gradient(135deg, #faf8ff 0%, #fff5f8 100%);
}

/* ── Menu Items ───────────────────────────────────────────── */

.menu-item {
    width: 100%;
    padding: calc(var(--u) * 4) calc(var(--u) * 12);
    font-size: calc(var(--u) * 15);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    border-bottom: calc(var(--u) * 1) solid #e8d5f2;
    will-change: transform;
    letter-spacing: calc(var(--u) * -0.4);
    color: #2d1b4e;
}

.menu-item span:first-child {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-grow: 1;
    margin-right: calc(var(--u) * 8);
}

/* ── Selected State (Vaporwave Magenta) ──────────────────── */

.menu-item.selected {
    background: linear-gradient(to bottom, #ec48a6 0%, #d63b8f 45%, #c92880 50%, #b81f7a 100%);
    color: #fff;
    border-bottom: calc(var(--u) * 1) solid transparent;
    box-shadow: inset 0 2px 8px rgba(255, 255, 255, 0.2), inset 0 -2px 8px rgba(0, 0, 0, 0.2);
}

.menu-item .arrow {
    font-size: calc(var(--u) * 20);
    color: #a68db5;
    margin-right: calc(var(--u) * -4);
}

.menu-item.selected .arrow {
    color: #fff;
}

.menu-item .value {
    font-size: calc(var(--u) * 13);
    color: #8b5c96;
    font-weight: 500;
}

.menu-item.selected .value {
    color: #fff;
}

/* ── Disabled State ───────────────────────────────────────── */

.menu-item.disabled {
    color: #bbb;
    pointer-events: none;
}

.menu-item.disabled .arrow {
    color: #ccc;
}
/* ── Secondary Text (artist next to song/album) ───────────── */

.menu-item .detail {
    flex: 0 1 auto;
    max-width: 45%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: calc(var(--u) * 11);
    font-weight: 500;
    color: #8b5c96;
    margin-right: calc(var(--u) * 4);
}

.menu-item.selected .detail {
    color: rgba(255, 255, 255, 0.85);
}

/* ── Search Field (replaces the header title in Search) ───── */

#search-input {
    pointer-events: auto;
    width: 100%;
    height: calc(var(--u) * 16);
    padding: 0 calc(var(--u) * 6);
    border: calc(var(--u) * 1) solid #c99ff5;
    border-radius: calc(var(--u) * 8);
    background: #fff;
    color: #2d1b4e;
    font: inherit;
    font-size: calc(var(--u) * 12);
    font-weight: 600;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

#search-input:focus {
    border-color: #ec48a6;
    box-shadow: 0 0 0 calc(var(--u) * 1) rgba(236, 72, 166, 0.35);
}
