.floating-navbar {
    position: fixed;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    display: flex;
    flex-direction: column;
    gap: 18px;
    align-items: center;
    width: 88px;
}

.nav-back,
.nav-track,
.nav-tools {
    display: flex;
    flex-direction: column;
    gap: 11px;
    width: 78px;
    padding: 14px 0;
    border-radius: 24px;
    background: var(--panel);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
    align-items: center;
}

.nav-back {
    padding: 10px 0;
}

.nav-tools {
    padding: 12px 0;
}

.nav-button {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #101010;
    border: 1px solid transparent;
    color: var(--text-muted);
    cursor: pointer;
    text-decoration: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
    transition: transform 0.25s ease, border-color 0.25s ease, color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.nav-back-button {
    width: 52px;
    height: 52px;
}

body.light-mode .nav-button {
    background: rgba(0, 0, 0, 0.03);
    box-shadow: none;
}

.nav-icon {
    width: 21px;
    height: 21px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.nav-icon svg {
    width: 21px;
    height: 21px;
    fill: currentColor;
}

.nav-button.active,
.nav-button:hover {
    color: var(--text);
    border-color: var(--border-strong);
    background: #0d0d0d;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.22);
    transform: translateY(-1px);
}

body.light-mode .nav-button.active,
body.light-mode .nav-button:hover {
    background: rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 20px rgba(24, 24, 24, 0.08);
}

.nav-control {
    position: relative;
}

.nav-control-label {
    position: absolute;
    right: 4px;
    bottom: 4px;
    min-width: 15px;
    height: 15px;
    padding: 0 3px;
    border-radius: 999px;
    background: var(--panel-solid);
    border: 1px solid var(--border);
    color: var(--text-soft);
    font-size: 8px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 1440px) {
    .floating-navbar {
        position: fixed;
        left: 50%;
        right: auto;
        top: unset;
        bottom: 0;
        width: max-content;
        max-width: calc(100vw - 24px);
        transform: translateX(-50%);
        background: transparent;
        z-index: 10;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 10px;
        padding: 0 0 22px;
    }

    .nav-back,
    .nav-track,
    .nav-tools {
        flex-direction: row;
        width: auto;
        max-width: 100%;
        padding: 11px 12px;
        border-radius: 18px;
        min-height: 68px;
        flex-shrink: 1;
    }

    .nav-back {
        padding: 11px 12px;
    }
}

@media (max-width: 810px) {
    .floating-navbar {
        left: 12px;
        right: 12px;
        width: auto;
        max-width: none;
        transform: none;
        justify-content: center;
        gap: 8px;
        padding: 0 0 14px;
    }

    .nav-back,
    .nav-track,
    .nav-tools {
        width: auto;
        min-width: 0;
        max-width: 100%;
        gap: 6px;
        padding: 8px;
        border-radius: 20px;
        min-height: 58px;
        flex-shrink: 1;
    }

    .nav-button {
        width: clamp(36px, 8.4vw, 42px);
        height: clamp(36px, 8.4vw, 42px);
        border-radius: 13px;
        flex: 0 1 auto;
    }

    .nav-icon {
        width: 18px;
        height: 18px;
    }

    .nav-icon svg {
        width: 18px;
        height: 18px;
    }
}
